/* =========================================
   EK DOORDARSHI - STYLE.CSS (ORIGINAL + NEW)
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Noto+Serif+Devanagari:wght@400;500;600;700&display=swap');

:root {
    --bg: #080405;
    --bg2: #14080b;
    --card: rgba(255, 255, 255, .05);
    --glass: rgba(255, 255, 255, .07);
    --border: rgba(255, 255, 255, .12);
    --primary: #6d1f2c;
    --primary-light: #9d3046;
    --primary-dark: #3b0c17;
    --text: #f8f3f1;
    --muted: #d4c9c6;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(180deg, #14070b 0%, #0d0507 45%, #070304 100%);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    animation: fadeUp .8s ease;
}

/*==========================================
          SOFT BACKGROUND LIGHT
==========================================*/

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -10;
    background:
        radial-gradient(circle at 85% 18%, rgba(255, 255, 255, .025), transparent 18%),
        radial-gradient(circle at 15% 75%, rgba(125, 35, 55, .08), transparent 40%),
        radial-gradient(circle at center, rgba(255, 255, 255, .015), transparent 60%);
}

/* =====================
   SCROLLBAR
===================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #12070a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), #b13d57);
    border-radius: 20px;
}

/* =====================
   PROGRESS BAR
===================== */

#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, #8f263d, #d04f70);
    z-index: 9999;
}

/* =====================
   STARS
===================== */

.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -5;
    opacity: .55;
    background:
        radial-gradient(circle at 8% 12%, #fff 1px, transparent 2px),
        radial-gradient(circle at 18% 72%, #fff 1.5px, transparent 2px),
        radial-gradient(circle at 28% 32%, #fff 1px, transparent 2px),
        radial-gradient(circle at 40% 84%, #fff 2px, transparent 3px),
        radial-gradient(circle at 55% 18%, #fff 1px, transparent 2px),
        radial-gradient(circle at 63% 64%, #fff 1.5px, transparent 2px),
        radial-gradient(circle at 75% 30%, #fff 2px, transparent 3px),
        radial-gradient(circle at 88% 82%, #fff 1px, transparent 2px),
        radial-gradient(circle at 94% 15%, #fff 1px, transparent 2px);
    animation: starGlow 7s ease-in-out infinite alternate;
}

@keyframes starGlow {
    from { opacity: .35; }
    to { opacity: .8; }
}

/* =====================
   SHOOTING STAR
===================== */

body::after {
    content: "";
    position: fixed;
    width: 180px;
    height: 2px;
    background: linear-gradient(90deg, #fff, transparent);
    top: 15%;
    left: -20%;
    transform: rotate(-25deg);
    animation: shoot 9s linear infinite;
    opacity: .7;
    z-index: -3;
}

@keyframes shoot {
    0% {
        left: -20%;
        top: 15%;
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    18% {
        left: 120%;
        top: 45%;
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* =====================
   MOON
===================== */

.moon {
    position: fixed;
    top: 60px;
    right: 60px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle at 28% 25%,
        #ffffff 0%,
        #f3f3f3 25%,
        #e3e3e3 55%,
        #cfcfcf 78%,
        #b7b7b7 100%);
    box-shadow:
        0 0 40px rgba(255, 255, 255, .35),
        0 0 120px rgba(120, 25, 45, .20);
    overflow: hidden;
    z-index: -2;
    animation: moonFloat 8s ease-in-out infinite;
}

.moon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 35%, rgba(160, 160, 160, .18) 0 10px, transparent 11px),
        radial-gradient(circle at 70% 45%, rgba(170, 170, 170, .15) 0 18px, transparent 19px),
        radial-gradient(circle at 45% 70%, rgba(170, 170, 170, .12) 0 12px, transparent 13px),
        radial-gradient(circle at 62% 20%, rgba(170, 170, 170, .10) 0 8px, transparent 9px);
}

.moon::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(170, 170, 170, .25);
    top: 55px;
    left: 70px;
    box-shadow:
        70px 40px 0 rgba(170, 170, 170, .18),
        40px 130px 0 rgba(170, 170, 170, .16),
        120px 110px 0 rgba(170, 170, 170, .20);
}

@keyframes moonFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* =====================
   NAVBAR
===================== */

nav {
    position: sticky;
    top: 20px;
    width: 92%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 35px;
    background: rgba(12, 6, 8, .42);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 60px;
    box-shadow:
        0 10px 35px rgba(0, 0, 0, .35),
        0 0 30px rgba(255, 255, 255, .02);
    z-index: 1000;
}

.logo {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 32px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 35px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: #ddd;
    font-size: 18px;
    transition: .35s;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #b83f59;
    transition: .35s;
}

nav a:hover {
    color: white;
}

nav a:hover::after {
    width: 100%;
}

/* =====================
   HERO SECTION
===================== */

header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 90px;
    position: relative;
    z-index: 2;
}

header small {
    letter-spacing: 8px;
    font-size: 14px;
    color: #b89ea4;
    text-transform: uppercase;
    margin-bottom: 28px;
    opacity: .85;
}

header h1 {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: clamp(90px, 11vw, 150px);
    font-weight: 700;
    line-height: .95;
    letter-spacing: 1px;
    margin-bottom: 35px;
    color: #faf8f5;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, .35),
        0 0 18px rgba(255, 255, 255, .06);
}

.hero-text {
    max-width: 620px;
    margin: 0 auto 65px;
    font-size: 24px;
    line-height: 2;
    color: #cfc6c4;
    font-weight: 300;
}

/* =========================
   PREMIUM BUTTONS
========================= */

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 55px;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 42px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f7f3ef;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    overflow: hidden;
    cursor: pointer;
    transition:
        transform .45s ease,
        box-shadow .45s ease,
        border-color .45s ease,
        background .45s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .15),
        0 15px 40px rgba(0, 0, 0, .35);
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .25), transparent);
    transition: left .8s ease;
}

.btn:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(255, 255, 255, .35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .22),
        0 20px 55px rgba(183, 54, 86, .28),
        0 0 50px rgba(255, 255, 255, .05);
}

.btn:hover::before {
    left: 160%;
}

.btn.secondary {
    background: rgba(255, 255, 255, .02);
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, .25);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .45);
    transform: translateY(-6px) scale(1.03);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .4);
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(12px); }
}

