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

html, body { width: 100%; min-height: 100%; }

body {
    background: #140a0f;
    color: #fff;
    font-family: "Cormorant Garamond", serif;
}


/* =========================================
   MOBILE CONTENT
========================================= */
.mobile-content { width: 100%; min-height: 100vh; }


/* =========================================
   HERO  -  palace courtyard (Images/hero-palace.jpg, 736x1307)
   .hero-art = image ka "cover" box. Glows/water usi ke andar % mein,
   isliye har screen par lanterns ke saath aligned rehte hain.
========================================= */
.hero-section {
    --hh: max(100vh, 620px);
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    background: #f9efe3;
}
@supports (height: 100svh) { .hero-section { --hh: max(100svh, 620px); } }

.hero-art {
    --w: max(100%, calc(var(--hh) * 736 / 1307));
    position: absolute;
    left: 50%; top: 50%;
    width: var(--w);
    aspect-ratio: 736 / 1307;
    margin-left: calc(var(--w) / -2);
    margin-top: calc(var(--w) * 1307 / 736 / -2);
    will-change: transform;
}
.hero-image {                              /* door.css: door ke baad halka zoom-out */
    position: absolute; inset: 0;
    transform-origin: 50% 45%;
}
.hp-photo {
    display: block; width: 100%; height: 100%;
    user-select: none; pointer-events: none;
}

/* light mode: koi overlay nahi. dark mode: dusk layer */
.hero-overlay {
    position: absolute; inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, rgba(34, 20, 52, .62) 0%, rgba(48, 24, 50, .5) 55%, rgba(30, 14, 30, .62) 100%);
    transition: opacity .8s ease;
}

/* lantern ki garam roshni */
.hp-glow {
    position: absolute;
    width: calc(var(--s) * 1%); aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 226, 160, .5) 0%, rgba(255, 205, 130, .2) 38%, rgba(255, 190, 110, 0) 70%);
    opacity: .7;
    pointer-events: none;
    will-change: transform;                /* blend-mode hata diya: ab har glow apni GPU layer */
}

/* paani par chamak (pool + fountain) */
.hp-water {
    position: absolute;
    left: 31.5%; top: 80.7%; width: 38%; height: 5.2%;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
            mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 100%);
    opacity: .55;
}
.hp-water i {                              /* chamak: transform se chalti hai (background-position nahi) */
    position: absolute; top: 0; bottom: 0; left: 0; width: 200%;
    background: repeating-linear-gradient(100deg, rgba(255, 250, 236, 0) 0 14px, rgba(255, 250, 236, .6) 18px, rgba(255, 250, 236, 0) 22px 40px);
    will-change: transform;
}

/* petals + golden particles (hero.js) */
.hp-fx { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.hp-spark {
    position: absolute; left: 0; top: 0;
    width: 4px; height: 4px; border-radius: 50%;
    background: radial-gradient(circle, #fff6d8 0%, #f2c867 45%, rgba(242, 200, 103, 0) 75%);
    box-shadow: 0 0 6px 1px rgba(242, 200, 103, .55);
    opacity: 0;
    will-change: transform, opacity;
}


/* =========================================
   THEME BUTTON  (toggle switch, top right)
   JS: ☼ / ☾ text set karta hai -> font-size:0 se hide
========================================= */
.theme-button {
    position: absolute;
    top: 22px;
    right: 18px;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(160, 118, 52, 0.55);
    background: rgba(255, 248, 236, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0;
    color: transparent;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    transition: background 0.3s ease;
}
.theme-button::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e9c873, #b8892f);
    box-shadow: 0 1px 4px rgba(90, 60, 20, 0.4);
    transition: transform 0.3s ease, background 0.3s ease;
}
.hero-section.dark-mode .theme-button::after { transform: translateX(20px); }


/* =========================================
   HERO COPY  -  ek symmetrical column, arch ke khaali hisse
   (image ka ~12% se ~71%) mein vertically centered.
   Spacing svh se, taaki har phone height par balance rahe.
========================================= */
.hero-copy {
    position: absolute;
    z-index: 3;
    top: 12%;
    bottom: 29%;
    left: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 4.2svh, 44px);
    text-align: center;
}

/* ---------- couple ---------- */
.couple-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 1.3svh, 14px);
    animation: coupleIn 1.2s ease forwards;
}

.hero-blessing {
    margin-bottom: clamp(6px, 1.6svh, 16px);
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: clamp(13px, 1.9svh, 16px);
    line-height: 1.3;
    letter-spacing: 2px;
    color: #a2793a;
    transition: color 0.6s ease;
}

.groom-name,
.bride-name {
    font-family: "Great Vibes", cursive;
    font-weight: 400;
    font-size: clamp(46px, min(15vw, 7.6svh), 74px);
    line-height: 1.12;
    color: #6a3d2b;
    white-space: nowrap;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7),
        0 0 18px rgba(255, 246, 232, 0.95);
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

.ampersand {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(20px, 3.3svh, 28px);
    line-height: 1;
    color: #b0843a;
    text-shadow: 0 0 12px rgba(255, 246, 232, 0.95);
    transition: color 0.6s ease;
}

/* Bride name ke neeche patli curve (swash) */
.name-swash {
    display: block;
    width: 44%;
    height: 10px;
    margin-top: 2px;
    opacity: 0.85;
    background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C50 2 130 1 197 5' fill='none' stroke='%23b8892f' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- date + place ---------- */
.place-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.6svh, 16px);
    animation: placeIn 1.5s ease forwards;
}

