:root {
    --bg: #1a1a1a;
    --accent: #ff8a80;
    --text: #f0f0f0;
    --font-family: 'Inter', sans-serif;
    --font-cursive: 'Dancing Script', cursive;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: var(--font-family);
    color: var(--text);
    background: var(--bg);
    overflow: hidden;
}

/* --- LOADER --- */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999; /* Fica acima de tudo */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.heart-loader {
    font-size: 60px;
    animation: pulse 1.2s infinite ease-in-out;
}

/* --- TELA DE BOAS-VINDAS --- */
#welcome-screen {
    position: fixed;
    inset: 0;
    /* Gradiente romântico escuro */
    background: linear-gradient(135deg, #2a0808 0%, #000000 100%);
    z-index: 8000; /* Abaixo do loader, mas acima do site */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: opacity 1.5s ease, visibility 1.5s;
}

#welcome-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-content h1 {
    font-family: var(--font-cursive);
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(255, 138, 128, 0.3);
    font-weight: 700;
}

#start-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 138, 128, 0.4);
    transition: transform 0.2s;
    animation: pulse-btn 2s infinite;
}

#start-btn:hover { transform: scale(1.05); }
#start-btn:active { transform: scale(0.95); }

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

@keyframes pulse-btn {
    0% { box-shadow: 0 0 0 0 rgba(255, 138, 128, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255, 138, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 138, 128, 0); }
}

/* --- TRANSIÇÃO DO SITE PRINCIPAL --- */
.hidden-initially {
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s ease; /* Entrada bem lenta e suave */
}

.hidden-initially.visible {
    opacity: 1;
    pointer-events: all;
}

/* --- BOTÃO DE MÚSICA NO CANTO --- */
#musicBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
#musicBtn:active { transform: scale(0.9); }

/* --- RESTANTE DO LAYOUT --- */
.top {
    position: fixed;
    top: 20px; left: 20px; z-index: 40;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 14px; border-radius: 50px;
    backdrop-filter: blur(5px);
    display: flex; align-items: center; gap: 10px;
}
.title { font-size: 14px; opacity: 0.9; }
.counter { font-weight: 700; font-size: 16px; color: var(--accent); }

.gallery {
    height: 100vh; width: 100%;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

.slide {
    height: 100vh; width: 100%;
    display: flex; align-items: flex-end; justify-content: center;
    position: relative; scroll-snap-align: start;
    overflow: hidden;
}

/* A IMAGEM OTIMIZADA */
.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    /* REMOVI O Z-INDEX NEGATIVO PARA EVITAR ERROS */
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.8) 100%);
    /* Overlay fica acima da imagem (ordem natural do HTML) */
}

.date-display {
    position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%);
    padding: 8px 16px; background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px); border-radius: 20px;
    text-align: center; font-size: 14px; color: #fff;
    z-index: 100; transition: opacity 0.3s ease;
    white-space: nowrap;
}

/* Procure a classe .dots e ATUALIZE para isso: */
/* --- NAVEGAÇÃO DE BOLINHAS (DOTS) --- */
.dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px; /* Espaço entre as bolinhas */
    z-index: 50;
    
    /* O SEGREDO ESTÁ AQUI: Limita a altura */
    max-height: 60vh; /* Ocupa no máximo 60% da altura da tela */
    overflow-y: auto; /* Permite rolar se tiver muitas */
    padding: 10px 5px; /* Um respiro nas bordas */
    
    /* Esconde a barra de rolagem feia */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
    
    /* Melhora visual do container */
    background: rgba(0, 0, 0, 0.2); /* Fundo sutil */
    border-radius: 20px;
    backdrop-filter: blur(2px);
}

/* Esconde scrollbar no Chrome/Safari */
.dots::-webkit-scrollbar {
    display: none;
}

.dot {
    width: 6px;
    height: 6px;
    /* Garante que a bolinha não encolha */
    flex-shrink: 0; 
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.5);
    box-shadow: 0 0 8px var(--accent);
}

/* --- SLIDE FINAL (MENSAGEM) --- */
.final-slide {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    background: var(--bg); /* Fundo escuro */
    text-align: center;
    padding: 30px;
    position: relative;
}

.final-content h2 {
    font-family: var(--font-cursive);
    font-size: 3.5rem;
    color: var(--accent);
    margin: 0 0 20px 0;
    text-shadow: 0 2px 10px rgba(255, 138, 128, 0.2);
    animation: float 3s ease-in-out infinite;
}

.final-content p {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-top: 10px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}