/* =============================================
   Wedding Invitation - Elegant Styles
   ============================================= */

/* CSS Custom Properties (Color Palette) */
:root {
    /* Primary Colors - Ivory & Pink Theme */
    --ivory: #FBF9F7;
    --ivory-dark: #F5F0EB;
    --cream: #F8F4EF;
    --warm-white: #FFFCFA;
    
    /* Pink Palette (Bride's Lehenga) */
    --pink-light: #FADDE1;
    --pink: #F4C2C2;
    --pink-medium: #E8A9A9;
    --pink-deep: #D4919A;
    --rose: #C77B8B;
    --rose-deep: #B76E7E;
    
    /* Ivory/Gold (Groom's Sherwani) */
    --ivory-gold: #F5EBD9;
    --gold: #D4AF37;
    --gold-light: #E6C866;
    --gold-muted: #C9B896;
    --gold-shimmer: linear-gradient(135deg, #D4AF37 0%, #F5E6B8 50%, #D4AF37 100%);
    
    /* Accent Colors */
    --sage: #9CAF88;
    --sage-light: #B5C4A8;
    
    /* Text Colors */
    --text-dark: #3D3535;
    --text-medium: #5C5252;
    --text-light: #8A8080;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(61, 53, 53, 0.08);
    --shadow-medium: 0 8px 40px rgba(61, 53, 53, 0.12);
    --shadow-heavy: 0 15px 60px rgba(61, 53, 53, 0.18);
    --shadow-card: 0 25px 80px rgba(61, 53, 53, 0.25);
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Transitions */
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Varmala Animation Colors - Easy to customize! */
    --varmala-bg-color: #FFC5C5;
    --varmala-bride-saree-color: #ED1C24;
    --varmala-groom-sherwani-color: #FFF3C4;
    --varmala-groom-scarf-color: #9E1F26;
}

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

html {
    scroll-behavior: smooth;
    font-size: 17px; /* Increased from 16px for better readability */
    /* Prevent horizontal overflow on mobile */
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--ivory);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Better touch scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    /* Prevent horizontal scroll */
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Hide scrollbar during animation */
body.no-scroll {
    overflow: hidden;
}

/* =============================================
   Minimalistic Card Opening Animation
   ============================================= */
.card-animation-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ivory) 0%, var(--pink-light) 50%, var(--ivory-gold) 100%);
    z-index: 1000;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.card-animation-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Invitation Card Container */
.invitation-card-container {
    position: relative;
    width: 380px;
    height: 520px;
    perspective: 2000px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Card Cover (Front) */
.card-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink) 100%);
    border-radius: 4px;
    box-shadow: var(--shadow-card);
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    overflow: hidden;
}

.invitation-card-container.opening .card-cover {
    transform: rotateY(-165deg);
}

.cover-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1.5px solid var(--gold);
    border-radius: 2px;
    pointer-events: none;
}

.cover-ornament-top,
.cover-ornament-bottom {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.3;
    pointer-events: none;
}

.cover-ornament-top {
    top: 20px;
    right: 20px;
    background: radial-gradient(circle, var(--rose) 0%, transparent 70%);
    border-radius: 50%;
}

.cover-ornament-bottom {
    bottom: 20px;
    left: 20px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    border-radius: 50%;
}

.cover-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 2rem;
}

.cover-om {
    font-size: 3rem;
    color: var(--rose-deep);
    margin-bottom: 1rem;
    font-weight: 400; /* Increased from 300 */
    /* Ensure Om symbol renders properly on all devices */
    font-family: 'Noto Sans Devanagari', 'Tiro Devanagari Hindi', 'Segoe UI Symbol', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cover-ganpati {
    margin: 0 auto 1rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ganesha-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

.cover-initials {
    font-family: 'Tangerine', var(--font-serif);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--rose-deep);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.cover-divider {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 1rem;
}

.cover-title {
    font-family: var(--font-sans);
    font-size: 0.8rem; /* Increased from 0.75rem */
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-medium);
    margin-bottom: 0.75rem;
    font-weight: 500; /* Increased from 300 */
}

.cover-date {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-medium);
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.cover-heart {
    font-size: 2rem;
    color: var(--rose);
    margin-top: 1rem;
    display: inline-block;
    animation: heartBeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(199, 123, 139, 0.3));
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Card Inside (Revealed) */
.card-inside {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--ivory) 100%);
    border-radius: 4px;
    box-shadow: var(--shadow-medium);
    z-index: 1;
    overflow: hidden;
    /* Hide content initially - only show when card is opening */
    backface-visibility: hidden;
}

/* Show inside content only when card is opening */
.invitation-card-container:not(.opening) .card-inside .inside-content {
    opacity: 0;
    visibility: hidden;
}

.invitation-card-container.opening .card-inside .inside-content {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease 0.8s, visibility 0.5s ease 0.8s;
}

.inside-border {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1.5px solid var(--gold);
    border-radius: 2px;
    pointer-events: none;
}

.inside-ornament-top,
.inside-ornament-bottom {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.2;
    pointer-events: none;
}

.inside-ornament-top {
    top: 25px;
    left: 25px;
    background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
    border-radius: 50%;
}

.inside-ornament-bottom {
    bottom: 25px;
    right: 25px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    border-radius: 50%;
}

.inside-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 2.5rem 2rem;
    max-height: 90%;
    overflow: visible;
}

.inside-om {
    font-size: 2.5rem;
    color: var(--rose);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: 500; /* Added weight */
    padding-top: 0.25rem;
    /* Ensure Om symbol renders properly on all devices */
    font-family: 'Noto Sans Devanagari', 'Tiro Devanagari Hindi', 'Segoe UI Symbol', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.inside-blessing {
    font-family: var(--font-serif);
    font-size: 1.2rem; /* Increased from 1.1rem */
    font-weight: 500; /* Added weight */
    color: var(--gold);
    margin-bottom: 2rem;
}

.inside-names {
    margin-bottom: 1.5rem;
}

.name {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 500; /* Increased from 400 to match Hindi */
    display: block;
    line-height: 1.1;
}

.bride-name {
    color: var(--rose-deep);
}

.groom-name {
    color: var(--text-dark);
}

.ampersand {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--gold);
    font-weight: 500; /* Added weight */
    display: block;
    margin: 0.5rem 0;
}

