/* ==================== VARIÁVEIS - TEMA CLARO ==================== */
:root {
  --bg: #f9f5f0;
  --bg-secondary: #ffffff;
  --text: #1a1a1a;
  --text-light: #666666;
  --primary: #e07a5f;
  --primary-dark: #c96045;
  --card-bg: #ffffff;
  --card-border: #e0e0e0;
  --gradient: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(224, 122, 95, 0.2);
  --header-bg: #1a1a1a;
}

/* ==================== VARIÁVEIS - TEMA ESCURO ==================== */
[data-theme="dark"] {
  --bg: #121212;
  --bg-secondary: #1e1e1e;
  --text: #e0e0e0;
  --text-light: #a0a0a0;
  --primary: #e07a5f;
  --primary-dark: #ff9077;
  --card-bg: #1e1e1e;
  --card-border: #333333;
  --gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(224, 122, 95, 0.3);
  --header-bg: #0a0a0a;
}

/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================== HEADER ==================== */
header {
    background-color: var(--header-bg);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
    transition: background-color 0.3s ease;
}

.titulo {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.titulo:hover {
    transform: scale(1.05);
}

.cabecalho {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cabecalho ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.cabecalho a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cabecalho a:hover {
    background-color: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-hover);
}

.cabecalho a.Inicio {
    background-color: var(--primary);
    color: var(--text);
}

/* Botão tema escuro */
.theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: rotate(15deg);
}

.theme-toggle .sun,
.theme-toggle .moon {
    position: absolute;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .theme-toggle .moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon {
    display: block;
}

/* ==================== HERO ==================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 10%;
    min-height: 90vh;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
    transition: background 0.3s ease;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    animation: fadeInLeft 1s ease-out;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.1;
    transition: color 0.3s ease;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-hover);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    animation: fadeInRight 1.3s ease-out;
}

.hero-image img {
    max-width: 100%;
    width: 600px;
    border-radius: 20px;
    box-shadow: 20px 20px 60px var(--shadow);
}

/* ==================== SOBRE ==================== */
.sobre {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.sobre h2 {
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--text);
    transition: color 0.3s ease;
}

.sobre h3 {
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 50px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.card-sobre {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.card-sobre .card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px 25px;
    width: 300px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    text-align: center;
}

.card-sobre .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-hover);
    border-color: var(--primary);
}

.card-sobre .card h3 {
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.card-sobre .card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ddc277, #cc952e);
    border-radius: 2px;
}

.card-sobre .card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* ==================== CURSOS ==================== */
.cursos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.cursos > h2 {
    width: 100%;
    text-align: center;
    font-size: 3.5rem;
    color: var(--text);
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.cursos .card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.cursos .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-hover);
    border-color: var(--primary);
}

.cursos .card h3 {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.cursos .card p {
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 700;
}

/* ==================== CTA ==================== */
.cta {
    background: var(--gradient);
    padding: 80px 40px;
    text-align: center;
    transition: background 0.3s ease;
}

.cta h2 {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 40px;
}

.cta h2 span {
    color: var(--primary);
}

.cta button {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 25px 58px;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-hover);
}

.cta button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--shadow-hover);
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .titulo {
        font-size: 1.5rem;
    }
    
    .cabecalho ul {
        gap: 15px;
    }
    
    .cabecalho a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .sobre h2 {
        font-size: 2rem;
    }
    
    .card-sobre .card,
    .cursos .card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .cabecalho ul {
        gap: 10px;
    }
    
    .cabecalho a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .hero-content h1 {
        font-size: 1.7rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 30px;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .cta button {
        padding: 15px 40px;
        font-size: 1rem;
    }
}
