/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    overflow-x:hidden;

    font-family:'Inter',sans-serif;

    background:#f8f3ee;

    color:#352d2a;

    line-height:1.7;

    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

/* =========================================================
   VARIABLES
========================================================= */

:root{

    --cream:#f9f4ef;
    --beige:#efe4d8;
    --pink:#f7ecec;
    --peach:#faeee5;
    --lavender:#f4f0fb;

    --gold:#c8ab7c;

    --text:#302926;
    --muted:#867c75;

    --glass:rgba(255,255,255,.28);

    --shadow:
    0 10px 30px rgba(0,0,0,.05),
    0 30px 60px rgba(0,0,0,.04);

    --radius:32px;

    --transition:
    700ms cubic-bezier(.22,.61,.36,1);
}

/* =========================================================
   SELECTION
========================================================= */

::selection{
    background:#eadbc6;
}

/* =========================================================
   WEBGL CANVAS
========================================================= */

#webglCanvas{
    position:fixed;
    inset:0;
    z-index:-3;
}

/* =========================================================
   GRAIN
========================================================= */

.grain-overlay{
    position:fixed;
    inset:0;

    pointer-events:none;

    z-index:999;

    opacity:.06;

    background-image:url('../assets/noise.png');

    mix-blend-mode:soft-light;
}

/* =========================================================
   PRELOADER
========================================================= */

#preloader{
    position:fixed;
    inset:0;

    background:#f8f3ee;

    z-index:99999;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:1s ease;
}

.loader-wrapper{
    text-align:center;
}

.loader-ring{

    width:90px;
    height:90px;

    border-radius:50%;

    border:1px solid rgba(0,0,0,.08);

    border-top-color:var(--gold);

    animation:spin 1.2s linear infinite;
}

.loader-text{

    margin-top:24px;

    font-size:14px;
    letter-spacing:.3em;
    text-transform:uppercase;
}

@keyframes spin{

    to{
        transform:rotate(360deg);
    }

}

/* =========================================================
   SECRET GATE
========================================================= */

#secretGate{

    position:fixed;
    inset:0;

    z-index:5000;

    background:
    radial-gradient(
        circle at center,
        #fff 0%,
        #f7efe8 100%
    );

    display:flex;
    align-items:center;
    justify-content:center;

    padding:40px;

    transition:1.2s ease;
}

.gate-content{

    max-width:700px;

    text-align:center;

    position:relative;
    z-index:2;
}

.gate-label{

    display:inline-block;

    padding:12px 20px;

    border-radius:999px;

    background:rgba(255,255,255,.55);

    backdrop-filter:blur(20px);

    margin-bottom:30px;

    font-size:12px;
    letter-spacing:.15em;
    text-transform:uppercase;
}

.gate-content h1{

    font-family:'Cormorant Garamond',serif;

    font-size:clamp(3rem,8vw,6rem);

    font-weight:600;

    line-height:1.05;

    margin-bottom:24px;
}

.gate-content p{

    color:var(--muted);

    max-width:500px;

    margin:auto auto 30px;
}

#nameForm{

    display:flex;
    gap:14px;

    justify-content:center;

    flex-wrap:wrap;
}

#girlName{

    width:260px;

    border:none;

    outline:none;

    padding:18px 24px;

    border-radius:999px;

    background:white;

    box-shadow:var(--shadow);

    font-size:16px;
}

#nameForm button{

    border:none;

    cursor:pointer;

    padding:18px 32px;

    border-radius:999px;

    background:linear-gradient(
    135deg,
    #cdb086,
    #e4cba5
    );

    color:white;

    font-weight:600;
}

/* =========================================================
   CUSTOM CURSOR
========================================================= */

.cursor{

    width:14px;
    height:14px;

    border-radius:50%;

    background:white;

    position:fixed;

    z-index:99999;

    pointer-events:none;

    mix-blend-mode:difference;

    transform:translate(-50%,-50%);
}

.cursor-follower{

    width:42px;
    height:42px;

    border-radius:50%;

    border:1px solid rgba(0,0,0,.12);

    position:fixed;

    pointer-events:none;

    z-index:99998;

    transform:translate(-50%,-50%);

    transition:
    transform .25s ease,
    width .25s ease,
    height .25s ease;
}

/* =========================================================
   CONTAINER
========================================================= */

.container{

    width:min(1200px,92%);
    margin:auto;
}

.container.narrow{

    width:min(820px,92%);
}