/* =====================
   GENERAL SECTIONS
===================== */

section {
    width: 90%;
    max-width: 1200px;
    margin: 120px auto;
}

section h2 {
    font-size: 54px;
    font-family: 'Noto Serif Devanagari', serif;
    text-align: center;
    margin-bottom: 25px;
    color: #fff;
}

section>.subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 22px;
    color: #d2c5c5;
    line-height: 1.8;
}

/* =====================
   SEARCH BOX
===================== */

.search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.search-box input {
    width: 500px;
    max-width: 95%;
    padding: 18px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(12px);
    color: white;
    font-size: 18px;
    outline: none;
    transition: .35s;
}

.search-box input::placeholder {
    color: #999;
}

.search-box input:focus {
    border-color: #a5354e;
    box-shadow: 0 0 30px rgba(165, 53, 78, .25);
}

/* =====================
   CATEGORY BUTTONS
===================== */

.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.categories button {
    padding: 12px 24px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    background: rgba(255, 255, 255, .05);
    color: #ddd;
    transition: .35s;
}

.categories button:hover,
.categories .active {
    background: linear-gradient(135deg, #7c2235, #b83f59);
    color: white;
    transform: translateY(-3px);
}

/* =====================
   POEM CARDS
===================== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.card {
    position: relative;
    padding: 42px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025));
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .07);
    overflow: hidden;
    transition: all .45s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(150, 35, 60, .18);
    transition: .45s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(180, 70, 95, .35);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, .45),
        0 0 30px rgba(180, 70, 95, .08);
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(150, 45, 70, .18);
    border: 1px solid rgba(180, 70, 95, .20);
    color: #f6f2ef;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.card h3 {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 36px;
    font-weight: 600;
    color: #f9f6f2;
    margin-bottom: 18px;
}

.card p {
    font-size: 20px;
    line-height: 1.8;
    color: #d8d1d1;
    margin-bottom: 20px;
}

.card a {
    text-decoration: none;
    color: #d4667d;
    font-weight: 600;
}

.card a:hover {
    color: white;
}

/* =====================
   ABOUT SECTION
===================== */

#about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-content h2 {
    text-align: left;
}

.about-content p {
    font-size: 22px;
    line-height: 2;
    color: #d3c8c8;
    margin-bottom: 25px;
}

.about-quote {
    padding: 35px;
    border-left: 5px solid #8b2339;
    background: rgba(255, 255, 255, .04);
    border-radius: 20px;
    font-size: 28px;
    font-style: italic;
    line-height: 1.8;
}

/* =====================
   INSTAGRAM SECTION
===================== */

.instagram-box {
    padding: 60px;
    border-radius: 35px;
    text-align: center;
    background: linear-gradient(145deg, #23090f, #130608);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .45);
}

.instagram-box i {
    font-size: 80px;
    margin-bottom: 25px;
    color: #d44763;
}

.instagram-box h3 {
    font-size: 40px;
    margin-bottom: 20px;
}

.instagram-box p {
    font-size: 22px;
    line-height: 1.8;
    color: #d4c9c9;
    margin-bottom: 35px;
}

/* =====================
   CONTACT SECTION
===================== */

#contact {
    text-align: center;
}

