/* --- Configurações Globais e Tipografia --- */
:root {
    --emerald-glow: rgba(16, 185, 129, 0.4);
    /* Fundo do vidro ajustado para o modo Dark */
    --glass-bg: rgba(20, 20, 20, 0.6); 
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #030712; 
    /* Gradiente de fundo sutil */
    background-image: radial-gradient(circle at top center, #111827, #000000 80%);
    color: #e2e8f0;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Outfit', sans-serif;
}

/* --- ESTILO DO CABEÇALHO --- */
header {
    background-image: 
        linear-gradient(to bottom, rgba(3, 7, 18, 0.7), #030712),
        url('images/capa.png'); /* <--- Voltamos para o arquivo que existe */
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-color: #030712; 
}

@media (min-width: 1024px) {
    header {
        background-attachment: fixed;
    }
}

/* --- Ambient Lighting (DESATIVADO) --- */
.ambient-light {
    display: none;
}

/* --- Glassmorphism Utils --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid transparent; /* Borda transparente para o efeito funcionar */
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1), 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15); /* Luz no topo */
    will-change: transform;
}

.glass-card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -10px rgba(16, 185, 129, 0.2);
}

/* --- Textos Especiais --- */
.text-gradient {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- NOVA CLASSE: SEÇÃO COM IMAGEM DE FUNDO --- */
/* Adicione "secao-com-fundo" na class da section que você deseja */
.secao-com-fundo {
    background-image: 
        linear-gradient(to bottom, rgba(3, 7, 18, 0.9), rgba(3, 7, 18, 0.8)), /* Escurece a imagem */
        url('images/estrada.png'); /* <-- COLOQUE O NOME DA SUA IMAGEM AQUI */
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax */
}

/* --- Imagens Premium --- */
img {
    transition: all 0.5s ease;
}

img:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    transform: scale(1.02);
}

/* --- CTA Button Moderno --- */
@keyframes pulse-emerald {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-modern {
    position: relative;
    background: linear-gradient(90deg, #059669, #10b981);
    background-size: 200% auto;
    color: white;
    transition: 0.5s;
    box-shadow: 0 0 20px rgba(4, 120, 87, 0.5);
    overflow: hidden;
    animation: pulse-emerald 2s infinite;
}

.btn-modern:hover {
    background-position: right center;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

.btn-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-modern:hover::after {
    left: 100%;
    transition: 0.7s;
}

/* --- Animações de Scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #030712;
}
::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* FAQ Styling */
details[open] summary ~ * {
    animation: sweep .3s ease-in-out;
}
@keyframes sweep {
    0%    {opacity: 0; transform: translateY(-10px)}
    100%  {opacity: 1; transform: translateY(0)}
}

/* =========================================
   ANIMAÇÃO NOTEBOOK 3D CYBERPUNK
   ========================================= */
.css-notebook-container {
    perspective: 1500px;
    width: 100%;
    max-width: 500px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9); /* Ajuste de escala para mobile */
}

@media(min-width: 768px) {
    .css-notebook-container { transform: scale(1.1); } /* Maior no desktop */
}

.css-notebook {
    position: relative;
    width: 400px;
    height: 280px;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(-5deg); /* Ângulo inicial */
    transition: transform 0.5s ease-out;
}

/* Efeito de "olhar" para o mouse (opcional, mas legal) */
.css-notebook-container:hover .css-notebook {
    transform: rotateX(5deg) rotateY(0deg) scale(1.02);
}

/* --- A TAMPA (TELA) --- */
.notebook-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: #111827; /* Cor do chassi */
    border-radius: 12px 12px 0 0;
    transform-origin: bottom;
    transform: rotateX(-20deg); /* Ângulo de abertura */
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-bottom: none;
    box-shadow: 
        inset 0 1px 1px rgba(255,255,255,0.1),
        0 -5px 15px rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

/* Moldura interna preta da tela */
.screen-bezel {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 6px;
    padding: 6px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    border: 1px solid #374151;
    position: relative;
    overflow: hidden;
}

/* A Tela Ligada */
.screen-content {
    width: 100%;
    height: 100%;
    /* Fundo gradiente estilo "matrix/cyber" */
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Brilho da tela */
    box-shadow: inset 0 0 30px rgba(16, 185, 129, 0.5);
}

/* Textos na Tela */
.screen-text {
    position: absolute;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    width: 90%; /* Garante que textos longos não vazem */
    /* MUDANÇA: Aumentado para 20s (5 frases x 4s cada) */
    animation: screenCycle 20s infinite ease-in-out;
}

/* Tempos (Delays): 0s, 4s, 8s, 12s, 16s */
.text-1 { animation-delay: 0s; }
.text-2 { animation-delay: 4s; }
.text-3 { animation-delay: 8s; }
.text-4 { animation-delay: 12s; } /* Nova frase */
.text-5 { animation-delay: 16s; } /* Nova frase */

/* MUDANÇA: Keyframes recalculados para dividir 100% por 5 (20% por frase) */
@keyframes screenCycle {
    /* Entrada (0% a 3%) */
    0% { opacity: 0; filter: blur(10px); transform: translateY(20px) scale(0.9); }
    3% { opacity: 1; filter: blur(0px); transform: translateY(0) scale(1); }
    
    /* Permanência (3% a 17%) - Fica parado lendo */
    17% { opacity: 1; filter: blur(0px); transform: translateY(0) scale(1); }
    
    /* Saída (17% a 20%) - Vai embora */
    20% { opacity: 0; filter: blur(10px); transform: translateY(-20px) scale(1.1); }
    
    /* Espera Oculto (20% a 100%) - Enquanto as outras 4 frases rodam */
    100% { opacity: 0; filter: blur(10px); transform: translateY(20px) scale(0.9); }
}

/* --- PARTES FINAIS DO NOTEBOOK (QUE ESTAVAM FALTANDO) --- */

/* Efeito de Scanlines (Tech retrô) */
.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.2) 3px
    );
    pointer-events: none;
    z-index: 10;
}

/* --- A BASE (TECLADO) --- */
.notebook-base {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px; /* Espessura da base */
    background: #1f2937;
    border-radius: 0 0 12px 12px;
    transform-origin: top;
    transform: rotateX(90deg); /* Deita a base para dar profundidade */
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-top: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5px;
}

/* Estilização simplificada do teclado/trackpad */
.keyboard-area {
    width: 85%;
    height: 40%;
    background: #111827;
    border-radius: 2px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
    opacity: 0.5;
}
.trackpad {
    width: 30%;
    height: 30%;
    background: #111827;
    border-radius: 2px;
    margin-top: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

/* Reflexo embaixo do notebook */
.css-notebook::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 5%;
    width: 90%;
    height: 30px;
    background: rgba(16, 185, 129, 0.4);
    filter: blur(30px);
    transform: rotateX(90deg);
    z-index: -1;
}