/* =======================================================
   LUXURY BIRTHDAY CELEBRATION — STYLESHEET v5.0
   Design: Shivangi's Birthday Special Edition
   ======================================================= */

/* ─── Reset & Custom Properties ────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] { display: none !important; }

:root {
    --rose-primary:   hsl(348, 95%, 60%);
    --rose-deep:      hsl(344, 85%, 40%);
    --rose-ink:       hsl(342, 76%, 32%);
    --rose-light:     hsl(346, 100%, 96%);
    --rose-soft:      hsl(348, 85%, 76%);
    --rose-glow:      rgba(255, 77, 109, 0.32);

    --gold-primary:   hsl(40, 96%, 50%);
    --gold-deep:      hsl(28, 84%, 34%);
    --gold-light:     hsl(45, 100%, 93%);
    --gold-glow:      rgba(245, 158, 11, 0.28);

    --cream:          hsl(35, 60%, 98%);
    --ink-dark:       hsl(330, 32%, 14%);
    --ink-soft:       hsl(330, 18%, 34%);
    --white:          #ffffff;

    --font-serif:     'Cormorant Garamond', Georgia, serif;
    --font-display:   'Playfair Display', Georgia, serif;
    --font-script:    'Great Vibes', cursive;
    --font-ui:        'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    --glass-bg:       rgba(255, 255, 255, 0.84);
    --glass-border:   rgba(255, 255, 255, 0.92);
    --glass-shadow:   0 18px 46px rgba(201, 24, 74, 0.11);
}

/* ─── Base Styles ──────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-ui);
    background-color: #fff5f7;
    background-image:
        radial-gradient(at 0% 0%, hsla(335, 100%, 95%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(42, 100%, 94%, 1) 0px, transparent 50%),
        radial-gradient(at 50% 50%, hsla(340, 100%, 97%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(330, 80%, 93%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(280, 70%, 96%, 1) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink-dark);
    position: relative;
}

body.modal-open {
    overflow: hidden;
}

/* ─── Ambient Glow Background Orbs ─────────────────────── */
.ambient-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: orbDrift 14s infinite alternate ease-in-out;
}
.orb-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 133, 161, 0.55), transparent 70%);
    top: -10%;
    left: 15%;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 214, 112, 0.45), transparent 70%);
    bottom: -15%;
    right: 5%;
    animation-delay: -5s;
}
.orb-3 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.45), transparent 70%);
    top: 35%;
    right: 25%;
    animation-delay: -9s;
}
@keyframes orbDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.12); }
}

/* ─── Canvas Particle Layer ────────────────────────────── */
#heartCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ─── Sparkle Trail ────────────────────────────────────── */
.sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}
.sparkle {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: sparkleFade 0.65s forwards cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes sparkleFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.1);
    }
}

/* ─── Floating Audio Player Pill ───────────────────────── */
.audio-pill {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 250;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 7px 15px 7px 9px;
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(201, 24, 74, 0.14);
    cursor: pointer;
    font-family: var(--font-ui);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}
.audio-pill:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px rgba(201, 24, 74, 0.22);
    background: #ffffff;
}
.audio-pill.is-active {
    border-color: rgba(255, 77, 109, 0.45);
    box-shadow: 0 8px 24px rgba(255, 77, 109, 0.25);
}
.disc-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-primary), var(--gold-primary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px var(--rose-glow);
}
.disc-icon.spinning {
    animation: spinDisc 3s linear infinite;
}
@keyframes spinDisc {
    to { transform: rotate(360deg); }
}
.audio-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.audio-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rose-deep);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.sound-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 13px;
}
.sound-wave span {
    width: 3px;
    height: 4px;
    background: var(--rose-primary);
    border-radius: 3px;
    transition: height 0.2s;
}
.sound-wave.playing span:nth-child(1) { animation: wave 0.8s infinite 0.1s ease-in-out; }
.sound-wave.playing span:nth-child(2) { animation: wave 0.8s infinite 0.3s ease-in-out; }
.sound-wave.playing span:nth-child(3) { animation: wave 0.8s infinite 0.2s ease-in-out; }
.sound-wave.playing span:nth-child(4) { animation: wave 0.8s infinite 0.4s ease-in-out; }
@keyframes wave {
    0%, 100% { height: 4px; }
    50%      { height: 13px; }
}

