/* ==========================================================================
   DESIGN VARIABLES & SYSTEM
   ========================================================================== */
:root {
    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-royal: 'Cinzel Decorative', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Outfit', -apple-system, sans-serif;

    /* Theme Colors & Accents */
    --gold-color: #D4AF37;
    --gold-glowing: rgba(212, 175, 55, 0.45);
    --teal-base: #00565B;
    --teal-light: #00828A;
    --rose-silk: #D24B75;
    --rose-glow: rgba(210, 75, 117, 0.35);
    --saffron-color: #F49F1C;
    
    --transition-speed: 0.5s;
    --border-radius-sm: 8px;
    --border-radius-md: 20px;
    --border-radius-lg: 40px;
}

/* Light Theme: Classic Silk Ivory & Peacock */
[data-theme="light"] {
    --bg-primary: #FAF6EE; /* Ivory Silk Background */
    --bg-secondary: #F0EAD6; /* Slightly deeper gold-cream */
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(0, 86, 91, 0.15);
    --text-primary: #0D2B2C; /* Deep Teal-Black */
    --text-secondary: #4A5D5E;
    --text-accent: #D24B75; /* Rose Pink */
    --hero-overlay-color: rgba(250, 246, 238, 0.88);
    --input-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(13, 43, 44, 0.12);
    --scrollbar-track: #FAF6EE;
    --scrollbar-thumb: #00565B;
    --envelope-bg-back: #004246;
    --envelope-bg-front: #00565B;
    --envelope-bg-flap: #00686E;
}

/* Dark Theme: Velvet Emerald & Amber */
[data-theme="dark"] {
    --bg-primary: #051C1A; /* Deep Velvet Emerald Black */
    --bg-secondary: #020F0D;
    --card-bg: rgba(9, 36, 33, 0.75);
    --card-border: rgba(212, 175, 55, 0.25);
    --text-primary: #FAF6EE; /* Warm White */
    --text-secondary: #CFDCDA;
    --text-accent: #FF5A8D; /* Lighter Glow Pink */
    --hero-overlay-color: rgba(5, 28, 26, 0.92);
    --input-bg: rgba(9, 36, 33, 0.9);
    --shadow-color: rgba(0, 0, 0, 0.6);
    --scrollbar-track: #020F0D;
    --scrollbar-thumb: #D4AF37;
    --envelope-bg-back: #002B2E;
    --envelope-bg-front: #003B3E;
    --envelope-bg-flap: #004B4E;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-color);
}

canvas#jasmineCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   SCROLL REVEAL SYSTEM
   ========================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1),
                transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity, transform;
}

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

/* Stagger children for elegant cascading reveals */
[data-reveal].reveal-visible .family-column:nth-child(1),
[data-reveal].reveal-visible .arch-gallery-card:nth-child(1) { transition-delay: 0.05s; }
[data-reveal].reveal-visible .family-column:nth-child(2),
[data-reveal].reveal-visible .arch-gallery-card:nth-child(2) { transition-delay: 0.12s; }
[data-reveal].reveal-visible .family-column:nth-child(3),
[data-reveal].reveal-visible .arch-gallery-card:nth-child(3) { transition-delay: 0.19s; }
[data-reveal].reveal-visible .arch-gallery-card:nth-child(4) { transition-delay: 0.26s; }
[data-reveal].reveal-visible .arch-gallery-card:nth-child(5) { transition-delay: 0.33s; }
[data-reveal].reveal-visible .arch-gallery-card:nth-child(6) { transition-delay: 0.40s; }
[data-reveal].reveal-visible .arch-gallery-card:nth-child(7) { transition-delay: 0.47s; }
[data-reveal].reveal-visible .arch-gallery-card:nth-child(8) { transition-delay: 0.54s; }

[data-reveal] .family-column,
[data-reveal] .arch-gallery-card {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1),
                transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-reveal].reveal-visible .family-column,
