/* =========================================
   RESET
========================================= */

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


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 20%,
            rgba(231, 89, 7, 0.08),
            transparent 30%),
        radial-gradient(circle at 80% 70%,
            rgba(180, 120, 255, 0.08),
            transparent 30%),
        #24021e;

    color: #ffffff;
}





font-family: "Inter",
sans-serif;

overflow-x: hidden;



/* =========================================
   STARS
========================================= */

.stars {
    position: fixed;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    background-image:
        radial-gradient(circle,
            rgba(255, 255, 255, 0.9) 1px,
            transparent 1px),
        radial-gradient(circle,
            rgba(255, 215, 160, 0.7) 1px,
            transparent 1px),
        radial-gradient(circle,
            rgba(255, 255, 255, 0.5) 1px,
            transparent 1px);

    background-size:
        130px 130px,
        190px 190px,
        270px 270px;

    animation: starsMove 30s linear infinite;

    opacity: 0.5;
}


@keyframes starsMove {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-130px);
    }

}


/* =========================================
   GLOW
========================================= */

.glow {
    position: fixed;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(120px);

    pointer-events: none;

    z-index: 0;

    opacity: 0.18;
}


.glow-one {
    background: #d8a84e;

    top: -250px;
    left: -200px;
}


.glow-two {
    background: #9d5cff;

    right: -250px;
    bottom: -250px;
}


/* =========================================
   SHOOTING STAR
========================================= */

.shooting-star {
    position: fixed;

    width: 120px;
    height: 2px;

    background:
        linear-gradient(90deg,
            transparent,
            white);

    transform: rotate(-35deg);

    top: 15%;
    left: -150px;

    opacity: 0;

    z-index: 1;

    animation:
        shootingStar 8s linear infinite;
}