/* ─── Wrapper & Hero Layout ────────────────────────────── */
#wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 2rem;
}

.hero {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4vw;
    max-width: 1200px;
    width: 100%;
    margin: auto;
    animation: heroEntrance 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes heroEntrance {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Hero Left Column ─────────────────────────────────── */
.hero__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.05rem;
    flex: 1.15;
    min-width: 0;
}

/* Greeting Badge */
.greeting-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, rgba(255, 240, 243, 0.96), rgba(255, 243, 210, 0.96));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(225, 29, 72, 0.22);
    padding: 0.42rem 1.2rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rose-ink);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.12);
    animation: slideDown 0.7s 0.15s both ease-out;
}
.badge-icon {
    font-size: 0.78rem;
    color: var(--gold-deep);
    animation: rotateSparkle 6s linear infinite;
}
.badge-mini-heart {
    font-size: 0.75rem;
    color: var(--rose-primary);
    animation: heartPulse 1.4s infinite ease-in-out;
}
@keyframes rotateSparkle { to { transform: rotate(360deg); } }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Main Title */
.main-title {
    font-family: var(--font-script);
    font-size: clamp(3.9rem, 7vw, 6.6rem);
    line-height: 0.94;
    background: linear-gradient(135deg, var(--rose-deep) 0%, var(--rose-primary) 55%, #ff6b8b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 16px rgba(225, 29, 72, 0.2));
    display: flex;
    flex-direction: column;
    letter-spacing: 0.02em;
    user-select: none;
    padding-right: 0.2rem;
}
.line-happy, .line-birthday {
    display: inline-flex;
    gap: 0.02em;
}
.line-happy span, .line-birthday span {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px) scale(0.88);
    animation: letterEntrance 0.55s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes letterEntrance {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Name Plate */
.name-plate {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.65rem 2rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    animation: slideUp 0.7s 1.15s both ease-out;
}
.nameplate-text {
    font-family: var(--font-script);
    font-size: clamp(2.1rem, 3.6vw, 2.75rem);
    color: var(--rose-deep);
    line-height: 1;
    font-weight: 400;
}
.pulse-heart {
    color: var(--rose-primary);
    font-size: 1.1rem;
    animation: heartPulse 1.3s infinite ease-in-out;
    filter: drop-shadow(0 0 5px rgba(255, 77, 109, 0.45));
}
.crown-icon {
    color: var(--gold-primary);
    font-size: 1.05rem;
    animation: crownFloat 2.5s infinite ease-in-out;
    filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.45));
}
@keyframes crownFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-3px) rotate(7deg); }
}
@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    30%      { transform: scale(1.3); }
    60%      { transform: scale(1.1); }
}
.name-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: shimmerPass 4.5s infinite 2s ease-in-out;
}
@keyframes shimmerPass {
    0%   { left: -100%; }
    40%  { left: 180%; }
    100% { left: 180%; }
}

/* Subtitle */
.subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.08rem, 1.75vw, 1.28rem);
    line-height: 1.65;
    color: var(--ink-soft);
    font-style: italic;
    animation: slideUp 0.7s 1.35s both ease-out;
}
.subtitle em {
    color: var(--rose-deep);
    font-style: normal;
    font-weight: 600;
}

/* Original Birthday Countdown Card */
.countdown-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.95rem 1.3rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    max-width: 100%;
    animation: slideUp 0.7s 1.55s both ease-out;
}
.countdown-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-deep);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.countdown-header i {
    font-size: 0.92rem;
    color: var(--gold-primary);
}
.countdown-grid {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    padding: 0.5rem 0.65rem;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff, #fff2f5);
    border: 1px solid rgba(244, 63, 94, 0.22);
    box-shadow: 0 5px 14px rgba(225, 29, 72, 0.07);
}
.cd-num {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--rose-ink), var(--rose-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cd-num.cd-tick {
    animation: cdTickPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cdTickPop {
    0%   { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.cd-label {
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    margin-top: 2px;
}
.cd-sep {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--rose-soft);
    margin-bottom: 12px;
    user-select: none;
}
.countdown-celebrate {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--rose-deep);
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 243, 176, 0.7), rgba(255, 240, 243, 0.88));
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* CTA Buttons Group */
.cta-group {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
    animation: slideUp 0.7s 1.75s both ease-out;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.98rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cta-btn--primary {
    background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-deep) 100%);
    color: var(--white);
    box-shadow: 0 10px 28px var(--rose-glow), 0 4px 10px rgba(0, 0, 0, 0.08);
}
.cta-btn--primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 36px rgba(225, 29, 72, 0.4);
}
.cta-btn--primary:active { transform: scale(0.97); }

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: shimmerPass 3.8s infinite ease-in-out;
}