[data-reveal].reveal-visible .arch-gallery-card {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   THEME & FLOATING CONTROLS
   ========================================================================== */
.floating-controls {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1.5px solid var(--gold-color);
    color: var(--gold-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
    box-shadow: 0 6px 20px var(--shadow-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.control-btn:hover {
    transform: scale(1.1) rotate(8deg);
    background-color: var(--teal-base);
    border-color: var(--gold-color);
    color: #fff;
    box-shadow: 0 10px 22px var(--gold-glowing);
}

.music-wave {
    position: absolute;
    bottom: 8px;
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 9px;
    opacity: 0;
    transition: opacity 0.3s;
}

.music-wave.playing {
    opacity: 1;
}

.music-wave span {
    width: 2px;
    background-color: var(--gold-color);
    border-radius: 1px;
    animation: wave-bounce 1s ease infinite alternate;
}
.music-wave span:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.music-wave span:nth-child(2) { height: 8px; animation-delay: 0.4s; }
.music-wave span:nth-child(3) { height: 5px; animation-delay: 0.25s; }

@keyframes wave-bounce {
    0% { height: 2px; }
    100% { height: 9px; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
    display: inline-block;
    padding: 14px 34px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal-base), var(--rose-silk));
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 20px var(--rose-glow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px var(--rose-glow), 0 5px 15px var(--gold-glowing);
    background: linear-gradient(135deg, var(--rose-silk), var(--teal-base));
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: transparent;
    border: 2px solid var(--gold-color);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--gold-color);
    color: #ffffff;
    box-shadow: 0 6px 18px var(--gold-glowing);
    transform: translateY(-2px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 22px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: var(--card-bg);
    padding: 12px 0;
    box-shadow: 0 4px 25px var(--shadow-color);
    backdrop-filter: blur(12px);
    border-bottom: 1.5px solid var(--card-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    font-family: var(--font-script);
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--teal-base);
    text-decoration: none;
    transition: color 0.3s;
}

[data-theme="dark"] .nav-logo {
    color: var(--gold-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--rose-silk);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--rose-silk);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   ROYAL 3D ENVELOPE INTERFACE
   ========================================================================== */
.envelope-overlay-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at 50% 40%, #0a3d3a 0%, #042420 50%, #011412 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.envelope-overlay-wrapper.fade-out {
    opacity: 0;
    pointer-events: none;
}

.envelope-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 380px;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 3D Envelope Frame */
.envelope {
    position: relative;
    width: 100%;
    height: 280px;
    background-color: var(--envelope-bg-back);
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.5s ease;
}

/* Flap */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--envelope-bg-flap);
    clip-path: polygon(0% 0%, 100% 0%, 50% 55%);
    z-index: 3;
    transform-origin: top;
    transition: transform 0.8s ease-in-out, z-index 0.3s;
    transition-delay: 0s;
}

/* Pocket Front */
.envelope-pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background-color: var(--envelope-bg-front);
    clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 50% 40%, 0% 0%);
    z-index: 4;
    border-radius: 0 0 6px 6px;
}

/* Invitation Letter Card */
.envelope-card {
    position: absolute;
    bottom: 10px;
    left: 5%;
    width: 90%;
    height: 90%;
    background-color: #FAF6EE;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-border-dashed {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px dashed var(--gold-color);
    pointer-events: none;
}

.card-inner {
    text-align: center;
    color: #0d2b2c;
    width: 100%;
}

.card-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--teal-base);
    display: block;
    margin-bottom: 5px;
}

.card-name {
    font-family: var(--font-royal);
    font-size: 1.6rem;
    color: var(--gold-color);
    margin-bottom: 4px;
}

.card-date {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
}

.card-divider-motif {
    font-size: 1.1rem;
    color: var(--gold-color);
    margin: 6px 0;
}

.card-tap-hint {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--rose-silk);
    animation: flash 1.5s infinite alternate;
}

/* Wax Seal and Ribbon */
.envelope-seal-wrapper {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease;
}

.gold-ribbon-left, .gold-ribbon-right {
    position: absolute;
    width: 30px;
    height: 15px;
    background-color: var(--gold-color);
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
}
.gold-ribbon-left { left: -10px; clip-path: polygon(0% 0%, 100% 20%, 100% 80%, 0% 100%); }
.gold-ribbon-right { right: -10px; clip-path: polygon(100% 0%, 0% 20%, 0% 80%, 100% 100%); }

