/* =================================================================
   ROYAL LUXURY WEDDING WEBSITE - MODERN REFINED AESTHETIC & MOTION
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel:wght@400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Great+Vibes&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
    /* Refined Sophisticated Palette (No Cheap Gold) */
    --primary-burgundy: #6b1d2f;
    --deep-rose-noir: #4a121f;
    --midnight-plum: #280811;
    --soft-blush: #fcf4f5;
    --silk-cream: #fffdfb;
    --rose-champagne: #d4b2a7;
    --pearl-accent: #e8d5cf;
    --warm-taupe: #8c6d63;
    --text-dark: #221215;
    --text-muted: #665055;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(107, 29, 47, 0.14);
    --shadow-subtle: 0 10px 30px rgba(74, 18, 31, 0.07);
    --shadow-elevated: 0 20px 45px rgba(74, 18, 31, 0.16);
    --radius-lg: 18px;
    --radius-md: 12px;
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--silk-cream);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-burgundy);
    border-radius: 4px;
}

/* Canvas Background for Petals */
#petals-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99;
}

/* Typography Utilities */
.font-script {
    font-family: 'Great Vibes', 'Alex Brush', cursive;
}
.font-heading {
    font-family: 'Playfair Display', 'Cinzel', serif;
}
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.divider-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0.8rem auto 1.5rem;
    width: 100%;
    max-width: 220px;
}
.divider-line::before, .divider-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose-champagne), transparent);
}
.divider-line i {
    color: var(--primary-burgundy);
    font-size: 0.95rem;
    animation: pulseHeart 2s infinite ease-in-out;
}

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

/* Section Containers */
section {
    padding: 3.8rem 1.5rem;
    position: relative;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--primary-burgundy);
    margin-bottom: -0.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--deep-rose-noir);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-description {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0.4rem auto 0;
    font-style: italic;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 30px;
    background: linear-gradient(135deg, var(--primary-burgundy) 0%, var(--deep-rose-noir) 100%);
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(107, 29, 47, 0.25);
    transition: all 0.3s var(--transition-bounce);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 28px rgba(107, 29, 47, 0.38);
    color: #ffffff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-burgundy);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 1.5px solid var(--primary-burgundy);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s var(--transition-bounce);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--primary-burgundy);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 29, 47, 0.2);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    background: linear-gradient(135deg, #20bd5a 0%, #0e7065 100%);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

/* =================================================================
   SPLASH ENVELOPE OVERLAY
   ================================================================= */
#envelope-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #3d0d19 0%, #170409 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    padding: 1.5rem;
}

.envelope-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, #fffdfb 0%, #fcf4f5 100%);
    border-radius: 20px;
    padding: 2.8rem 2rem;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--rose-champagne);
}

.wax-seal {
    width: 76px;
    height: 76px;
    background: radial-gradient(circle at 30% 30%, #8b263e, #4a121f 80%);
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(74, 18, 31, 0.4);
    cursor: pointer;
    animation: sealPulse 2s infinite ease-in-out;
    border: 2px solid var(--pearl-accent);
}

@keyframes sealPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(74, 18, 31, 0.4); }
    50% { transform: scale(1.06); box-shadow: 0 12px 28px rgba(107, 29, 47, 0.6); }
}

.splash-names {
    font-family: 'Great Vibes', cursive;
    font-size: 3.2rem;
    color: var(--primary-burgundy);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.splash-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    color: var(--warm-taupe);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* =================================================================
   FLOATING MUSIC CONTROLLER
   ================================================================= */
.floating-controls {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 1000;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    border: 1.5px solid var(--primary-burgundy);
    color: var(--primary-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--transition-bounce);
}

.control-btn:hover {
    transform: scale(1.1);
    background: var(--primary-burgundy);
    color: #ffffff;
}

.music-btn.playing {
    animation: musicPulse 1.6s infinite ease-in-out;
    background: var(--primary-burgundy);
    color: #ffffff;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(107, 29, 47, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(107, 29, 47, 0); }
}

/* =================================================================
   NAVIGATION BAR
   ================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    padding: 1rem 2rem;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 253, 251, 0.94);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 0.7rem 2rem;
    border-bottom: 1px solid rgba(107, 29, 47, 0.1);
}

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

.nav-logo {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-logo {
    color: var(--primary-burgundy);
    text-shadow: none;
}

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

.nav-links a {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
    text-shadow: none;
}

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

.navbar.scrolled .nav-links a:hover {
    color: var(--primary-burgundy);
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.4rem;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
}

.navbar.scrolled .mobile-nav-toggle {
    color: var(--primary-burgundy);
}

/* =================================================================
   HERO SECTION - BACKGROUND IMAGE CLEARLY VISIBLE!
   ================================================================= */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 3.5rem;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: brightness(0.92) contrast(1.02);
    transform: scale(1.02);
    animation: subtleHeroMotion 20s infinite alternate ease-in-out;
}