@keyframes shootingStar {

    0% {
        left: -150px;
        top: 10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    25% {
        left: 110%;
        top: 45%;
        opacity: 0;
    }

    100% {
        left: 110%;
        top: 45%;
        opacity: 0;
    }

}


/* =========================================
   BALLOONS
========================================= */

.balloon {
    position: fixed;

    width: 45px;
    height: 58px;

    border-radius:
        50% 50% 45% 45%;

    z-index: 1;

    opacity: 0.55;

    filter: blur(0.2px);

    pointer-events: none;

    animation:
        balloonFloat 8s ease-in-out infinite;
}


.balloon::after {
    content: "";

    position: absolute;

    width: 1px;
    height: 100px;

    background:
        rgba(255, 255, 255, 0.35);

    left: 50%;
    top: 55px;
}


.balloon span {
    position: absolute;

    width: 7px;
    height: 7px;

    background:
        rgba(255, 255, 255, 0.7);

    border-radius: 50%;

    top: 13px;
    left: 12px;

    filter: blur(1px);
}


.balloon-one {
    left: 5%;
    bottom: -100px;

    background:
        radial-gradient(circle at 30% 25%,
            white,
            rgba(255, 190, 210, 0.6) 10%,
            rgba(170, 70, 120, 0.7) 60%,
            rgba(50, 20, 50, 0.8));

    animation-delay: 1s;
}


.balloon-two {
    right: 7%;
    bottom: -100px;

    background:
        radial-gradient(circle at 30% 25%,
            white,
            rgba(255, 220, 160, 0.7) 10%,
            rgba(180, 130, 50, 0.8) 60%,
            rgba(60, 40, 15, 0.8));

    animation-delay: 3s;
}


.balloon-three {
    left: 18%;
    bottom: -100px;

    transform: scale(0.7);

    background:
        radial-gradient(circle at 30% 25%,
            white,
            rgba(180, 160, 255, 0.7),
            rgba(80, 50, 160, 0.8));

    animation-delay: 5s;
}


.balloon-four {
    right: 22%;
    bottom: -100px;

    transform: scale(0.6);

    background:
        radial-gradient(circle at 30% 25%,
            white,
            rgba(255, 150, 180, 0.7),
            rgba(120, 30, 70, 0.8));

    animation-delay: 7s;
}


@keyframes balloonFloat {

    0% {
        transform:
            translateY(0) rotate(-5deg);

        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    50% {
        transform:
            translateY(-60vh) rotate(5deg);
    }

    100% {
        transform:
            translateY(-120vh) rotate(-5deg);

        opacity: 0;
    }

}


/* =========================================
   ENVELOPE SCREEN
========================================= */

.envelope-screen {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    opacity: 1;

    visibility: visible;

    background:
        radial-gradient(circle at center,
            rgba(255, 210, 140, 0.08),
            transparent 35%),
        #08080c;

    transition:
        opacity 1s ease,
        visibility 1s ease;
}


.envelope-screen.hide {
    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


.intro-text {
    margin-bottom: 35px;

    letter-spacing: 5px;

    font-size: 10px;

    color:
        rgba(255, 255, 255, 0.65);
}


.envelope {
    position: relative;

    width: 330px;
    height: 220px;

    cursor: pointer;

    perspective: 1000px;
}


.envelope-back {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(145deg,
            #24242c,
            #101016);

    border:
        1px solid rgba(255, 255, 255, 0.15);

    border-radius: 5px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        inset 0 0 40px rgba(255, 255, 255, 0.03);
}


.envelope-front {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 55%;

    background:
        linear-gradient(145deg,
            #1d1d24,
            #0d0d12);

    clip-path:
        polygon(0 0,
            50% 65%,
            100% 0,
            100% 100%,
            0 100%);

    border-radius:
        0 0 5px 5px;

    z-index: 4;
}


.envelope-flap {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 58%;

    background:
        linear-gradient(145deg,
            #30303a,
            #15151c);

    clip-path:
        polygon(0 0,
            100% 0,
            50% 100%);

    transform-origin: top;

    transition:
        transform 1.3s cubic-bezier(0.2, 0.8, 0.2, 1);

    z-index: 5;

    border-top:
        1px solid rgba(255, 255, 255, 0.1);
}


.letter {
    position: absolute;

    width: 90%;
    height: 90%;

    left: 5%;
    top: 5%;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.95),
            rgba(235, 225, 205, 0.95));

    color: #171717;

    padding: 35px 25px;

    text-align: center;

    border-radius: 3px;

    z-index: 2;

    transform: translateY(0);

    transition:
        transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3);
}


.envelope.open .envelope-flap {
    transform: rotateX(180deg);
}


.envelope.open .letter {
    transform: translateY(-130px);

    transition-delay: 0.3s;
}


.letter-small {
    font-size: 8px;

    letter-spacing: 3px;

    color: #8c7142;
}


.letter h1 {
    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 42px;

    margin: 12px 0 5px;

    font-weight: 600;
}


.letter p {
    font-size: 11px;

    color: #777;
}


.heart {
    position: absolute;

    left: 50%;
    top: 48%;

    transform:
        translate(-50%, -50%);

    z-index: 10;

    color: #d5aa5a;

    font-size: 22px;

    filter:
        drop-shadow(0 0 10px rgba(220, 170, 80, 0.7));
}


.tap-message {
    margin-top: 45px;

    font-size: 10px;

    letter-spacing: 2px;

    color:
        rgba(255, 255, 255, 0.45);

    animation:
        pulse 2s ease-in-out infinite;
}


@keyframes pulse {

    50% {
        opacity: 0.4;
    }

}


/* =========================================
   MAIN PAGE
========================================= */

.birthday-page {
    position: relative;

    z-index: 2;

    opacity: 1;
    visibility: visible;
    transform:
        translateY(30px);

    transition:
        opacity 1.3s ease,
        transform 1.3s ease;

    pointer-events: none;
}


.birthday-page.show {
    opacity: 1;

    transform:
        translateY(0);

    pointer-events: auto;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    width: 100%;

    padding: 30px 6vw;

    display: flex;

    justify-content: space-between;

    align-items: center;

    position: absolute;

    top: 0;

    z-index: 10;
}


.logo {
    font-size: 11px;

    letter-spacing: 3px;

    font-weight: 600;
}


.logo span {
    color: #d6ad62;
}


.nav-date {
    font-size: 9px;

    letter-spacing: 2px;

    color:
        rgba(255, 255, 255, 0.45);
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 100vh;

    padding:
        130px 8vw 80px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 8vw;

    align-items: center;

    max-width: 1500px;

    margin: auto;
}


/* =========================================
   HERO IMAGE
========================================= */

.hero-image-section {
    position: relative;

    display: flex;

    justify-content: center;
}


.photo-card {
    position: relative;

    width:
        min(430px, 90%);

    aspect-ratio: 4 / 5;

    border-radius: 18px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.2);

    background:
        rgba(255, 255, 255, 0.05);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(212, 170, 90, 0.08);

    transition:
        transform 0.25s ease;
}


.photo-card img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


.photo-overlay {
    position: absolute;

    inset:
        auto 0 0;

    padding: 25px;

    background:
        linear-gradient(transparent,
            rgba(0, 0, 0, 0.8));
}


.photo-overlay span {
    font-size: 8px;

    letter-spacing: 3px;
}


/* =========================================
   FLOATING GLASS CARD
========================================= */

.floating-glass-card {
    position: absolute;

    right: 0;

    bottom: 35px;

    padding:
        18px 22px;

    display: flex;

    align-items: center;

    gap: 12px;

    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid rgba(255, 255, 255, 0.18);

    border-radius: 14px;

    backdrop-filter:
        blur(25px);

    -webkit-backdrop-filter:
        blur(25px);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4);

    animation:
        cardFloat 5s ease-in-out infinite;
}


.mini-heart {
    width: 35px;
    height: 35px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(215, 175, 95, 0.15);

    color: #d7af5f;
}


.floating-glass-card small {
    display: block;

    font-size: 7px;

    letter-spacing: 2px;

    color:
        rgba(255, 255, 255, 0.45);
}


.floating-glass-card strong {
    display: block;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 20px;
}


@keyframes cardFloat {

    50% {
        transform:
            translateY(-12px);
    }

}


/* =========================================
   HERO TEXT
========================================= */

.hero-content {
    max-width: 650px;
}


.eyebrow {
    font-size: 9px;

    letter-spacing: 4px;

    color: #d7af5f;

    margin-bottom: 20px;
}


.hero h1 {
    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(55px, 7vw, 105px);

    font-weight: 500;

    line-height: 0.85;

    letter-spacing: -3px;
}


.hero h1 span {
    display: block;

    color: #d7af5f;

    font-style: italic;
}


.hero-message {
    max-width: 500px;

    margin-top: 35px;

    color:
        rgba(255, 255, 255, 0.65);

    font-size: 14px;

    line-height: 1.9;

    font-weight: 300;
}


.signature {
    margin-top: 28px;
}


.signature span {
    display: block;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 20px;

    font-style: italic;

    color:
        rgba(255, 255, 255, 0.5);
}


.signature strong {
    font-size: 12px;

    letter-spacing: 2px;
}


/* =========================================
   BUTTONS
========================================= */

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 35px;
}


