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

html {
    scroll-behavior: smooth;
}

body {
    background: #fff8f3;
    color: #4a2925;
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}

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

.background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}

.orb.one {
    background: #ffb6a3;
    top: -100px;
    left: -100px;
}

.orb.two {
    background: #ffd59e;
    right: -120px;
    top: 35%;
}

.orb.three {
    background: #eab7ff;
    bottom: -120px;
    left: 20%;
}

/* =========================
           PETALS
        ========================= */

.petal {
    position: fixed;
    top: -40px;
    width: 12px;
    height: 18px;
    background: #f3a6a6;
    border-radius: 100% 0 100% 0;
    opacity: 0.65;
    pointer-events: none;
    z-index: 20;
    animation: fall linear infinite;
}

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

    100% {
        transform: translateY(110vh) rotate(720deg);
    }
}

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

.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 850px;
    animation: heroIn 1.5s ease forwards;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.eyebrow {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #a65d54;
    margin-bottom: 25px;
}

.hero h1 {
    font-family: "Great Vibes", cursive;
    font-size: clamp(65px, 12vw, 130px);
    font-weight: 400;
    line-height: 0.9;
    color: #8e3939;
}

.hero h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(28px, 5vw, 50px);
    margin-top: 25px;
    font-weight: 500;
}

.hero p {
    margin: 25px auto;
    max-width: 600px;
    font-size: 17px;
    line-height: 1.8;
    color: #765d58;
}

.heart {
    display: inline-block;
    animation: heartbeat 1.6s infinite;
}

@keyframes heartbeat {

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

    15% {
        transform: scale(1.2);
    }

    30% {
        transform: scale(1);
    }
}

.scroll-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: #8e3939;
    color: white;
    padding: 15px 25px;
    border-radius: 100px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 12px 30px rgba(142, 57, 57, 0.25);
    transition: 0.3s;
}

.scroll-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(142, 57, 57, 0.3);
}

/* =========================
           GENERAL SECTIONS
        ========================= */

section {
    min-height: 100vh;
    padding: 100px 25px;
    position: relative;
    z-index: 1;
}

.section-inner {
    max-width: 1000px;
    margin: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title small {
    color: #a65d54;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
}

.section-title h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(40px, 7vw, 65px);
    font-weight: 600;
    margin-top: 10px;
}

/* =========================
           RAKHI
        ========================= */

#rakhi {
    display: flex;
    align-items: center;
}

.rakhi-container {
    text-align: center;
    width: 100%;
}

.rakhi-box {
    width: min(330px, 85vw);
    height: 330px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.thread {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg,
            transparent,
            #b86b42,
            #f1c27d,
            #b86b42,
            transparent);
    position: absolute;
    top: 50%;
}

.rakhi-center {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle,
            #fff4b0 0%,
            #eab85d 35%,
            #a84d38 70%);
    border: 8px solid #8d3b2e;
    box-shadow:
        0 0 0 10px rgba(168, 77, 56, 0.12),
        0 20px 50px rgba(130, 60, 40, 0.25);
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    animation: rakhiGlow 2s infinite alternate;
}

@keyframes rakhiGlow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.07);
    }
}

.rakhi-center::before,
.rakhi-center::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: #e9b65a;
    transform: rotate(45deg);
}

.rakhi-center::before {
    top: -20px;
}

.rakhi-center::after {
    bottom: -20px;
}

.rakhi-message {
    margin-top: 50px;
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
}

.distance {
    margin-top: 15px;
    color: #856d67;
    font-size: 15px;
}

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

#letter {
    display: flex;
    align-items: center;
}

.letter {
    background: #fffdf8;
    max-width: 750px;
    margin: auto;
    padding: clamp(30px, 7vw, 70px);
    border-radius: 8px;
    box-shadow: 0 25px 70px rgba(86, 46, 37, 0.1);
    position: relative;
}

.letter::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(142, 57, 57, 0.15);
    pointer-events: none;
}

.letter-top {
    text-align: center;
    font-family: "Great Vibes", cursive;
    color: #9a4b43;
    font-size: 40px;
    margin-bottom: 35px;
}

.letter p {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    line-height: 1.8;
    margin-bottom: 22px;
}

.signature {
    font-family: "Great Vibes", cursive;
    font-size: 42px;
    color: #8e3939;
    text-align: right;
    margin-top: 35px;
}

/* =========================
           PROMISES
        ========================= */

#promises {
    background: rgba(255, 240, 234, 0.45);
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 850px;
    margin: auto;
}

.promise {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(142, 57, 57, 0.1);
    border-radius: 20px;
    padding: 30px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transition: 0.35s;
}

.promise:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(100, 45, 35, 0.1);
}

.promise-icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.promise h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    margin-bottom: 8px;
}

.promise p {
    color: #826c66;
    line-height: 1.6;
    font-size: 14px;
}

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

.memories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.memory {
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #eadbd5;
}

.memory img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.memory:hover img {
    transform: scale(1.08);
}

.memory-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px 15px 15px;
    color: white;
    background: linear-gradient(transparent,
            rgba(0, 0, 0, 0.65));
    font-size: 14px;
}

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

#final {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background:
        radial-gradient(circle at center,
            rgba(255, 218, 197, 0.7),
            transparent 60%);
}

.final-content {
    max-width: 800px;
}

.final-content .big-heart {
    font-size: 80px;
    animation: heartbeat 1.5s infinite;
}

.final-content h2 {
    font-family: "Great Vibes", cursive;
    font-size: clamp(55px, 10vw, 100px);
    color: #8e3939;
    font-weight: 400;
}

.final-content h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(28px, 5vw, 45px);
    font-weight: 500;
    margin-top: 15px;
}

.final-content p {
    max-width: 600px;
    margin: 25px auto;
    line-height: 1.8;
    color: #755f59;
}

.final-line {
    width: 80px;
    height: 1px;
    background: #a65d54;
    margin: 35px auto;
}

.tiny {
    font-size: 13px;
    color: #9a8580;
}

/* =========================
           MUSIC BUTTON
        ========================= */

.music-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #8e3939;
    color: white;
    font-size: 19px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* =========================
           FADE-IN
        ========================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 700px) {

    section {
        padding: 80px 18px;
    }

    .hero {
        min-height: 100svh;
    }

    .hero p {
        font-size: 15px;
    }

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

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

    .letter p {
        font-size: 19px;
    }

    .letter {
        padding: 35px 25px;
    }

    .rakhi-box {
        height: 250px;
    }
}

@media (max-width: 400px) {
    .memories {
        grid-template-columns: 1fr;
    }
}