#contact p {
    max-width: 700px;
    margin: 20px auto 35px;
    font-size: 22px;
    line-height: 1.9;
    color: #d0c7c7;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-links a {
    padding: 15px 28px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .05);
    text-decoration: none;
    color: white;
    transition: .35s;
}

.contact-links a:hover {
    background: #7c2235;
}

/* =====================
   FOOTER
===================== */

footer {
    margin-top: 120px;
    padding: 70px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

footer h2 {
    font-family: 'Noto Serif Devanagari', serif;
    font-size: 40px;
    margin-bottom: 15px;
}

footer p {
    font-size: 20px;
    color: #bdb2b2;
    margin: 12px 0;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 35px 0;
}

.socials a {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    text-decoration: none;
    font-size: 22px;
    color: white;
    transition: .35s;
}

.socials a:hover {
    background: #8b2339;
    transform: translateY(-5px);
}

/* =====================
   PARTICLES
===================== */

.background-animation {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -6;
}

.background-animation span {
    position: absolute;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(170, 60, 80, .35);
    animation: particle 20s linear infinite;
}

.background-animation span:nth-child(1) { left: 5%; animation-delay: 0s; }
.background-animation span:nth-child(2) { left: 18%; animation-delay: 3s; }
.background-animation span:nth-child(3) { left: 32%; animation-delay: 6s; }
.background-animation span:nth-child(4) { left: 45%; animation-delay: 8s; }
.background-animation span:nth-child(5) { left: 58%; animation-delay: 10s; }
.background-animation span:nth-child(6) { left: 72%; animation-delay: 13s; }
.background-animation span:nth-child(7) { left: 86%; animation-delay: 16s; }
.background-animation span:nth-child(8) { left: 95%; animation-delay: 19s; }

@keyframes particle {
    0% {
        transform: translateY(100vh) scale(.2);
        opacity: 0;
    }
    15% {
        opacity: .5;
    }
    100% {
        transform: translateY(-120vh) scale(2);
        opacity: 0;
    }
}

/* =====================
   BACK TO TOP BUTTON
===================== */

#topBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c2235, #b83f59);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    transition: .35s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

#topBtn.show {
    opacity: 1;
    visibility: visible;
}

#topBtn:hover {
    transform: translateY(-5px);
}

/* =====================
   LOADER
===================== */

.loader {
    position: fixed;
    inset: 0;
    background: #080405;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: .6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, .1);
    border-top: 5px solid #9d3046;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* =====================
   RESPONSIVE - TABLETS
===================== */

@media(max-width: 992px) {
    nav {
        padding: 16px 25px;
    }

    nav ul {
        gap: 20px;
    }

    header h1 {
        font-size: 72px;
    }

    .hero-text {
        font-size: 22px;
    }

    #about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .instagram-box {
        padding: 40px;
    }
}

/* =====================
   RESPONSIVE - MOBILE
===================== */

@media(max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
        border-radius: 25px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .logo {
        font-size: 28px;
    }

    header {
        padding: 120px 20px 60px;
    }

    header h1 {
        font-size: 56px;
    }

    header small {
        letter-spacing: 3px;
        font-size: 12px;
    }

    .hero-text {
        font-size: 19px;
        line-height: 1.8;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: auto;
    }

    section {
        margin: 80px auto;
    }

    section h2 {
        font-size: 38px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 25px;
    }

    .card h3 {
        font-size: 28px;
    }

    .card p {
        font-size: 18px;
    }

    .search-box input {
        font-size: 16px;
        padding: 14px 18px;
    }

    .categories {
        gap: 10px;
    }

    .categories button {
        padding: 10px 18px;
        font-size: 14px;
    }

    .instagram-box {
        padding: 30px 20px;
    }

    .instagram-box h3 {
        font-size: 30px;
    }

    /* Fix: poem-type cards (Love Letter/Birthday/Healing/Custom) were forced into 4 columns, overflowing off-screen on mobile */
    .poem-types {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .custom-poem-box {
        padding: 30px 20px;
    }

    /* Fix: donate box (QR / OR / UPI ID) was squeezing side-by-side instead of stacking */
    .donate-box {
        flex-direction: column;
        gap: 30px;
    }

    .donate-or {
        width: 100%;
    }

    .donate-or::before,
    .donate-or::after {
        display: none;
    }

    .upi-id-box span {
        font-size: 18px;
        word-break: break-all;
    }

    footer {
        padding: 120px 20px 80px;
    }

    footer h2 {
        font-size: 30px;
    }

    footer p {
        font-size: 17px;
    }
}

/* =====================
   RESPONSIVE - SMALL PHONES
===================== */

@media(max-width: 480px) {
    header h1 {
        font-size: 44px;
    }

    .hero-text {
        font-size: 17px;
    }

    section h2 {
        font-size: 32px;
    }

    .card h3 {
        font-size: 24px;
    }
}

/* =====================
   END OF STYLES
===================== */

/* ==========================
   POEM PAGE
========================= */

.poetry-page {
    max-width: 900px;
    margin: 120px auto;
    padding: 30px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 50px;
    color: #d6c7b3;
    text-decoration: none;
    font-size: 18px;
    transition: .3s;
}

.back-btn:hover {
    color: white;
}

.poetry-page h1 {
    font-size: 60px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 500;
}

.poem-content {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 25px;
    padding: 60px;
    backdrop-filter: blur(12px);
}

.poem-content p {
    white-space: pre-line;
    line-height: 2.3;
    font-size: 24px;
    color: #f4efe9;
}

/* =========================================
   🎁 DONATE SECTION — NEW
========================================= */

#donate {
    text-align: center;
}