.glass-button,
.music-button {
    min-height: 50px;

    padding:
        0 20px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    border-radius: 100px;

    border:
        1px solid rgba(255, 255, 255, 0.18);

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.04));

    backdrop-filter:
        blur(25px);

    -webkit-backdrop-filter:
        blur(25px);

    color: white;

    font-size: 9px;

    letter-spacing: 2px;

    text-decoration: none;

    cursor: pointer;

    transition:
        0.4s ease;

    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.2);
}


.glass-button:hover,
.music-button:hover {
    transform:
        translateY(-3px);

    background:
        rgba(255, 255, 255, 0.16);

    border-color:
        rgba(255, 215, 160, 0.4);
}


.glass-button span {
    color: #d7af5f;

    font-size: 15px;
}


.music-icon {
    width: 25px;
    height: 25px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(215, 175, 95, 0.2);

    color: #d7af5f;

    font-size: 8px;
}


/* =========================================
   MESSAGE
========================================= */

.message-section,
.memories-section,
.video-section,
.final-section {
    max-width: 1200px;

    margin: auto;

    padding:
        120px 6vw;
}


.section-label,
.section-heading p {
    font-size: 8px;

    letter-spacing: 3px;

    color: #d7af5f;

    margin-bottom: 25px;
}


.glass-message {
    position: relative;

    padding:
        70px 8vw;

    border:
        1px solid rgba(255, 255, 255, 0.15);

    border-radius: 30px;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.025));

    backdrop-filter:
        blur(30px);

    -webkit-backdrop-filter:
        blur(30px);

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.3);
}


.message-number {
    position: absolute;

    right: 35px;
    top: 30px;

    font-size: 10px;

    color:
        rgba(255, 255, 255, 0.3);
}


.glass-message h2,
.section-heading h2 {
    max-width: 750px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(45px, 6vw, 75px);

    line-height: 0.95;

    font-weight: 500;
}


.glass-message h2 span,
.section-heading h2 span {
    color: #d7af5f;

    font-style: italic;
}


.glass-message p {
    max-width: 700px;

    margin-top: 35px;

    color:
        rgba(255, 255, 255, 0.65);

    line-height: 2;

    font-size: 14px;
}


.message-signature {
    margin-top: 35px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 28px;

    font-style: italic;

    color: #d7af5f;
}


/* =========================================
   MEMORIES
========================================= */

/* =========================================
   MEMORIES
========================================= */

.section-heading {
    margin-bottom: 50px;
}


.memory-grid {
    display: grid;

    grid-template-columns:
        1.3fr 1fr;

    gap: 10px;
}


.memory-card {
    position: relative;

    height: 300px;

    width: 400;

    border-radius: 20px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    background:
        rgba(255, 255, 255, 0.05);
}


.memory-card.large {
    grid-row: span 2;

    height: 625px;
}


.memory-card img {
    width: 100% !important;

    height: 100% !important;

    max-width: none !important;

    object-fit: cover;

    display: block;

    margin: 0;

    border-radius: 0;

    transition:
        transform 0.8s ease;
}


.memory-card:hover img {
    transform:
        scale(1.05);
}


.memory-caption {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 25px;

    background:
        linear-gradient(transparent,
            rgba(0, 0, 0, 0.85));
}