.royal-wax-seal {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #E6C280, #D4AF37, #967216);
    border: 2px solid #FFFDD0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.4);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.royal-wax-seal:hover {
    transform: scale(1.08);
}

.seal-character {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(69, 52, 11, 0.95);
    text-shadow: 1px 1px 1px rgba(255,255,255,0.4);
}

.envelope-prompt-text {
    color: #FAF6EE;
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 30px;
    text-align: center;
    opacity: 0.85;
}

/* Envelope Open Animation Sequence State */
.envelope.open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1; /* Move behind card */
    transition-delay: 0s;
}

.envelope.open .envelope-card {
    transform: translateY(-130px) scale(1.04);
    z-index: 5;
    transition-delay: 0.6s;
}

.envelope.open .envelope-seal-wrapper {
    opacity: 0;
    pointer-events: none;
    transition-delay: 0s;
}

/* ==========================================================================
   MAIN LAYOUT & GENERAL ANIMATIONS
   ========================================================================== */
.main-page-hidden {
    opacity: 0;
    visibility: hidden;
}

.main-page-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease;
}

/* Hanging Ornaments (Jasmine & Swaying Bells) */
.hanging-decoration-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.garland-line {
    position: absolute;
    width: 1.5px;
    height: 180px;
    background: linear-gradient(to bottom, var(--gold-color), rgba(212, 175, 55, 0.1));
}

/* Simulated flower knots */
.garland-line::after {
    content: '🌸 🌸 🌸 🌸 🌸';
    font-size: 0.75rem;
    letter-spacing: 12px;
    writing-mode: vertical-rl;
    position: absolute;
    top: 10px;
    left: -8px;
    opacity: 0.85;
}

.garland-1 { left: 8%; height: 160px; }
.garland-2 { left: 24%; height: 220px; }
.garland-3 { right: 24%; height: 200px; }
.garland-4 { right: 8%; height: 150px; }

/* Bell Ornaments */
.hanging-bell-wrapper {
    position: absolute;
    width: 30px;
    height: 140px;
    pointer-events: auto;
    cursor: pointer;
    transform-origin: top center;
    transition: transform 0.4s ease;
}

.bell-1 { left: 16%; top: 0; }
.bell-2 { right: 16%; top: 0; }

.bell-string {
    width: 2px;
    height: 100px;
    background-color: var(--gold-color);
    margin: 0 auto;
}

.brass-bell {
    width: 28px;
    height: 28px;
    background-color: var(--bg-primary);
    border: 2px solid var(--gold-color);
    border-radius: 50% 50% 0 0;
    color: var(--gold-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: background-color 0.3s;
}

.hanging-bell-wrapper:hover {
    animation: ring-sway 2.5s ease-out;
}

.hanging-bell-wrapper:hover .brass-bell {
    background-color: var(--gold-color);
    color: #fff;
}

@keyframes ring-sway {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(20deg); }
    30% { transform: rotate(-18deg); }
    45% { transform: rotate(12deg); }
    60% { transform: rotate(-8deg); }
    75% { transform: rotate(4deg); }
    90% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}

/* ==========================================================================
   HERO (ARCH MANDAPAM) SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    padding: 100px 24px 60px;
}

.hero-bg-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hero-overlay-color);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1100px;
    width: 100%;
}

/* Archway Structure */
.mandapam-arch-container {
    display: flex;
    justify-content: center;
}

.mandapam-outer-arch {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1.45;
    border: 3px solid var(--gold-color);
    border-radius: 180px 180px 0 0;
    padding: 12px;
    background-color: var(--card-bg);
    box-shadow: 0 15px 40px var(--shadow-color);
    position: relative;
}

.mandapam-outer-arch::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid var(--gold-color);
    border-radius: 186px 186px 0 0;
    opacity: 0.5;
}

.mandapam-inner-arch {
    width: 100%;
    height: 100%;
    border: 1px dashed var(--gold-color);
    border-radius: 168px 168px 0 0;
    padding: 8px;
    overflow: hidden;
}

.hero-image-frame {
    width: 100%;
    height: 100%;
    border-radius: 160px 160px 0 0;
    overflow: hidden;
    position: relative;
}