/* =========================================================
   SECTION
========================================================= */

.section{

    padding:180px 0;

    position:relative;
}

.section-label{

    display:block;

    color:var(--gold);

    text-transform:uppercase;

    letter-spacing:.25em;

    font-size:12px;

    margin-bottom:22px;
}

.section h2{

    font-family:'Cormorant Garamond',serif;

   font-size:clamp(3rem,7vw,5.5rem);

    font-weight:600;

    line-height:0.7;

    margin-bottom:40px;
}

.section p{

    font-family:'Cormorant Garamond',serif;
    line-height:0.9;
}

/* =========================================================
   HERO
========================================================= */

.hero{

    min-height:100vh;

    display:flex;
    align-items:center;
    justify-content:center;

    text-align:center;

    position:relative;

    overflow:hidden;
}

.hero-content{
    position:relative;
    z-index:3;
}
.hero-background-word{

    position:absolute;

    left:50%;
    top:50%;

    transform:
    translate(-50%,-50%);

    font-family:
    'Cormorant Garamond',
    serif;

    font-size:min(28vw,400px);

    font-weight:600;

    line-height:1;

    color:#000;

    opacity:.04;

    user-select:none;
    pointer-events:none;

    white-space:nowrap;

    z-index:0;
}

.hero-tag{

    display:inline-block;

    margin-bottom:30px;

    text-transform:uppercase;

    letter-spacing:.35em;

    font-size:11px;

    color:var(--gold);
}

.hero h1{

    font-family:'Cormorant Garamond',serif;

    font-size:clamp(5rem,12vw,10rem);

    font-weight:600;

    line-height:.9;

    margin-bottom:20px;
}

.hero p{
    font-family:'Cormorant Garamond',serif;
    font-size:clamp(1.1rem,2vw,1.5rem);

    color:var(--muted);

    margin-bottom:45px;
}

.open-btn{

    border:none;

    cursor:pointer;

    padding:18px 36px;

    border-radius:999px;

    background: pink;

    box-shadow:var(--shadow);

    transition:var(--transition);
}

.open-btn:hover{

    transform:
    translateY(-4px)
    scale(1.02);
}

/* =========================================================
   FLOATING BLOBS
========================================================= */

.floating{

    position:absolute;

    border-radius:50%;

    filter:blur(60px);

    opacity:.55;

    animation:
    float 12s ease-in-out infinite;
}

.floating-1{

    width:500px;
    height:500px;

    background:#f6d7db;

    top:-100px;
    left:-120px;
}

.floating-2{

    width:420px;
    height:420px;

    background:#efe3ff;

    right:-120px;
    top:25%;
}

.floating-3{

    width:320px;
    height:320px;

    background:#fde8cf;

    bottom:-100px;
    left:50%;
}

@keyframes float{

    0%,100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-30px);
    }
}

/* =========================================================
   INTRO TEXT
========================================================= */

.large-text{

    font-size:clamp(1.25rem,2vw,1.7rem);

    line-height:1.9;

    color:#4a433f;
}

/* =========================================================
   GLASS PANEL
========================================================= */

.glass{

    background:rgba(255,255,255,.3);

    backdrop-filter:blur(30px);

    border:1px solid rgba(255,255,255,.4);

    box-shadow:var(--shadow);

    border-radius:var(--radius);
}
/* =========================================================
   GALLERY
========================================================= */

#galleryGrid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:32px;

    margin-top:80px;
}

.gallery-card{

    position:relative;

    overflow:hidden;

    border-radius:28px;

    cursor:pointer;

    background:white;

    box-shadow:
    0 15px 40px rgba(0,0,0,.05),
    0 30px 70px rgba(0,0,0,.04);

    transition:
    transform .8s cubic-bezier(.22,.61,.36,1),
    box-shadow .8s cubic-bezier(.22,.61,.36,1);
}

.gallery-card:hover{

    transform:
    translateY(-12px)
    rotateX(2deg)
    rotateY(-2deg);

    box-shadow:
    0 30px 60px rgba(0,0,0,.08),
    0 50px 100px rgba(0,0,0,.06);
}

.gallery-card img{

    width:100%;
    height:100%;

    display:block;

    object-fit:cover;

    aspect-ratio:4/5;

    transition:
    transform 1.4s ease;
}

.gallery-card:hover img{

    transform:scale(1.05);
}

