/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --crimson: #A0153E;
    --crimson-dark: #7B1F34;
    --crimson-deep: #5C0E24;
    --gold: #FFD700;
    --gold-warm: #F5A623;
    --marigold: #FF9933;
    --pink-light: #F3EFE8;
    --cream: #FDFBF7;
    --cream-warm: #F8F5EF;
    --text-dark: #3D1A1A;
    --text-muted: #7A4A4A;
    --text-light: #A67070;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
.script {
    font-family: 'Great Vibes', cursive;
}

/* Use a serif capital for the first letter so it reads as a clear capital */
.hero-names .name-word,
.footer-names .name-word {
    display: inline-block;
}

.hero-names .name-word::first-letter,
.footer-names .name-word::first-letter,
.couple-names h1::first-letter,
.person-name::first-letter {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.15em;
    line-height: 0.9;
    margin-right: 0.04em;
}

.devanagari {
    font-family: 'Cormorant Garamond', 'Noto Serif Devanagari', serif;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--crimson-dark);
    text-align: center;
    letter-spacing: 1px;
}

.section-heading.script {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    font-weight: 400;
}

.section-heading.light {
    color: #fff;
}

/* ===== Divider ===== */
.divider-diamond {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 8px;
    margin: 12px 0 30px;
}

.divider-diamond.light {
    color: rgba(255, 215, 0, 0.7);
}

.divider-diamond.footer-div {
    color: var(--gold);
    opacity: 0.5;
}

/* ===== Fade-in Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Jain Emblem Images ===== */
.hero-emblem {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    filter: brightness(0) invert(85%) sepia(74%) saturate(648%) hue-rotate(353deg) brightness(98%) contrast(105%);
}

.auspicious-emblem {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    filter: brightness(0) invert(15%) sepia(74%) saturate(4220%) hue-rotate(337deg) brightness(96%) contrast(98%);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--crimson-dark);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top, rgba(146, 38, 63, 0.72) 0%, rgba(123, 31, 52, 0.78) 45%, rgba(92, 14, 36, 0.88) 100%),
        url('Images/ac5.jpeg') center/cover no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.25) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 40px 20px;
}

.hero-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 15px;
}

.hero-names {
    font-family: 'Great Vibes', cursive;
    font-size: 5.5rem;
    color: #fff;
    font-weight: 400;
    line-height: 1.15;
    margin: 15px 0;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.25);
}

.hero-names .amp {
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 15px;
}

.hero-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* ===== Auspicious Section ===== */
.auspicious {
    padding: 90px 20px;
    background: var(--cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auspicious-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FDFBF7 0%, #FAF8F3 50%, #F3EFE8 100%);
    z-index: 0;
}

.auspicious-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.06) 0%, transparent 70%);
    z-index: 1;
}

.auspicious-content {
    position: relative;
    z-index: 2;
}

.sanskrit {
    font-family: 'Cormorant Garamond', 'Noto Serif Devanagari', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--crimson-dark);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.mantra {
    font-family: 'Cormorant Garamond', 'Noto Serif Devanagari', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--crimson);
    line-height: 1.9;
    margin-top: 18px;
    margin-bottom: 18px;
}

.auspicious-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
}

/* ===== Countdown Section ===== */
.countdown-section {
    padding: 90px 20px;
    background: var(--crimson-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at bottom, rgba(146, 38, 63, 0.72) 0%, rgba(123, 31, 52, 0.78) 45%, rgba(92, 14, 36, 0.88) 100%),
        url('Images/ac3.jpeg') center/cover no-repeat;
    z-index: 0;
}

.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.25) 100%);
    z-index: 1;
}

.countdown-section > .fade-in {
    position: relative;
    z-index: 2;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    background: rgba(255, 255, 255, 0.08);
    padding: 20px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.countdown-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 8px;
}

/* ===== Family Section ===== */
.family-section {
    padding: 90px 20px;
    background: var(--cream-warm);
    position: relative;
    overflow: hidden;
}

.family-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FAF8F3 0%, #F3EFE8 100%);
    z-index: 0;
}

.family-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.family-section > .fade-in {
    position: relative;
    z-index: 2;
}

.families {
    max-width: 700px;
    margin: 20px auto 0;
}

.family-card {
    text-align: center;
    padding: 30px 20px;
}

.family-side {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--crimson);
    margin-bottom: 15px;
}

