/* =====================================================
   SHRUTI DIDI — BIRTHDAY WEBSITE
   PREMIUM STYLES
===================================================== */


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #090611;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(255, 110, 180, 0.35);
}


/* =========================
   BACKGROUND
========================= */

.background {
    position: fixed;
    inset: 0;
    z-index: -5;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 90, 170, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(120, 80, 255, 0.12),
            transparent 30%
        ),
        #090611;
}

.glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: floatGlow 12s ease-in-out infinite;
}

.glow-1 {
    background: #ff4fa3;
    top: -250px;
    left: -150px;
}

.glow-2 {
    background: #704cff;
    right: -200px;
    top: 30%;
    animation-delay: -4s;
}

.glow-3 {
    background: #ff79c6;
    left: 30%;
    bottom: -350px;
    animation-delay: -8s;
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, -30px);
    }
}


/* =========================
   STARS
========================= */

#stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: white;
    opacity: 0.5;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.15;
        transform: scale(0.7);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.4);
    }
}


/* =========================
   LOADING SCREEN
========================= */

#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #090611;
    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

#loading-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    width: min(90%, 420px);
    text-align: center;
}

.loader-heart {
    font-size: 70px;
    line-height: 1;
    margin-bottom: 30px;
    color: #ff78bc;
    animation: heartBeat 1.4s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.loading-small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.loader-content h2 {
    font-size: 30px;
    font-weight: 500;
}

.loader-line {
    width: 160px;
    height: 2px;
    margin: 25px auto 0;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.loader-line span {
    display: block;
    width: 40%;
    height: 100%;
    background: #ff78bc;
    animation: loadingLine 1.5s ease-in-out infinite;
}

@keyframes loadingLine {

    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}


/* =========================
   LOCK SCREEN
========================= */

.screen {
    min-height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.screen.active {
    display: flex;
}

.lock-card {
    width: min(100%, 600px);
    padding: 55px 50px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(25px);
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.5),
        inset 0 1px rgba(255, 255, 255, 0.08);
    animation: cardEnter 1s ease;
}

@keyframes cardEnter {

    from {
        opacity: 0;
        transform: translateY(25px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lock-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(255, 120, 190, 0.1);
    border: 1px solid rgba(255, 120, 190, 0.25);
    font-size: 30px;
}

.eyebrow {
    color: #ff8bc5;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.lock-card h1 {
    font-size: clamp(38px, 7vw, 65px);
    line-height: 1.05;
    font-weight: 400;
    margin: 18px 0;
    letter-spacing: -2px;
}

.lock-card h1 span {
    color: #ff8bc5;
}

.lock-description {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 30px;
}

.password-box {
    display: flex;
    gap: 10px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.password-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    padding: 14px;
}

.password-box input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.password-box button {
    border: 0;
    border-radius: 11px;
    padding: 0 20px;
    background: #ff6fb5;
    color: white;
    transition: 0.3s ease;
}

.password-box button:hover {
    transform: translateY(-2px);
    background: #ff84c0;
}

.password-box button span {
    margin-left: 8px;
}

#error-message {
    display: none;
    color: #ff7d9c;
    font-size: 12px;
    margin-top: 15px;
}

#error-message.show {
    display: block;
    animation: shake 0.35s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

.hint {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}


/* =========================
   MAIN CONTENT
========================= */

#main-content {
    display: none;
}

#main-content.visible {
    display: block;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 80px 25px;
}

.hero-content {
    max-width: 1000px;
    animation: heroEnter 1.3s ease;
}

@keyframes heroEnter {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-overline {
    color: #ff8bc5;
    font-size: 11px;
    letter-spacing: 4px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: clamp(60px, 11vw, 150px);
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -7px;
}

.hero-title span {
    display: block;
    color: #ff83bd;
    background: linear-gradient(
        90deg,
        #ff78b9,
        #ffc1df,
        #ff78b9
    );
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientMove 5s linear infinite;
}

@keyframes gradientMove {
    to {
        background-position: 200%;
    }
}

.hero-subtitle {
    margin: 35px auto;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    font-size: 16px;
}

.start-button {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 15px 23px 15px 28px;
    color: white;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(15px);
    transition: 0.35s ease;
}

.start-button:hover {
    transform: translateY(-4px);
    background: #ff6fb5;
    border-color: #ff6fb5;
    box-shadow: 0 15px 50px rgba(255, 100, 180, 0.25);
}

.start-button span {
    font-size: 18px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 auto 10px;
}


/* =========================
   SECTIONS
========================= */

.section-padding {
    padding: 150px 7%;
}

.section-heading {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(40px, 6vw, 75px);
    line-height: 1;
    font-weight: 300;
    letter-spacing: -3px;
    margin: 20px 0 30px;
}

.section-heading h2 span {
    color: #ff83bd;
}

.section-heading > p:last-child {
    max-width: 600px;
    margin: auto;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.9;
}


/* =========================
   MEMORY CARDS
========================= */

.memory-grid {
    max-width: 1100px;
    margin: 70px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.memory-card {
    position: relative;
    min-height: 350px;
    padding: 35px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.4s ease;
    overflow: hidden;
}

.memory-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 120, 190, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.memory-number {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    letter-spacing: 2px;
}

.memory-icon {
    font-size: 42px;
    margin: 70px 0 25px;
}

.memory-card h3 {
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 15px;
}

.memory-card p {
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    font-size: 14px;
}


/* =========================
   GALLERY
========================= */

.gallery-preview {
    text-align: center;
}

.photo-placeholder {
    max-width: 850px;
    min-height: 350px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.025);
}

.placeholder-icon {
    font-size: 55px;
    margin-bottom: 20px;
}

.photo-placeholder h3 {
    font-weight: 400;
    font-size: 25px;
}

.photo-placeholder p {
    color: rgba(255, 255, 255, 0.4);
    margin-top: 10px;
}


/* =========================
   LETTER
========================= */

.letter {
    display: flex;
    justify-content: center;
}

.letter-card {
    max-width: 800px;
    padding: 70px;
    border-radius: 30px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.025)
        );
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.25);
}