.gallery-overlay{

    position:absolute;
    inset:0;

    background:
    linear-gradient(
    to top,
    rgba(0,0,0,.35),
    transparent 60%
    );

    opacity:0;

    transition:.7s ease;
}

.gallery-card:hover .gallery-overlay{

    opacity:1;
}

.gallery-caption{

    position:absolute;

    left:24px;
    bottom:24px;

    color:white;

    opacity:0;

    transform:translateY(20px);

    transition:.7s ease;
}

.gallery-card:hover .gallery-caption{

    opacity:1;

    transform:translateY(0);
}

.gallery-caption h3{

    font-family:'Cormorant Garamond',serif;

    font-size:28px;

    margin-bottom:6px;
}

.gallery-caption span{

    font-size:13px;

    letter-spacing:.1em;

    text-transform:uppercase;
}
/* =========================================================
   LIGHTBOX
========================================================= */

#lightbox{

    position:fixed;
    inset:0;

    background:
    rgba(0,0,0,.88);

    backdrop-filter:blur(20px);

    display:flex;

    justify-content:center;
    align-items:center;

    opacity:0;
    visibility:hidden;

    transition:.5s ease;

    z-index:9999;
}

#lightbox.active{

    opacity:1;
    visibility:visible;
}

#lightbox img{

    width:min(90vw,1200px);

    max-height:85vh;

    object-fit:contain;

    border-radius:20px;

    transform:scale(.95);

    transition:.5s ease;
}

#lightbox.active img{

    transform:scale(1);
}

#closeLightbox{

    position:absolute;

    top:30px;
    right:30px;

    width:60px;
    height:60px;

    border:none;

    border-radius:50%;

    background:white;

    cursor:pointer;

    font-size:30px;
}
/* =========================================================
   TIMELINE
========================================================= */

#timelineWrapper{

    position:relative;

    margin-top:90px;
}

#timelineWrapper::before{

    content:"";

    position:absolute;

    left:50%;

    top:0;
    bottom:0;

    width:1px;

    background:
    linear-gradient(
    transparent,
    rgba(200,171,124,.6),
    transparent
    );
}

.timeline-item{

    width:50%;

    padding:30px 60px;

    position:relative;

    margin-bottom:60px;
}

.timeline-item.left{

    left:0;

    text-align:right;
}

.timeline-item.right{

    left:50%;
}

.timeline-dot{

    position:absolute;

    width:16px;
    height:16px;

    border-radius:50%;

    background:var(--gold);

    top:40px;
}

.timeline-item.left .timeline-dot{

    right:-8px;
}

.timeline-item.right .timeline-dot{

    left:-8px;
}

.timeline-card{

    background:
    rgba(255,255,255,.55);

    backdrop-filter:blur(30px);

    border:
    1px solid rgba(255,255,255,.45);

    border-radius:28px;

    padding:34px;

    box-shadow:var(--shadow);

    transition:var(--transition);
}

.timeline-card:hover{

    transform:
    translateY(-6px);
}

.timeline-date{

    color:var(--gold);

    letter-spacing:.12em;

    text-transform:uppercase;

    font-size:12px;

    margin-bottom:14px;
}

.timeline-title{

    font-family:'Cormorant Garamond',serif;

    font-size:36px;

    margin-bottom:12px;
}

.timeline-description{

    color:#625b56;
}
/* =========================================================
   LETTER
========================================================= */

.letter-paper{

    position:relative;

    max-width:950px;

    margin:auto;

    padding:
    90px
    80px;

    background:
    linear-gradient(
    180deg,
    rgba(255,255,255,.88),
    rgba(255,255,255,.72)
    );

    backdrop-filter:blur(25px);

    border-radius:40px;

    box-shadow:
    0 25px 70px rgba(0,0,0,.06),
    0 60px 120px rgba(0,0,0,.04);
}

.letter-paper::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:40px;

    pointer-events:none;

    background:
    linear-gradient(
    135deg,
    rgba(255,255,255,.6),
    transparent 60%
    );
}

.letter-content{

    margin-top:50px;
}

.letter-content p{

    font-size:20px;

    line-height:2;

    margin-bottom:30px;

    color:#433d39;
}
/* =========================================================
   FINAL SECTION
========================================================= */

.final-section{

    min-height:100vh;

    display:flex;

    justify-content:center;
    align-items:center;

    text-align:center;

    overflow:hidden;
}

