* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #070711;
    --bg-soft: #0d0d1a;
    --text: #f7f7fb;
    --muted: #a7a7b8;
    --accent: #ff6b9d;
    --accent-2: #a78bfa;
    --border: rgba(255,255,255,0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}

body.locked {
    overflow: hidden;
}


/* ================================
   LOADER
================================ */

.loader {
    position: fixed;
    inset: 0;
    background: #050509;
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;

    transition: opacity 0.8s ease,
                visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-heart {
    font-size: 60px;
    animation: heartbeat 1.2s infinite;
}

.loader-content p {
    margin-top: 20px;
    color: var(--muted);
}

.loader-line {
    width: 180px;
    height: 2px;
    background: rgba(255,255,255,.1);
    margin: 25px auto;
    overflow: hidden;
}

.loader-line span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateX(-100%);
    animation: loading 2s ease forwards;
}


/* ================================
   BACKGROUND
================================ */

.background {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

.glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .15;
}

.glow-1 {
    background: #ff4f91;
    top: -200px;
    left: -150px;
}

.glow-2 {
    background: #7956ff;
    right: -200px;
    top: 30%;
}

.glow-3 {
    background: #ff3dca;
    bottom: -250px;
    left: 35%;
}

#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}


/* ================================
   MUSIC
================================ */

.music-button {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 100;

    border: 1px solid var(--border);

    background: rgba(255,255,255,.06);
    backdrop-filter: blur(20px);

    color: white;

    padding: 12px 18px;

    border-radius: 100px;

    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 8px;

    transition: .3s;
}

.music-button:hover {
    background: rgba(255,255,255,.12);
    transform: translateY(-2px);
}

.music-button.playing .music-icon {
    animation: musicPulse .8s infinite alternate;
}


/* ================================
   HERO
================================ */

.hero {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 40px 20px;

    position: relative;
}

.hero-content {
    max-width: 850px;
}

.small-label,
.section-label {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 700;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(60px, 11vw, 150px);
    line-height: .95;

    margin: 30px 0;
}

.hero h1 span,
h2 span,
.final-section h1 span {
    background: linear-gradient(
        120deg,
        #ff6b9d,
        #c084fc,
        #818cf8
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    color: var(--muted);
    max-width: 600px;
    margin: auto;

    font-size: 18px;
    line-height: 1.8;
}

.primary-button {
    margin-top: 45px;

    padding: 16px 24px;

    border: none;
    border-radius: 100px;

    background: white;
    color: #111;

    font-weight: 700;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: 25px;

    transition: .3s;
}

.primary-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(255,255,255,.15);
}

.arrow {
    font-size: 20px;
}

.scroll-hint {
    margin-top: 80px;
    color: #666675;
    font-size: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-hint span {
    width: 1px;
    height: 40px;
    background: linear-gradient(
        white,
        transparent
    );
}


/* ================================
   SECTIONS
================================ */

.section {
    padding: 150px 25px;
}

.section-container {
    max-width: 1200px;
    margin: auto;
}

.section h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(45px, 7vw, 90px);

    line-height: 1.05;

    margin-top: 25px;
}

.section-text {
    max-width: 650px;

    color: var(--muted);

    font-size: 20px;
    line-height: 1.9;

    margin-top: 50px;
}

.section-subtitle {
    color: var(--muted);
    margin-top: 25px;
    font-size: 17px;
}


/* ================================
   MEMORY GRID
================================ */

.memory-grid {
    margin-top: 70px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.memory-card {
    height: 420px;

    position: relative;

    overflow: hidden;

    border-radius: 25px;

    border: 1px solid var(--border);

    background: #11111b;

    cursor: pointer;
}

.memory-card.large {
    grid-row: span 2;
    height: 858px;
}

.memory-card.wide {
    grid-column: span 2;
}

.memory-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .8s ease;
}

.memory-card:hover img {
    transform: scale(1.08);
}

.memory-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 30px;

    background: linear-gradient(
        transparent 35%,
        rgba(0,0,0,.9)
    );

    opacity: 0;

    transition: .4s;
}

.memory-card:hover .memory-overlay {
    opacity: 1;
}

.memory-overlay span {
    color: var(--accent);
    font-size: 12px;
}

.memory-overlay p {
    margin-top: 8px;
    font-size: 18px;
}


/* ================================
   VIDEO
================================ */

.video-wrapper {
    margin-top: 70px;

    position: relative;

    border-radius: 30px;
    overflow: hidden;

    border: 1px solid var(--border);

    background: black;

    max-width: 1000px;
}

.video-wrapper video {
    width: 100%;
    display: block;
    position: relative;
    z-index: 2;
}

.video-glow {
    position: absolute;
    inset: -30px;

    background:
        radial-gradient(
            circle,
            rgba(255,100,160,.3),
            transparent 60%
        );

    filter: blur(50px);
}


/* ================================
   APPRECIATION CARDS
================================ */

.appreciation-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;

    margin-top: 70px;
}