.cta-btn--secondary {
    background: rgba(255, 255, 255, 0.88);
    color: var(--rose-deep);
    border: 1px solid rgba(244, 63, 94, 0.22);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.14);
}
.cta-btn--secondary:hover {
    transform: translateY(-3px) scale(1.03);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.26);
    color: var(--gold-deep);
}
.cta-btn--secondary:active { transform: scale(0.97); }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Hero Right Column: 3D Photo Display ──────────────── */
.hero__right {
    flex: 0.85;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
    animation: photoEntrance 1s 0.25s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes photoEntrance {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.photo-stage {
    padding: 1.5rem 2.2rem 2rem;
}

.photo-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    cursor: pointer;
}

/* Multi-layer Glowing Aurora Rings */
.glow-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.ring1 {
    inset: -6px;
    background: conic-gradient(from 0deg, var(--rose-primary), var(--gold-primary), #ff758c, var(--rose-primary));
    animation: rotateRing 8s linear infinite;
    filter: blur(2px);
    opacity: 0.85;
}
.ring2 {
    inset: -14px;
    background: conic-gradient(from 180deg, rgba(255, 77, 109, 0.5), rgba(255, 183, 3, 0.45), transparent, rgba(255, 77, 109, 0.5));
    animation: rotateRing 12s linear infinite reverse;
    filter: blur(6px);
    opacity: 0.65;
}
.ring3 {
    inset: -26px;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.22) 0%, transparent 70%);
    animation: auraPulse 4s infinite ease-in-out;
}
@keyframes rotateRing {
    to { transform: rotate(360deg); }
}
@keyframes auraPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%      { transform: scale(1.07); opacity: 0.88; }
}

/* Photo Frame */
.photo-frame {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--cream);
    border: 6px solid var(--white);
    box-shadow:
        0 24px 55px rgba(225, 29, 72, 0.22),
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 0 18px rgba(0, 0, 0, 0.05);
    z-index: 2;
}
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    transition: transform 0.5s ease;
}
.photo-frame:hover .profile-photo {
    transform: scale(1.05);
}
.frame-glare {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, transparent 55%);
    pointer-events: none;
}

/* Photo Caption Pill */
.photo-caption {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 1.15rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 183, 3, 0.45);
    box-shadow: 0 8px 22px rgba(201, 24, 74, 0.16);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rose-ink);
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.photo-caption i {
    color: var(--gold-primary);
    font-size: 0.82rem;
}

/* Floating Balloons — framed cleanly outside the portrait edge */
.balloon {
    position: absolute;
    width: clamp(64px, 7vw, 86px);
    z-index: 5;
    pointer-events: none;
}
.balloon img {
    width: 100%;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.14));
}
.balloon-left {
    top: -15%;
    left: -17%;
    animation: balloonFloatLeft 4.5s infinite ease-in-out;
}
.balloon-right {
    bottom: -2%;
    right: -17%;
    animation: balloonFloatRight 5.2s infinite ease-in-out;
}
@keyframes balloonFloatLeft {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50%      { transform: translateY(-12px) rotate(4deg); }
}
@keyframes balloonFloatRight {
    0%, 100% { transform: translateY(0) rotate(6deg); }
    50%      { transform: translateY(-14px) rotate(-4deg); }
}

/* Party Hat */
.hat-wrapper {
    position: absolute;
    top: -17%;
    right: 6%;
    width: clamp(62px, 6.8vw, 80px);
    z-index: 6;
    transform-origin: bottom center;
    animation: hatJiggle 3.2s infinite ease-in-out;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.16));
    pointer-events: none;
}
.hat-wrapper img { width: 100%; }
@keyframes hatJiggle {
    0%, 100% { transform: rotate(18deg) translateY(0); }
    50%      { transform: rotate(23deg) translateY(-6px); }
}