.final-glow{

    position:absolute;

    width:700px;
    height:700px;

    border-radius:50%;

    background:
    radial-gradient(
    rgba(255,235,210,.6),
    transparent 70%
    );

    filter:blur(80px);
}

.final-section blockquote{

    font-family:'Cormorant Garamond',serif;

    font-size:
    clamp(4rem,10vw,8rem);

    line-height:1;

    max-width:900px;

    margin:auto;

    margin-bottom:40px;
}

.love-sign{

    font-size:22px;

    color:var(--muted);

    margin-bottom:60px;
}
/* =========================================================
   SIGNATURE
========================================================= */

.signature-wrapper{

    width:400px;

    margin:auto;
}

.signature{

    width:100%;
}

.signature path{

    fill:none;

    stroke:#8b6d4f;

    stroke-width:2.5;

    stroke-linecap:round;

    stroke-linejoin:round;

    stroke-dasharray:1800;

    stroke-dashoffset:1800;
}

.signature.animate path{

    animation:
    sign 4s ease forwards;
}

@keyframes sign{

    to{
        stroke-dashoffset:0;
    }

}
/* =========================================================
   REVEAL
========================================================= */

.reveal{

    opacity:0;

    transform:
    translateY(60px);

    transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

.reveal.visible{

    opacity:1;

    transform:translateY(0);
}
/* =========================================================
   SCROLL INDICATOR
========================================================= */

.scroll-indicator{

    position:absolute;

    bottom:40px;
    left:50%;

    transform:translateX(-50%);
}

.scroll-indicator span{

    display:block;

    width:1px;
    height:70px;

    background:
    linear-gradient(
    transparent,
    rgba(0,0,0,.25),
    transparent
    );

    animation:
    scrollPulse 2s infinite;
}

@keyframes scrollPulse{

    0%,100%{
        opacity:.3;
    }

    50%{
        opacity:1;
    }

}
/* =========================================================
   MOBILE
========================================================= */

@media(max-width:900px){

    .section{
        padding:120px 0;
    }

    .letter-paper{

        padding:
        50px
        35px;
    }

    #timelineWrapper::before{
        left:20px;
    }

    .timeline-item{

        width:100%;

        left:0!important;

        text-align:left;

        padding:
        0
        0
        0
        60px;
    }

    .timeline-dot{

        left:12px!important;
    }

    .timeline-title{

        font-size:30px;
    }
}

@media(max-width:768px){

    .cursor,
    .cursor-follower{
        display:none;
    }

    .hero h1{

        font-size:5rem;
    }

    .section h2{

        font-size:3rem;
    }

    .final-section blockquote{

        font-size:4rem;
    }

    #galleryGrid{

        grid-template-columns:1fr;
    }
}
/* =========================================================
   MUSIC BUTTON
========================================================= */

#musicBtn{

    position:fixed;

    right:30px;
    bottom:30px;

    width:64px;
    height:64px;

    border:none;

    border-radius:50%;

    background:
    rgba(255,255,255,.55);

    backdrop-filter:blur(20px);

    box-shadow:var(--shadow);

    cursor:pointer;

    z-index:3000;

    transition:.5s ease;
}

#musicBtn.active{

    transform:scale(1.08);
}

/* =========================================================
   MOUSE GLOW
========================================================= */

.mouse-glow{

    position:fixed;

    width:500px;
    height:500px;

    border-radius:50%;

    pointer-events:none;

    z-index:-1;

    transform:
    translate(-50%,-50%);

    background:
    radial-gradient(
    rgba(255,255,255,.35),
    transparent 70%
    );

    filter:blur(60px);
}
/* =========================================================
   WELCOME OVERLAY
========================================================= */

.welcome-overlay{

    position:fixed;
    inset:0;

    z-index:4000;

    display:flex;
    align-items:center;
    justify-content:center;

    background:
    rgba(248,243,238,.92);

    backdrop-filter:
    blur(20px);

    opacity:0;

    transition:1s ease;
}

.welcome-overlay.visible{

    opacity:1;
}

.welcome-content{

    text-align:center;
}

.welcome-content span{

    text-transform:uppercase;

    letter-spacing:.3em;

    color:var(--gold);

    font-size:12px;
}

.welcome-content h2{

    font-family:
    'Cormorant Garamond',
    serif;

    font-size:
    clamp(3rem,8vw,7rem);

    margin-top:20px;
}
.story-transition{

    max-width:420px;

    margin:90px auto 0;

    text-align:center;
}

