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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #4a342b;
    background: #f6eee2;
    overflow-x: hidden;
}


/* =========================
   BACKGROUND
========================= */

.background-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -5;

    background:
        radial-gradient(circle at 20% 20%,
            rgba(255, 214, 157, 0.35),
            transparent 30%),
        radial-gradient(circle at 80% 70%,
            rgba(224, 165, 129, 0.25),
            transparent 30%);
}


/* =========================
   FALLING LEAVES
========================= */

#leaves,
#hearts,
#sparkles,
#final-hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

.leaf {
    position: absolute;
    top: -60px;

    font-size: 20px;

    animation:
        fall linear infinite,
        leafSwing ease-in-out infinite alternate;
}

@keyframes fall {
    from {
        transform: translateY(-60px) rotate(0deg);
    }

    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

@keyframes leafSwing {
    from {
        margin-left: -40px;
    }

    to {
        margin-left: 40px;
    }
}


/* =========================
   FLOATING HEARTS
========================= */

.floating-heart {
    position: absolute;
    bottom: -50px;

    color: rgba(180, 85, 92, 0.65);

    animation:
        heartFloat linear forwards;
}

@keyframes heartFloat {

    0% {
        transform: translateY(0) scale(0.7);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-110vh) scale(1.3) rotate(15deg);
        opacity: 0;
    }
}


/* =========================
   SPARKLES
========================= */

.sparkle {
    position: absolute;

    width: 4px;
    height: 4px;

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

    border-radius: 50%;

    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}


/* =========================
   COMMON
========================= */

section {
    position: relative;
    min-height: 100vh;
    padding: 100px 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.section-inner {
    width: min(1100px, 100%);
    text-align: center;
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 18px;
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
}

h2 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
}

h2 span {
    display: block;
    font-style: italic;
    font-weight: 500;
}

.section-description {
    max-width: 600px;
    margin: 25px auto 60px;
    line-height: 1.8;
    opacity: 0.75;
}


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

.hero {
    min-height: 100vh;

    background:
        linear-gradient(rgba(67, 48, 38, 0.15),
            rgba(67, 48, 38, 0.2)),
        radial-gradient(circle at 50% 35%,
            #f7dcae,
            #d59b71 70%,
            #785746);

    color: #fff;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 50% 40%,
            rgba(255, 255, 255, 0.35),
            transparent 25%);
}

.hero-content {
    position: relative;
    z-index: 3;

    max-width: 800px;
    text-align: center;

    animation: heroAppear 1.8s ease forwards;
}