.hero-date {
    padding-left: 4px;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: clamp(14px, 2.2svh, 19px);
    line-height: 1.3;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #6a3d2b;
    transition: color 0.6s ease;
}

.hero-divider {
    position: relative;
    display: block;
    width: 120px; height: 1px;
    margin: clamp(2px, .6svh, 6px) 0;
    background: linear-gradient(90deg, transparent, #b8892f 30%, #b8892f 70%, transparent);
}
.hero-divider::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 6px; height: 6px;
    background: #f9efe3; border: 1px solid #b8892f;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* — CITY OF LAKES — */
.location {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: clamp(10px, 1.4svh, 12px);
    line-height: 1.3;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #9a7038;
    transition: color 0.6s ease;
}
.location::before,
.location::after {
    content: "";
    width: 22px;
    height: 1px;
    background: rgba(184, 137, 47, 0.7);
    margin: 0 10px;
}

/* Udaipur */
.city-name {
    font-family: "Great Vibes", cursive;
    font-weight: 400;
    font-size: clamp(34px, 5.4svh, 50px);
    line-height: 1.15;
    color: #6a3d2b;
    text-shadow: 0 0 16px rgba(255, 246, 232, 0.95);
    transition: color 0.6s ease, text-shadow 0.6s ease;
}

/* Where our forever begins */
.location-subtitle {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(14px, 2svh, 17px);
    line-height: 1.3;
    letter-spacing: 0.4px;
    color: #7a5038;
    transition: color 0.6s ease;
}


/* =========================================
   KEEP SCROLLING  (gold shimmer: hero.js)
========================================= */
.scroll-indicator {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 3.5%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: clamp(9px, 2.5vw, 10px);
    letter-spacing: 3px;
    white-space: nowrap;
}
.scroll-indicator span {
    padding: 6px 12px 6px 15px;
    border-radius: 999px;
    background: rgba(255, 249, 240, 0.72) linear-gradient(100deg, transparent 35%, rgba(255, 236, 180, 0.95) 50%, transparent 65%) no-repeat;
    background-size: 250% 100%;
    background-position: 150% 0;
    border: 1px solid rgba(184, 137, 47, 0.5);
    color: #6a3d2b;
}
.scroll-line {
    width: 1px;
    height: 22px;
    background: #b8892f;
    animation: scrollLine 1.7s infinite ease-in-out;
}


/* =========================================
   DARK MODE  (palace at night: dusk layer + tez lanterns)
========================================= */
.hero-section.dark-mode .hero-overlay { opacity: 1; }
.hero-section.dark-mode .hp-glow { opacity: 1; }
.hero-section.dark-mode .hp-glow::after {
    content: ""; position: absolute; inset: -30%; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 120, .5) 0%, rgba(255, 180, 100, 0) 65%);
}

.hero-section.dark-mode .groom-name,
.hero-section.dark-mode .bride-name,
.hero-section.dark-mode .city-name {
    color: #fff3dc;
    text-shadow:
        0 0 12px rgba(255, 210, 140, 0.75),
        0 2px 14px rgba(20, 8, 20, 0.6);
}
.hero-section.dark-mode .ampersand,
.hero-section.dark-mode .hero-blessing,
.hero-section.dark-mode .location { color: #f2cf86; text-shadow: 0 1px 8px rgba(20, 8, 20, 0.6); }
.hero-section.dark-mode .hero-date,
.hero-section.dark-mode .location-subtitle { color: #fbe9cc; text-shadow: 0 1px 8px rgba(20, 8, 20, 0.6); }
.hero-section.dark-mode .hero-divider::after { background: #3a2338; }

.hero-section.dark-mode .theme-button {
    background: rgba(30, 18, 50, 0.6);
    border-color: rgba(242, 207, 134, 0.6);
}
.hero-section.dark-mode .scroll-indicator span {
    background-color: rgba(40, 22, 44, 0.6);
    color: #fbe9cc;
}


/* =========================================
   ANIMATIONS
========================================= */
@keyframes coupleIn {
    from { opacity: 0; transform: translateY(-25px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes placeIn {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top;    opacity: 0; }
    40%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
    80%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}


/* =========================================
   SMALL SCREENS
========================================= */
@media (max-width: 374px) {
    .hero-copy { left: 22px; right: 22px; }
    .hero-date { letter-spacing: 3px; }
}

/* chhoti height (iPhone SE / mini): column thoda upar se, gaps tight */
@media (max-height: 680px) {
    .hero-copy { top: 10.5%; bottom: 28%; gap: 14px; }
    .couple-content { gap: 5px; }
    .hero-blessing { margin-bottom: 4px; }
    .place-content { gap: 7px; }
    .hero-divider { margin: 1px 0; }
}


/* =========================================
   MOBILE-ONLY
   Tablet: phone-width column. Desktop: "open on mobile" message.
========================================= */
.desktop-block {
    display: none;
    width: 100%;
    min-height: 100vh;
    background: #140a0f;
    color: #fff;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}
.desktop-block h2 { font-family: "Great Vibes", cursive; font-weight: 400; font-size: 44px; margin-bottom: 10px; color: #f6dfa4; }
.desktop-block p  { font-size: 17px; letter-spacing: .5px; opacity: 0.8; }

@media (min-width: 600px) and (max-width: 1024px) {
    .mobile-content { max-width: 430px; margin: 0 auto; }
}
@media (min-width: 1025px) {
    .mobile-content { display: none; }
    .desktop-block  { display: flex; }
}