.inside-tagline {
    font-family: var(--font-serif);
    font-size: 1rem; /* Increased from 0.9rem */
    font-style: italic;
    font-weight: 500; /* Added weight */
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.inside-date {
    font-family: var(--font-sans);
    font-size: 0.95rem; /* Increased from 0.85rem */
    font-weight: 500; /* Added weight */
    letter-spacing: 0.1em;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    padding: 0.7rem 1.5rem;
    border-top: 1px solid var(--pink-light);
    border-bottom: 1px solid var(--pink-light);
}

.inside-venue {
    font-family: var(--font-serif);
    font-size: 1.1rem; /* Increased from 1rem */
    font-weight: 500; /* Added weight */
    color: var(--text-dark);
    line-height: 1.6;
}

.venue-city {
    font-size: 1rem; /* Increased from 0.9rem */
    font-weight: 500; /* Added weight */
    color: var(--text-light);
}

/* Card Tap Hint */
.card-tap-hint {
    margin-top: 3.5rem;
    font-family: var(--font-sans);
    font-size: 0.95rem; /* Increased from 0.85rem */
    font-weight: 500; /* Added weight */
    color: var(--text-medium);
    letter-spacing: 0.1em;
    text-align: center;
    animation: subtlePulse 2.5s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.7; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

/* =============================================
   Main Content
   ============================================= */
.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease 0.5s;
}

.main-content.visible {
    opacity: 1;
    visibility: visible;
}

/* =============================================
   Falling Flowers Animation (Rose, Jasmine, Marigold)
   ============================================= */
.falling-petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

/* Rose Flower */
.flower {
    position: absolute;
    width: 20px;
    height: 20px;
    animation: fall linear infinite;
}

.flower.rose {
    background: radial-gradient(circle at 30% 30%, var(--pink) 0%, var(--rose) 100%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.flower.jasmine {
    background: radial-gradient(circle at 30% 30%, var(--warm-white) 0%, var(--ivory) 100%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.flower.marigold {
    background: radial-gradient(circle at 30% 30%, var(--gold-light) 0%, var(--gold) 100%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* Event-Specific Card Decorations */
/* Haldi Event - Enhanced Turmeric Splashes & Patches */
.haldi-event {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 245, 200, 0.4) 50%, var(--warm-white) 100%);
    border-left: 3px solid var(--gold-light);
}

.haldi-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.25;
}

.turmeric-splash {
    position: absolute;
    background: radial-gradient(circle, #FFD700 0%, #FFC107 30%, transparent 70%);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
    filter: blur(2px);
}

.turmeric-splash:nth-child(1) {
    width: 90px;
    height: 90px;
    top: 10%;
    right: 8%;
    animation-delay: 0s;
}

.turmeric-splash:nth-child(2) {
    width: 70px;
    height: 70px;
    top: 45%;
    right: 15%;
    animation-delay: 1s;
}

.turmeric-splash:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

.turmeric-splash:nth-child(4) {
    width: 50px;
    height: 50px;
    top: 65%;
    right: 5%;
    animation-delay: 0.5s;
}

.turmeric-splash:nth-child(5) {
    width: 40px;
    height: 40px;
    top: 25%;
    right: 20%;
    animation-delay: 1.5s;
}

/* Turmeric patches (irregular shapes) */
.turmeric-patch {
    position: absolute;
    background: radial-gradient(ellipse, rgba(255, 215, 0, 0.6) 0%, transparent 60%);
    border-radius: 60% 40% 50% 70%;
    animation: float 4s ease-in-out infinite;
}

.turmeric-patch:nth-child(6) {
    width: 100px;
    height: 60px;
    top: 30%;
    right: 25%;
    animation-delay: 0.7s;
    transform: rotate(25deg);
}

.turmeric-patch:nth-child(7) {
    width: 80px;
    height: 50px;
    bottom: 35%;
    right: 3%;
    animation-delay: 1.8s;
    transform: rotate(-15deg);
}

.turmeric-patch:nth-child(8) {
    width: 70px;
    height: 45px;
    top: 50%;
    right: 18%;
    animation-delay: 2.5s;
    transform: rotate(40deg);
}

/* Haldi leaves */
.haldi-leaf {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.3;
    animation: leafSway 3s ease-in-out infinite;
}

.haldi-leaf:nth-child(9) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.haldi-leaf:nth-child(10) {
    bottom: 20%;
    left: 5%;
    animation-delay: 1.5s;
    transform: rotate(-30deg);
}

@keyframes leafSway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

/* Mehendi & Sangeet Event - Enhanced Henna Patterns & Music */
.mehendi-event {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.08) 0%, rgba(160, 82, 45, 0.05) 50%, var(--warm-white) 100%);
    border-left: 3px solid var(--rose);
}

.mehendi-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.mehendi-pattern {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.18;
    stroke: #8B4513;
    animation: patternPulse 3s ease-in-out infinite;
}

.mehendi-pattern:nth-child(1) {
    top: 10%;
    right: 5%;
    transform: rotate(15deg);
}

.mehendi-pattern-2 {
    top: auto !important;
    bottom: 15% !important;
    right: 8% !important;
    transform: rotate(-20deg) !important;
    opacity: 0.15 !important;
}

.mehendi-pattern-3 {
    top: 50% !important;
    right: 3% !important;
    transform: rotate(45deg) translateY(-50%) !important;
    opacity: 0.12 !important;
    width: 80px !important;
    height: 80px !important;
}

/* Music notes for Sangeet */
.music-note {
    position: absolute;
    font-size: 2rem;
    color: var(--rose);
    opacity: 0.25;
    animation: musicFloat 3s ease-in-out infinite;
}

.music-note:nth-child(4) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.music-note:nth-child(5) {
    top: 40%;
    left: 5%;
    animation-delay: 0.8s;
}

.music-note:nth-child(6) {
    top: 65%;
    left: 10%;
    animation-delay: 1.6s;
}

.music-note:nth-child(7) {
    top: 85%;
    left: 6%;
    animation-delay: 2.4s;
}

/* Henna hand */
.henna-hand {
    position: absolute;
    bottom: 10%;
    right: 12%;
    font-size: 2.5rem;
    opacity: 0.2;
    animation: handGlow 2s ease-in-out infinite;
}

@keyframes patternPulse {
    0%, 100% { 
        opacity: 0.18;
        transform: scale(1);
    }
    50% { 
        opacity: 0.25;
        transform: scale(1.05);
    }
}

@keyframes musicFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        opacity: 0.25;
    }
    50% { 
        transform: translateY(-15px) rotate(10deg);
        opacity: 0.35;
    }
}

@keyframes handGlow {
    0%, 100% { 
        opacity: 0.2;
        filter: drop-shadow(0 0 5px rgba(139, 69, 19, 0.3));
    }
    50% { 
        opacity: 0.3;
        filter: drop-shadow(0 0 10px rgba(139, 69, 19, 0.5));
    }
}

/* Wedding Event - Traditional Mandap with Sacred Elements */
.wedding-event {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 248, 220, 0.3) 0%, 
        rgba(244, 194, 194, 0.25) 30%, 
        rgba(212, 175, 55, 0.15) 60%, 
        var(--warm-white) 100%);
    border-left: 3px solid var(--rose-deep);
    box-shadow: inset 0 0 60px rgba(212, 175, 55, 0.08);
}

.wedding-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Sacred Fire (Agni) */
.sacred-fire {
    position: absolute;
    bottom: 50%;
    left: 5%;
    width: 40px;
    height: 50px;
}

.fire-flame {
    position: absolute;
    bottom: 0;
    width: 18px;
    height: 30px;
    background: linear-gradient(180deg, #FFD700 0%, #FF6B35 50%, #FF4500 100%);
    border-radius: 50% 50% 0 0;
    animation: flameFlicker 1.5s ease-in-out infinite;
    opacity: 0.3;
}

.fire-flame:nth-child(1) {
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.fire-flame:nth-child(2) {
    left: 20%;
    transform: scale(0.8);
    animation-delay: 0.3s;
}

.fire-flame:nth-child(3) {
    left: 70%;
    transform: scale(0.8);
    animation-delay: 0.6s;
}

@keyframes flameFlicker {
    0%, 100% {
        transform: translateX(-50%) scaleY(1) scaleX(1);
        opacity: 0.3;
    }
    25% {
        transform: translateX(-50%) scaleY(1.15) scaleX(0.95);
        opacity: 0.4;
    }
    50% {
        transform: translateX(-50%) scaleY(0.95) scaleX(1.05);
        opacity: 0.35;
    }
    75% {
        transform: translateX(-50%) scaleY(1.05) scaleX(0.98);
        opacity: 0.38;
    }
}

/* Mandap Pillars */
.mandap-pillar {
    position: absolute;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--gold-light) 0%, 
        var(--gold) 50%, 
        var(--gold-muted) 100%);
    opacity: 0.2;
}

