/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.5);
}

/* Splash Screen Style */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    animation: splashAppear 1s ease-out forwards;
}

.splash-logo {
    width: 420px; /* Logo maior e mais imponente */
    margin-bottom: 1.5rem; /* Mais perto da barra de progresso */
    filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.1));
    animation: logoPulse 4s ease-in-out infinite;
}

.splash-loader {
    width: 220px; /* Barra um pouco mais larga para acompanhar a logo maior */
    height: 3px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.splash-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    animation: progressLine 1.5s infinite ease-in-out;
}

@keyframes splashAppear {
    from { 
        opacity: 0;
        transform: scale(0.95);
        filter: blur(10px);
    }
    to { 
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.9; }
}

@keyframes progressLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

:root {
    --bg-color: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --accent-blue: #4285f4;
    --accent-red: #ea4335;
    --accent-green: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.95);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Antigravity Particle Background Canvas */
.particle-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    pointer-events: none; /* Para não bloquear cliques na página */
    opacity: 0.25; /* Opacidade suave para não brigar com a logo */
}

/* Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-premium);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #1f2937, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Top Nav as Professional Tabs */
.top-nav {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px;
    border-radius: 16px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-1px);
    color: var(--primary-color);
}

.nav-icon {
    width: 16px;
    height: 16px;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.nav-link:hover .nav-icon {
    opacity: 1;
    color: #10b981;
}

@media (max-width: 1200px) {
    .header-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .top-nav {
        gap: 0.4rem;
        padding: 0.3rem;
    }

    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        height: auto;
    }
    
    .logo-area {
        margin-bottom: 0.5rem;
    }

    .hero-logo {
        width: 500px;
    }

    .hero-tagline {
        margin-top: -120px;
    }
}

/* Main Hero Section */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-section {
    text-align: center;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem; 
}

/* The logo inside the hero section is forced to be much larger to counter any internal padding */
.hero-logo {
    width: 650px;
    max-width: 90vw;
    height: auto;
    object-fit: contain;
    margin-bottom: -4rem; /* Pulls the text much closer because of the image's transparent padding */
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: -160px; 
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

/* 📱 Responsive Adjustments (Deep Audit) */
@media (max-width: 1100px) {
    .top-nav {
        gap: 1.5rem;
    }
    .logo-text {
        font-size: 1.1rem;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.4rem;
    z-index: 2000;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-container {
        flex-direction: row; /* Volta a ser row no mobile para o menu toggle ficar na direita */
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
    }

    .logo-area {
        margin-bottom: 0;
        flex-direction: row;
        gap: 10px;
    }

    .logo-img {
        height: 32px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .top-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; /* Ocupa a tela toda para imersão total */
        height: 100vh;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(40px) saturate(180%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Alinhado ao topo */
        align-items: center;
        gap: 1.2rem;
        transition: all 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        z-index: 1500;
        padding: 6rem 2rem 2rem; /* Espaço para o header */
        border: none;
    }

    .top-nav.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        max-width: 400px;
        font-size: 1rem;
        padding: 1.25rem;
        justify-content: flex-start; /* Alinhamento à esquerda profissional */
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .top-nav.active .nav-link {
        transform: translateY(0);
        opacity: 1;
    }

    /* Delays para animação escalonada no menu */
    .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-link:nth-child(2) { transition-delay: 0.15s; }
    .nav-link:nth-child(3) { transition-delay: 0.2s; }
    .nav-link:nth-child(4) { transition-delay: 0.25s; }

    .nav-icon {
        width: 20px;
        height: 20px;
        color: #10b981;
    }

    .nav-link span {
        font-weight: 600;
        letter-spacing: -0.2px;
    }

    .main-content {
        margin-top: 80px; /* Volta ao normal pois o menu está escondido */
    }

    .hero-logo {
        width: 85vw; /* Ocupa a maior parte da largura no mobile para ser impactante */
        max-width: 450px;
    }

    .hero-tagline {
        margin-top: -10px; /* Espaço maior para imitar o alinhamento da versão PC */
        font-size: 0.85rem;
        letter-spacing: 3px;
        color: var(--text-secondary);
        font-weight: 600;
    }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 400; /* Lighter weight to match Antigravity aesthetics */
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.5rem;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