.letter-top {
    display: flex;
    justify-content: center;
    gap: 15px;
    color: #ff83bd;
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 50px;
}

.letter-card h2 {
    font-family: Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 35px;
}

.letter-card p {
    font-family: Georgia, serif;
    color: rgba(255, 255, 255, 0.62);
    font-size: 18px;
    line-height: 2;
    margin-bottom: 22px;
}

.signature {
    margin-top: 40px;
    color: #ff83bd;
    font-family: Georgia, serif;
    font-size: 20px;
    font-style: italic;
}


/* =========================
   CAKE
========================= */

.cake-section {
    text-align: center;
}

.cake-section h2 {
    font-size: clamp(40px, 6vw, 70px);
    font-weight: 300;
    margin: 20px 0 70px;
}

.cake-section h2 span {
    color: #ff83bd;
}

.cake {
    position: relative;
    width: 280px;
    height: 240px;
    margin: auto;
}

.cake-plate {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 280px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(
        #f6d9e8,
        #c18ca8
    );
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.cake-body {
    position: absolute;
    bottom: 30px;
    left: 35px;
    width: 210px;
    height: 105px;
    border-radius: 12px 12px 25px 25px;
    background:
        linear-gradient(
            90deg,
            #7c315e,
            #d06a9d,
            #7c315e
        );
    box-shadow: inset 0 -15px rgba(0, 0, 0, 0.12);
}

.cake-top {
    position: absolute;
    bottom: 115px;
    left: 35px;
    width: 210px;
    height: 50px;
    border-radius: 50%;
    background: #f2b8d4;
    z-index: 2;
}

.candle {
    position: absolute;
    bottom: 158px;
    width: 16px;
    height: 55px;
    background: linear-gradient(
        90deg,
        #f6d4e5,
        #fff,
        #e6a8c8
    );
    border-radius: 4px;
    z-index: 5;
}

.candle-1 {
    left: 82px;
}

.candle-2 {
    left: 132px;
}

.candle-3 {
    left: 182px;
}

.flame {
    position: absolute;
    width: 14px;
    height: 22px;
    top: -22px;
    left: 1px;
    border-radius: 50% 50% 50% 0;
    background: #ffd36e;
    transform: rotate(-45deg);
    box-shadow: 0 0 20px #ffbd4a;
    animation: flame 0.8s ease-in-out infinite alternate;
}

@keyframes flame {

    from {
        transform: rotate(-45deg) scale(1);
    }

    to {
        transform: rotate(-43deg) scale(1.12);
    }
}

.cake-section .start-button {
    margin-top: 50px;
}


/* =========================
   FINAL SECTION
========================= */

.final-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 25px;
    background:
        radial-gradient(
            circle,
            rgba(255, 80, 170, 0.1),
            transparent 55%
        );
}

