:root {
    --bg: #030305;
    --primary: #ff85a1; /* Romantic Pink */
    --accent: #c9748f; /* Deeper Pink */
    --text-main: #f8f1e9;
    --text-dim: rgba(248, 241, 233, 0.4);
    --glass: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.05);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-accent: 'Playfair Display', serif;
    --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
    overscroll-behavior-y: none;
}

/* --- Preloader --- */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.loader-content {
    width: 260px;
    text-align: center;
}

.loader-line-container {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.loader-line {
    position: absolute;
    top: 0; left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent);
}

.loader-text {
    height: 40px;
    overflow: hidden;
    position: relative;
}

.loading-word {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-dim);
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
}

/* --- UI Elements --- */
.noise {
    position: fixed;
    inset: 0;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    pointer-events: none;
    z-index: 999;
}

.progress-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    z-index: 2000;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

#cursor {
    width: 6px; height: 6px;
    background: var(--text-main);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    opacity: 0;
}

#cursor-follower {
    width: 34px; height: 34px;
    border: none;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
}

/* --- Music Indicator --- */
.music-indicator {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    border-radius: 100px;
    border: none;
    z-index: 1000;
}

.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.m-bar {
    width: 2px;
    background: var(--primary);
    border-radius: 1px;
    animation: musicBar 1s ease-in-out infinite alternate;
}

.m-bar:nth-child(2) { animation-duration: 0.8s; }
.m-bar:nth-child(3) { animation-duration: 1.2s; }
.m-bar:nth-child(4) { animation-duration: 0.9s; }

@keyframes musicBar {
    0% { height: 20%; }
    100% { height: 100%; }
}

.music-text {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* --- Hero --- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 100vw; height: 100vw;
    background: radial-gradient(circle, rgba(255, 133, 161, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Sparkles Detail */
.sparkle {
    position: absolute; /* Changed to absolute to spread across long page */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    font-family: Arial, sans-serif;
}

@keyframes sparkleAnim {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 5vw;
}

.hero-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
    display: block;
    opacity: 0.8;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 15vw, 12rem);
    font-weight: 300;
    font-style: italic;
    line-height: 0.85;
    margin-bottom: 8vh;
}

.scroll-hint {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hint-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: hintScroll 2s infinite var(--ease-smooth);
}

@keyframes hintScroll {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Name Strips --- */
.name-section {
    padding: 6vh 0;
    background: transparent;
    overflow: hidden;
    position: relative;
    z-index: 5;
    margin-top: -5vh;
}

.section-label {
    text-align: center;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    color: var(--text-dim);
    margin-bottom: 6vh;
}

.strips-container {
    display: flex;
    height: 70vh;
    padding: 0 4vw;
    gap: 4px;
}

.strip {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: flex 1s var(--ease-smooth);
}

.strip:hover {
    flex: 4;
}

.strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.4);
    transition: filter 1s var(--ease-smooth), transform 1.5s var(--ease-smooth);
}

.strip:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

.strip-label {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6vw, 6rem);
    opacity: 0.3;
    pointer-events: none;
}

/* --- Story Sections --- */
.story-section {
    padding: 15vh 12vw;
    position: relative;
    overflow: hidden;
    will-change: transform, opacity, filter;
}

.chapter-tag {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 2rem;
    display: block;
}

.story-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2.5rem;
}

.story-heading span {
    color: var(--primary);
    font-style: italic;
    text-shadow: 0 0 20px rgba(255, 133, 161, 0.3);
}

.burst-heart {
    font-family: serif;
    filter: drop-shadow(0 0 8px rgba(255, 133, 161, 0.6));
    user-select: none;
}

.story-content {
    max-width: 600px;
}

.story-content p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.story-content p strong {
    color: var(--text-main);
    font-weight: 500;
}

/* --- Falling Memories: Vertical Stack --- */
.moments-section {
    position: relative;
    background: #030305;
}

.moments-stack {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5vw;
}

.photocard-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
}

.photocard {
    background: #fdfdfd;
    padding: 1.2rem;
    padding-bottom: 4rem;
    width: clamp(290px, 90vw, 550px); /* Larger "Mais perto" */
    box-shadow: 0 30px 100px rgba(0,0,0,0.8);
    border-radius: 2px;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.photo-inner {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #eee;
    margin-bottom: 1.5rem;
    position: relative;
}

.photo-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 133, 161, 0.15), transparent);
    mix-blend-mode: soft-light;
}

.photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 2s var(--ease-smooth);
}

.handwritten {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    color: #222;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 133, 161, 0.2);
}

.date-stamp {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    color: #999;
}

/* Tape effect refined */
.photocard::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    width: 120px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: none;
}

@media (max-width: 768px) {
    .photocard { width: 92vw; padding: 1rem; padding-bottom: 3.5rem; }
}

/* --- Photo Highlight --- */
.photo-display {
    padding: 0 5vw;
    margin: 20vh 0;
}

.frame.no-photo {
    height: 60vh;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
}

.glow-point {
    position: absolute;
    width: 20vw;
    height: 20vw;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
    animation: glowPulse 4s infinite alternate ease-in-out;
}

@keyframes glowPulse {
    from { transform: scale(1); opacity: 0.1; }
    to { transform: scale(1.5); opacity: 0.3; }
}

.frame-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 10vw, 7rem);
    font-style: italic;
    line-height: 1;
    text-align: center;
    transition: color 0.5s ease;
}