/* Decorative Floating Flowers */
.photo-flowers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}
.pf {
    position: absolute;
    width: 26px;
    opacity: 0.72;
    animation: petalFloat 5s infinite ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(255, 77, 109, 0.16));
}
.pf1 { top: 32%; left: -12%; animation-delay: 0s; }
.pf2 { bottom: 14%; left: -10%; animation-delay: 1.8s; }
.pf3 { top: 18%; right: -9%; animation-delay: 3.2s; }
@keyframes petalFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-12px) rotate(20deg); }
}

/* ─── Background Twinkling Stars ───────────────────────── */
.stars-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.star {
    position: absolute;
    background: var(--gold-primary);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: starTwinkle 3.5s infinite ease-in-out;
    opacity: 0.55;
    box-shadow: 0 0 8px var(--gold-primary);
}
.s1 { width: 20px; height: 20px; top: 10%; left: 6%; animation-delay: 0s; }
.s2 { width: 15px; height: 15px; top: 22%; right: 8%; animation-delay: 0.7s; }
.s3 { width: 18px; height: 18px; bottom: 18%; left: 5%; animation-delay: 1.4s; }
.s4 { width: 13px; height: 13px; top: 60%; right: 4%; animation-delay: 2.1s; }
.s5 { width: 20px; height: 20px; bottom: 9%; right: 12%; animation-delay: 2.8s; }
.s6 { width: 11px; height: 11px; top: 44%; left: 4%; animation-delay: 1.1s; }
@keyframes starTwinkle {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50%      { transform: scale(1.35) rotate(15deg); opacity: 0.9; }
}

/* ─── Luxury Modal (Letter & Wishes) ───────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(25, 4, 14, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 940px;
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(145deg, #ffffff 0%, #fff8fa 100%);
    border-radius: 30px;
    padding: 2.15rem 2.35rem;
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.35),
        0 10px 30px rgba(255, 77, 109, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 143, 163, 0.35);
    transform: scale(0.88) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-card.active {
    transform: scale(1) translateY(0);
}

/* Custom Scrollbar for Modal */
.modal-card::-webkit-scrollbar { width: 5px; }
.modal-card::-webkit-scrollbar-track { background: transparent; }
.modal-card::-webkit-scrollbar-thumb {
    background: rgba(255, 77, 109, 0.25);
    border-radius: 10px;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    width: 40px;
    height: 40px;
    background: var(--rose-light);
    border: 1.5px solid rgba(255, 143, 163, 0.35);
    border-radius: 50%;
    color: var(--rose-deep);
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 10;
}
.modal-close:hover {
    background: var(--rose-primary);
    color: var(--white);
    transform: scale(1.08) rotate(90deg);
    box-shadow: 0 4px 14px var(--rose-glow);
}

/* Modal Inner Columns */
.modal-inner {
    display: flex;
    gap: 2.15rem;
    align-items: stretch;
}

/* Modal Left */
.modal-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.05rem;
    min-width: 195px;
    text-align: center;
    border-right: 2px dashed rgba(255, 143, 163, 0.35);
    padding-right: 2rem;
}

/* Rotating Halo Ring on ::before so inner portrait stays upright! */
.avatar-ring {
    position: relative;
    padding: 5px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(255, 77, 109, 0.22);
}
.avatar-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--rose-primary), var(--gold-primary), var(--rose-primary));
    animation: rotateRing 10s linear infinite;
    z-index: 0;
}
.modal-avatar {
    position: relative;
    z-index: 1;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    background: var(--cream);
}
.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.modal-tag {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gold-crown {
    color: var(--gold-primary);
    font-size: 1.05rem;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.4));
}
.modal-to {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--rose-deep);
    line-height: 1;
    font-weight: 400;
}
.modal-gif {
    background: #fff9fb;
    padding: 6px;
    border-radius: 18px;
    border: 1px solid rgba(255, 143, 163, 0.28);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.08);
}
.modal-gif img {
    display: block;
    width: 96px;
    border-radius: 12px;
}
.modal-love-img img {
    width: 86px;
    filter: drop-shadow(0 4px 8px rgba(255, 77, 109, 0.18));
}