.final-content {
    max-width: 900px;
}

.final-content h2 {
    font-size: clamp(50px, 9vw, 120px);
    line-height: 0.95;
    font-weight: 300;
    letter-spacing: -5px;
    margin: 25px 0 35px;
}

.final-content h2 span {
    display: block;
    color: #ff83bd;
}

.final-content > p {
    max-width: 600px;
    margin: auto;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.final-heart {
    margin: 60px 0 25px;
    font-size: 70px;
    color: #ff83bd;
    animation: heartBeat 1.4s infinite;
}

.small-final {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}


/* =========================
   CONFETTI
========================= */

.confetti {
    position: fixed;
    width: 8px;
    height: 12px;
    top: -20px;
    z-index: 10000;
    pointer-events: none;
    animation: fall linear forwards;
}

@keyframes fall {

    to {
        transform:
            translateY(110vh)
            rotate(720deg);
        opacity: 0;
    }
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {

    .lock-card {
        padding: 40px 25px;
    }

    .password-box {
        flex-direction: column;
    }

    .password-box button {
        padding: 14px;
    }

    .memory-grid {
        grid-template-columns: 1fr;
    }

    .memory-card {
        min-height: 280px;
    }

    .memory-icon {
        margin-top: 45px;
    }

    .letter-card {
        padding: 40px 25px;
    }

    .letter-card h2 {
        font-size: 34px;
    }

    .letter-card p {
        font-size: 16px;
    }

    .hero-title {
        letter-spacing: -4px;
    }

    .desktop {
        display: none;
    }

    .section-padding {
        padding: 100px 6%;
    }

}

@media (max-width: 450px) {

    .lock-card h1 {
        font-size: 40px;
    }

    .hero-title {
        font-size: 57px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .cake {
        transform: scale(0.85);
    }

    .final-content h2 {
        letter-spacing: -3px;
    }

}

/* =========================================================
   EXTRA PAGES
   Gallery + Memories + Letter
   ========================================================= */


/* =========================
   COMMON BACK BUTTON
========================= */

.back-button {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 100;

    display: inline-flex;
    align-items: center;

    padding: 11px 18px;

    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;

    font-size: 13px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;

    background: rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(15px);

    transition: 0.3s ease;
}

.back-button:hover {
    color: white;
    background: #ff6fb5;
    border-color: #ff6fb5;
    transform: translateY(-2px);
}


/* =========================
   GALLERY PAGE
========================= */

.gallery-page,
.memories-page,
.letter-page {
    min-height: 100vh;
    padding-top: 120px;
}


/* Gallery Header */

.gallery-header,
.memories-header,
.letter-header {
    width: min(900px, 90%);
    margin: 0 auto;
    text-align: center;
    padding: 50px 0 80px;
}

.gallery-header h1,
.memories-header h1,
.letter-header h1 {
    margin: 20px 0 25px;

    font-size: clamp(50px, 8vw, 100px);

    line-height: 0.95;

    font-weight: 300;

    letter-spacing: -5px;
}

.gallery-header h1 span,
.memories-header h1 span,
.letter-header h1 span {
    display: block;
    color: #ff83bd;
}

.gallery-header > p:last-child,
.memories-header > p:last-child,
.letter-subtitle {
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.8;
    font-size: 15px;
}


/* =========================
   PHOTO GRID
========================= */

.photo-grid {
    width: min(1200px, 90%);
    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 25px;
}


/* Photo Card */

.photo-card {
    position: relative;

    min-height: 420px;

    overflow: hidden;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.025)
        );

    border:
        1px solid rgba(255, 255, 255, 0.08);

    transition:
        transform 0.5s ease,
        border-color 0.5s ease;

    animation: photoAppear 0.8s ease both;
}

.photo-card:nth-child(2) {
    animation-delay: 0.1s;
}

.photo-card:nth-child(3) {
    animation-delay: 0.2s;
}

.photo-card:nth-child(4) {
    animation-delay: 0.3s;
}

.photo-card:nth-child(5) {
    animation-delay: 0.4s;
}

.photo-card:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes photoAppear {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.photo-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(255, 130, 190, 0.35);
}


/* Image */

.photo-card img {
    width: 100%;
    height: 100%;

    min-height: 420px;

    display: block;

    object-fit: cover;

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}

.photo-card:hover img {
    transform: scale(1.05);

    filter:
        brightness(0.8);
}


/* Photo Overlay */

.photo-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.75),
            transparent 55%
        );

    pointer-events: none;
}