.person-name {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--crimson-dark);
    margin-bottom: 10px;
}

.relation {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 8px;
}

.parent-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.parent-connector {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: var(--gold-warm);
    margin: 4px 0;
}

.grand-relation {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-light);
    margin-top: 8px;
}

.grand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
}

.family-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
}

.family-divider-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.family-divider-icon {
    font-size: 1.2rem;
}

/* ===== Events Section ===== */
.events-section {
    padding: 90px 20px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

/* Fireworks & Celebrations Background */
.fireworks-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.fw-burst {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: burstLife 3s ease-out infinite;
}

.fw-burst::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    opacity: 0;
    animation: burstGlow 3s ease-out infinite;
}

@keyframes burstLife {
    0% { transform: scale(0); opacity: 0; }
    10% { transform: scale(1); opacity: 1; }
    30% { opacity: 0.6; }
    100% { transform: scale(0.5); opacity: 0; }
}

@keyframes burstGlow {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    15% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

.fw-burst:nth-child(1) { top: 8%; left: 15%; color: #FFD700; animation-delay: 0s; }
.fw-burst:nth-child(2) { top: 12%; right: 20%; color: #FF6B6B; animation-delay: 1s; }
.fw-burst:nth-child(3) { top: 5%; left: 50%; color: #FF9933; animation-delay: 0.5s; }
.fw-burst:nth-child(4) { top: 15%; left: 75%; color: #FF69B4; animation-delay: 1.5s; }
.fw-burst:nth-child(5) { top: 3%; left: 35%; color: #FFD700; animation-delay: 2s; }
.fw-burst:nth-child(6) { bottom: 15%; right: 10%; color: #FF6B6B; animation-delay: 0.8s; }
.fw-burst:nth-child(7) { bottom: 10%; left: 10%; color: #FF9933; animation-delay: 1.8s; }
.fw-burst:nth-child(8) { bottom: 8%; left: 60%; color: #FF69B4; animation-delay: 2.3s; }
.fw-burst:nth-child(9)  { top: 25%; left: 25%;  color: #FFC107; animation-delay: 1.2s; }
.fw-burst:nth-child(10) { top: 30%; right: 15%; color: #FF4500; animation-delay: 2.6s; }
.fw-burst:nth-child(11) { top: 45%; left: 8%;   color: #FF69B4; animation-delay: 0.3s; }
.fw-burst:nth-child(12) { top: 50%; right: 8%;  color: #FFD700; animation-delay: 1.7s; }
.fw-burst:nth-child(13) { bottom: 25%; left: 30%;  color: #FF9933; animation-delay: 2.1s; }
.fw-burst:nth-child(14) { bottom: 22%; right: 28%; color: #FF6B6B; animation-delay: 0.6s; }
.fw-burst:nth-child(15) { top: 18%; left: 45%;     color: #FF4500; animation-delay: 3s; }
.fw-burst:nth-child(16) { bottom: 30%; right: 45%; color: #FFC107; animation-delay: 1.1s; }

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    opacity: 0;
    animation: confettiFall linear infinite;
}

@keyframes confettiFall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.5; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.celebration-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 0.7; transform: scale(1); }
}

/* Floating flowers drifting down across the celebration pages */
.event-flower {
    position: absolute;
    top: -30px;
    pointer-events: none;
    opacity: 0;
    animation: eventFlowerFall linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

@keyframes eventFlowerFall {
    0%   { transform: translateY(-30px) rotate(0deg) translateX(0); opacity: 0; }
    10%  { opacity: 0.85; }
    50%  { transform: translateY(45vh) rotate(180deg) translateX(24px); }
    90%  { opacity: 0.55; }
    100% { transform: translateY(105vh) rotate(360deg) translateX(-18px); opacity: 0; }
}

.events-section > .fade-in {
    position: relative;
    z-index: 2;
}

.events-timeline {
    max-width: 620px;
    margin: 20px auto 0;
}

.event-day {
    text-align: center;
    margin: 18px 0 14px;
}

.event-day:first-child {
    margin-top: 6px;
}

.day-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--crimson);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding: 0 25px;
}

.day-label::before,
.day-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-warm));
}

.day-label::before { right: 100%; background: linear-gradient(90deg, transparent, var(--gold-warm)); }
.day-label::after { left: 100%; background: linear-gradient(270deg, transparent, var(--gold-warm)); }

.event-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 18px 22px;
    margin-bottom: 12px;
    border-radius: 16px;
    border: 2px solid rgba(160, 21, 62, 0.08);
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(160, 21, 62, 0.04);
    position: relative;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(160, 21, 62, 0.1);
    border-color: rgba(160, 21, 62, 0.15);
}

.event-icon-circle {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pink-light), var(--cream));
    border-radius: 50%;
    font-size: 1.5rem;
    border: 2px solid rgba(160, 21, 62, 0.1);
}

.event-details {
    flex: 1;
}

.event-name {
    font-family: 'Cormorant Garamond', 'Noto Serif Devanagari', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--crimson-dark);
    margin-bottom: 0;
    line-height: 1.15;
}

.event-name-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.event-time {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-warm);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.event-desc {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== Venue Section ===== */
.venue-section {
    padding: 90px 20px;
    background: var(--cream-warm);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.venue-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(250, 248, 243, 0.78) 0%, rgba(243, 239, 232, 0.78) 50%, rgba(253, 251, 247, 0.78) 100%),
        url('Images/Royal.png') center/cover no-repeat;
    z-index: 0;
}

.venue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.venue-section > .fade-in {
    position: relative;
    z-index: 2;
}

.venue-card {
    max-width: 520px;
    margin: 10px auto 0;
    padding: 45px;
    border: 2px solid var(--gold);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
}

.venue-name {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--crimson-dark);
    margin-bottom: 10px;
}

.venue-address {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.venue-map-link {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 3px 12px rgba(160, 21, 62, 0.3);
}

.venue-map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 21, 62, 0.4);
}

/* Compact venue card used inline within the June 17 events timeline */
.venue-card--inline {
    max-width: 420px;
    margin-top: 18px;
    padding: 22px 30px;
}

.venue-card--inline .venue-name { font-size: 2.2rem; margin-bottom: 8px; }
.venue-card--inline .venue-address { font-size: 1.05rem; margin-bottom: 16px; }
.venue-card--inline .venue-map-link { padding: 10px 24px; font-size: 0.72rem; }

@media (max-width: 480px) {
    .venue-card--inline { padding: 16px 20px; margin-top: 12px; }
    .venue-card--inline .venue-name { font-size: 1.7rem; }
    .venue-card--inline .venue-address { font-size: 0.92rem; margin-bottom: 12px; }
    .venue-card--inline .venue-map-link { padding: 9px 20px; font-size: 0.66rem; }
}

/* ===== Footer Section ===== */
.footer-section {
    padding: 90px 20px;
    background: var(--crimson-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top, rgba(146, 38, 63, 0.72) 0%, rgba(123, 31, 52, 0.78) 50%, rgba(92, 14, 36, 0.88) 100%),
        url('Images/ac.jpeg') center/cover no-repeat;
    z-index: 0;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.25) 100%);
    z-index: 1;
}

.footer-section > .fade-in {
    position: relative;
    z-index: 2;
}

.footer-garland {
    font-size: 1.8rem;
    letter-spacing: 6px;
    margin-bottom: 25px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

.quote-author {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--gold);
    margin-top: 12px;
    margin-bottom: 30px;
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.footer-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.footer-closing p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Music Toggle (floating, all flipbook pages) ===== */
.music-toggle {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: rgba(123, 31, 52, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--gold);
    cursor: pointer;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.music-toggle:not(.playing) {
    animation: musicPulse 2.4s ease-in-out infinite;
}

.music-toggle:hover {
    transform: scale(1.08);
    background: var(--gold);
    color: var(--crimson-dark);
}

.music-toggle.playing {
    background: var(--gold);
    color: var(--crimson-dark);
}

.music-icon-note { font-size: 1.5rem; line-height: 1; }
.music-icon-bars { display: none; gap: 2px; align-items: flex-end; height: 18px; }
.music-icon-bars span {
    display: block;
    width: 3px;
    height: 6px;
    background: currentColor;
    border-radius: 2px;
    animation: musicBar 0.9s ease-in-out infinite;
}
.music-icon-bars span:nth-child(1) { animation-delay: 0s; }
.music-icon-bars span:nth-child(2) { animation-delay: 0.25s; }
.music-icon-bars span:nth-child(3) { animation-delay: 0.45s; }
.music-icon-bars span:nth-child(4) { animation-delay: 0.1s; }

.music-toggle.playing .music-icon-note { display: none; }
.music-toggle.playing .music-icon-bars { display: flex; }

@keyframes musicBar {
    0%, 100% { height: 5px; }
    50% { height: 18px; }
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(255, 215, 0, 0.55); }
    50%      { box-shadow: 0 4px 22px rgba(0, 0, 0, 0.3),  0 0 0 14px rgba(255, 215, 0, 0); }
}

/* ===== Music Page (first flipbook page) ===== */
.music-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--crimson-dark);
    overflow: hidden;
}

.music-page-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, #92263F 0%, #7B1F34 50%, #5C0E24 100%);
    z-index: 0;
}