@keyframes subtleHeroMotion {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(20, 4, 8, 0.45) 0%,
        rgba(0, 0, 0, 0) 35%,
        rgba(0, 0, 0, 0) 65%,
        rgba(20, 4, 8, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    width: 100%;
    color: #ffffff;
    padding: 2rem 2rem;
    background: rgba(35, 7, 14, 0.42);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    animation: fadeInUp 1.2s ease-out;
}

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

.hero-pretitle {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--pearl-accent);
    margin-bottom: 0.3rem;
}

.hero-names {
    font-family: 'Great Vibes', cursive;
    font-size: 4.8rem;
    line-height: 1.1;
    margin: 0.3rem 0;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.hero-names span {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 3rem;
    color: var(--rose-champagne);
    margin: 0 0.4rem;
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: #f7ebe1;
}

.hero-details-badge {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.6rem 1.6rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    margin-bottom: 1.8rem;
}

.hero-details-badge span {
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    letter-spacing: 1px;
}

/* =================================================================
   COUNTDOWN TIMER & EXCLUSIVE SCRATCH CARD
   ================================================================= */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    max-width: 750px;
    margin: 0 auto 2rem;
}

.countdown-card {
    background: var(--silk-cream);
    padding: 1.4rem 0.8rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-subtle);
    transition: transform 0.3s var(--transition-bounce);
}

.countdown-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary-burgundy);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.countdown-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--warm-taupe);
    text-transform: uppercase;
    font-weight: 600;
}

/* =================================================================
   FUNCTIONS & CEREMONIES - PORTRAIT CARDS WITH ENHANCED CONTRAST & VISIBILITY
   ================================================================= */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.event-card-portrait {
    position: relative;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.4s var(--transition-bounce), box-shadow 0.4s ease;
}

.event-card-portrait:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 55px rgba(74, 18, 31, 0.3);
}

.event-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.95); /* Image remains bright and visible */
    transition: transform 0.7s ease, filter 0.4s ease;
}

.event-card-portrait:hover .event-portrait-img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* Dark contrast overlay targeted at text area (bottom 60%) so text is extremely crisp & legible */
.event-portrait-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(10, 2, 5, 0.25) 35%,
        rgba(15, 2, 6, 0.88) 65%,
        rgba(15, 2, 6, 0.98) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.8rem 1.4rem;
    color: #ffffff;
}

.event-portrait-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(107, 29, 47, 0.92);
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    backdrop-filter: blur(6px);
    border: 1px solid var(--rose-champagne);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.event-portrait-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9); /* Enhanced text shadow for maximum readability */
}

.event-portrait-subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 1.9rem;
    color: #f5dcd5;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.event-portrait-info {
    list-style: none;
    margin-bottom: 0.8rem;
}

.event-portrait-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 0.4rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.event-portrait-info i {
    color: var(--rose-champagne);
    font-size: 0.95rem;
    width: 16px;
}

.event-portrait-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #f7ebe1;
    line-height: 1.45;
    font-style: italic;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* =================================================================
   OUR STORY - DYNAMIC NON-UNIFORM ORGANIC SCRAPBOOK TIMELINE
   ================================================================= */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--rose-champagne), var(--primary-burgundy), transparent);
    transform: translateX(-50%);
}

/* Non-uniform alternating story cards */
.story-item-wrapper {
    position: relative;
    margin-bottom: 3.5rem;
    width: 50%;
    padding: 0 2rem;
}

.story-item-wrapper:nth-child(odd) {
    left: 0;
    text-align: right;
}

.story-item-wrapper:nth-child(even) {
    left: 50%;
    text-align: left;
}

.story-item-wrapper .timeline-dot {
    position: absolute;
    top: 25px;
    width: 22px;
    height: 22px;
    background: var(--primary-burgundy);
    border: 3.5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(107, 29, 47, 0.5);
    z-index: 2;
}

.story-item-wrapper:nth-child(odd) .timeline-dot {
    right: -11px;
}

.story-item-wrapper:nth-child(even) .timeline-dot {
    left: -11px;
}

/* Dynamic Card Variations (Organic & Non-Uniform!) */
.story-card-dynamic {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-subtle);
    position: relative;
    transition: all 0.5s var(--transition-bounce);
}

/* Card 1: Slightly tilted left with polaroid frame */
.story-card-dynamic.style-polaroid-left {
    transform: rotate(-2deg);
    border-bottom: 6px solid var(--rose-champagne);
}