/* Photo Info */

.photo-info {
    position: absolute;

    left: 25px;
    right: 25px;
    bottom: 22px;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.photo-info span {
    color: rgba(255, 255, 255, 0.5);

    font-size: 11px;

    letter-spacing: 2px;
}

.photo-info p {
    color: white;

    font-size: 14px;
}


/* Gallery Note */

.gallery-note {
    width: min(700px, 90%);

    margin: 80px auto;

    padding: 50px 25px;

    text-align: center;

    border:
        1px dashed
        rgba(255, 255, 255, 0.12);

    border-radius: 25px;

    background:
        rgba(255, 255, 255, 0.025);
}

.gallery-note > div {
    font-size: 45px;

    margin-bottom: 15px;
}

.gallery-note h2 {
    font-size: 25px;

    font-weight: 400;
}

.gallery-note p {
    margin-top: 10px;

    color:
        rgba(255, 255, 255, 0.4);

    font-size: 14px;
}


/* =========================
   TIMELINE
========================= */

.timeline {
    position: relative;

    width: min(950px, 90%);

    margin: 20px auto 120px;

    padding: 20px 0;
}


/* Vertical line */

.timeline::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 1px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(255, 130, 190, 0.4),
            transparent
        );
}


/* Timeline Item */

.timeline-item {
    position: relative;

    width: 50%;

    padding: 30px 55px;

    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.timeline-item.show {
    opacity: 1;

    transform: translateY(0);
}


/* Left / Right */

.timeline-item:nth-child(odd) {
    left: 0;

    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;

    text-align: left;
}


/* Timeline Dot */

.timeline-dot {
    position: absolute;

    top: 30px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ff9ccc;

    font-size: 10px;

    letter-spacing: 1px;

    background: #100918;

    border:
        1px solid
        rgba(255, 130, 190, 0.4);

    box-shadow:
        0 0 25px
        rgba(255, 100, 180, 0.15);

    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -21px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -21px;
}


/* Timeline Content */

.timeline-content {
    padding: 35px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 25px;

    background:
        rgba(255, 255, 255, 0.035);

    transition:
        transform 0.4s ease,
        background 0.4s ease,
        border-color 0.4s ease;
}

.timeline-content:hover {
    transform: translateY(-6px);

    background:
        rgba(255, 255, 255, 0.055);

    border-color:
        rgba(255, 130, 190, 0.25);
}

.timeline-label {
    color: #ff83bd;

    font-size: 10px;

    letter-spacing: 3px;

    margin-bottom: 15px;
}

.timeline-content h2 {
    font-size: 28px;

    font-weight: 400;

    margin-bottom: 15px;

    letter-spacing: -1px;
}

.timeline-content > p:last-child {
    color:
        rgba(255, 255, 255, 0.45);

    font-size: 14px;

    line-height: 1.8;
}


/* Memory Ending */

.memory-ending {
    width: min(800px, 90%);

    margin: 0 auto;

    padding: 80px 0 130px;

    text-align: center;
}

.ending-line {
    width: 60px;
    height: 1px;

    margin: 0 auto 45px;

    background: #ff83bd;
}

.memory-ending h2 {
    margin: 20px 0;

    font-size:
        clamp(40px, 6vw, 70px);

    font-weight: 300;

    line-height: 1;

    letter-spacing: -3px;
}

.memory-ending h2 span {
    display: block;

    color: #ff83bd;
}

.memory-ending > p:last-child {
    color:
        rgba(255, 255, 255, 0.45);

    line-height: 1.8;
}


/* =========================
   LETTER PAGE
========================= */

.letter-header {
    padding-bottom: 50px;
}


/* Letter Card */

.letter-page .letter-card {
    width: min(850px, 90%);

    margin: 0 auto;

    padding: 70px 80px;

    position: relative;

    overflow: hidden;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    box-shadow:
        0 40px 120px
        rgba(0, 0, 0, 0.3);
}


/* Soft glow inside letter */

.letter-page .letter-card::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    top: -200px;
    right: -150px;

    border-radius: 50%;

    background: #ff5da9;

    filter: blur(120px);

    opacity: 0.12;

    pointer-events: none;
}


