/* ==========================================================================
   Design System: Deloriza & Tuko (Royal Purple & Warm Amber Cyber-Roots)
   Inspired by Delo's Flyer Palette (#6a287a / #8b5cf6 / #f59e0b)
   ========================================================================== */
:root {
    --bg-dark: #07040a;               /* Deep Violet OLED Black */
    --bg-card: rgba(22, 13, 31, 0.65); /* Rich Purple Glass */
    --border-color: rgba(139, 92, 246, 0.22); /* Violet Neon Border */
    --border-hover: rgba(139, 92, 246, 0.55);
    
    --primary: #a855f7;               /* Radiant Violet */
    --primary-rgb: 168, 85, 247;
    --primary-flyer: #6a287a;         /* Delo's Flyer Purple */
    --primary-glow: rgba(168, 85, 247, 0.25);
    
    --secondary: #f59e0b;             /* Warm Sun Amber / Gold */
    --secondary-rgb: 245, 158, 11;
    
    --accent-orange: #f97316;          /* Terracotta Forró */
    --healthy-emerald: #10b981;
    
    --text-primary: #faf5ff;          /* Crisp Velvet White */
    --text-muted: #a1a1aa;            /* Soft Slate Grey */
    --text-dark: #18181b;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    --font-tech: 'Space Grotesk', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --font-display: 'Outfit', sans-serif;
}

/* ==========================================================================
   Reset & Base Settings
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(106, 40, 122, 0.25) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(245, 158, 11, 0.12) 0, transparent 45%),
        radial-gradient(at 50% 100%, rgba(139, 92, 246, 0.15) 0, transparent 55%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #271b36;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center { text-align: center; }
.w-full { width: 100%; }

/* ==========================================================================
   Typography & Sections
   ========================================================================== */
.section-container {
    max-width: 1140px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--font-tech);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 660px;
    margin: 0 auto 3.5rem auto;
    line-height: 1.6;
}

.sobre-section, .method-section, .agenda-section, .inscricao-section {
    padding: 6.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    font-family: var(--font-tech);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-flyer));
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.55);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Glassmorphism System
   ========================================================================== */
.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.card-glass:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.card-glass-glow {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card-glass-glow:hover {
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow: 
        0 0 24px rgba(168, 85, 247, 0.25),
        0 15px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

/* ==========================================================================
   Header / Navigation Bar
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 4, 10, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.18);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1.2px;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-tech);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link-highlight {
    color: var(--primary);
    border: 1px solid rgba(168, 85, 247, 0.35);
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    background: rgba(168, 85, 247, 0.08);
}

.nav-link-highlight:hover {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.mobile-menu-toggle {
    display: none;
    color: var(--text-primary);
    font-size: 1.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 9rem 2rem 5rem 2rem;
}

.hero-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(168, 85, 247, 0.12);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(168, 85, 247, 0.28);
    letter-spacing: 1px;
}

.hero-subtag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-tech);
    font-size: 3.2rem;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 40%, #e9d5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.2rem;
    text-align: justify;
}

.hero-cta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.next-class-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    border-color: rgba(168, 85, 247, 0.35);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 10px;
    background: rgba(22, 13, 31, 0.6);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 6px;
    filter: contrast(110%) brightness(95%);
    transition: var(--transition-smooth);
}

.hero-image-frame:hover .hero-photo {
    transform: scale(1.03);
}

.corner-bracket {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary);
    z-index: 5;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.hero-image-frame:hover .corner-bracket {
    width: 28px;
    height: 28px;
}

.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

.image-overlay-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(7, 4, 10, 0.5) 100%);
    pointer-events: none;
}

/* ==========================================================================
   A Dupla (Carrossel Interativo)
   ========================================================================== */
.carousel-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 14px;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
    opacity: 0.4;
    transform: scale(0.97);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.duo-profile-card {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2.5rem;
    padding: 2.5rem;
    border-radius: 12px;
    align-items: center;
}

.slide-image-col {
    display: flex;
    justify-content: center;
}

.slide-photo-box {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.slide-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-smooth);
}

.duo-profile-card:hover .slide-photo {
    transform: scale(1.04);
}

.slide-content-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.slide-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--secondary);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.4rem;
}

.slide-title {
    font-family: var(--font-tech);
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.slide-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.slide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.slide-tags span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.carousel-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
    transform: scale(1.08);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
    cursor: pointer;
}

.dot.active {
    width: 28px;
    border-radius: 8px;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* ==========================================================================
   Metodologia Section (A Nossa Visão)
   ========================================================================== */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.method-card {
    padding: 2.5rem 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.method-card:nth-child(2) .method-icon {
    color: var(--secondary);
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
}

.method-title {
    font-family: var(--font-tech);
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.method-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    text-align: justify;
}

.method-desc strong {
    color: var(--text-primary);
}

/* ==========================================================================
   Agenda & Locais
   ========================================================================== */
.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.location-card {
    padding: 3rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.location-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.4rem;
}

.location-title {
    font-family: var(--font-tech);
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 1.2rem;
}

.location-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.8rem;
    text-align: justify;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.2rem;
    margin-bottom: 2rem;
    margin-top: auto;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.info-row i {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ==========================================================================
   Inscrição / Próximas Turmas (Link Direto)
   ========================================================================== */
.inscricao-box {
    padding: 4.5rem 3rem;
    border-radius: 16px;
    max-width: 840px;
    margin: 0 auto;
    border-color: rgba(168, 85, 247, 0.35);
}

.inscricao-title {
    font-family: var(--font-tech);
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.inscricao-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.inscricao-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#main-footer {
    background-color: #040206;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 2rem;
    font-size: 0.85rem;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand p {
    margin-top: 0.4rem;
    font-size: 0.8rem;
}

.ecosystem-links {
    margin-top: 0.8rem;
    font-size: 0.78rem;
}

.ecosystem-links a {
    color: var(--primary);
}

.ecosystem-links a:hover {
    text-decoration: underline;
}

.footer-copy {
    text-align: right;
}

.dev-credits {
    font-size: 0.7rem;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: var(--transition-smooth);
}

.whatsapp-floating-btn i {
    width: 24px;
    height: 24px;
}

.whatsapp-floating-btn:hover {
    transform: scale(1.08) rotate(8deg);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: #1a0f24;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.whatsapp-floating-btn:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-subtitle {
        text-align: center;
    }
    .duo-profile-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .slide-content-col {
        align-items: center;
    }
    .slide-text {
        text-align: center;
    }
    .slide-tags {
        justify-content: center;
    }
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .sobre-section, .method-section, .agenda-section, .inscricao-section {
        padding: 4.5rem 1.5rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .carousel-wrapper {
        padding: 0;
    }
    .carousel-btn {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    #nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(7, 4, 10, 0.98);
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
        padding: 2rem;
    }
    #nav-menu.active {
        display: block;
    }
    #nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .footer-copy {
        text-align: center;
    }
}