/* Card 2: Larger highlight card tilted right */
.story-card-dynamic.style-polaroid-right {
    transform: rotate(2.2deg);
    border-left: 5px solid var(--primary-burgundy);
    background: linear-gradient(135deg, #ffffff 0%, #fcf4f5 100%);
}

/* Card 3: Romantic subtle lift */
.story-card-dynamic.style-romantic-lift {
    transform: rotate(-1.5deg) translateY(-5px);
    border-top: 4px solid var(--primary-burgundy);
}

/* Interactive Hover state: Straightens up & zooms smoothly! */
.story-card-dynamic:hover {
    transform: rotate(0deg) scale(1.04) translateY(-6px) !important;
    box-shadow: var(--shadow-elevated);
    z-index: 10;
}

.story-img-container-dynamic {
    width: 100%;
    height: 230px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.story-img-dynamic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.story-card-dynamic:hover .story-img-dynamic {
    transform: scale(1.1);
}

.story-badge-year {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-burgundy);
    background: var(--soft-blush);
    padding: 3px 12px;
    border-radius: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.story-title-dynamic {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    color: var(--deep-rose-noir);
    margin: 0.2rem 0 0.5rem;
}

.story-text-dynamic {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.55;
}

/* Scrapbook Ribbon Quote Accent */
.story-quote-accent {
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    color: var(--primary-burgundy);
    margin-top: 0.6rem;
    opacity: 0.9;
}

/* =================================================================
   PHOTO GALLERY SECTION
   ================================================================= */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 7px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-burgundy);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(107, 29, 47, 0.25);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 270px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    transition: all 0.4s var(--transition-bounce);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-elevated);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(35, 7, 14, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
}

.gallery-cat {
    color: var(--rose-champagne);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 3, 7, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--rose-champagne);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 28px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--rose-champagne);
}

/* =================================================================
   TRIVIA QUIZ GAME
   ================================================================= */
.trivia-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--silk-cream);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-elevated);
    text-align: center;
}

.trivia-question {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--deep-rose-noir);
    margin-bottom: 1.2rem;
}

.trivia-options {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.option-btn {
    padding: 12px 18px;
    background: #fff;
    border: 1.5px solid var(--glass-border);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-btn:hover {
    background: var(--soft-blush);
    border-color: var(--primary-burgundy);
    transform: translateX(4px);
}

.option-btn.correct {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #1b5e20;
}

.option-btn.wrong {
    background: #ffebee;
    border-color: #c62828;
    color: #b71c1c;
}

/* =================================================================
   LIVE GOOGLE MAPS
   ================================================================= */
.map-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--silk-cream);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-elevated);
}

.map-iframe-container {
    width: 100%;
    height: 340px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.map-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.venue-details {
    padding: 0.5rem;
}

.venue-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-burgundy);
    margin-bottom: 0.4rem;
}

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

/* =================================================================
   RSVP FORM
   ================================================================= */
.rsvp-card {
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 2.2rem 2rem;
    border: 1px solid var(--rose-champagne);
    box-shadow: var(--shadow-elevated);
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--deep-rose-noir);
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px solid var(--glass-border);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-burgundy);
    box-shadow: 0 0 10px rgba(107, 29, 47, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

/* =================================================================
   BLESSINGS / GUESTBOOK WALL
   ================================================================= */
.wishes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.wish-card {
    background: var(--silk-cream);
    border-radius: 14px;
    padding: 1.3rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-subtle);
    position: relative;
    transition: transform 0.3s ease;
}

.wish-card:hover {
    transform: translateY(-3px);
}

.wish-card::before {
    content: '"';
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--rose-champagne);
    position: absolute;
    top: 0px;
    right: 12px;
    line-height: 1;
    pointer-events: none;
}

.wish-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.wish-author {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-burgundy);
    text-transform: uppercase;
}

/* =================================================================
   FOOTER
   ================================================================= */
.wedding-footer {
    background: linear-gradient(180deg, #280811 0%, #120307 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    border-top: 1px solid var(--primary-burgundy);
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--rose-champagne);
    margin-bottom: 0.3rem;
}

.footer-date {
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    letter-spacing: 2.5px;
    color: #e0a9af;
    margin-bottom: 1.5rem;
}

/* Scroll Entrance Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .map-wrapper {
        grid-template-columns: 1fr;
    }
    .timeline::before {
        left: 20px;
    }
    .story-item-wrapper {
        width: 100%;
        padding-left: 55px;
        padding-right: 10px;
        text-align: left !important;
    }
    .story-item-wrapper:nth-child(even) {
        left: 0;
    }
    .story-item-wrapper:nth-child(odd) .timeline-dot,
    .story-item-wrapper:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .hero-names {
        font-size: 3.4rem;
    }
    .nav-links {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .event-card-portrait {
        height: 460px;
    }
}