.hero-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.mandapam-outer-arch:hover .hero-avatar {
    transform: scale(1.04);
}

/* Hero Text Styling */
.hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--rose-silk);
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
}

.hero-script {
    font-family: var(--font-script);
    font-size: 2.8rem;
    color: var(--gold-color);
    margin-top: -5px;
    text-shadow: 0 0 20px var(--gold-glowing), 0 2px 4px rgba(0,0,0,0.1);
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 24px 0;
    width: 100%;
}

.hero-divider .line {
    width: 80px;
    height: 1.5px;
    background: linear-gradient(to right, transparent, var(--gold-color), transparent);
    animation: shimmer-line 3s ease-in-out infinite alternate;
}

.hero-divider .icon {
    color: var(--gold-color);
    font-size: 1.1rem;
    animation: slow-pulse 2s infinite alternate;
}

.hero-date-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.hero-venue-summary {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

/* ==========================================================================
   INVITATION DETAILS
   ========================================================================== */
.invitation-section {
    padding: 110px 0;
    z-index: 2;
    position: relative;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-wrapper .sub-title {
    font-family: var(--font-script);
    font-size: 2.3rem;
    color: var(--rose-silk);
    display: block;
    margin-bottom: -5px;
}

.section-title-wrapper .section-title {
    font-family: var(--font-royal);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.title-divider, .title-divider-left {
    color: var(--gold-color);
    margin-top: 10px;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

.title-divider::before, .title-divider::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-color));
    top: 50%;
    right: 25px;
}
.title-divider::after {
    background: linear-gradient(to left, transparent, var(--gold-color));
    left: 25px;
    right: auto;
}

.title-divider-left::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, var(--gold-color), transparent);
    top: 50%;
    left: 25px;
}

/* Warm Invitation Speech Container Layout */
.invitation-speech-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.invite-intro-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 24px;
}

[data-theme="dark"] .invite-intro-text {
    color: var(--text-primary);
}

.invite-dots-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 40px;
}

.invite-dots-divider .dot {
    width: 3.5px;
    height: 3.5px;
    background-color: var(--gold-color);
    border-radius: 50%;
}

.invite-dots-divider .dot-center {
    width: 6.5px;
    height: 6.5px;
    background-color: var(--gold-color);
    border-radius: 50%;
}

.invite-section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.invite-grandparents-title {
    font-family: var(--font-royal);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-color);
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.invite-grandparents-names {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.invite-horizontal-divider {
    max-width: 600px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-color), transparent);
    margin: 45px auto;
    opacity: 0.5;
}

.invite-brothers-quote-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 auto 30px;
    max-width: 700px;
}

.invite-brothers-names-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invite-brothers-names-list span {
    font-family: var(--font-royal);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold-color);
    letter-spacing: 1.5px;
}

/* Responsive adjustments for Invitation container */
@media (max-width: 768px) {
    .invite-intro-text {
        font-size: 1.5rem;
    }
    .invite-grandparents-title {
        font-size: 1.35rem;
    }
    .invite-grandparents-names {
        font-size: 1.3rem;
    }
    .invite-brothers-quote-text {
        font-size: 1.15rem;
    }
    .invite-brothers-names-list span {
        font-size: 1rem;
    }
}

/* Family Hierarchy */
/* Family Section (Screenshot 2 layout with website theme background) */
.family-section {
    background: var(--bg-primary);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    z-index: 2;
    text-align: center;
    transition: background-color var(--transition-speed) ease;
}
.family-section-title {
    font-family: var(--font-royal);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 50px;
}
.family-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
.family-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.family-column-title {
    font-family: var(--font-royal);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.family-column-line {
    width: 100%;
    height: 1.5px;
    background: linear-gradient(to right, transparent, var(--gold-color), transparent);
    margin-bottom: 24px;
}
.family-cards-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.family-member-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 24px 20px;
    transition: transform 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px var(--shadow-color);
    backdrop-filter: blur(10px);
}
.family-member-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--gold-color);
    box-shadow: 0 8px 25px var(--gold-glowing);
}
.family-member-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.family-member-role {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rose-silk);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Brothers section inside family */
.family-brothers-row {
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.family-brothers-title {
    font-family: var(--font-royal);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.family-brothers-line {
    width: 100%;
    height: 1.5px;
    background: linear-gradient(to right, transparent, var(--gold-color), transparent);
    margin-bottom: 24px;
}
.family-brothers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.family-brother-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: transform 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px var(--shadow-color);
}
.family-brother-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold-color);
    box-shadow: 0 6px 20px var(--gold-glowing);
}