.memory-caption span {
    display: block;

    font-size: 7px;

    letter-spacing: 3px;

    color: #d7af5f;
}


.memory-caption strong {
    display: block;

    margin-top: 6px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 24px;
}


/* =========================================
   VIDEO
========================================= */


/* =========================================
   VIDEO
========================================= */

.video-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}


.video-card {
    overflow: hidden;

    border-radius: 25px;

    border:
        1px solid rgba(255, 255, 255, 0.15);

    background:
        rgba(255, 255, 255, 0.05);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4);

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;
}


.video-card video {
    width: 100%;

    max-width: 500px;

    height: 500px;

    object-fit: cover;

    display: block;

    border-radius: 18px;
}


/* =========================================
   FINAL SECTION
========================================= */

.final-section {
    min-height: 90vh;

    display: grid;

    place-items: center;
}


.final-glass {
    width: 100%;

    padding:
        90px 30px;

    text-align: center;

    border-radius: 35px;

    border:
        1px solid rgba(255, 255, 255, 0.15);

    background:
        radial-gradient(circle at center,
            rgba(215, 175, 95, 0.1),
            transparent 55%),
        rgba(255, 255, 255, 0.05);

    backdrop-filter:
        blur(30px);

    -webkit-backdrop-filter:
        blur(30px);

    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.4);
}


.final-stars {
    color: #d7af5f;

    font-size: 20px;

    margin-bottom: 25px;
}


.final-glass p {
    font-size: 8px;

    letter-spacing: 4px;

    color:
        rgba(255, 255, 255, 0.5);
}


.final-glass h2 {
    margin-top: 15px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size:
        clamp(70px, 10vw, 130px);

    font-weight: 500;

    line-height: 0.8;

    color: #d7af5f;

    font-style: italic;
}


.birthday-cake {
    font-size: 70px;

    margin: 35px 0;

    animation:
        cakeFloat 4s ease-in-out infinite;
}


@keyframes cakeFloat {

    50% {
        transform:
            translateY(-10px);
    }

}


.final-glass h3 {
    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 38px;
}


.final-message {
    display: block;

    max-width: 450px;

    margin:
        15px auto 0;

    color:
        rgba(255, 255, 255, 0.5);

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================
   FOOTER
========================================= */

footer {
    text-align: center;

    padding:
        50px 20px 70px;
}


.footer-line {
    width: 60px;

    height: 1px;

    margin:
        0 auto 25px;

    background: #d7af5f;
}


footer p {
    font-size: 7px;

    letter-spacing: 3px;

    color:
        rgba(255, 255, 255, 0.4);
}


footer strong {
    display: block;

    margin-top: 10px;

    font-size: 8px;

    letter-spacing: 2px;

    color: #d7af5f;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 800px) {

    .hero {
        grid-template-columns: 1fr;

        padding-top: 130px;

        gap: 60px;
    }


    .hero-image-section {
        order: 1;
    }


    .hero-content {
        order: 2;
    }


    .hero h1 {
        font-size: 65px;

        letter-spacing: -2px;
    }


    .floating-glass-card {
        right: 0;

        bottom: 20px;
    }


    .memory-grid {
        grid-template-columns: 1fr;
    }


    .memory-card.large {
        grid-row: auto;

        height: 380px;
    }


    .memory-card {
        height: 320px;
    }


    .video-grid {
        grid-template-columns: 1fr;
    }


    .navbar {
        padding:
            25px 6vw;
    }


    .nav-date {
        display: none;
    }


    .envelope {
        transform:
            scale(0.85);
    }


    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }


    .glass-button,
    .music-button {
        width: 100%;
    }

}


@media (max-width: 480px) {

    .hero {
        padding-left: 20px;

        padding-right: 20px;
    }


    .message-section,
    .memories-section,
    .video-section,
    .final-section {
        padding-left: 20px;

        padding-right: 20px;
    }


    .hero h1 {
        font-size: 57px;
    }


    .photo-card {
        width: 100%;
    }


    .floating-glass-card {
        right: -5px;

        transform:
            scale(0.85);
    }


    .glass-message {
        padding:
            50px 25px;
    }


    .final-glass {
        padding:
            80px 20px;
    }

}





/* =========================================
   FINAL PAGE VISIBILITY FIX
========================================= */

.envelope-screen {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.envelope-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.birthday-page {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    pointer-events: none;
    transition:
        opacity 1.3s ease,
        transform 1.3s ease,
        visibility 1.3s ease;
}

.birthday-page.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}





/* =========================================
   BIRTHDAY PAGE - FINAL FIX
========================================= */

.birthday-page {
    position: relative;
    z-index: 2;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 1s ease,
        visibility 1s ease;
}

.birthday-page.show {
    opacity: 1;
    visibility: visible;
}

.envelope-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 1s ease,
        visibility 1s ease;
}

.envelope-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}