.donate-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.qr-section {
    text-align: center;
}

.qr-frame {
    width: 180px;
    height: 180px;
    padding: 12px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    margin-bottom: 15px;
}

.qr-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.qr-text {
    font-size: 15px;
    color: #b8a8a4;
}

.donate-or {
    font-size: 18px;
    color: #666;
    letter-spacing: 3px;
    position: relative;
}

.donate-or::before,
.donate-or::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, .1);
}

.donate-or::before {
    right: 40px;
}

.donate-or::after {
    left: 40px;
}

.upi-section {
    text-align: center;
}

.upi-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.upi-id-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer;
    transition: all .3s ease;
    margin-bottom: 10px;
}

.upi-id-box:hover {
    border-color: rgba(184, 63, 89, .3);
    background: rgba(255, 255, 255, .08);
    transform: translateY(-3px);
}

.upi-id-box span {
    font-size: 22px;
    font-weight: 600;
    color: white;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 1px;
}

.upi-id-box i {
    color: #bbb;
    font-size: 18px;
    transition: .3s;
}

.upi-id-box:hover i {
    color: #b83f59;
}

.upi-name {
    font-size: 14px;
    color: #888;
}

/* =========================================
   ✍️ CUSTOM POEM SECTION — NEW
========================================= */

#custom-poem {
    text-align: center;
}

.custom-poem-box {
    max-width: 700px;
    margin: 50px auto 0;
    padding: 50px;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(45, 90, 90, .06), rgba(20, 60, 80, .04));
    border: 1px solid rgba(77, 154, 154, .12);
}

.poem-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.poem-type {
    padding: 25px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    transition: all .3s ease;
}

.poem-type:hover {
    transform: translateY(-5px);
    border-color: rgba(77, 154, 154, .2);
}

.poem-type span {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
    color: #d4667d;
}

.poem-type h4 {
    font-size: 16px;
    color: #f9f6f2;
    margin-bottom: 8px;
}

.poem-type p {
    font-size: 18px;
    color: #7dd3d3;
    font-weight: 600;
}

.delivery-note {
    margin-top: 25px;
    font-size: 14px;
    color: #777;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 16px 28px;
    border-radius: 50px;
    background: #2d7a5a;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .4);
    z-index: 9999;
    opacity: 0;
    transition: all .4s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================================
   📱 MOBILE FIXES — moon overlap, nav scroll spacing, performance
========================================= */

@media (max-width: 768px) {

    /* Fix: moon repositioned clearly below the nav bar, visible against dark background */
    .moon {
        width: 110px;
        height: 110px;
        top: 230px;
        right: 20px;
        opacity: .85;
        z-index: -1;
    }

    /* Fix: taller stacked nav (column layout) was hiding behind section headings on scroll */
    html {
        scroll-padding-top: 190px;
    }

    /* Fix: reduce heavy animated/blur effects for smoother mobile performance */
    body::after {
        display: none; /* shooting star */
    }

    .background-animation span {
        animation-duration: 30s;
    }

    nav {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }

    .card,
    .instagram-box,
    .custom-poem-box,
    .poem-content {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}

@media (max-width: 480px) {
    .moon {
        width: 85px;
        height: 85px;
        top: 210px;
        right: 15px;
        opacity: .8;
    }

    /* Fix: on very small phones, even 2 columns is tight — go single column */
    .poem-types {
        grid-template-columns: 1fr;
    }

    /* Fix: donate box (QR / OR / UPI ID) was squeezing side-by-side instead of stacking */
    .donate-box {
        flex-direction: column;
        gap: 30px;
    }

    .donate-or {
        width: 100%;
    }

    .donate-or::before,
    .donate-or::after {
        display: none;
    }

    .upi-id-box span {
        font-size: 18px;
        word-break: break-all;
    }
}