/* Countdown Panel */
.countdown-panel {
    margin-top: 80px;
    text-align: center;
    contain: content;
}

.countdown-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.countdown-timer-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.timer-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--rose-silk);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    min-width: 110px;
    box-shadow: 0 10px 24px var(--shadow-color);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.timer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px var(--rose-glow);
}

.timer-val {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--teal-base);
    display: block;
    line-height: 1.1;
}

/* Subtle pulse on seconds card */
.timer-card:last-child .timer-val {
    animation: seconds-pulse 1s ease-in-out infinite;
}

@keyframes seconds-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

[data-theme="dark"] .timer-val {
    color: var(--gold-color);
}

.timer-lbl {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-top: 8px;
    display: block;
    font-weight: 600;
}

/* ==========================================================================
   HORIZONTAL TIMELINE (PROGRAM)
   ========================================================================== */
.timeline-section {
    padding: 110px 0;
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

.timeline-scroll-controls {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    max-width: 950px;
    margin: -30px auto 24px;
}

.scroll-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background-color: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: all 0.3s;
}

.scroll-nav-btn:hover {
    background-color: var(--teal-base);
    color: #fff;
    border-color: var(--teal-base);
}

.horizontal-timeline-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 24px 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    max-width: 950px;
    margin: 0 auto;
    /* hide scrollbar standard rules */
    scrollbar-width: thin;
    scrollbar-color: var(--teal-base) var(--bg-primary);
}

.horizontal-timeline-track::-webkit-scrollbar {
    height: 6px;
}

/* Timeline Cards */
.timeline-pillar-card {
    flex: 0 0 290px;
    scroll-snap-align: start;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 36px 24px;
    box-shadow: 0 8px 25px var(--shadow-color);
    text-align: center;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s;
}

/* Diya Icon Top */
.pillar-top-diya {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 2px solid var(--gold-color);
    color: var(--saffron-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
    margin: -60px auto 24px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s;
}

.timeline-pillar-card:hover .pillar-top-diya {
    transform: scale(1.15);
    background-color: var(--saffron-color);
    color: #fff;
}

.pillar-time {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--rose-silk);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 10px;
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.pillar-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pillar-decor-border {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--gold-color), transparent);
    border-radius: 2px 2px 0 0;
}

/* Highlight / Active card */
.timeline-pillar-card.active-pillar {
    border-color: var(--gold-color);
    box-shadow: 0 12px 35px var(--gold-glowing);
    transform: translateY(-8px);
}

.timeline-pillar-card.active-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--gold-color);
    border-radius: var(--border-radius-md);
    pointer-events: none;
    opacity: 0.4;
}

/* ==========================================================================
   ARCH GALLERY SECTION
   ========================================================================== */
.gallery-section {
    padding: 110px 0;
    z-index: 2;
    position: relative;
}

.arch-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 30px;
}

.arch-gallery-grid .arch-gallery-card {
    flex: 0 0 calc(33.333% - 22px);
    max-width: calc(33.333% - 22px);
}

.arch-gallery-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition-speed) ease;
}

.gallery-arch-frame {
    width: 100%;
    aspect-ratio: 1 / 1.45;
    border: 2.5px solid var(--gold-color);
    border-radius: 150px 150px 0 0;
    padding: 8px;
    background-color: var(--card-bg);
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
}

.gallery-arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 142px 142px 0 0;
    transition: transform 0.6s ease;
}

.gallery-caption-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 86, 91, 0.9) 20%, rgba(0,0,0,0) 80%);
    border-radius: 142px 142px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px;
    opacity: 0;
    color: #ffffff;
    transition: opacity var(--transition-speed) ease;
    z-index: 2;
}

