/* 
  Design System & Variables
  Cores profundas, elegantes e místicas (Azul profundo, roxo, dourado escuro)
*/
:root {
    --bg-color: #0A0A10;
    /* Fundo bem escuro, quase preto com toque azulado */
    --surface-color: #161622;
    /* Cor de fundo para cards e header */
    --text-primary: #EAEAEA;
    /* Texto claro e legível */
    --text-secondary: #A0A0B0;
    /* Texto secundário */

    --accent-gold: #D4AF37;
    /* Dourado para detalhes e hover */
    --accent-purple: #4A235A;
    /* Roxo profundo para gradientes/backgrounds */
    --accent-blue: #1A2530;
    /* Azul profundo */

    --whatsapp-color: #25D366;

    /* Tipografia */
    --font-heading: 'Cinzel', serif;
    /* Elegante, fina, lembra geometria sagrada */
    --font-body: 'Montserrat', sans-serif;
    /* Moderna, limpa, fácil de ler */

    /* Efeitos */
    --transition: all 0.3s ease;
    --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Header & Nav --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 16, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: var(--glass-border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    line-height: 1;
    padding: 0.1rem;
    display: flex;
    align-items: center;
}

.lang-toggle:hover {
    transform: scale(1.15);
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links li a:hover {
    color: var(--text-secondary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b858;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Hero Section (Minimalist) --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, var(--surface-color) 0%, var(--bg-color) 100%);
    position: relative;
    padding-top: 80px;
    /* Offset for header */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
}

.hero-logo {
    width: 80px;
    /* Pequena e sutil */
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
    animation: rotateSlow 60s linear infinite;
}

.hero-subtitle {
    display: none;
    /* Removido no HTML, escondendo via CSS por precaução */
}

.welcome-message {
    max-width: 800px;
    padding: 0 20px;
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glowing-star {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #fff;
    margin-bottom: 3rem;
    box-shadow:
        0 0 10px 4px rgba(255, 255, 255, 0.9),
        0 0 25px 12px rgba(220, 240, 255, 0.6),
        0 0 45px 20px rgba(150, 180, 255, 0.3);
    animation: shineAndPulse 3s ease-in-out infinite alternate;
    position: relative;
}

/* Animations */
@keyframes shineAndPulse {
    0% {
        transform: scale(0.9);
        box-shadow:
            0 0 8px 3px rgba(255, 255, 255, 0.6),
            0 0 15px 8px rgba(220, 240, 255, 0.4);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        box-shadow:
            0 0 15px 5px rgba(255, 255, 255, 1),
            0 0 35px 15px rgba(220, 240, 255, 0.8),
            0 0 70px 30px rgba(150, 180, 255, 0.5);
        opacity: 1;
    }
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero-name {
        font-size: 1.8rem;
    }

    .welcome-message {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .hero {
        padding-top: 100px;
    }

    .section {
        padding: 60px 5%;
    }
}

/* --- Sections --- */
.section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.sobre-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.sobre-photo {
    display: block;
    width: 280px;
    height: auto;
    margin: 0 auto 2.5rem auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* --- Carousel --- */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 1rem 3rem 1rem;
    /* Added horizontal padding to prevent clip near arrows */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Hide scrollbar for clean look */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    width: 100%;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Adjust wrapper padding on smaller screens to fit arrows */
@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 30px;
    }

    .prev-btn {
        left: 0;
    }

    .next-btn {
        right: 0;
    }
}

.card {
    min-width: 320px;
    background: var(--surface-color);
    border-radius: 0;
    /* Mais quadrado, menos curvo */
    border: var(--glass-border);
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 2px solid var(--accent-color);
    /* Removida borda dourada, agora usa cor de destaque (preto) */
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-align: center;
    border-radius: 0;
    /* Botão quadrado/minimalista */
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    font-weight: 500;
}

.btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* --- Horizontal Course Cards --- */
.courses-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.course-card-horizontal {
    display: flex;
    background: var(--surface-color);
    border: var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.course-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.course-img {
    flex: 0 0 300px;
    /* fixed width for the image */
    background-size: cover;
    background-position: center;
    border-right: 2px solid var(--accent-color);
}

.course-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.course-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-btn {
    align-self: flex-start;
}

/* Responsive adjustments for horizontal cards */
@media (max-width: 768px) {
    .course-card-horizontal {
        flex-direction: column;
    }

    .course-img {
        flex: none;
        height: 200px;
        border-right: none;
        border-bottom: 2px solid var(--accent-color);
    }

    .course-btn {
        align-self: stretch;
    }
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 3rem 5%;
    background: var(--surface-color);
    border-top: var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--accent-gold);
    /* Using the predefined gold variable for hover */
    transform: translateY(-3px);
}

.footer-icon-inactive {
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: default;
}