.story-transition span{

    font-family:
    'Cormorant Garamond',
    serif;

    font-size:24px;

    line-height:1.6;

    color:rgba(0,0,0,.55);
}
.continue-story button{

    border:none;

    background:none;

    font-family:
    'Cormorant Garamond',
    serif;

    font-size:28px;

    cursor:pointer;

    position:relative;
}

.continue-story button::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-8px;

    width:0;

    height:1px;

    background:#b79c73;

    transition:.5s ease;
}

.continue-story button:hover::after{

    width:100%;
}
.daily-message-wrapper{

    margin-top:40px;

    max-width:500px;

    margin-left:auto;
    margin-right:auto;
}

.daily-label{

    display:block;

    font-size:12px;

    letter-spacing:.18em;

    text-transform:uppercase;

    color:rgba(0,0,0,.4);

    margin-bottom:12px;
}

#dailyMessage{

    font-family:
    'Cormorant Garamond',
    serif;

    font-size:30px;

    line-height:1.4;

    color:#40352e;
}

.three-words{

    padding:180px 0;
}

.three-words h2{

    text-align:center;

    margin-bottom:80px;
}

.words-grid{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:30px;
}

.word-card{

    height:220px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:32px;

    background:
    rgba(255,255,255,.45);

    backdrop-filter:
    blur(16px);

    transition:.5s ease;

    cursor:pointer;
}

.word-card span{

    font-size:40px;

    opacity:.4;

    transition:.5s ease;
}

.word-card:hover{

    transform:
    translateY(-10px);
}

.word-card:hover span{

    opacity:1;
}
@media(max-width:768px){

    .words-grid{

        grid-template-columns:1fr;
    }

}
.live-counter{

    margin:40px 0 60px;

    text-align:center;
}

#yearsBlock{

    font-size:28px;

    opacity:.6;

    margin-bottom:10px;
}

#daysBlock{

    font-size:clamp(4rem,9vw,8rem);

    line-height:1;
}

#timeBlock{

    margin-top:18px;

    font-size:26px;

    letter-spacing:.12em;

    opacity:.75;
}

.fact-card{

    max-width:650px;

    margin:0 auto;

    padding:40px;

    border-radius:30px;

    background:
    rgba(255,255,255,.45);

    backdrop-filter:
    blur(20px);
}

.fact-label{

    display:block;

    margin-bottom:15px;

    text-transform:uppercase;

    letter-spacing:.15em;

    font-size:12px;

    opacity:.5;
}

#factText{

    font-size:24px;

    line-height:1.6;
}
.days-counter{

    padding:220px 0;

    text-align:center;

    position:relative;
}

.counter-intro{

    font-family:
    'Cormorant Garamond',
    serif;

    font-size:clamp(2rem,4vw,3rem);

    color:#5d5048;

    margin-bottom:40px;

    opacity:.9;
}

.counter-number{

    display:flex;

    justify-content:center;

    align-items:center;

    margin-bottom:25px;
}

.counter-number span{

    font-family:
    'Cormorant Garamond',
    serif;

    font-size:clamp(6rem,18vw,12rem);

    font-weight:700;

    line-height:.9;

    color:#2e2723;

    letter-spacing:-0.04em;
}

.counter-caption{

    max-width:520px;

    margin:0 auto;

    font-size:1.1rem;

    line-height:1.8;

    color:rgba(60,52,48,.6);

    margin-bottom:40px;
}

.counter-live{

    margin-bottom:70px;
}

.counter-live span{

    display:inline-block;

    padding:16px 28px;

    border-radius:999px;

    background:
    rgba(255,255,255,.5);

    backdrop-filter:
    blur(14px);

    font-size:1.15rem;

    letter-spacing:.18em;

    color:#5f534b;
}

.fact-card{

    max-width:700px;

    margin:0 auto;

    padding:40px 50px;

    border-radius:36px;

    background:
    rgba(255,255,255,.42);

    backdrop-filter:
    blur(20px);

    border:
    1px solid
    rgba(255,255,255,.45);
}

.fact-label{

    display:block;

    margin-bottom:18px;

    font-size:.75rem;

    letter-spacing:.25em;

    text-transform:uppercase;

    color:rgba(0,0,0,.35);
}

#factText{

    font-family:
    'Cormorant Garamond',
    serif;

    font-size:2rem;

    line-height:1.5;

    color:#403731;
}