/* --- :ROOT (CORREÇÃO: Novas Fontes) --- */
:root {
    --bg-color: #03001C; 
    --text-color: #f0e8ff;
    --accent-rose: #E0B0FF;
    --accent-gold: #FFD700;
    --gray-color: #a097b3;
    
    /* CORREÇÃO: Fontes atualizadas para Poppins e Dancing Script */
    --font-main: 'Poppins', -apple-system, sans-serif;
    --font-script: 'Dancing Script', cursive;

    /* CORREÇÃO: Variável para a altura da tela (mobile vh bug fix) */
    --app-height: 100vh;
}

/* REMOVIDO: O bloco de notas @font-face não é mais necessário */


/* --- Reset Básico e Body --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-color); 
    color: var(--text-color);
    overflow-x: hidden; 
    /* CORREÇÃO: Peso padrão definido para 700 (negrito) */
    font-weight: 700; 
}

/* Estilo da "Tela Preta" de Abertura */
#preloader {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background-color: #000; 
    z-index: 3; 
    clip-path: circle(100% at 50% 50%); 
}


/* --- CAMADAS DE PARALAXE (Fundo e Vinheta) --- */
#particle-canvas {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: -10; 
    top: 0;
    left: 0;
}
.vignette-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -5; 
    top: 0;
    left: 0;
    pointer-events: none;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.7) 100%);
}

/* --- CORREÇÃO: Content Wrapper volta ao normal --- */
.content-wrapper {
    position: relative; 
    z-index: 1;         /* Garante que o conteúdo role POR CIMA do hero */
    /* REMOVIDO: margin-top: -100vh; */
    background: transparent; 
    opacity: 1; 
}

/* --- Estilos de Tipografia --- */
/* CORREÇÃO: Definindo um peso padrão para títulos */
h1, h2, h3, h4 { font-weight: 900; }

/* REVISADO: 'p' agora herda o font-weight: 700 do body */
p { 
    font-size: 1.125rem; 
    line-height: 1.8; 
    color: var(--gray-color); 
}
h1 { font-size: clamp(3.5rem, 10vw, 8rem); color: var(--accent-rose); text-shadow: 0 0 30px rgba(224, 176, 255, 0.5); line-height: 1.1; }
h2 { font-size: clamp(2.5rem, 7vw, 4.5rem); margin-bottom: 2rem; text-align: center; }

/* REVISADO: 'h3' geral removido (agora coberto pela regra h1,h2,h3,h4) */
h3 { 
    font-size: 1.5rem; 
    color: var(--text-color); 
}

/* --- Estrutura das Seções --- */
.full-screen {
    min-height: var(--app-height); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 2rem;
}
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 15rem 2rem; /* <-- Padding normal restaurado */
    position: relative; 
}

/* --- Seção 1: Hero (Layout Estável) --- */
#hero-wrapper { 
    padding: 0;
    position: relative;
    z-index: 0; 
}
.hero-content {
    height: var(--app-height);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden; 
}
.hero-image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; 
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; 
    transform: scale(1.15); 
}
.hero-image-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2; 
}
.hero-text-content {
    position: relative; 
    z-index: 4; 
    color: white; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* REVISADO: hero h3 agora herda font-weight: 900 */
.hero-text-content h3 {
    font-size: 1.25rem;
    color: white;
}

/* REVISADO: hero h1 agora herda font-weight: 900 */
.hero-text-content h1 {
    color: white;
    text-shadow: 0 0 30px rgba(0,0,0,0.7);
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 1.1;
}

/* Estilo para a fonte 'Evelyn' */
.evelyn-font {
    font-family: var(--font-script);
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(224, 176, 255, 0.7);
}

/* REVISADO: scroll-prompt agora herda font-weight: 700 */
.scroll-prompt {
    position: absolute;
    bottom: 3rem;
    font-size: 0.9rem;
    color: white;
    z-index: 4; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.arrow {
    width: 6px;
    height: 6px;
    border-right: 1px solid white;
    border-bottom: 1px solid white;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-8px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

.hero-text-load {
    opacity: 0;
    transform: translateY(30px);
}

/* --- Seção 2: Introdução --- */
#intro h2 { color: var(--accent-rose); }
#intro p { max-width: 650px; margin: 0 auto; text-align: center; font-size: 1.25rem; }

/* --- Seção 3: Música --- */
#musica { padding-top: 0; max-width: 700px; }

/* REVISADO: music-title agora herda font-weight: 700 */
.music-title { 
    font-size: 1rem; 
    color: var(--gray-color); 
    text-align: center; 
    margin-bottom: 1rem; 
}
#musica iframe { filter: brightness(0.9); }

/* --- Seção 4: Linha do Tempo --- */
.timeline-container { position: relative; margin-top: 4rem; }
.timeline-container::before { content: ''; position: absolute; top: 0; bottom: 0; left: 7px; width: 2px; background-color: var(--accent-rose); opacity: 0.15; }
.timeline-item { position: relative; margin-left: 50px; margin-bottom: 3rem; }
.timeline-dot { position: absolute; left: -38px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background-color: var(--accent-rose); box-shadow: 0 0 15px var(--accent-rose); }

/* REVISADO: timeline-date agora herda font-weight: 700 */
.timeline-date { 
    font-size: 0.9rem; 
    color: var(--accent-rose); 
    margin-bottom: 0.5rem; 
    display: block; 
}
.timeline-title { font-size: 1.75rem; margin-bottom: 0.5rem; }
.timeline-desc { font-size: 1rem; line-height: 1.7; }

/* --- Seção 5: Galeria Mosaico --- */
.gallery-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 300px; gap: 1.5rem; margin-top: 3rem; transition: all 0.4s ease; }
.gallery-item { position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 0 0 0px rgba(255, 215, 0, 0); transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease, filter 0.4s ease; opacity: 0; filter: blur(5px); transform: translateY(30px); }
@media (min-width: 769px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 1rem; }
    .item-large { grid-column: span 2; grid-row: span 2; }
    .item-small { grid-column: span 1; grid-row: span 1; }
    .item-portrait { grid-column: span 1; grid-row: span 2; }
}

/* ===== CORREÇÃO DO VÍDEO DA GALERIA ===== */
.gallery-item img,
.gallery-item video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); 
}