.mandap-left {
    left: 2%;
    top: 0;
}

.mandap-right {
    right: 2%;
    top: 0;
}

.mandap-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.4;
}

.mandap-pillar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--gold-muted);
    border-radius: 50%;
    opacity: 0.4;
}

.varmala-garland {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 120px;
    height: 60px;
    opacity: 0.25;
    animation: garlandSway 3s ease-in-out infinite;
}

@keyframes garlandSway {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

.phera-circles {
    position: absolute;
    bottom: 15%;
    right: 10%;
    display: flex;
    gap: 8px;
}

.phera-circle {
    width: 35px;
    height: 35px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    opacity: 0.3;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.phera-circle:nth-child(2) {
    animation-delay: 0.3s;
}

.phera-circle:nth-child(3) {
    animation-delay: 0.6s;
}

.om-symbol {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--gold);
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.5; 
    }
}

/* Marigold flowers */
.marigold-flower {
    position: absolute;
    font-size: 2rem;
    opacity: 0.25;
    animation: flowerFloat 3s ease-in-out infinite;
}

.marigold-flower:nth-child(10) {
    top: 20%;
    left: 8%;
    animation-delay: 0s;
}

.marigold-flower:nth-child(11) {
    top: 55%;
    left: 12%;
    animation-delay: 1s;
}

.marigold-flower:nth-child(12) {
    bottom: 25%;
    left: 6%;
    animation-delay: 2s;
}

@keyframes flowerFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        opacity: 0.25;
    }
    50% { 
        transform: translateY(-8px) rotate(10deg);
        opacity: 0.35;
    }
}

/* Remove featured badge styles */
.event-card.featured {
    background: inherit;
}

.featured-badge {
    display: none;
}

/* =============================================
   Share Button
   ============================================= */
.share-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 25px rgba(199, 123, 139, 0.4);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    /* Ensure button stays visible on mobile */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.share-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 35px rgba(199, 123, 139, 0.6);
}

.share-button:active {
    transform: scale(0.95);
}

.share-button svg {
    stroke: var(--ivory);
    flex-shrink: 0;
}

.share-text {
    font-family: var(--font-sans);
    font-size: 0.75rem; /* Increased from 0.65rem for better readability */
    color: var(--ivory);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Share button pulse animation */
@keyframes sharePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.share-button.pulse {
    animation: sharePulse 2s ease-in-out infinite;
}

/* =============================================
   Language Toggle Button
   ============================================= */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--warm-white);
    border: 1.5px solid var(--gold);
    border-radius: 30px;
    padding: 10px 18px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.3);
    border-color: var(--gold-light);
    background: var(--ivory);
}

.language-toggle:active {
    transform: translateY(0) scale(0.98);
}

.lang-icon {
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.lang-text {
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Floating Floral Decorations */
.floral-corner {
    position: fixed;
    width: 220px;
    height: 220px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.75;
    background-image: url('assets/floral-corner.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.floral-top-left {
    top: -30px;
    left: -30px;
    transform: rotate(0deg);
}

.floral-top-right {
    top: -30px;
    right: -30px;
    transform: scaleX(-1);
}

.floral-bottom-left {
    bottom: -30px;
    left: -30px;
    transform: scaleY(-1);
}

.floral-bottom-right {
    bottom: -30px;
    right: -30px;
    transform: scale(-1);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--ivory) 100%);
    overflow: hidden;
}

/* Hero floral decorations - top area */
.hero::before {
    content: '🌸';
    position: absolute;
    font-size: 4rem;
    opacity: 0.12;
    top: 10%;
    left: 8%;
    transform: rotate(-25deg);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '🌺';
    position: absolute;
    font-size: 3.5rem;
    opacity: 0.12;
    top: 15%;
    right: 10%;
    transform: rotate(20deg);
    pointer-events: none;
    z-index: 0;
}

.hero-frame {
    text-align: center;
    max-width: 600px;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

/* Additional floral decorations around hero frame */
.hero-frame::before {
    content: '✿';
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.1;
    bottom: 15%;
    left: -5%;
    transform: rotate(45deg);
    pointer-events: none;
}

.hero-frame::after {
    content: '❀';
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.1;
    bottom: 20%;
    right: -5%;
    transform: rotate(-45deg);
    pointer-events: none;
}

/* Decorative Lines */
.decorative-line {
    width: 120px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto;
    position: relative;
}

.decorative-line::before,
.decorative-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
    top: -4px;
}

.decorative-line::before {
    left: -12px;
}

.decorative-line::after {
    right: -12px;
}

.decorative-line.top {
    margin-bottom: 1rem;
}

.decorative-line.bottom {
    margin-top: 1rem;
}

/* Hero Text */
/* Auspicious Symbol */
.auspicious-symbol {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--rose);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.hero-pretext {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; /* Increased from 1rem */
    font-style: italic;
    font-weight: 600; /* Increased from 500 to match Hindi boldness */
    color: var(--text-dark); /* Changed from text-medium to be darker */
    margin-bottom: 2rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7; /* Increased from 1.6 */
    letter-spacing: 0.03em;
}

.hero-subtext {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; /* Increased from 1.1rem */
    font-style: italic;
    font-weight: 600; /* Increased from 500 to match Hindi boldness */
    color: var(--text-dark); /* Changed from text-medium to be darker */
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.couple-names {
    margin-bottom: 2rem;
    padding: 1rem 0;
    position: relative;
}

/* Floral decorations around couple names */
.couple-names::before {
    content: '🌹';
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    top: 0;
    left: 10%;
    transform: rotate(-30deg);
    pointer-events: none;
}

.couple-names::after {
    content: '🌹';
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    top: 0;
    right: 10%;
    transform: rotate(30deg);
    pointer-events: none;
}

.bride-name,
.groom-name {
    font-family: 'Tangerine', cursive;
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 700;
    color: var(--deep-rose);
    line-height: 1;
    letter-spacing: 0.02em;
    position: relative;
    display: inline-block;
    text-shadow: 
        0 1px 0 rgba(212, 175, 55, 0.3),
        0 2px 0 rgba(212, 175, 55, 0.2),
        0 3px 0 rgba(212, 175, 55, 0.1),
        0 10px 30px rgba(199, 123, 139, 0.2);
}

.bride-name::after,
.groom-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--gold) 20%, 
        var(--gold) 80%, 
        transparent 100%);
    opacity: 0.5;
}

.ampersand {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-style: italic;
    font-weight: 400;
    color: var(--gold);
    margin: 1rem 0;
    opacity: 0.9;
    position: relative;
}

.ampersand::before,
.ampersand::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5em;
    color: var(--rose);
    opacity: 0.6;
}

.ampersand::before {
    left: -2rem;
}

.ampersand::after {
    right: -2rem;
}