.gallery-caption-overlay i {
    font-size: 1.6rem;
    color: var(--gold-color);
    margin-bottom: 8px;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.gallery-caption-overlay span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

/* Hover effects */
.arch-gallery-card:hover {
    transform: translateY(-8px);
}

.arch-gallery-card:hover .gallery-arch-frame img {
    transform: scale(1.06);
}

.arch-gallery-card:hover .gallery-caption-overlay {
    opacity: 1;
}

.arch-gallery-card:hover .gallery-caption-overlay i,
.arch-gallery-card:hover .gallery-caption-overlay span {
    transform: translateY(0);
}

/* Lightbox Modal */
.lightbox-overlay-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 24, 21, 0.97);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    animation: fade-in 0.3s ease;
}

.lightbox-close-btn {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #f1f1f1;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1200;
}

.lightbox-close-btn:hover {
    color: var(--gold-color);
}

.lightbox-slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1200;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-slide-btn:hover {
    color: var(--gold-color);
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-color);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-slide-btn.prev { left: 16px; }
.lightbox-slide-btn.next { right: 16px; }

.lightbox-view-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 85%;
    max-height: 85%;
}

.lightbox-image-tag {
    max-width: 100%;
    max-height: 68vh;
    border-radius: var(--border-radius-sm);
    border: 3.5px solid var(--gold-color);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
    object-fit: contain;
    animation: zoom-in 0.3s ease;
}

.lightbox-image-caption {
    margin-top: 16px;
    color: var(--gold-color);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-align: center;
}

/* ==========================================================================
   RSVP & BLESSINGS WALL (COMBINED GRID)
   ========================================================================== */
.rsvp-section {
    padding: 110px 0;
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

.rsvp-layout-grid {
    display: grid;
    grid-template-columns: 5.5fr 6.5fr;
    gap: 40px;
    align-items: stretch;
}

/* RSVP Card (Glassmorphism) */
.rsvp-glass-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.rsvp-custom-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 10px;
}

.form-row-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-block label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-block input,
.input-block select,
.input-block textarea {
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--card-border);
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.input-block input:focus,
.input-block select:focus,
.input-block textarea:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 10px var(--gold-glowing);
    transform: translateY(-2px);
}

.rsvp-action-btn {
    align-self: flex-start;
    margin-top: 10px;
    width: 100%;
}

.rsvp-status-message-box {
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
    font-size: 1rem;
    display: none;
}

.rsvp-status-message-box.success {
    color: var(--teal-light);
}

/* Blessings Board Wall */
.blessings-board-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 40px 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.blessings-split {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-wish-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wishes-display-wall {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 8px;
    border-top: 1px dashed var(--card-border);
    padding-top: 15px;
}

.wish-bubble-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-left: 3.5px solid var(--gold-color);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 10px var(--shadow-color);
    animation: fade-in-up 0.5s ease;
}

.wish-card-text {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.wish-card-sender {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rose-silk);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    text-align: right;
}

/* ==========================================================================
   VENUE DETAILS & MAP
   ========================================================================== */
.venue-section {
    padding: 110px 0;
    z-index: 2;
    position: relative;
}