/* Letter Top */

.letter-page .letter-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 55px;

    color:
        rgba(255, 255, 255, 0.35);

    font-size: 11px;

    letter-spacing: 3px;
}


/* Letter Content */

.letter-content {
    position: relative;

    z-index: 2;
}

.letter-greeting {
    font-family: Georgia, serif;

    font-size: 38px !important;

    color: white !important;

    margin-bottom: 35px !important;
}

.letter-content p {
    font-family: Georgia, serif;

    font-size: 18px;

    line-height: 2;

    color:
        rgba(255, 255, 255, 0.62);

    margin-bottom: 25px;
}


/* Highlight */

.letter-content .highlight-text {
    margin: 45px 0;

    padding: 25px;

    border-left:
        2px solid #ff83bd;

    background:
        rgba(255, 130, 190, 0.045);

    color:
        rgba(255, 255, 255, 0.8);
}


/* Birthday Ending */

.letter-content .letter-ending {
    color: #ff9dcc;

    font-size: 28px;

    margin-top: 45px;
}


/* Signature */

.letter-content .signature {
    margin-top: 55px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    font-family: Georgia, serif;
}

.letter-content .signature span {
    color:
        rgba(255, 255, 255, 0.4);

    font-size: 15px;
}

.letter-content .signature strong {
    color: #ff83bd;

    font-size: 20px;

    font-weight: 400;

    font-style: italic;
}


/* =========================
   LETTER FOOTER
========================= */

.letter-footer {
    width: min(850px, 90%);

    margin: 0 auto;

    padding: 140px 0;

    text-align: center;
}

.letter-footer .heart {
    font-size: 65px;

    color: #ff83bd;

    animation:
        heartBeat 1.5s ease-in-out infinite;

    margin-bottom: 25px;
}

.letter-footer h2 {
    font-size:
        clamp(40px, 6vw, 75px);

    line-height: 1;

    font-weight: 300;

    letter-spacing: -3px;
}

.letter-footer h2 span {
    display: block;

    color: #ff83bd;
}

.letter-footer > p {
    max-width: 600px;

    margin: 30px auto 0;

    color:
        rgba(255, 255, 255, 0.4);

    line-height: 1.8;
}

.letter-footer .birthday-date {
    color: #ff83bd;

    letter-spacing: 3px;

    font-size: 12px;

    text-transform: uppercase;
}


/* =========================
   FOOTER
========================= */

.gallery-footer {
    width: 100%;

    padding: 35px 20px 50px;

    text-align: center;

    color:
        rgba(255, 255, 255, 0.3);

    font-size: 11px;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.gallery-footer span {
    color: #ff83bd;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .back-button {
        top: 15px;
        left: 15px;

        font-size: 12px;

        padding: 9px 14px;
    }


    .gallery-page,
    .memories-page,
    .letter-page {
        padding-top: 90px;
    }


    .gallery-header,
    .memories-header,
    .letter-header {
        padding:
            40px 0 55px;
    }


    .gallery-header h1,
    .memories-header h1,
    .letter-header h1 {
        font-size: 52px;

        letter-spacing: -3px;
    }


    /* Gallery */

    .photo-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .photo-card {
        min-height: 360px;
    }

    .photo-card img {
        min-height: 360px;
    }


    /* Timeline */

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;

        left: 0;

        text-align: left;

        padding:
            20px 0 20px 55px;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: -1px;

        right: auto;
    }

    .timeline-content {
        padding: 25px;
    }

    .timeline-content h2 {
        font-size: 24px;
    }


    /* Letter */

    .letter-page .letter-card {
        padding: 40px 25px;
    }

    .letter-content p {
        font-size: 16px;

        line-height: 1.9;
    }

    .letter-greeting {
        font-size: 32px !important;
    }

    .letter-content .letter-ending {
        font-size: 24px;
    }


    .letter-footer {
        padding: 100px 0;
    }

}