.hero-subtext {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

/* Wedding Date */
.wedding-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

/* Floral decorations around wedding date */
.wedding-date::before {
    content: '🌼';
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.12;
    left: 5%;
    transform: rotate(-15deg);
    pointer-events: none;
}

.wedding-date::after {
    content: '🌼';
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.12;
    right: 5%;
    transform: rotate(15deg);
    pointer-events: none;
}

.date-ornament {
    color: var(--gold);
    font-size: 0.9rem; /* Increased from 0.75rem */
}

.date-details {
    text-align: center;
}

.date-details span {
    display: block;
}

.date-details .day {
    font-family: var(--font-sans);
    font-size: 0.85rem; /* Increased from 0.7rem */
    font-weight: 600; /* Added weight */
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
}

.date-details .date {
    font-family: var(--font-sans);
    font-size: 1.5rem; /* Increased from 1.3rem */
    font-weight: 600; /* Increased from 500 */
    color: var(--text-dark);
    margin: 0.25rem 0;
}

.date-details .time {
    font-family: var(--font-serif);
    font-size: 1.05rem; /* Increased from 0.9rem */
    font-style: italic;
    font-weight: 500; /* Added weight */
    color: var(--text-medium);
}

/* Venue Preview */
.venue-preview {
    margin-bottom: 1rem;
    position: relative;
}

/* Floral decoration for venue */
.venue-preview::before {
    content: '🏵️';
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.1;
    left: 50%;
    top: -1.5rem;
    transform: translateX(-50%);
    pointer-events: none;
}

.venue-preview .venue-name {
    font-family: var(--font-serif);
    font-size: 1.3rem; /* Increased from 1.1rem */
    font-weight: 600; /* Added weight */
    color: var(--text-dark);
}

.venue-preview .venue-city {
    font-family: var(--font-sans);
    font-size: 0.95rem; /* Increased from 0.8rem */
    font-weight: 500; /* Added weight */
    color: var(--text-light);
    letter-spacing: 0.1em;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.scroll-indicator span {
    font-family: var(--font-sans);
    font-size: 0.85rem; /* Increased from 0.7rem */
    font-weight: 500; /* Added weight */
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
}

.scroll-arrow {
    color: var(--gold);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* =============================================
   Section Header (Shared)
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.header-ornament {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500; /* Added weight to match Hindi */
    color: var(--text-medium); /* Changed from text-light to be darker */
}

/* =============================================
   Family Section
   ============================================= */
.family-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}

/* Family section floral decorations */
.family-section::before {
    content: '🌺';
    position: absolute;
    font-size: 5rem;
    opacity: 0.08;
    top: 10%;
    left: 5%;
    transform: rotate(-20deg);
    pointer-events: none;
    z-index: 0;
}

.family-section::after {
    content: '🌸';
    position: absolute;
    font-size: 4.5rem;
    opacity: 0.08;
    bottom: 10%;
    right: 5%;
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 0;
}

.families-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%; /* Ensure full width usage */
}

.family-card {
    background: var(--warm-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(201, 168, 108, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%; /* Ensure cards use full available width */
}

.family-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-shimmer);
}

/* Floral decorations in family cards */
.family-card::after {
    content: '🌸';
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%) rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}

.groom-family::after {
    content: '🌺';
    left: 1rem;
    right: auto;
    transform: translateY(-50%) rotate(15deg);
}

.bride-family::after {
    content: '🌸';
    opacity: 0.15;
}

.family-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cream);
    position: relative;
    z-index: 1;
}

.family-header h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.family-ornament {
    color: var(--rose);
    font-size: 1rem;
}

.family-member {
    text-align: center;
    padding: 0.75rem 0; /* Reduced from 1rem for tighter spacing */
    position: relative;
}

/* Add subtle floral decorations to alternate family member sections */
.family-member:nth-child(odd)::before {
    content: '✿';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.1;
    color: var(--sage-medium);
}

.family-member:nth-child(even)::before {
    content: '❀';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.1;
    color: var(--pink-medium);
}

.member-label {
    font-family: var(--font-sans);
    font-size: 0.85rem; /* Increased from 0.75rem */
    font-weight: 600; /* Added weight */
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem; /* Reduced from 0.5rem */
    position: relative;
    z-index: 1;
}

.member-name {
    font-family: var(--font-serif);
    font-size: 1.4rem; /* Increased from 1.25rem */
    font-weight: 600; /* Increased from 500 to match Hindi */
    color: var(--text-dark);
    line-height: 1.4; /* Reduced from 1.5 for tighter spacing */
    margin-bottom: 0.3rem; /* Added to control spacing */
    position: relative;
    z-index: 1;
}

.member-name.late {
    font-style: italic;
    color: var(--text-medium); /* Changed from text-light to be more visible */
    font-weight: 500; /* Added weight for late members */
}

.member-name.featured {
    font-size: 2.2rem; /* Increased from 2rem */
    color: var(--rose);
    font-weight: 700; /* Increased from 600 to match Hindi emphasis */
}

.heart-icon {
    color: var(--rose);
    font-size: 1rem; /* Increased from 0.9rem */
    margin-left: 0.3rem;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.member-connector {
    font-family: var(--font-serif);
    font-size: 1.1rem; /* Increased from 1rem */
    font-weight: 500; /* Added weight */
    color: var(--text-light);
    margin: 0.15rem 0;
}

.family-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
    margin: 0.4rem 0; /* Reduced from 0.5rem for tighter spacing */
}

/* =============================================
   Events Section
   ============================================= */
.events {
    padding: 5rem 2rem;
    background: var(--ivory);
    position: relative;
    overflow: hidden;
}

/* Events section floral decorations */
.events::before {
    content: '🌼';
    position: absolute;
    font-size: 4.5rem;
    opacity: 0.1;
    top: 8%;
    left: 8%;
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 0;
}

.events::after {
    content: '🌻';
    position: absolute;
    font-size: 5rem;
    opacity: 0.1;
    bottom: 8%;
    right: 8%;
    transform: rotate(-25deg);
    pointer-events: none;
    z-index: 0;
}

.events-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.event-card {
    background: var(--warm-white);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(201, 168, 108, 0.15);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink-light), var(--pink-medium), var(--sage-light));
}

/* Floral decoration in event cards */
.event-card::after {
    content: '✿';
    position: absolute;
    font-size: 3rem;
    opacity: 0.08;
    bottom: 1rem;
    right: 1rem;
    transform: rotate(-20deg);
    pointer-events: none;
    z-index: 0;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.event-card.featured {
    border: 2px solid var(--gold-light);
    background: linear-gradient(180deg, var(--warm-white) 0%, rgba(201, 168, 108, 0.05) 100%);
}

.event-card.featured::before {
    height: 4px;
    background: var(--gold-shimmer);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--rose);
    color: var(--warm-white);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 2.5rem;
    transform: rotate(45deg);
}

.event-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--ivory) 100%);
    border-radius: 50%;
    color: var(--rose);
}

.event-name {
    font-family: var(--font-serif);
    font-size: 1.5rem; /* Increased from 1.3rem */
    font-weight: 600; /* Increased from 500 */
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.event-details {
    margin-bottom: 1rem;
}

.event-details p {
    font-size: 1rem; /* Increased from 0.85rem */
    font-weight: 500; /* Added weight */
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.detail-icon {
    font-size: 0.9rem; /* Increased from 0.75rem */
}

.event-description {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem; /* Increased from 0.9rem */
    font-weight: 600; /* Increased from 500 to match Hindi */
    color: var(--text-medium); /* Changed from text-light to be darker */
    border-top: 1px solid var(--cream);
    padding-top: 1rem;
    margin-top: 1rem;
    line-height: 1.6; /* Added line-height */
}

/* =============================================
   Location Section
   ============================================= */
.location {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--cream) 0%, var(--ivory) 100%);
    position: relative;
    overflow: hidden;
}