.venue-showcase-card {
    display: grid;
    grid-template-columns: 5fr 7fr;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 40px var(--shadow-color);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.venue-text-details {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.venue-header-icon {
    font-size: 2.8rem;
    color: var(--rose-silk);
    margin-bottom: 18px;
}

.venue-text-details h3 {
    font-family: var(--font-royal);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.address-details {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.venue-meta-info {
    margin-bottom: 30px;
}

.venue-meta-info p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.venue-meta-info p i {
    color: var(--gold-color);
}

.venue-map-iframe-container {
    height: 450px;
    position: relative;
    border-left: 1.5px solid var(--card-border);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-layout {
    background-color: var(--bg-primary);
    border-top: 1.5px solid var(--card-border);
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: background-color var(--transition-speed) ease;
}

.footer-header {
    font-family: var(--font-royal);
    font-size: 1.8rem;
    color: var(--teal-base);
    margin-bottom: 10px;
}

[data-theme="dark"] .footer-header {
    color: var(--gold-color);
}

.footer-invite-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 500px;
    margin: 0 auto 20px;
}

.footer-ornaments {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: var(--rose-silk);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-ornaments .flower {
    animation: slow-spin 20s linear infinite;
}

.footer-ornaments .dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold-color);
    border-radius: 50%;
}

.copyright-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.delay-2 {
    animation-delay: 0.3s;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slow-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slow-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.12); opacity: 1; }
}

@keyframes flash {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

@keyframes shimmer-line {
    0% { opacity: 0.4; background-size: 100% 100%; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text-block {
        align-items: center;
    }

    .mandapam-arch-container {
        order: -1; /* image on top in mobile */
    }

    .rsvp-layout-grid {
        grid-template-columns: 1fr;
    }

    .mandapam-outer-arch {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 14px 0;
    }

    .navbar.scrolled {
        padding: 10px 0;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .nav-logo {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        border-bottom: 1.5px solid var(--card-border);
        padding: 20px;
        box-shadow: 0 10px 30px var(--shadow-color);
        gap: 12px;
        text-align: center;
        z-index: 999;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .hero-section {
        padding: 80px 16px 50px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-script {
        font-size: 2rem;
    }

    .hero-date-text {
        font-size: 1.4rem;
    }

    .hero-tag {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .hero-venue-summary {
        font-size: 0.85rem;
        margin-bottom: 24px;
    }

    .btn-primary {
        padding: 12px 28px;
        font-size: 0.85rem;
    }

    .section-title-wrapper .section-title {
        font-size: 1.8rem;
    }

    .section-title-wrapper .sub-title {
        font-size: 1.8rem;
    }

    .invitation-section {
        padding: 70px 0;
    }

    .family-section {
        padding: 70px 0;
    }

    .family-section-title {
        font-size: 2rem;
    }

    .family-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }

    .family-column-title {
        font-size: 1.05rem;
    }

    .family-member-name {
        font-size: 1.05rem;
    }

    .family-brothers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    .family-brother-card {
        font-size: 0.95rem;
        padding: 10px 16px;
    }

    .countdown-panel {
        margin-top: 50px;
    }

    .timer-card {
        min-width: 80px;
        padding: 16px 12px;
    }

    .timer-val {
        font-size: 2.2rem;
    }

    .timeline-section {
        padding: 70px 0;
    }

    .arch-gallery-grid {
        gap: 16px;
    }

    .arch-gallery-grid .arch-gallery-card {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }

    .gallery-section {
        padding: 70px 0;
    }

    .gallery-arch-frame {
        padding: 5px;
    }

    .gallery-caption-overlay {
        padding: 16px;
    }

    .gallery-caption-overlay span {
        font-size: 0.9rem;
    }

    .rsvp-section {
        padding: 70px 0;
    }

    .rsvp-glass-card,
    .blessings-board-card {
        padding: 28px 20px;
    }

    .venue-section {
        padding: 70px 0;
    }

    .venue-showcase-card {
        grid-template-columns: 1fr;
        border-radius: var(--border-radius-md);
    }

    .venue-text-details {
        padding: 28px 20px;
    }

    .venue-text-details h3 {
        font-size: 1.4rem;
    }

    .venue-map-iframe-container {
        height: 280px;
        border-left: none;
        border-top: 1.5px solid var(--card-border);
    }

    .text-left-mobile {
        text-align: center;
    }

    .title-divider-left::before {
        display: none;
    }
    
    .title-divider-left {
        display: block;
        margin-top: 10px;
    }
    
    .title-divider-left::after {
        content: '';
        position: absolute;
        width: 60px;
        height: 1px;
        background: linear-gradient(to left, transparent, var(--gold-color));
        top: 50%;
        left: 25px;
        right: auto;
    }
    
    .horizontal-timeline-track {
        gap: 18px;
    }
    
    .timeline-pillar-card {
        flex: 0 0 250px;
        padding: 28px 16px;
    }

    .pillar-title {
        font-size: 1.15rem;
    }

    /* Envelope responsive */
    .envelope-container {
        max-width: 340px;
        height: 300px;
    }
    
    .envelope {
        height: 220px;
    }

    .envelope.open .envelope-card {
        transform: translateY(-90px) scale(1.02);
    }
    
    .card-name {
        font-size: 1.35rem;
    }

    .envelope-prompt-text {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    /* Lightbox mobile adjustments */
    .lightbox-close-btn {
        top: 16px;
        right: 20px;
        font-size: 2.4rem;
    }

    .lightbox-slide-btn {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .lightbox-slide-btn.prev { left: 8px; }
    .lightbox-slide-btn.next { right: 8px; }

    .lightbox-view-wrapper {
        max-width: 92%;
        max-height: 80%;
    }

    .lightbox-image-tag {
        max-height: 60vh;
        border-width: 2.5px;
    }

    .lightbox-image-caption {
        font-size: 1rem;
        padding: 0 8px;
    }

    /* Footer */
    .footer-layout {
        padding: 40px 0;
    }

    .footer-header {
        font-size: 1.5rem;
    }

    .footer-poorna-logo {
        max-width: 110px;
    }

    .footer-poorna-credit {
        font-size: 0.75rem;
    }

    /* Hanging decorations - hide on small screens to avoid clutter */
    .hanging-decoration-container {
        height: 140px;
    }

    .garland-line {
        height: 100px;
    }

    .garland-line::after {
        font-size: 0.6rem;
        letter-spacing: 8px;
    }

    .hanging-bell-wrapper {
        height: 90px;
    }

    .bell-string {
        height: 60px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .arch-gallery-grid {
        gap: 24px;
    }

    .arch-gallery-grid .arch-gallery-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-row-double {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-script {
        font-size: 1.75rem;
    }

    .hero-date-text {
        font-size: 1.25rem;
    }

    .hero-divider .line {
        width: 50px;
    }

    .section-title-wrapper .section-title {
        font-size: 1.5rem;
    }

    .section-title-wrapper .sub-title {
        font-size: 1.5rem;
    }

    .family-section-title {
        font-size: 1.6rem;
    }

    .invite-intro-text {
        font-size: 1.25rem;
    }

    .invite-grandparents-title {
        font-size: 1.15rem;
    }

    .invite-grandparents-names {
        font-size: 1.1rem;
        word-break: break-word;
    }

    .invite-brothers-quote-text {
        font-size: 1rem;
    }

    .invite-brothers-names-list span {
        font-size: 0.9rem;
    }

    .countdown-timer-grid {
        gap: 12px;
    }

    .timer-card {
        min-width: 70px;
        padding: 14px 10px;
    }

    .timer-val {
        font-size: 1.9rem;
    }

    .timer-lbl {
        font-size: 0.7rem;
    }

    .address-details {
        font-size: 0.9rem;
    }

    .mandapam-outer-arch {
        max-width: 250px;
    }
}

/* Extra small phones (iPhone SE, etc.) */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.65rem;
    }

    .hero-script {
        font-size: 1.55rem;
    }

    .hero-section {
        padding: 70px 12px 40px;
    }

    .envelope-container {
        max-width: 290px;
        height: 270px;
    }

    .envelope {
        height: 200px;
    }

    .card-name {
        font-size: 1.2rem;
    }

    .card-subtitle {
        font-size: 0.55rem;
    }

    .envelope.open .envelope-card {
        transform: translateY(-80px) scale(1.01);
    }

    .family-section-title {
        font-size: 1.4rem;
    }

    .section-title-wrapper .section-title {
        font-size: 1.35rem;
    }

    .section-title-wrapper .sub-title {
        font-size: 1.35rem;
    }

    .timer-card {
        min-width: 62px;
        padding: 12px 8px;
    }

    .timer-val {
        font-size: 1.65rem;
    }

    .floating-controls {
        bottom: 16px;
        right: 16px;
    }

    .control-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* Poorna Photography Footer Credits */
.footer-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    gap: 8px;
}

.footer-poorna-logo {
    max-width: 140px;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 2px 8px var(--shadow-color));
}

[data-theme="dark"] .footer-poorna-logo {
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.1));
}

.footer-poorna-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-poorna-credit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.footer-poorna-credit a {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.footer-poorna-credit a:hover {
    color: var(--rose-silk);
}