/* Modal Right (The Letter) */
.modal-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.modal-letter-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
    padding-right: 1.5rem;
}
.ornament {
    color: var(--gold-primary);
    font-size: 0.82rem;
    letter-spacing: 0.25em;
    white-space: nowrap;
}
.letter-title {
    font-family: var(--font-script);
    font-size: 2.35rem;
    color: var(--rose-deep);
    white-space: nowrap;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(255, 77, 109, 0.14);
}

.letter-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: linear-gradient(135deg, hsl(45, 100%, 98%), hsl(340, 80%, 98%));
    border-radius: 20px;
    padding: 1.5rem 1.85rem;
    border: 1px solid rgba(245, 158, 11, 0.28);
    box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.85), 0 8px 24px rgba(230, 57, 95, 0.05);
    flex: 1;
}
.letter-body::before {
    content: '“';
    position: absolute;
    top: -0.7rem;
    left: 1rem;
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--rose-primary);
    opacity: 0.11;
    line-height: 1;
    pointer-events: none;
}
.letter-body p {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    line-height: 1.68;
    color: var(--ink-soft);
    position: relative;
    z-index: 1;
}

/* Single active blinking cursor ONLY on the paragraph currently typing */
.typewriter-text.is-typing::after {
    content: '|';
    display: inline-block;
    color: var(--rose-primary);
    margin-left: 2px;
    animation: blinkCursor 0.65s infinite;
}
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

.letter-signature {
    margin-top: auto;
    padding-top: 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.letter-signature.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.sig-prefix {
    font-family: var(--font-serif);
    color: var(--ink-dark);
    opacity: 0.85;
    font-size: 1.02rem;
    font-style: italic;
}
.sig-name {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: var(--rose-deep);
    line-height: 1;
    text-shadow: 0 2px 8px var(--rose-glow);
}

/* ─── Responsive Media Queries ─────────────────────────── */
@media (max-width: 950px) {
    #wrapper { padding: 4.5rem 1.25rem 2.5rem; }
    .hero {
        flex-direction: column-reverse;
        gap: 2.5rem;
        text-align: center;
    }
    .hero__left {
        align-items: center;
        text-align: center;
    }
    .greeting-badge { align-self: center; }
    .countdown-card { align-items: center; }
    .countdown-header { justify-content: center; flex-wrap: wrap; }
    .cta-group { justify-content: center; }
    .main-title { font-size: clamp(3.6rem, 13vw, 5.5rem); }

    .photo-stage { padding: 1.5rem 1.5rem 1.75rem; }
    .photo-wrapper {
        width: clamp(230px, 56vw, 310px);
        height: clamp(230px, 56vw, 310px);
    }

    .modal-inner {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .modal-left {
        border-right: none;
        border-bottom: 2px dashed rgba(255, 143, 163, 0.35);
        padding-right: 0;
        padding-bottom: 1.5rem;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .modal-avatar { width: 86px; height: 86px; }
    .modal-card { padding: 1.75rem 1.35rem; border-radius: 24px; }
    .modal-letter-header { padding-right: 0; }
    .letter-title { font-size: 2.1rem; }
}

@media (max-width: 520px) {
    #wrapper { padding: 4.25rem 1rem 2rem; }
    .audio-pill {
        top: 12px;
        right: 12px;
        padding: 5px 11px 5px 7px;
    }
    .main-title { font-size: clamp(3rem, 15vw, 4.4rem); }
    .nameplate-text { font-size: 1.95rem; }
    .countdown-card { padding: 0.85rem 0.9rem; width: 100%; }
    .countdown-header {
        font-size: clamp(0.62rem, 2.7vw, 0.76rem);
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 0.35rem;
    }
    .countdown-grid { gap: 0.35rem; justify-content: center; width: 100%; }
    .countdown-unit { min-width: 52px; padding: 0.45rem 0.35rem; flex: 1; }
    .cd-num { font-size: 1.3rem; }
    .cd-sep { font-size: 1.1rem; }
    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 0.88rem 1.6rem;
    }
    .modal-card { padding: 1.35rem 1rem; border-radius: 20px; }
    .letter-body { padding: 1.25rem 1rem; }
    .ornament { display: none; }
    .modal-close { top: 0.75rem; right: 0.75rem; width: 36px; height: 36px; }
}