/* Location section floral decorations */
.location::before {
    content: '🏵️';
    position: absolute;
    font-size: 5.5rem;
    opacity: 0.09;
    top: 12%;
    left: 6%;
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 0;
}

.location::after {
    content: '🌹';
    position: absolute;
    font-size: 4.5rem;
    opacity: 0.09;
    bottom: 12%;
    right: 6%;
    transform: rotate(-30deg);
    pointer-events: none;
    z-index: 0;
}

.location-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.location-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

/* Subtle floral in location card */
.location-card::after {
    content: '🌼';
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.1;
    bottom: 1rem;
    right: 1rem;
    transform: rotate(20deg);
    pointer-events: none;
    z-index: 0;
}

.venue-illustration {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm-white);
    border-radius: 50%;
    color: var(--rose);
    box-shadow: var(--shadow-soft);
}

.location-venue-name {
    font-family: var(--font-serif);
    font-size: 2rem; /* Increased from 1.8rem */
    font-weight: 600; /* Increased from 500 */
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.location-address {
    font-size: 1.1rem; /* Increased from 0.95rem */
    font-weight: 500; /* Added weight */
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.location-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.feature {
    font-size: 0.95rem; /* Increased from 0.8rem */
    font-weight: 500; /* Added weight */
    color: var(--text-light);
    background: var(--warm-white);
    padding: 0.5rem 1rem; /* Increased padding */
    border-radius: 20px;
    border: 1px solid var(--cream);
}

/* Map Container */
.map-container {
    text-align: center;
    padding: 2rem;
    background: var(--warm-white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(201, 168, 108, 0.2);
}

.qr-section {
    margin-bottom: 1.5rem;
}

.qr-label {
    font-family: var(--font-sans);
    font-size: 0.9rem; /* Increased from 0.75rem */
    font-weight: 600; /* Added weight */
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.qr-code {
    display: inline-block;
    padding: 1rem;
    background: var(--warm-white);
    border-radius: 8px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--warm-white);
    background: var(--rose);
    padding: 0.875rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(199, 123, 139, 0.3);
    /* Touch-friendly */
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.directions-btn:hover,
.directions-btn:active {
    background: var(--rose-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 123, 139, 0.4);
}

/* =============================================
   Final Invitation Section
   ============================================= */
.final-invitation {
    padding: 5rem 2rem;
    background: var(--ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Final invitation section floral decorations */
.final-invitation::before {
    content: '🌸';
    position: absolute;
    font-size: 6rem;
    opacity: 0.08;
    top: 8%;
    left: 10%;
    transform: rotate(-35deg);
    pointer-events: none;
    z-index: 0;
}

.final-invitation::after {
    content: '🌺';
    position: absolute;
    font-size: 5.5rem;
    opacity: 0.08;
    bottom: 8%;
    right: 10%;
    transform: rotate(35deg);
    pointer-events: none;
    z-index: 0;
}

.invitation-card {
    position: relative;
    max-width: 500px;
    width: 100%;
    padding: 4rem 3rem;
    background: var(--warm-white);
    border-radius: 4px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    z-index: 1;
}

/* Card Texture Overlay */
.card-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Gold Border */
.gold-border {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid var(--gold-light);
    border-radius: 2px;
    pointer-events: none;
}

/* Invitation Floral Corners */
.invitation-floral {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.65;
    background-image: url('assets/floral-corner.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.invitation-floral.top-left {
    top: 15px;
    left: 15px;
    transform: rotate(0deg);
}

.invitation-floral.top-right {
    top: 15px;
    right: 15px;
    transform: scaleX(-1);
}

.invitation-floral.bottom-left {
    bottom: 15px;
    left: 15px;
    transform: scaleY(-1);
}

.invitation-floral.bottom-right {
    bottom: 15px;
    right: 15px;
    transform: scale(-1);
}

/* Invitation Content */
.invitation-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.invitation-om {
    font-size: 2.5rem;
    color: var(--rose);
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

/* Subtle floral decoration around Om */
.invitation-om::before {
    content: '✿';
    position: absolute;
    font-size: 1.2rem;
    opacity: 0.15;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
}

.invitation-om::after {
    content: '✿';
    position: absolute;
    font-size: 1.2rem;
    opacity: 0.15;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
}

.invitation-sanskrit {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.invitation-prelude {
    font-family: var(--font-serif);
    font-size: 1.1rem; /* Increased from 0.95rem */
    font-style: italic;
    font-weight: 600; /* Increased from 500 to match Hindi */
    color: var(--text-medium); /* Changed from text-light to be darker */
    margin-bottom: 1.5rem;
    line-height: 1.7; /* Added line-height */
}

.invitation-names {
    margin-bottom: 1.5rem;
}

.invitation-names .name {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 600; /* Increased from 500 to match Hindi */
    color: var(--text-dark);
    display: block;
    line-height: 1.2;
}

.invitation-names .heart {
    display: block;
    font-size: 1.5rem;
    color: var(--rose);
    margin: 0.5rem 0;
}

.invitation-verse {
    font-family: var(--font-serif);
    font-size: 1.2rem; /* Increased from 1.1rem */
    font-style: italic;
    font-weight: 500; /* Added weight */
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* =============================================
   Global Floating Decorative Elements
   ============================================= */
.global-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Floating Flowers - Global */
.floating-flower {
    position: absolute;
    font-size: 2rem;
    opacity: 0;
    animation: globalFlowerFloat 25s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.flower-1 {
    left: 5%;
    animation-delay: 0s;
}

.flower-2 {
    left: 15%;
    animation-delay: 3s;
}

.flower-3 {
    left: 25%;
    animation-delay: 6s;
}

.flower-4 {
    left: 40%;
    animation-delay: 1.5s;
}

.flower-5 {
    left: 55%;
    animation-delay: 4.5s;
}

.flower-6 {
    left: 65%;
    animation-delay: 7.5s;
}

.flower-7 {
    left: 75%;
    animation-delay: 2s;
}

.flower-8 {
    left: 85%;
    animation-delay: 5s;
}

.flower-9 {
    left: 95%;
    animation-delay: 8s;
}

.flower-10 {
    left: 50%;
    animation-delay: 10s;
}

/* Floating Swastik - Global */
.floating-swastik {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0;
    animation: globalSwastikFloat 30s ease-in-out infinite;
}

.swastik-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.3));
}

.swastik-1 {
    left: 10%;
    animation-delay: 0s;
}

.swastik-2 {
    left: 35%;
    animation-delay: 5s;
}

.swastik-3 {
    left: 70%;
    animation-delay: 10s;
}

.swastik-4 {
    left: 90%;
    animation-delay: 15s;
}

/* Global Flower Float Animation */
@keyframes globalFlowerFloat {
    0% {
        top: -10%;
        opacity: 0;
        transform: translateX(0) rotate(0deg) scale(1);
    }
    5% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
        transform: translateX(30px) rotate(180deg) scale(1.1);
    }
    95% {
        opacity: 0.5;
    }
    100% {
        top: 110%;
        opacity: 0;
        transform: translateX(-20px) rotate(360deg) scale(0.9);
    }
}

/* Global Swastik Float Animation */
@keyframes globalSwastikFloat {
    0% {
        top: -10%;
        opacity: 0;
        transform: translateX(0) rotate(0deg) scale(1);
    }
    5% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
        transform: translateX(-20px) rotate(90deg) scale(1.15);
    }
    95% {
        opacity: 0.3;
    }
    100% {
        top: 110%;
        opacity: 0;
        transform: translateX(15px) rotate(180deg) scale(0.95);
    }
}

/* =============================================
   Traditional Hindu Wedding Decorative Elements (Static)
   ============================================= */
.sacred-symbols {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 80px;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* Swastik Symbol - Static Display */
.swastik-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swastik-symbol {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.4));
}

.invitation-divider {
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: var(--gold);
    font-size: 0.7rem; /* Increased from 0.6rem */
    margin-bottom: 1.5rem;
}

.invitation-date-block {
    margin-bottom: 1.5rem;
}

.invitation-date-block span {
    display: block;
}

.inv-day {
    font-family: var(--font-sans);
    font-size: 0.85rem; /* Increased from 0.7rem */
    font-weight: 600; /* Added weight */
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
}

.inv-date {
    font-family: var(--font-sans);
    font-size: 4rem;
    font-weight: 400; /* Increased from 300 */
    color: var(--rose);
    line-height: 1;
    margin: 0.25rem 0;
}

.inv-month {
    font-family: var(--font-serif);
    font-size: 1.35rem; /* Increased from 1.2rem */
    font-weight: 500; /* Added weight */
    color: var(--text-dark);
}

.invitation-venue {
    font-family: var(--font-serif);
    font-size: 1.25rem; /* Increased from 1.1rem */
    font-weight: 500; /* Added weight */
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.venue-sub {
    font-size: 1.05rem; /* Increased from 0.95rem */
    font-weight: 500; /* Added weight */
    color: var(--text-light);
}

.invitation-closing {
    font-family: var(--font-serif);
    font-size: 1.1rem; /* Increased from 0.95rem */
    font-style: italic;
    font-weight: 600; /* Increased from 500 to match Hindi */
    color: var(--text-dark); /* Changed from text-medium to be even darker */
    margin-bottom: 2rem;
    line-height: 1.6; /* Added line-height */
}

.invitation-footer {
    border-top: 1px solid var(--cream);
    padding-top: 1.5rem;
}

.footer-ornament {
    color: var(--gold);
    font-size: 1.35rem; /* Increased from 1.2rem */
    display: block;
    margin-bottom: 0.5rem;
}

.invitation-footer p {
    font-family: var(--font-serif);
    font-size: 1rem; /* Increased from 0.9rem */
    font-weight: 500; /* Added weight */
    color: var(--text-light);
}

.family-names {
    font-size: 1.15rem !important; /* Increased from 1rem */
    font-weight: 600 !important; /* Added weight */
    color: var(--text-medium) !important;
    margin-top: 0.25rem;
}

/* Share Invitation Button */
.share-invitation-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--rose) 0%, var(--pink) 100%);
    color: var(--warm-white);
    border: 2px solid var(--gold);
    border-radius: 8px;
    font-family: var(--font-serif);
    font-size: 1.05rem; /* Increased from 0.95rem */
    font-weight: 600; /* Increased from 500 */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(184, 134, 134, 0.2);
}

.share-invitation-btn:hover {
    background: linear-gradient(135deg, var(--pink) 0%, var(--rose) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(184, 134, 134, 0.3);
}

.share-invitation-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(184, 134, 134, 0.2);
}

.share-invitation-btn svg {
    width: 18px;
    height: 18px;
}

.share-invitation-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    padding: 3rem 2rem;
    background: var(--cream);
    text-align: center;
}

.footer-content {
    max-width: 400px;
    margin: 0 auto;
}

.footer-names {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.footer-date {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-hashtag {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--rose);
    letter-spacing: 0.05em;
}

/* =============================================
   Scroll Animations
   ============================================= */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.95);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* =============================================
   Responsive Design
   ============================================= */

/* Tablet */
@media (max-width: 768px) {
    .location-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .families-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0; /* No padding on container */
        max-width: 100%; /* Use full available width */
    }
    
    .family-card {
        max-width: 100%; /* Allow full width */
        margin: 0; /* Remove extra margin */
        width: 100%; /* Full width of container */
    }
    
    .events-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .hero-frame {
        padding: 2rem 1rem;
    }
    
    .invitation-card {
        padding: 3rem 2rem;
    }
    
    /* Ensure floral corners are visible on tablet */
    .floral-corner {
        width: 150px !important;
        height: 150px !important;
        opacity: 0.6 !important;
    }
    
    /* Card animation adjustments for tablet */
    .invitation-card-container {
        width: 340px;
        height: 480px;
    }
    
    .cover-initials {
        font-size: 3rem;
    }
    
    .name {
        font-size: 2.4rem;
    }
    
    /* Sacred symbols - tablet adjustments */
    .sacred-symbols {
        max-width: 400px;
        height: 70px;
        padding: 0.75rem 0.5rem;
    }
    
    .swastik-symbol {
        width: 60px;
        height: 60px;
    }
    
    /* Global decorations - tablet */
    .floating-flower {
        font-size: 1.6rem;
    }
    
    .floating-swastik {
        width: 35px;
        height: 35px;
    }
    
    /* Share button adjustments */
    .share-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .share-button svg {
        width: 20px;
        height: 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    html {
        font-size: 15px; /* Increased from 14px for better mobile readability */
        /* Improve mobile viewport handling */
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    body {
        /* Prevent bounce scrolling on iOS */
        position: relative;
        min-height: 100vh;
    }
    
    /* Ensure all content is visible and not cut off */
    * {
        max-width: 100%;
    }
    
    /* Ensure floral corners are VERY visible on mobile */
    .floral-corner {
        width: 120px !important;
        height: 120px !important;
        opacity: 0.7 !important;
        display: block !important;
    }
    
    .floral-top-left {
        top: -20px !important;
        left: -20px !important;
    }
    
    .floral-top-right {
        top: -20px !important;
        right: -20px !important;
    }
    
    .floral-bottom-left {
        bottom: -20px !important;
        left: -20px !important;
    }
    
    .floral-bottom-right {
        bottom: -20px !important;
        right: -20px !important;
    }
    
    /* Card Animation Mobile Adjustments */
    .invitation-card-container {
        width: 300px;
        height: 440px;
    }
    
    /* Ensure card-inside doesn't clip content */
    .card-inside {
        overflow: visible !important;
    }
    
    /* CRITICAL: Override inside-content for mobile */
    .card-inside .inside-content {
        padding: 0.8rem 1rem !important; /* Minimal top padding */
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        display: block !important;
        text-align: center !important;
    }
    
    /* CRITICAL: Force Om symbol visibility on mobile */
    .card-inside .inside-om {
        font-size: 1.6rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #C77B8B !important; /* Hard-coded rose color */
        background-color: transparent !important;
        margin: 0 auto 0.4rem auto !important;
        padding: 0 !important;
        font-family: 'Noto Sans Devanagari', 'Tiro Devanagari Hindi', 'Segoe UI Symbol', 'Apple Color Emoji', sans-serif !important;
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
        position: relative !important;
        z-index: 1000 !important;
        text-align: center !important;
        width: 100% !important;
        line-height: 1.2 !important;
        min-height: 1.6rem !important; /* Ensure it takes space */
    }
    
    .cover-om {
        font-size: 1.8rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #B76E7E !important; /* Hard-coded rose-deep color */
        margin: 0 auto 0.3rem auto !important;
        padding: 0 !important;
        font-family: 'Noto Sans Devanagari', 'Tiro Devanagari Hindi', 'Segoe UI Symbol', 'Apple Color Emoji', sans-serif !important;
    }
    
    .cover-ganpati {
        font-size: 1.8rem !important;
        display: block !important;
        visibility: visible !important;
        margin: 0 auto 0.3rem auto !important;
    }
    
    .inside-blessing {
        font-size: 0.95rem; /* Increased from 0.85rem for better readability */
        margin-bottom: 1rem; /* Reduced spacing */
    }
    
    .name {
        font-size: 1.8rem; /* Further reduced from 2rem to fit better */
    }
    
    .ampersand {
        font-size: 1.2rem; /* Further reduced from 1.4rem */
        margin: 0.25rem 0;
    }
    
    .inside-tagline {
        font-size: 0.85rem; /* Increased from 0.7rem for better readability */
        margin-bottom: 0.7rem; /* Reduced spacing */
    }
    
    .inside-date {
        font-size: 0.8rem; /* Increased from 0.65rem for better readability */
        padding: 0.4rem 0.7rem; /* Reduced padding */
        margin-bottom: 0.8rem; /* Reduced spacing */
    }
    
    /* Ensure inside-names doesn't cause overflow issues */
    .inside-names {
        margin-bottom: 1rem;
    }
    
    /* Sacred symbols - mobile adjustments */
    .sacred-symbols {
        max-width: 300px;
        height: 60px;
        padding: 0.5rem;
        margin: 1.5rem auto;
    }
    
    .swastik-symbol {
        width: 50px;
        height: 50px;
    }
    
    /* Global decorations - mobile */
    .floating-flower {
        font-size: 1.3rem;
    }
    
    .floating-swastik {
        width: 28px;
        height: 28px;
    }
    
    .inside-venue {
        font-size: 0.9rem; /* Increased from 0.8rem for better readability */
        line-height: 1.3; /* Tighter line height */
    }
    
    .venue-city {
        font-size: 0.85rem; /* Increased from 0.7rem for better readability */
    }
    
    .cover-ganpati {
        width: 45px;
        height: 45px;
        margin: 0 auto 0.75rem;
    }
    
    .cover-initials {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }
    
    .cover-title {
        font-size: 0.8rem; /* Increased from 0.65rem for better readability */
    }
    
    .cover-date {
        font-size: 0.75rem;
    }
    
    .cover-heart {
        font-size: 1.5rem;
        margin-top: 0.75rem;
    }
    
    /* Language toggle mobile */
    .language-toggle {
        top: 12px;
        right: 12px;
        padding: 8px 14px;
        font-size: 0.8rem;
        gap: 6px;
        border-width: 1.5px;
    }
    
    .lang-icon {
        font-size: 1rem;
    }
    
    .lang-text {
        font-size: 0.85rem; /* Increased from 0.8rem */
    }
    
    /* Share button mobile */
    .share-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        /* Ensure always visible above content */
        position: fixed !important;
        z-index: 99999 !important;
        /* Improve touch target size */
        padding: 8px;
        /* Prevent button from being cut off */
        margin: 0;
        box-shadow: 0 4px 20px rgba(199, 123, 139, 0.5);
    }
    
    .share-button:active {
        transform: scale(0.9);
    }
    
    .share-button svg {
        width: 18px;
        height: 18px;
    }
    
    .share-text {
        font-size: 0.75rem; /* Increased from 0.6rem */
    }
    
    /* Falling flowers - reduce count on mobile for performance */
    .flower:nth-child(n+12) {
        display: none;
    }
    
    .card-tap-hint {
        font-size: 0.9rem; /* Increased from 0.75rem */
        margin-top: 3rem;
    }
    
    /* Mobile Content Optimizations */
    /* Ensure sections don't overflow */
    section {
        width: 100%;
        overflow-x: hidden;
    }
    
    /* Better spacing for mobile readability */
    .main-content {
        width: 100%;
        overflow-x: hidden;
        padding-bottom: 80px; /* Space for share button */
        padding-top: 0 !important; /* No top padding */
        margin-top: 0 !important; /* No top margin */
    }
    
    /* Improve touch targets */
    button,
    a,
    .event-card {
        min-height: 44px; /* iOS recommended touch target */
    }
    
    /* Prevent text from being too small */
    p, span, div {
        font-size: max(15px, 1rem); /* Increased from 14px for better mobile readability */
    }
    
    /* Better image handling on mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Hero Section */
    .hero {
        min-height: 100vh !important; /* Restore full height to prevent overlap */
        padding: 2rem 1.5rem 4rem 1.5rem !important; /* Balanced padding with space for scroll indicator */
        justify-content: center !important; /* Center content vertically */
    }
    
    .hero-frame {
        padding: 1.5rem 1rem !important; /* Reduce padding */
        margin-top: 0 !important; /* Remove any top margin */
        flex: 0 1 auto; /* Don't grow, allow shrink */
    }
    
    .scroll-indicator {
        position: absolute !important;
        bottom: 2rem !important; /* Fixed position at bottom */
        left: 50% !important;
        transform: translateX(-50%) !important; /* Center horizontally */
        z-index: 10 !important; /* Ensure it's visible */
    }
    
    .scroll-indicator span {
        font-size: 0.85rem !important; /* Increased from 0.75rem */
    }
    
    .auspicious-symbol {
        font-size: 1.1rem; /* Increased from 1rem */
        margin-bottom: 1rem !important; /* Reduce margin */
        margin-top: 0 !important; /* No top margin */
    }
    
    .couple-names h1 {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }
    
    .ampersand {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }
    
    .hero-pretext {
        font-size: 1.1rem; /* Increased from 0.85rem */
        margin-bottom: 1.5rem !important; /* Reduce margin */
    }
    
    .hero-subtext {
        font-size: 1.1rem; /* Increased from 0.9rem */
        margin-bottom: 1.5rem !important; /* Reduce margin */
    }
    
    .couple-names {
        margin-bottom: 1.5rem !important; /* Reduce margin */
    }
    
    .wedding-date {
        margin-bottom: 1.5rem !important; /* Reduce margin */
    }
    
    .venue-preview {
        margin-bottom: 1rem !important; /* Reduce margin */
    }
    
    /* Sections */
    .family-section,
    .events,
    .location,
    .final-invitation {
        padding: 4rem 1rem !important; /* Increase padding for better separation */
        min-height: 100vh; /* Ensure full viewport height for each section */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* First section after hero should have proper spacing */
    .family-section {
        padding-top: 5rem !important; /* Extra top padding */
        padding-left: 1rem !important; /* Reduced padding for more width */
        padding-right: 1rem !important; /* Reduced padding for more width */
        padding-bottom: 4rem !important;
    }
    
    .families-container {
        padding: 0 !important; /* No padding on container */
        max-width: 100% !important; /* Use full available width */
    }
    
    .family-card {
        padding: 1.5rem;
        max-width: 100%; /* Full width on mobile */
        width: 100%; /* Ensure full width */
        margin: 0; /* No extra margin */
    }
    
    .event-card {
        padding: 1.5rem;
    }
    
    .invitation-card {
        padding: 2.5rem 1.5rem;
    }
    
    .gold-border {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
    
    .invitation-floral {
        width: 50px;
        height: 50px;
    }
    
    .decorative-line {
        width: 80px;
        margin: 0.75rem auto !important; /* Reduce margins */
    }
    
    .decorative-line.top {
        margin-bottom: 1rem !important; /* Reduce spacing */
    }
    
    .decorative-line.bottom {
        margin-top: 1rem !important; /* Reduce spacing */
    }
    
    .floral-corner {
        display: none;
    }
    
    .featured-badge {
        font-size: 0.7rem; /* Increased from 0.6rem */
        right: -2.2rem;
    }
    
    /* Event Cards */
    .event-icon {
        width: 50px;
        height: 50px;
    }
    
    .event-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .event-name {
        font-size: 1.4rem; /* Increased from 1.3rem */
    }
    
    /* Location Section */
    .venue-illustration {
        width: 70px;
        height: 70px;
    }
    
    .venue-illustration svg {
        width: 60px;
        height: 60px;
    }
    
    .location-venue-name {
        font-size: 1.6rem; /* Increased from 1.5rem */
    }
    
    .qr-code img {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Family Cards */
    .family-header h3 {
        font-size: 1.3rem; /* Increased from 1.2rem */
    }
    
    .member-name {
        font-size: 1rem; /* Increased from 0.9rem */
    }
    
    .member-name.featured {
        font-size: 1.6rem; /* Increased from 1.5rem */
    }
}

/* Extra Small Mobile (iPhone SE, small Android phones) */
@media (max-width: 375px) {
    html {
        /* Better font scaling for small screens */
        font-size: 14px; /* Increased from 13px for better readability */
    }
    
    /* Adjust share button for very small screens */
    .share-button {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }
    
    .share-button svg {
        width: 16px;
        height: 16px;
    }
    
    .wedding-card {
        width: 260px;
        height: 380px;
    }
    
    .inside-name {
        font-size: 1.4rem;
    }
    
    .couple-names h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .section-header h2 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .hero-frame {
        padding: 1.5rem 0.75rem;
    }
    
    .invitation-card {
        padding: 2rem 1rem;
    }
    
    /* Better spacing on tiny screens */
    .family-section,
    .events,
    .location,
    .final-invitation {
        padding: 2.5rem 0.75rem;
    }
    
    /* Garland Animation Mobile */
    .garland-animation {
        max-width: 250px;
        height: 150px;
        margin: 1.5rem auto;
    }
    
    .figure-body {
        width: 30px;
        height: 45px;
    }
    
    .figure-head {
        width: 22px;
        height: 22px;
        top: -12px;
    }
    
    .garland {
        width: 60px;
        height: 80px;
    }
    
    .garland::before,
    .garland::after {
        width: 45px;
        height: 45px;
        border-width: 2px;
    }
    
    .flower-particle {
        font-size: 1rem;
    }
    
    .events,
    .location,
    .final-invitation {
        padding: 2.5rem 0.75rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile Landscape Optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .share-button {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    
    .invitation-card-container {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    section {
        padding: 2rem 1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Improve tap targets for touch devices */
    .share-button {
        min-width: 48px;
        min-height: 48px;
    }
    
    button,
    a,
    .event-card,
    .family-card {
        -webkit-tap-highlight-color: rgba(199, 123, 139, 0.2);
        tap-highlight-color: rgba(199, 123, 139, 0.2);
    }
    
    /* Disable hover effects on touch devices */
    .share-button:hover,
    .event-card:hover,
    .directions-btn:hover,
    .share-invitation-btn:hover {
        transform: none;
    }
    
    /* Better active states for touch */
    .share-button:active,
    .event-card:active,
    .directions-btn:active,
    .share-invitation-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
    
    /* Share invitation button mobile adjustments */
    .share-invitation-btn {
        font-size: 0.85rem;
        padding: 0.65rem 1.2rem;
        margin-top: 1.25rem;
    }
    
    .share-invitation-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-light: #5C5652;
        --gold: #8B7355;
    }
}

/* Print Styles */
@media print {
    .card-envelope,
    .scroll-indicator,
    .floral-corner {
        display: none !important;
    }
    
    .main-content {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* =============================================
   Hindi Language Styles - Elegant Typography
   ============================================= */

/* Apply Hindi fonts when Hindi is selected */
body[data-lang="hi"] {
    /* Use Laila for body text - elegant and readable */
    font-family: 'Laila', 'Poppins', var(--font-sans);
}

/* Hindi heading styles - lighter weight */
body[data-lang="hi"] h1,
body[data-lang="hi"] h2,
body[data-lang="hi"] h3 {
    font-family: 'Tiro Devanagari Hindi', 'Laila', serif;
    font-weight: 500; /* Increased from 400 to match English */
    letter-spacing: 0.02em;
}

/* Hindi couple names - elegant and lighter */
body[data-lang="hi"] .couple-names h1,
body[data-lang="hi"] .groom-name,
body[data-lang="hi"] .bride-name,
body[data-lang="hi"] .name {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-weight: 500; /* Increased from 400 to match English */
    letter-spacing: 0.03em;
}

/* Hindi body text - lighter and more refined */
body[data-lang="hi"] p,
body[data-lang="hi"] span:not(.ampersand):not(.heart):not(.date-ornament):not(.heart-icon),
body[data-lang="hi"] .member-name,
body[data-lang="hi"] .venue-name,
body[data-lang="hi"] .event-name {
    font-family: 'Laila', 'Poppins', sans-serif;
    font-weight: 500; /* Increased from 400 to be bolder */
    letter-spacing: 0.01em;
}

/* Featured names in Hindi - elegant emphasis */
body[data-lang="hi"] .member-name.featured {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-weight: 600; /* Increased from 500 to match English */
}

/* Hindi small text and labels */
body[data-lang="hi"] .member-label,
body[data-lang="hi"] .hero-pretext,
body[data-lang="hi"] .hero-subtext,
body[data-lang="hi"] .section-subtitle,
body[data-lang="hi"] .event-description,
body[data-lang="hi"] .invitation-prelude,
body[data-lang="hi"] .invitation-closing {
    font-family: 'Laila', sans-serif;
    font-weight: 500; /* Increased from 300 to match English boldness */
    letter-spacing: 0.02em;
}

/* Hindi dates and times - refined */
body[data-lang="hi"] .date,
body[data-lang="hi"] .day,
body[data-lang="hi"] .time,
body[data-lang="hi"] .inv-day,
body[data-lang="hi"] .inv-month {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Hindi card cover text */
body[data-lang="hi"] .cover-title,
body[data-lang="hi"] .inside-blessing,
body[data-lang="hi"] .inside-tagline {
    font-family: 'Laila', serif;
    font-weight: 300; /* Light and elegant */
}

/* Hindi invitation card text */
body[data-lang="hi"] .invitation-verse {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-weight: 400;
    font-style: normal; /* Remove italic for Hindi */
    letter-spacing: 0.03em;
}

/* Hindi buttons and interactive elements */
body[data-lang="hi"] button,
body[data-lang="hi"] .directions-btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* Adjust line height for better Hindi readability */
body[data-lang="hi"] p,
body[data-lang="hi"] .event-description,
body[data-lang="hi"] .invitation-verse {
    line-height: 1.8;
}

/* Fine-tune Hindi spacing */
body[data-lang="hi"] .couple-names {
    letter-spacing: 0.05em;
}

body[data-lang="hi"] .invitation-names .name {
    letter-spacing: 0.04em;
}

/* Ensure Devanagari numerals maintain readability */
body[data-lang="hi"] .inv-date {
    font-family: 'Poppins', sans-serif;
    font-weight: 300; /* Lighter for large numbers */
}