/* =========================================================
   BIRTHDAY WISH ANIMATION
========================================================= */


/* =========================
   CANDLE FLAME
========================= */

.flame {
    transition:
        opacity 0.4s ease,
        transform 0.5s ease;
}

.flame.blown-out {
    opacity: 0;

    transform:
        translateY(-25px)
        scale(0.2);
}


/* =========================
   WISH BUTTON
========================= */

#wish-button {
    position: relative;

    z-index: 10;

    cursor: pointer;
}

#wish-button:disabled {
    cursor: default;

    opacity: 0.9;

    transform: scale(0.98);
}


/* =========================
   WISH MESSAGE
========================= */

.wish-message {
    width: min(500px, 90%);

    margin: 35px auto 0;

    padding: 30px 25px;

    text-align: center;

    border-radius: 25px;

    border:
        1px solid
        rgba(255, 130, 190, 0.2);

    background:
        rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(15px);

    animation:
        wishMessageIn
        0.8s ease both;
}

@keyframes wishMessageIn {

    from {
        opacity: 0;

        transform:
            translateY(20px)
            scale(0.95);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}

.wish-message-heart {
    font-size: 42px;

    margin-bottom: 10px;

    animation:
        wishHeart
        1.2s ease-in-out infinite;
}

@keyframes wishHeart {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

}

.wish-message h3 {
    margin: 0 0 8px;

    font-size: 22px;

    font-weight: 400;
}

.wish-message p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 14px;
}


/* =========================
   CONFETTI
========================= */

#confetti-container {
    position: fixed;

    inset: 0;

    z-index: 9999;

    pointer-events: none;

    overflow: hidden;
}

.confetti-piece {
    position: absolute;

    top: -30px;

    width: 9px;
    height: 15px;

    border-radius: 2px;

    background: #ff83bd;

    animation:
        confettiFall
        4s
        ease-in
        forwards;
}

.confetti-piece:nth-child(3n) {
    background: #ffd166;
}

.confetti-piece:nth-child(3n + 1) {
    background: #8be9fd;
}

.confetti-piece:nth-child(3n + 2) {
    background: #c8a2ff;
}

.confetti-round {
    width: 10px;
    height: 10px;

    border-radius: 50%;
}

@keyframes confettiFall {

    0% {
        transform:
            translateY(0)
            rotate(0deg);

        opacity: 1;
    }

    100% {
        transform:
            translateY(110vh)
            rotate(720deg);

        opacity: 0;
    }

}


/* =========================
   FLOATING HEARTS
========================= */

.floating-heart {
    position: fixed;

    bottom: -30px;

    z-index: 9998;

    pointer-events: none;

    color: #ff83bd;

    font-size: 20px;

    animation:
        heartFloat
        4s
        ease-out
        forwards;

    text-shadow:
        0 0 15px
        rgba(255, 130, 190, 0.5);
}

@keyframes heartFloat {

    0% {
        opacity: 0;

        transform:
            translateY(0)
            scale(0.5)
            rotate(0deg);
    }

    15% {
        opacity: 1;
    }

    100% {
        opacity: 0;

        transform:
            translateY(-110vh)
            scale(1.2)
            rotate(25deg);
    }

}

/* =========================
   MUSIC PLAYER
========================= */

.music-player {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
}

#music-toggle {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(35, 15, 55, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: #fff;

    padding: 12px 18px;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(220, 120, 255, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

#music-toggle:hover {
    transform: translateY(-3px);

    background: rgba(70, 25, 90, 0.85);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(220, 120, 255, 0.35);
}

#music-toggle.playing {
    box-shadow:
        0 0 25px rgba(255, 130, 230, 0.4),
        0 0 50px rgba(180, 100, 255, 0.15);
}

@media (max-width: 600px) {

    .music-player {
        right: 12px;
        bottom: 12px;
    }

    #music-toggle {
        padding: 10px 14px;
        font-size: 13px;
    }

}