/* REVISADO: gallery-caption agora herda font-weight: 700 */
.gallery-caption { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 1rem; 
    font-size: 0.9rem; 
    color: white; 
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%); 
    opacity: 0; 
    transform: translateY(10px); 
    transition: all 0.4s ease; 
}
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 0 0 3px var(--accent-gold); z-index: 10; }
.gallery-item:hover img,
.gallery-item:hover video { filter: brightness(1.1); } /* Aplicado ao vídeo também */
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-grid:hover .gallery-item:not(:hover) { opacity: 0.7; filter: brightness(0.6); transform: scale(0.98); }

/* --- Seção 6: Final (Rodapé) --- */
#footer {
    position: relative;
    padding: 10rem 2rem; 
    text-align: center;
    min-height: var(--app-height); 
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent; 
    box-sizing: border-box; 
}
#footer h2 {
    font-size: clamp(2.5rem, 7vw, 4.5rem); 
    color: var(--accent-rose);
    margin-bottom: 1rem; 
}

/* REVISADO: footer h3 agora herda font-weight: 900 */
#footer h3 {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem); 
    color: var(--gray-color);
    margin-bottom: 2.5rem; 
}
.heart {
    font-size: 2.5rem;
    color: var(--accent-rose);
    margin-top: 2.5rem; 
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); text-shadow: 0 0 10px var(--accent-rose); }
    50% { transform: scale(1.15); text-shadow: 0 0 25px var(--accent-rose); }
    100% { transform: scale(1); text-shadow: 0 0 10px var(--accent-rose); }
}

/* --- NOVA SEÇÃO: Qualidades --- */
.qualities-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 coluna no mobile por padrão */
    gap: 1.5rem;
    margin-top: 3rem;
}
.quality-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(224, 176, 255, 0.2);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.quality-title {
    /* Usando a cor de destaque dourada */
    color: var(--accent-gold); 
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
/* Alinha o parágrafo do card (que herda 700) */
.quality-card p {
    font-size: 1rem;
    line-height: 1.7;
}

/* --- NOVA SEÇÃO: Desejos --- */
#wishes p {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.25rem; /* Deixa o texto de desejo com mais destaque */
}

/* --- REMOVIDA: Regra especial para .content-section:first-child --- */


/* --- Ajuste para a grade de qualidades em telas maiores --- */
@media (min-width: 769px) {
    .qualities-grid {
        /* 3 colunas em telas maiores */
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Seção de Responsividade Mobile --- */
@media (max-width: 768px) {
    .content-section { padding: 10rem 1rem; }
    h2 { font-size: 2.5rem; } 
    .timeline-container::before { left: 5px; }
    .timeline-item { margin-left: 35px; }
    .timeline-dot { left: -31px; width: 14px; height: 14px; }
    
    /* --- REMOVIDA: Regra especial para .content-section:first-child --- */
}


/* --- CORREÇÃO: SETA DE ROLAGEM DA SEÇÃO --- */

/* 1. O Contêiner de Posição (Centralizado) */
.section-scroll-prompt {
    position: absolute;
    bottom: 6rem; /* Posição dentro do padding da seção */
    left: 50%;
    transform: translateX(-50%);
    
    /* Estado inicial para GSAP: */
    opacity: 0; 
}

/* 2. A Seta (Forma e Animação) */
.section-scroll-arrow {
    width: 40px;
    height: 40px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    
    /* Reutiliza a animação de bounce da seta principal */
    transform: rotate(45deg);
    animation: bounce 1.5s infinite;
}

@media (max-width: 768px) {
    .section-scroll-prompt {
        bottom: 4rem; /* Menos padding no mobile */
    }
}