.music-page-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.music-page-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 28px;
    max-width: 500px;
}

.music-icon-big {
    font-size: 4.5rem;
    color: var(--gold);
    margin-bottom: 18px;
    line-height: 1;
    text-shadow: 0 4px 22px rgba(255, 215, 0, 0.4);
    animation: floatNote 3s ease-in-out infinite;
}

@keyframes floatNote {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.music-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #fff;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 14px;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.3);
}

.music-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 32px;
    line-height: 1.5;
}

.music-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--crimson-dark);
    padding: 14px 32px 14px 18px;
    border: none;
    background: linear-gradient(135deg, #FFD700, #FFC107, #FFB300);
    border-radius: 60px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 22px rgba(255, 193, 7, 0.4);
    -webkit-tap-highlight-color: transparent;
    margin-bottom: 28px;
}

.music-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.55);
    background: linear-gradient(135deg, #FFE44D, #FFD700, #FFC107);
}

.music-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(123, 31, 52, 0.14);
    font-size: 1rem;
    line-height: 1;
}

.music-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.65);
}

@media (max-width: 600px) {
    .music-toggle { width: 48px; height: 48px; right: 14px; bottom: 14px; }
    .music-icon-note { font-size: 1.25rem; }
    .music-icon-bars { height: 15px; }
    .music-icon-bars span { width: 2.5px; }
    .music-icon-big { font-size: 3.4rem; margin-bottom: 12px; }
    .music-title { font-size: 2.4rem; margin-bottom: 8px; }
    .music-subtitle { font-size: 0.95rem; margin-bottom: 24px; }
    .music-cta { font-size: 0.78rem; padding: 12px 24px 12px 14px; gap: 10px; letter-spacing: 3px; margin-bottom: 20px; }
    .music-cta-icon { width: 30px; height: 30px; }
    .music-hint { font-size: 0.62rem; letter-spacing: 2.5px; }
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .hero-names {
        font-size: 2.8rem;
    }

    .hero-date {
        font-size: 1rem;
    }

    .hero-emblem {
        width: 55px;
    }

    .auspicious-emblem {
        width: 70px;
    }

    .footer-garland {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .section-heading.script {
        font-size: 2rem;
    }

    .mantra {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .countdown {
        gap: 8px;
        margin-top: 15px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-item {
        min-width: 55px;
        padding: 10px 6px;
    }

    .countdown-label {
        font-size: 0.55rem;
        margin-top: 4px;
    }

    .person-name {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .parent-name {
        font-size: 0.95rem;
    }

    .relation {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .grand-relation {
        font-size: 0.75rem;
    }

    .grand-name {
        font-size: 0.85rem;
    }

    .family-card {
        padding: 12px 15px;
    }

    .event-card {
        padding: 10px 14px;
        gap: 12px;
        margin-bottom: 8px;
    }

    .event-icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .event-name {
        font-size: 1.1rem;
    }

    .event-name-en {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }

    .event-time {
        font-size: 0.7rem;
    }

    .event-desc {
        display: none;
    }

    .event-day {
        margin: 10px 0 6px;
    }

    .venue-name {
        font-size: 1.8rem;
    }

    .venue-card {
        padding: 25px 18px;
    }

    .venue-address {
        font-size: 0.95rem;
    }

    .footer-names {
        font-size: 2rem;
    }

    .quote {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .quote-author {
        font-size: 0.7rem;
        margin-bottom: 15px;
    }

    .auspicious,
    .countdown-section,
    .family-section,
    .events-section,
    .venue-section,
    .footer-section {
        padding: 40px 15px;
    }
}

/* ===== Print ===== */
@media print {
    .hero {
        min-height: auto;
        padding: 40px;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}
