:root {
    /* PALETA "FEMININE & HAPPY VIBES" */
    --background: 330 30% 12%; 
    --rose-gold: 340 80% 75%;
    --soft-pink: 340 60% 92%;
    --champagne: 40 70% 80%;
    --card-bg: 330 25% 18%;
    --border: 330 40% 30%;
    
    /* FONTES */
    --font-body: 'Quicksand', sans-serif;
    --font-cursive-title: 'Great Vibes', cursive;
    --font-cursive-subtitle: 'Dancing Script', cursive;
}

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

body {
    background-color: hsl(var(--background));
    color: hsl(var(--soft-pink));
    font-family: var(--font-body);
    font-weight: 400;
    overflow: hidden; 
    height: 100vh;
    width: 100vw;
}

/* Matrix */
#matrix-canvas {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0; opacity: 0.25;
}
.overlay {
    position: fixed; inset: 0;
    background: radial-gradient(circle at center, transparent 0%, hsl(var(--background)) 90%);
    z-index: 1; pointer-events: none;
}

/* Telas */
.screen {
    position: absolute; inset: 0; z-index: 10;
    opacity: 0; visibility: hidden;
    transition: all 0.8s ease;
}
.screen.center-screen {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
}
.screen.active { opacity: 1; visibility: visible; }
.screen.scrollable { display: block; overflow-y: auto; padding-top: 2rem; }

/* Tipografia */
.content-wrapper { max-width: 700px; width: 90%; margin: 0 auto; text-align: center; }

.hero-title {
    font-family: var(--font-cursive-title);
    font-size: 5rem; line-height: 1.1;
    color: hsl(var(--rose-gold));
    text-shadow: 0 0 25px hsl(var(--rose-gold) / 0.4);
    margin-bottom: 0.5rem;
}
.subtitle { 
    font-family: var(--font-body);
    font-size: 1.2rem; color: hsl(var(--champagne)); 
    letter-spacing: 1px; margin-bottom: 3rem;
}
.cursive-title {
    font-family: var(--font-cursive-title);
    font-size: 4rem; color: hsl(var(--rose-gold)); margin-bottom: 1rem;
}
.party-title { 
    font-family: var(--font-cursive-title);
    font-size: 4rem; color: hsl(var(--rose-gold)); 
    margin-bottom: 0.5rem; text-align: center;
    text-shadow: 0 0 20px hsl(var(--rose-gold) / 0.3);
}
.party-subtitle { opacity: 0.9; font-size: 1.2rem; margin-bottom: 3rem; text-align: center; color: hsl(var(--champagne)); }

.section-title { 
    font-family: var(--font-cursive-subtitle);
    font-size: 2.8rem; margin: 3rem 0 2rem; 
    text-align: center; color: hsl(var(--soft-pink));
    display: inline-block;
}