@keyframes heroAppear {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.small-title {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.heart-logo {
    font-size: 90px;
    line-height: 1;

    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

.hero h1 {
    font-size: clamp(4rem, 11vw, 8rem);
    line-height: 0.85;
    font-weight: 500;
}

.hero h1 span {
    display: block;
    font-size: 0.48em;
    margin-top: 25px;
    font-style: italic;
}

.hero-text {
    max-width: 600px;
    margin: 35px auto;

    line-height: 1.8;
    font-weight: 300;
}

.surprise-btn {
    border: 1px solid rgba(255, 255, 255, 0.7);

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

    color: white;

    padding: 15px 27px;

    border-radius: 50px;

    font-family: inherit;

    cursor: pointer;

    backdrop-filter: blur(10px);

    transition: 0.4s;
}

.surprise-btn:hover {
    background: white;
    color: #704b3d;

    transform: translateY(-5px);
}

.surprise-btn span {
    margin-left: 10px;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;

    left: 50%;
    transform: translateX(-50%);

    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;

    opacity: 0.8;
}

.arrow {
    margin-top: 10px;
    animation: arrowMove 1.5s infinite;
}

@keyframes arrowMove {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}


/* =========================
   BIRTHDAY
========================= */

.birthday {
    background:
        radial-gradient(circle at center,
            #fff4dc,
            #eed6b8 70%,
            #d6ae8c);

    overflow: hidden;
}

.flower-decoration {
    font-size: 60px;

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

@keyframes flowerFloat {

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

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.birthday h2 {
    margin-bottom: 45px;
}

.birthday-message {
    max-width: 650px;
    margin: 45px auto 0;

    line-height: 1.9;
    opacity: 0.8;
}


/* =========================
   CAKE
========================= */

.cake {
    position: relative;

    width: 190px;
    height: 170px;

    margin: auto;
}

.cake-top {
    position: absolute;

    width: 160px;
    height: 30px;

    left: 15px;
    top: 45px;

    background: #f1c6a6;

    border-radius: 50%;
}

.cake-body {
    position: absolute;

    left: 20px;
    top: 58px;

    width: 150px;
    height: 70px;

    background: #d78f78;

    border-radius: 0 0 15px 15px;
}

.cake-bottom {
    position: absolute;

    left: 10px;
    top: 120px;

    width: 170px;
    height: 25px;

    background: #9c5f55;

    border-radius: 50%;
}

.cake-decoration {
    display: inline-block;

    width: 14px;
    height: 14px;

    margin: 22px 7px;

    border-radius: 50%;

    background: #fff0dc;
}

.candle {
    position: absolute;

    z-index: 3;

    left: 86px;
    top: 5px;

    width: 18px;
    height: 45px;

    background: #f9e0b9;

    border-radius: 5px;
}

.flame {
    position: absolute;

    width: 15px;
    height: 22px;

    left: 2px;
    top: -20px;

    background: #ffb347;

    border-radius: 50% 50% 50% 0;

    transform: rotate(-45deg);

    animation: flame 0.7s infinite alternate;
}

@keyframes flame {

    from {
        transform: rotate(-45deg) scale(0.9);
    }

    to {
        transform: rotate(-45deg) scale(1.1);
    }
}


/* =========================
   PHOTOS
========================= */

.photos {
    background:
        linear-gradient(135deg,
            #e9d5bd,
            #f9f0df);
}

.photo-grid {
    display: grid;

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

    gap: 40px;

    max-width: 900px;

    margin: auto;
}

.photo-card {
    padding: 15px;

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

    border-radius: 8px;

    box-shadow:
        0 20px 50px rgba(87, 58, 42, 0.12);

    transition: 0.5s;

    opacity: 0;
    transform: translateY(60px) rotate(-2deg);
}

.photo-card:nth-child(even) {
    transform: translateY(60px) rotate(2deg);
}

.photo-card.show {
    opacity: 1;

    transform:
        translateY(0) rotate(0);
}

.photo-card:hover {
    transform:
        translateY(-10px) rotate(1deg) scale(1.02);
}

.photo-frame {
    overflow: hidden;

    aspect-ratio: 4 / 5;

    background: #e4d4c2;
}

.photo-frame img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: 0.8s;
}

.photo-card:hover img {
    transform: scale(1.06);
}

.photo-caption {
    padding: 18px 5px 8px;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.5rem;

    font-style: italic;
}


/* =========================
   LETTER
========================= */

.letter-section {
    background:
        radial-gradient(circle at 20% 20%,
            #fff7e9,
            transparent 25%),
        #d9c0a3;
}

.letter-wrapper {
    width: min(850px, 100%);
}

.letter-card {
    position: relative;

    padding: 80px 70px;

    background:
        linear-gradient(rgba(255, 255, 255, 0.94),
            rgba(249, 239, 219, 0.96));

    box-shadow:
        0 30px 70px rgba(70, 45, 30, 0.18);

    transform: rotate(-1deg);

    border-radius: 4px;
}

.letter-card::before {
    content: "";

    position: absolute;

    inset: 15px;

    border: 1px solid rgba(120, 80, 50, 0.2);

    pointer-events: none;
}

.letter-flower {
    font-size: 50px;

    margin-bottom: 20px;
}

.letter-card h2 {
    font-size: clamp(3rem, 6vw, 5rem);
}

.letter-line {
    width: 80px;
    height: 1px;

    background: #a47a5b;

    margin: 30px auto;
}

.letter-text {
    max-width: 650px;

    margin: auto;

    text-align: left;

    line-height: 2;

    font-family: "Cormorant Garamond", serif;

    font-size: 1.35rem;
}

.letter-text p {
    margin-bottom: 25px;
}

.signature {
    text-align: right;
    font-style: italic;
}

.signature span {
    font-size: 1rem;
}


/* =========================
   SPECIAL
========================= */

.special {
    background: #f3e4d0;
}

.special-grid {
    display: grid;

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

    gap: 20px;

    margin-top: 70px;
}

.special-card {
    padding: 35px 20px;

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

    border-radius: 20px;

    border: 1px solid rgba(130, 90, 60, 0.12);

    transition: 0.4s;

    opacity: 0;
    transform: translateY(40px);
}

.special-card.show {
    opacity: 1;
    transform: translateY(0);
}

.special-card:hover {
    transform: translateY(-10px);
}

.special-icon {
    font-size: 40px;

    margin-bottom: 20px;
}

.special-card h3 {
    font-size: 1.8rem;

    margin-bottom: 15px;
}

.special-card p {
    font-size: 0.9rem;

    line-height: 1.8;

    opacity: 0.7;
}


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

.final-section {
    overflow: hidden;

    color: #fff;

    background:
        radial-gradient(circle at 50% 30%,
            #9c7767,
            #4a3740 65%,
            #211f2a);
}

.final-section::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(255, 220, 170, 0.22),
            transparent 65%);

    top: 10%;
    left: 50%;

    transform: translateX(-50%);
}

.moon {
    position: absolute;

    top: 80px;
    right: 12%;

    width: 90px;
    height: 90px;

    background: #fff0c8;

    border-radius: 50%;

    box-shadow:
        0 0 60px rgba(255, 240, 200, 0.3);
}

.final-content {
    position: relative;

    z-index: 5;

    max-width: 800px;

    text-align: center;
}

.final-heart {
    font-size: 80px;

    animation: heartbeat 1.8s infinite;

    text-shadow:
        0 0 30px rgba(255, 180, 190, 0.5);
}

.final-section h2 {
    margin-top: 25px;
}

.final-message {
    max-width: 600px;

    margin: 40px auto 20px;

    line-height: 2;

    opacity: 0.85;
}

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

    font-size: 1.7rem;

    font-style: italic;
}

.heart-button {
    margin-top: 35px;

    padding: 13px 25px;

    border-radius: 50px;

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

    color: white;

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

    cursor: pointer;

    font-family: inherit;

    transition: 0.4s;
}

.heart-button:hover {
    background: rgba(255, 255, 255, 0.2);

    transform: scale(1.05);
}


/* =========================
   HEART EXPLOSION
========================= */

.explosion-heart {
    position: absolute;

    left: 50%;
    top: 50%;

    font-size: 25px;

    animation: explosion 1.6s ease-out forwards;
}

@keyframes explosion {

    from {
        transform:
            translate(-50%, -50%) scale(0.5);

        opacity: 1;
    }

    to {
        transform:
            translate(calc(-50% + var(--x)),
                calc(-50% + var(--y))) scale(1.4);

        opacity: 0;
    }
}


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

footer {
    padding: 25px;

    text-align: center;

    background: #211f2a;

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

    font-size: 0.8rem;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {

    section {
        padding: 80px 18px;
    }

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

        max-width: 500px;
    }

    .special-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .letter-card {
        padding: 60px 30px;
    }

    .moon {
        right: 5%;
        top: 50px;

        width: 60px;
        height: 60px;
    }
}


@media (max-width: 500px) {

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

    .hero h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3.5rem;
    }

    .letter-text {
        font-size: 1.15rem;
    }
}


/* =========================
   FLOATING ROMANTIC MUSIC PLAYER
========================= */

.music-player {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 8px 14px 8px 10px;
    border-radius: 50px;

    background: rgba(255, 248, 240, 0.85);
    border: 1px solid rgba(212, 129, 102, 0.35);
    box-shadow: 
        0 10px 30px rgba(100, 60, 40, 0.16),
        0 2px 10px rgba(255, 255, 255, 0.6) inset;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    cursor: pointer;
    user-select: none;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.music-player:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 250, 245, 0.95);
    border-color: rgba(180, 85, 92, 0.55);
    box-shadow: 
        0 14px 35px rgba(100, 60, 40, 0.22),
        0 2px 12px rgba(255, 255, 255, 0.8) inset;
}

/* Floating Prompt */
.music-prompt {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 6px;
    white-space: nowrap;

    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #b4555c, #d48166);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(180, 85, 92, 0.35);

    animation: promptFloat 2.5s ease-in-out infinite;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.music-prompt::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 22px;
    border-width: 6px;
    border-style: solid;
    border-color: #d48166 transparent transparent transparent;
}

.music-prompt.hidden {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}

@keyframes promptFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Vinyl Disc */
.music-disc-wrap {
    position: relative;
    width: 40px;
    height: 40px;
}

.music-disc {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at center, #d48166 0%, #b4555c 30%, #2a201c 32%, #181210 65%, #3a2e28 95%);
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;

    animation: discRotate 5s linear infinite;
    animation-play-state: paused;
    transition: transform 0.3s ease;
}

.music-player.playing .music-disc {
    animation-play-state: running;
}

.disc-heart {
    font-size: 11px;
    color: #fff;
    line-height: 1;
    transform: translateY(-0.5px);
}

@keyframes discRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Song Info */
.music-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.music-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #4a342b;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.music-artist {
    font-size: 0.72rem;
    color: #8c6052;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

/* Sound Wave Equalizer */
.music-waves {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
    padding: 0 4px;
}

.wave-bar {
    width: 3px;
    height: 100%;
    background: linear-gradient(to top, #b4555c, #e0a581);
    border-radius: 3px;
    transform: scaleY(0.2);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.music-player.playing .wave-bar:nth-child(1) {
    animation: bounceBar 0.9s ease-in-out infinite alternate;
}

.music-player.playing .wave-bar:nth-child(2) {
    animation: bounceBar 0.65s ease-in-out infinite alternate 0.15s;
}

.music-player.playing .wave-bar:nth-child(3) {
    animation: bounceBar 0.8s ease-in-out infinite alternate 0.3s;
}

.music-player.playing .wave-bar:nth-child(4) {
    animation: bounceBar 0.7s ease-in-out infinite alternate 0.45s;
}

@keyframes bounceBar {
    0% {
        transform: scaleY(0.2);
    }
    100% {
        transform: scaleY(1);
    }
}

/* Toggle Button */
.music-control-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #b4555c, #d48166);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(180, 85, 92, 0.35);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.music-control-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(180, 85, 92, 0.45);
}

.play-icon {
    font-size: 11px;
    margin-left: 2px;
}

.pause-icon {
    font-size: 11px;
    letter-spacing: -1px;
}

/* Mobile responsive adjustments */
@media (max-width: 500px) {
    .music-player {
        bottom: 16px;
        right: 16px;
        padding: 6px 12px 6px 8px;
        gap: 9px;
    }

    .music-title {
        font-size: 0.82rem;
    }

    .music-artist {
        font-size: 0.68rem;
    }

    .music-prompt {
        font-size: 0.72rem;
        padding: 5px 11px;
    }
}