.app-card {
    padding: 45px;

    min-height: 280px;

    border: 1px solid var(--border);

    background: rgba(255,255,255,.025);

    backdrop-filter: blur(20px);

    border-radius: 25px;

    transition: .4s;
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,107,157,.35);
}

.card-number {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 2px;
}

.app-card h3 {
    font-family: "Playfair Display", serif;

    font-size: 35px;

    margin-top: 35px;
}

.app-card p {
    color: var(--muted);

    line-height: 1.8;

    margin-top: 15px;
}


/* ================================
   QUOTE
================================ */

.quote-section {
    min-height: 80vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 100px 25px;
}

.quote-content {
    max-width: 850px;
}

.quote-symbol {
    font-family: "Playfair Display", serif;
    font-size: 100px;
    color: var(--accent);
}

.quote-content h2 {
    font-family: "Playfair Display", serif;

    font-size: clamp(40px, 6vw, 75px);

    line-height: 1.15;
}

.quote-content h2 span {
    display: block;
}

.quote-content p {
    color: var(--muted);
    margin-top: 30px;
}


/* ================================
   GIFT
================================ */

.surprise-section {
    text-align: center;
}

.surprise-section .section-subtitle {
    margin-bottom: 60px;
}

.gift-button {
    border: none;
    background: transparent;

    color: white;

    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;

    margin: auto;

    gap: 25px;
}

.gift-button > span {
    color: var(--muted);
}

.gift-box {
    width: 150px;
    height: 140px;

    position: relative;

    transition: .5s;
}

.gift-button:hover .gift-box {
    transform: translateY(-15px) rotate(-3deg);
}

.gift-body {
    position: absolute;

    bottom: 0;
    left: 10px;

    width: 130px;
    height: 100px;

    background: linear-gradient(
        135deg,
        #ff4f91,
        #9d4edd
    );

    border-radius: 5px;
}

.gift-lid {
    position: absolute;

    top: 25px;
    left: 0;

    width: 150px;
    height: 30px;

    background: #ff77aa;

    border-radius: 5px;

    z-index: 2;
}

.gift-ribbon {
    position: absolute;

    left: 63px;
    top: 25px;

    width: 24px;
    height: 115px;

    background: #ffd166;

    z-index: 3;
}


/* ================================
   FINAL
================================ */

.final-section {
    min-height: 100vh;

    display: none;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 25px;

    background:
        radial-gradient(
            circle at center,
            rgba(255,80,150,.15),
            transparent 60%
        );
}

.final-section.show {
    display: flex;
    animation: finalReveal 1.5s ease forwards;
}

.final-content {
    max-width: 900px;
}

.final-sparkle {
    color: var(--accent);
    letter-spacing: 15px;
    margin-bottom: 30px;
}

.final-small {
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--muted);
}

.final-section h1 {
    font-family: "Playfair Display", serif;

    font-size: clamp(55px, 9vw, 120px);

    line-height: 1;

    margin: 30px 0;
}

.final-message {
    color: var(--muted);

    max-width: 650px;

    margin: auto;

    font-size: 18px;

    line-height: 1.9;
}

.final-signature {
    margin-top: 50px;

    color: var(--accent);

    font-size: 13px;

    letter-spacing: 2px;
}


/* ================================
   LIGHTBOX
================================ */

.lightbox {
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,.95);

    z-index: 500;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;

    border-radius: 15px;
}

.close-lightbox {
    position: absolute;

    top: 25px;
    right: 30px;

    background: none;
    border: none;

    color: white;

    font-size: 45px;

    cursor: pointer;
}


/* ================================
   CONFETTI
================================ */

.confetti {
    position: fixed;

    width: 8px;
    height: 14px;

    top: -20px;

    z-index: 1000;

    animation:
        confettiFall linear forwards;
}


/* ================================
   ANIMATIONS
================================ */

@keyframes heartbeat {

    0%,100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes loading {

    to {
        transform: translateX(0);
    }
}

@keyframes musicPulse {

    from {
        transform: scale(.8);
    }

    to {
        transform: scale(1.2);
    }
}

@keyframes confettiFall {

    to {
        transform:
            translateY(110vh)
            rotate(720deg);
    }
}

@keyframes finalReveal {

    from {
        opacity: 0;
        transform: scale(.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 800px) {

    .music-text {
        display: none;
    }

    .music-button {
        width: 45px;
        height: 45px;
        padding: 0;

        justify-content: center;
    }

    .memory-grid {
        grid-template-columns: 1fr;
    }

    .memory-card,
    .memory-card.large,
    .memory-card.wide {
        grid-column: auto;
        grid-row: auto;

        height: 400px;
    }

    .appreciation-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 100px 20px;
    }

    .hero h1 {
        font-size: 65px;
    }

    .hero-description {
        font-size: 16px;
    }

    .memory-overlay {
        opacity: 1;
    }

    .final-section h1 {
        font-size: 55px;
    }
}