/* === CORREÇÃO: CENTRALIZAÇÃO DA SECÇÃO DE VÍDEOS === */
.video-section {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Botões */
.btn-elegant {
    padding: 1rem 3rem; font-size: 1.2rem;
    background: linear-gradient(45deg, hsl(var(--rose-gold)), hsl(340, 70%, 65%));
    color: #3e1b25; border: none; border-radius: 50px;
    cursor: pointer; transition: all 0.3s;
    font-family: var(--font-body); font-weight: 700;
    box-shadow: 0 4px 15px hsl(var(--rose-gold) / 0.4);
}
.btn-elegant:hover { transform: scale(1.05); box-shadow: 0 6px 25px hsl(var(--rose-gold) / 0.6); }

/* Inputs */
.secret-input {
    background: rgba(255, 255, 255, 0.1); 
    border: 2px solid hsl(var(--rose-gold) / 0.5);
    color: hsl(var(--rose-gold)); 
    padding: 1rem; font-size: 1.5rem;
    text-align: center; border-radius: 15px; width: 100%; max-width: 300px;
    margin-bottom: 1rem; outline: none; letter-spacing: 2px;
    font-family: var(--font-body); font-weight: 700;
}
.secret-input:focus { border-color: hsl(var(--rose-gold)); box-shadow: 0 0 15px hsl(var(--rose-gold) / 0.3); }
.error-msg { color: #ff8fa3; height: 25px; font-size: 1rem; text-align: center; margin-bottom: 10px; opacity: 0; font-weight: bold; }

/* Galeria */
.gallery-section { width: 100%; padding: 20px 0; text-align: center; }
.interactive-gallery-wrapper { 
    width: 100%; overflow: hidden; cursor: grab; padding: 30px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    touch-action: pan-y; /* Permite scroll vertical da página */
}
.interactive-gallery-wrapper:active { cursor: grabbing; }
.interactive-track { display: flex; gap: 30px; width: max-content; transform: translateX(0); will-change: transform; }
.gallery-item {
    width: 280px; height: 380px; flex-shrink: 0;
    border-radius: 20px; overflow: hidden;
    border: 3px solid hsl(var(--rose-gold) / 0.3);
    transition: transform 0.3s; user-select: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.gallery-item:hover { transform: scale(1.05) translateY(-5px); border-color: hsl(var(--rose-gold)); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hint-text { opacity: 0.7; font-size: 0.9rem; margin-top: 15px; color: hsl(var(--champagne)); }

/* Grid Vídeos */
.video-grid-family { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem; justify-content: center; width: 100%;
}
.video-card { 
    background: hsl(var(--card-bg)); border: 1px solid hsl(var(--border)); 
    border-radius: 15px; padding: 10px; transition: transform 0.3s;
    cursor: pointer; position: relative; overflow: hidden;
}
.video-card:hover { transform: translateY(-5px); border-color: hsl(var(--rose-gold)); }
.video-card:hover .play-icon { transform: translate(-50%, -50%) scale(1.2); }

.video-card video { 
    width: 100%; height: 350px; object-fit: cover; 
    border-radius: 10px; display: block; background: #000; opacity: 0.8;
}
.play-icon {
    position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%); color: white; font-size: 2rem; z-index: 5;
    background: rgba(0,0,0,0.5); width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid white; pointer-events: none; transition: 0.3s;
}
.caption { margin-top: 12px; font-weight: 700; color: hsl(var(--rose-gold)); text-align: center; font-size: 1.1rem; }

/* Modal Vídeo */
.video-wrapper-fullscreen {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: black;
}
#main-video-player {
    max-width: 100%; max-height: 90vh; width: auto;
    object-fit: contain; box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

/* Cartão */
.emotional-card {
    background: linear-gradient(135deg, hsl(330, 25%, 20%), hsl(330, 25%, 15%));
    padding: 3rem; border-radius: 25px; text-align: center;
    border: 2px solid hsl(var(--rose-gold) / 0.3); margin: 5rem auto 0;
    max-width: 800px; position: relative; font-size: 1.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.signature { margin-top: 2rem; color: hsl(var(--rose-gold)); font-size: 2.5rem; font-family: var(--font-cursive-title); }
.secret-lock-container { margin-top: 30px; display: flex; justify-content: center; }
.lock-btn {
    background: transparent; border: none; font-size: 2rem;
    cursor: pointer; transition: all 0.5s; opacity: 0.5;
}
.lock-btn:hover { transform: scale(1.3) rotate(10deg); opacity: 1; text-shadow: 0 0 20px hsl(var(--rose-gold)); }

.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.95); z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-content { position: relative; width: 90%; max-width: 600px; text-align: center; }
.security-box { 
    background: hsl(330, 30%, 15%); border: 2px solid hsl(var(--rose-gold)); 
    padding: 3rem; border-radius: 20px;
    box-shadow: 0 0 50px hsl(var(--rose-gold) / 0.2); 
}
.lightbox-content { max-width: 95%; max-height: 90vh; border: 4px solid hsl(var(--rose-gold)); border-radius: 10px; box-shadow: 0 0 50px hsl(var(--rose-gold) / 0.4); }

.hidden { display: none !important; }
.music-btn { 
    position: fixed; top: 20px; right: 20px; z-index: 50; 
    background: hsl(var(--rose-gold)); color: #3e1b25; border: none;
    width: 50px; height: 50px; border-radius: 50%; 
    cursor: pointer; font-size: 1.5rem; transition: 0.3s;
    box-shadow: 0 0 15px hsl(var(--rose-gold) / 0.6);
}
.music-btn:hover { transform: scale(1.1); }
.close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 3rem; cursor: pointer; z-index: 200; text-shadow: 0 0 10px black; }

.fade-in { animation: fadeIn 1.5s forwards; } .fade-in-up { opacity: 0; animation: fadeInUp 1s forwards; } .delay-1 { animation-delay: 0.5s; } .delay-2 { animation-delay: 1s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) { 
    .hero-title { font-size: 3.5rem; } 
    .gallery-item { width: 220px; height: 320px; } 
    .video-grid-family { grid-template-columns: 1fr; }
}