:root {
    /* Paleta de Cores Premium */
    --color-bg-light: #fdf2f8; /* Soft pink */
    --color-bg-dark: #2a0a18;  /* Deep burgundy/wine */
    --color-primary: #e11d48;  /* Rose */
    --color-secondary: #be123c;
    --color-accent: #fbbf24;   /* Soft gold */
    --color-text-dark: #1f2937;
    --color-text-light: #f3f4f6;
    
    /* Fontes */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Efeitos de Vidro (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
    /* Fundo com gradiente sutil */
    background: linear-gradient(135deg, #1a050f 0%, #3b0b24 100%);
    min-height: 100vh;
}

/* Tela de Carregamento */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.heart-loader {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    position: relative;
    transform: rotate(45deg);
    animation: pulse 1s infinite alternate;
}
.heart-loader::before, .heart-loader::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
}
.heart-loader::before { top: -25px; left: 0; }
.heart-loader::after { top: 0; left: -25px; }

@keyframes pulse {
    0% { transform: rotate(45deg) scale(0.8); }
    100% { transform: rotate(45deg) scale(1.1); box-shadow: 0 0 20px rgba(225, 29, 72, 0.5); }
}

/* Botão de Música */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}
.music-control:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.2);
}
.music-control.playing {
    animation: spin 4s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Elementos Globais */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    text-align: center;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    position: relative;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Capa */
.cover-section {
    position: relative;
    overflow: hidden;
}
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
.content-wrapper {
    max-width: 600px;
    width: 100%;
    z-index: 2;
}
.subtitle {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}
.title {
    font-size: 3.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #fff, #ffb6c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}
.ampersand {
    font-size: 4rem;
    font-style: italic;
    color: var(--color-primary);
    -webkit-text-fill-color: var(--color-primary);
    display: inline-block;
    padding: 0 10px;
}
.description {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

/* Botões */
.primary-btn {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}
.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.6);
}
.arrow-icon {
    width: 20px;
    height: 20px;
    animation: bounceRight 2s infinite;
}
@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Timeline */
.story-section {
    align-items: flex-start;
    padding-top: 5rem;
}
.timeline {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
.timeline-item {
    width: 100%;
}
.timeline-content {
    padding: 2rem;
}
.timeline-content h2 {
    color: var(--color-accent);
    font-size: 2rem;
}
.timeline-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}
.image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.image-wrapper:hover img {
    transform: scale(1.05);
}

/* Secao Final */
.final-section {
    text-align: center;
}
.final-card {
    max-width: 700px;
    width: 100%;
    position: relative;
}
.years-badge {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, var(--color-accent), #d97706);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}
.grand-truth {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-top: 1rem;
}
.final-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.love-declaration {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}
.love-declaration .word {
    opacity: 0;
    transform: scale(0.5);
}
.final-card.active .love-declaration .word {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.final-card.active .love-declaration .word:nth-child(1) { animation-delay: 0.5s; }
.final-card.active .love-declaration .word:nth-child(2) { animation-delay: 1s; }
.final-card.active .love-declaration .word:nth-child(3) { animation-delay: 1.5s; color: var(--color-primary); text-shadow: 0 0 20px rgba(225, 29, 72, 0.8); }

@keyframes popIn {
    to { opacity: 1; transform: scale(1); }
}

.final-message {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #cbd5e1;
}
.signature {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-style: italic;
}
.replay-btn {
    margin-top: 1rem;
}

/* Responsividade / Celular */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    .ampersand {
        font-size: 3rem;
    }
    .glass-card {
        padding: 1.5rem;
    }
    .timeline-content h2 {
        font-size: 1.5rem;
    }
    .love-declaration {
        font-size: 2.5rem;
    }
}