/* Gradient Text Base */
.gradient-text {
    background: linear-gradient(to right, var(--primary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Global Text Transition Helper */
.text-reveal-animate {
    color: var(--primary);
    transition: color 1s var(--ease-smooth);
}

/* --- Final Question Card --- */
.question-card {
    margin-top: 15vh;
    padding: 15% 10%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
    border: none;
    border-radius: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.card-q {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.card-sub {
    color: var(--accent);
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* --- Celebration Section --- */
.celebration-section {
    padding: 15vh 5vw;
    text-align: center;
    background: radial-gradient(circle at center, rgba(255, 133, 161, 0.12) 0%, transparent 70%);
    position: relative;
}

.celebration-num {
    font-family: var(--font-serif);
    font-size: clamp(10rem, 30vw, 22rem);
    line-height: 0.8;
    background: linear-gradient(135deg, var(--primary), #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    font-weight: 300;
    filter: drop-shadow(0 0 40px rgba(255, 133, 161, 0.3));
    display: inline-block;
    will-change: transform, opacity;
}

.celebration-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1rem;
    color: var(--primary);
    margin-bottom: 8vh;
    display: block;
    font-weight: 600;
}

.time-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.time-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    border-radius: 100px; /* Fully rounded "pill" style */
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, border-color 0.4s ease;
    will-change: transform, opacity;
}

.time-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 133, 161, 0.05);
}

.time-val {
    font-family: 'Inter', monospace; /* Monospace for steady counting */
    font-size: 3.5rem;
    color: #fff;
    font-weight: 200;
    letter-spacing: -0.05em;
}

.time-unit {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.4rem;
    color: var(--accent);
    font-weight: 500;
}

/* --- Para Sempre Final Section --- */
.forever-section {
    padding: 10vh 5vw 15vh;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.forever-inner {
    position: relative;
    z-index: 2;
}

.forever-eyebrow {
    display: block;
    font-size: clamp(2rem, 8vw, 5rem);
    color: var(--primary);
    margin-bottom: 3rem;
    opacity: 0.7;
    font-weight: 100;
}

.forever-title {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 20vw, 16rem);
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
}

.forever-title em {
    font-style: italic;
    color: var(--primary);
    font-size: 0.6em;
    display: block;
    margin: 0.5rem 0;
}

.forever-sub {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6rem;
    color: var(--accent);
    margin-bottom: 4rem;
}

.forever-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    margin: 0 auto 4rem;
}

.forever-note {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-style: italic;
    color: var(--text-dim);
    line-height: 1.8;
}

/* Footer removed marquee */
.footer-wrap {
    padding: 5vh 0 10vh;
    text-align: center;
}

.footer-quote {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

.footer-meta {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.4rem;
    opacity: 0.4;
}

/* --- Responsive Base --- */
@media (max-width: 768px) {
    .frame { height: 70vh; }
    .marquee-inner span { font-size: 4rem; }
}

/* --- Hero Calendar --- */
.hero-calendar-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    margin: 4vh 0 8vh;
    perspective: 1000px;
}

.calendar-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 20px rgba(255, 133, 161, 0.1);
    transform: rotateX(10deg);
    transition: transform 0.6s var(--ease-smooth);
}

.calendar-card:hover {
    transform: rotateX(0deg) scale(1.05);
    border-color: var(--primary);
}

.cal-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.cal-day {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    color: var(--text-main);
}

.cal-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    opacity: 0.5;
    margin-top: 0.4rem;
}

.cal-decoration {
    font-size: 2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary));
    animation: heartBeat 2s infinite ease-in-out;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* --- Romantic Bokeh --- */
.bokeh-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bokeh-item {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(40px);
    animation: floatBokeh 20s infinite linear;
}

@keyframes floatBokeh {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10vw, 10vh) scale(1.2); }
    66% { transform: translate(-5vw, 15vh) scale(0.8); }
    100% { transform: translate(0, 0) scale(1); }
}

/* --- Mobile Fixes & Enhancements --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
        margin-bottom: 5vh;
    }

    .hero-calendar-wrap {
        flex-direction: column;
        gap: 1rem;
        margin: 2vh 0 6vh;
    }

    .calendar-card {
        padding: 1rem 1.5rem;
    }

    .cal-day { font-size: 2.2rem; }

    .strips-container {
        height: 50vh;
        padding: 0 2vw;
    }

    .strip-label {
        font-size: 2.5rem;
        bottom: 1rem;
    }

    .story-section {
        padding: 10vh 8vw;
    }

    .story-heading {
        font-size: 2.2rem;
    }

    .celebration-num {
        font-size: clamp(6rem, 25vw, 12rem);
    }

    .time-grid {
        gap: 1rem;
    }

    .time-item {
        min-width: 140px;
        padding: 2rem 1rem;
        border-radius: 40px;
    }

    .time-val {
        font-size: 2rem;
    }

    .forever-title {
        font-size: clamp(3rem, 15vw, 6rem);
    }

    .music-indicator {
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        padding: 0.6rem 1rem;
    }

    .music-text {
        font-size: 0.5rem;
    }
}

/* Vignette removed for clean look */

/* Extra Glows */
.hero-glow {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top, rgba(255, 133, 161, 0.25) 0%, transparent 80%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.story-heading span, .celebration-num {
    text-shadow: 0 0 30px rgba(255, 133, 161, 0.4);
}

.photocard {
    box-shadow: 0 20px 80px rgba(255, 133, 161, 0.1);
}

@media (max-width: 768px) {
    .strips-container {
        height: 40vh;
        gap: 2px;
    }
    
    .strip-label {
        font-size: 1.8rem;
    }
    
    .strip:active {
        flex: 3;
    }
}
