/* --- DESIGN TOKENS --- */
:root {
    color-scheme: light !important;
    supported-color-schemes: light !important;
    /* Colors - Ivory + Muted Green Combination */
    --clr-ivory: #FDFBF7;
    --clr-bg-light: #F6F4EE;
    --clr-beige: #EFECE4;
    --clr-gold: #C5A059;
    --clr-gold-light: #DFCA9B;
    --clr-green-dark: #2C4237;
    --clr-green-mutated: #4A6B5D;
    --clr-text-main: #2C3531;
    --clr-text-light: #FDFBF7;

    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-script: 'Alex Brush', cursive;

    /* Transition */
    --trans-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: light !important;
    supported-color-schemes: light !important;
}

body {
    font-family: var(--font-sans);
    color: var(--clr-text-main);
    background-color: var(--clr-ivory);
    overflow-x: hidden;
    line-height: 1.6;
    color-scheme: light !important;
    supported-color-schemes: light !important;
}

/* Prevent dark mode auto-inversion & dark dimming on Samsung / Android browsers */
@media (prefers-color-scheme: dark) {
    :root, html, body {
        color-scheme: light !important;
        supported-color-schemes: light !important;
        background-color: var(--clr-ivory) !important;
        color: var(--clr-text-main) !important;
    }
    .hero-bg, img {
        filter: brightness(1) contrast(1) !important;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- REUSABLE UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.light-bg {
    background-color: var(--clr-bg-light);
}

.dark-bg {
    background-color: var(--clr-green-dark);
    color: var(--clr-text-light);
}

.default-bg {
    background-color: var(--clr-ivory);
}

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

.section-heading h2 {
    font-size: 3rem;
    color: var(--clr-green-dark);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.light-heading h2 {
    color: var(--clr-gold);
}

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

.divider::before,
.divider::after {
    content: '';
    height: 1px;
    width: 60px;
    background-color: var(--clr-gold);
}

.cross-icon {
    color: var(--clr-gold);
    font-size: 1.2rem;
}

/* Glassmorphism */
.card-glass {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 162, 81, 0.35);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(45, 62, 64, 0.08);
}

.dark-bg .card-glass {
    background: rgba(80, 118, 124, 0.45);
    border: 1px solid rgba(200, 162, 81, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    color: var(--clr-text-light);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: var(--clr-gold);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--trans-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--clr-green-dark);
    transition: var(--trans-smooth);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.glowing-btn {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.glowing-btn:hover {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
}

.mt-4 {
    margin-top: 2rem;
}

.pb-4 {
    padding-bottom: 2rem;
}

/* --- LOADER --- */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none !important;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-ivory);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out;
    touch-action: none;
}

.loader-content {
    text-align: center;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

body.fonts-loaded .loader-content {
    opacity: 1;
}

.loader-names {
    font-family: 'Great Vibes', 'Alex Brush', cursive;
    font-size: clamp(2.2rem, 9vw, 3.8rem);
    color: var(--clr-green-dark);
    margin: 0 auto 10px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    max-width: 90vw;
    text-shadow: 0 2px 12px rgba(46, 68, 71, 0.15);
}

.loader-names span {
    font-family: 'Great Vibes', 'Alex Brush', cursive;
    color: var(--clr-green-dark);
    font-size: clamp(1.8rem, 7vw, 3.2rem);
    margin: 0 4px;
}

.loader-container p.loader-subtitle {
    color: var(--clr-gold);
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.loader-enter-btn {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--clr-green-dark);
    color: #FAF8F5;
    border: 1px solid var(--clr-gold);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    box-shadow: 0 6px 20px rgba(46, 68, 71, 0.25);
    cursor: pointer;
    animation: loaderPulse 1.8s infinite ease-in-out;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.loader-enter-btn i {
    font-size: 0.8rem;
    color: var(--clr-gold);
}

/* --- NAVIGATION --- */
.glass-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--trans-smooth);
}

.glass-nav ul {
    display: flex;
    gap: 20px;
}

.glass-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--clr-green-dark);
    transition: var(--trans-smooth);
    padding: 8px 12px;
    border-radius: 20px;
}

.glass-nav a:hover,
.glass-nav a.active {
    background-color: var(--clr-gold);
    color: #fff;
}

/* Music Toggle */
.music-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--clr-gold);
    color: #fff;
    border: none;
    z-index: 1001;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: var(--trans-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.music-btn:hover {
    transform: scale(1.1);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.png');
    background-size: cover;
    background-position: center 20%;
    filter: brightness(1) contrast(1.02);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center 35%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--clr-text-light);
    max-width: 800px;
    padding: 0 20px;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5cm;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.6) 45%, 
        rgba(255, 255, 255, 0.9) 85%, 
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
    z-index: 0;
    display: none;
    /* Hidden on desktop view */
}

.hero-content {
    color: var(--clr-text-light);
    max-width: 800px;
    padding: 0 20px;
}

.pre-title {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
    color: rgba(255, 255, 240, 0.9);
}

.names-wrapper-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    margin-bottom: 10px;
}

.script-name {
    font-family: var(--font-script);
    font-size: 8.5rem;
    /* Increased size slightly for Alex Brush */
    line-height: 0.9;
    font-weight: 400;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.ampersand-divider {
    position: relative;
    width: 100px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ampersand-divider::before,
.ampersand-divider::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.ampersand-divider::before {
    left: 0;
}

.ampersand-divider::after {
    right: 0;
}

.ampersand-divider span {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--clr-gold);
}

.getting-married {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 6px;
    margin-top: 10px;
    color: rgba(255, 255, 240, 0.9);
}

.hero-date {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 15px;
    color: var(--clr-gold-light);
}

.btn-primary-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    color: #fff;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-top: 30px;
    transition: var(--trans-smooth);
}

.btn-primary-outline:hover {
    background: var(--clr-green-dark) !important;
    color: #ffffff !important;
    border-color: var(--clr-gold) !important;
}

/* --- INVITATION SECTION --- */
.invitation {
    background-image: url('images/image copy 4.png');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 120px 0 80px;
}

.invitation-ornament {
    margin-bottom: 40px;
}

.ornament-icon {
    color: #FFFFFF;
    font-size: 1.5rem;
    position: relative;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.ornament-icon::before,
.ornament-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background: #FFFFFF;
    opacity: 0.8;
}

.ornament-icon::before {
    right: 100%;
    margin-right: 20px;
}

.ornament-icon::after {
    left: 100%;
    margin-left: 20px;
}

.bible-quote {
    max-width: 650px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.bible-quote .quote-text {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-style: italic;
    color: #FFFFFF;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(45, 62, 64, 0.4);
    letter-spacing: 0.5px;
}

.bible-quote .quote-verse {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--clr-green-dark);
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.4);
    text-align: right;
}

.invitation-message {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: #2D3E40;
    margin-bottom: 25px;
    font-weight: 500;
}

.invitation-names {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #2D3E40;
    margin-bottom: 30px;
    font-weight: 400;
}

.invitation-names span {
    font-family: var(--font-script);
    color: #FFFFFF;
    font-size: 3.8rem;
    display: inline-block;
    padding: 0 10px;
    text-shadow: 0 3px 12px rgba(45, 62, 64, 0.4);
}

.main-invite {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.6;
    color: #2D3E40;
    margin-bottom: 35px;
    font-weight: 500;
}

.blessing-box {
    margin: 40px 0;
    padding: 20px 30px;
    border-left: 2px solid #FFFFFF;
    border-right: 2px solid #FFFFFF;
    display: inline-block;
    background: rgba(250, 248, 245, 0.35);
    backdrop-filter: blur(5px);
    border-radius: 8px;
}

.blessing-box p {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: #2D3E40;
}

.blessing-box strong {
    display: block;
    margin-top: 10px;
    color: #FFFFFF;
    font-size: 1.6rem;
    font-family: var(--font-serif);
    text-shadow: 0 2px 10px rgba(45, 62, 64, 0.4);
}

.final-note {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-style: italic;
    color: #FFFFFF;
    font-weight: 500;
    margin-top: 50px;
    text-shadow: 0 2px 10px rgba(45, 62, 64, 0.35);
}

letter-spacing: 1px;
padding: 0 15px;
/* Prevent touching edges on mobile/tablet */
line-height: 1.6;
}

.invitation-divider {
    margin-top: 60px;
}

.floral-divider {
    width: 60px;
    opacity: 0.15;
    filter: sepia(1) saturate(5) hue-rotate(10deg);
}

@media (max-width: 768px) {
    .invitation-names {
        font-size: 1.8rem;
    }

    .invitation-names span {
        font-size: 2.5rem;
    }

    .main-invite {
        font-size: 1.3rem;
    }

    .blessing-box p {
        font-size: 1.1rem;
    }
}

.couple-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Tablet Optimization for Couple Section */
@media (min-width: 601px) and (max-width: 1024px) {
    .couple-wrapper {
        gap: 20px;
        flex-wrap: nowrap;
        /* Keep side-by-side on iPad */
    }

    .person {
        width: 320px !important;
        padding: 30px 20px !important;
    }

    .and-divider h2 {
        font-size: 3rem !important;
    }
}

.person {
    text-align: center;
    padding: 40px 30px;
    width: 350px;
    background-image: url('images/image copy 3.png');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(200, 162, 81, 0.45);
    box-shadow: 0 10px 30px rgba(45, 62, 64, 0.08);
}

.img-ring {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid var(--clr-gold);
    padding: 8px;
    margin: 0 auto 25px;
    position: relative;
}

.img-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.img-ring:hover .img-wrapper {
    transform: scale(1.05);
}

.person h3 {
    font-size: 2.2rem;
    color: var(--clr-green-dark);
    margin-bottom: 5px;
}

.role {
    font-family: var(--font-sans);
    color: var(--clr-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.parents-info {
    font-size: 0.95rem;
    color: var(--clr-text-main);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 15px;
}

.parents-names {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 5px;
}

.and-divider h2 {
    font-size: 4rem;
    color: var(--clr-gold);
    font-style: italic;
}

/* --- EVENTS SECTION --- */
#events {
    background-image: url('images/image.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--clr-gold);
    top: 0;
    bottom: 0;
    left: 30px;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 0 30px 60px;
    position: relative;
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 10px;
    background-color: var(--clr-green-dark);
    border: 2px solid var(--clr-gold);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--clr-gold);
}

.timeline-content {
    padding: 30px;
    background-image: url('images/image copy 3.png');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(200, 162, 81, 0.45);
    box-shadow: 0 10px 30px rgba(45, 62, 64, 0.1);
    color: var(--clr-text-main);
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: var(--clr-green-dark);
    margin-bottom: 15px;
}

.event-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--clr-green-mutated);
    font-family: var(--font-sans);
}

.event-meta i {
    color: var(--clr-gold);
}

/* --- VENUE SECTION --- */
#venue {
    background-image: url('images/image copy 5.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.venue-luxury-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.venue-info-card {
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(200, 162, 81, 0.45);
    box-shadow: 0 10px 30px rgba(45, 62, 64, 0.1);
    border-radius: 15px;
}

.btn-primary-catchy,
.btn-primary-catchy:visited,
.btn-primary-catchy:focus,
.btn-primary-catchy:active,
.venue-actions a,
.venue-actions a:visited,
.venue-actions a:focus,
.venue-actions a:active {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px 40px !important;
    background: #2E4447 !important;
    background-color: #2E4447 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    box-shadow: 0 10px 25px rgba(46, 68, 71, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 1.5px solid #C8A251 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    outline: none !important;
}

.btn-primary-catchy:hover,
.venue-actions a:hover {
    transform: translateY(-5px) scale(1.03) !important;
    box-shadow: 0 15px 30px rgba(46, 68, 71, 0.45) !important;
    background: #3B565A !important;
    background-color: #3B565A !important;
    color: #ffffff !important;
    border: 1.5px solid #C8A251 !important;
}

.bounce-icon {
    animation: iconBounce 2s infinite;
}

@keyframes iconBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* --- SAVE THE DATE --- */
.save-the-date {
    position: relative;
    text-align: center;
    color: #fff;
    clip-path: inset(0);
    padding: 130px 0;
    /* Essential to contain the fixed child */
}

.save-the-date::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/D9D237F1-D4BA-4A09-943C-478C9799692A_1_201_a.jpeg');
    background-size: cover;
    background-position: center 20%;
    z-index: -2;
    /* Behind the overlay */
}

.save-the-date .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 50, 32, 0.4);
    z-index: -1;
}

.save-the-date h2 {
    font-family: 'Alex Brush', cursive;
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    text-transform: none;
    /* Script looks better in mixed case */
    color: #fff;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.date-text {
    font-size: 1.5rem;
    letter-spacing: 8px;
    margin-bottom: 50px;
    color: var(--clr-gold);
    position: relative;
    z-index: 1;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 500px;
    /* Limits size on desktop */
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.time-box {
    width: 100%;
    aspect-ratio: 1/1;
    /* Keeps them square */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.time-box h3 {
    font-size: clamp(1.2rem, 5vw, 2.5rem);
    /* Slightly larger for emphasis */
    margin: 0;
    color: #fff;
    /* Changed from gold to white */
    font-weight: 700;
}

.time-box p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-gold);
}

/* --- GALLERY SECTION --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.mobile-only {
    display: none !important;
    /* Always hidden on desktop */
}


.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

.gallery-item:hover .hover-icon i {
    transform: translateY(0);
}

/* --- RSVP SECTION --- */
.rsvp-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 40px;
    text-align: center;
}

.rsvp-card h2 {
    font-size: 2.8rem;
    color: var(--clr-gold);
    margin-bottom: 10px;
}

.rsvp-form {
    text-align: left;
}

.rsvp-form .input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 35px;
}

.rsvp-form .input-group label {
    font-size: 0.8rem;
    color: var(--clr-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0px;
    font-weight: 600;
}

.rsvp-form .input-group input {
    width: 100%;
    padding: 10px 0;
    background: transparent !important;
    border: none;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
}

.radio-group-new {
    margin-bottom: 40px;
}

.radio-options-modern {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.radio-card {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px 10px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.radio-content i {
    font-size: 1.2rem;
    color: rgba(212, 175, 55, 0.5);
}

.radio-content span {
    font-size: 0.85rem;
    color: var(--clr-beige);
    font-weight: 500;
}

.radio-card input:checked+.radio-content {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--clr-gold);
    transform: translateY(-3px);
}

.radio-card input:checked+.radio-content i {
    color: var(--clr-gold);
}

.radio-card input:checked+.radio-content span {
    color: #fff;
}

.full-width-btn {
    width: 100%;
}

.btn-primary {
    width: 100%;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.hidden {
    display: none !important;
}

.form-message {
    text-align: center;
    margin-top: 20px;
    color: var(--clr-gold);
    font-style: italic;
    font-size: 1.1rem;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* --- FOOTER --- */
footer {
    background-image: url('images/image copy 2.png');
    background-size: cover;
    background-position: center;
    color: var(--clr-text-main);
    text-align: center;
    padding: 70px 20px 110px;
    border-top: 1px solid rgba(200, 162, 81, 0.3);
    position: relative;
}

footer p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--clr-text-main);
    font-weight: 500;
}

footer h2 {
    font-size: 3.2rem;
    margin: 15px 0;
    color: var(--clr-green-dark);
}

.inline-heart {
    font-size: 1.5rem;
    margin: 0 10px;
    color: var(--clr-gold);
}

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 50, 32, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border: 4px solid var(--clr-gold);
    border-radius: 5px;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--clr-gold);
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-lightbox:hover {
    transform: scale(1.2);
}

/* --- ANIMATIONS & EFFECTS --- */
/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Falling Petals */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.petal {
    position: absolute;
    background-color: rgba(255, 255, 240, 0.3);
    /* Subtle white petal */
    border-radius: 15% 85% 15% 85%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg) translateX(50px);
        opacity: 0;
    }
}


/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .main-title {
        font-size: 3.5rem;
    }

    .glass-nav {
        width: 90%;
    }

    .glass-nav ul {
        justify-content: space-around;
        gap: 5px;
    }

    .glass-nav a {
        padding: 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .hero::after {
        display: block !important;
    }

    .hero-bg {
        background-image: url('images/hero-mobile.png') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        filter: brightness(1) contrast(1.02) !important;
    }

    .hero-overlay {
        background: radial-gradient(ellipse at center 35%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.15) 70%, rgba(0, 0, 0, 0.28) 100%) !important;
    }

    .main-title {
        font-size: 2.8rem;
    }

    .ampersand {
        font-size: 2.2rem;
    }

    .typing-text {
        font-size: 1.2rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 2.2rem;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        padding-left: 45px;
    }

    .timeline-icon {
        width: 30px;
        height: 30px;
        left: 5px;
        font-size: 0.8rem;
    }

    .timeline-content {
        padding: 20px;
    }

    .venue-card {
        padding: 20px;
    }

    /* Mobile Venue Background Image */
    #venue {
        background-image: url('images/image copy 6.png') !important;
        background-size: cover !important;
        background-position: center !important;
    }

    footer h2 {
        font-size: 2.2rem;
    }

    .save-the-date {
        background-attachment: scroll;
        /* Reset for safety, though pseudo-element takes over */
    }
}

@media (max-width: 480px) {
    .glass-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .glass-nav {
        border-radius: 20px;
        bottom: 15px;
    }

    .radio-options {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- MOBILE GALLERY ENFORCEMENT --- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* Expand the last odd item to span full width on mobile */
    .gallery-grid .gallery-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        height: 290px;
    }

    .gallery-grid .gallery-item:last-child:nth-child(odd) img {
        object-position: center 10%;
    }

    /* Hide the last 2 items on mobile as requested */
    .mobile-hide,
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
        /* Show on mobile */
    }
}

/* --- COUNTDOWN FINISHED STATE --- */
.countdown.finished {
    display: block;
    /* Disable grid layout */
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.finished-message {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.finished-ornament {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.finished-heart-icon {
    color: var(--clr-gold);
    font-size: 1.8rem;
    animation: heartBeat 2s infinite ease-in-out;
}

.finished-ornament::before,
.finished-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
}

.finished-ornament::before {
    right: 100%;
    margin-right: 15px;
}

.finished-ornament::after {
    left: 100%;
    margin-left: 15px;
}

.finished-title {
    font-family: var(--font-script);
    font-size: clamp(3rem, 8vw, 4.5rem);
    color: #fff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    margin-bottom: 10px;
    line-height: 1.2;
}

.finished-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    color: var(--clr-gold-light);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }

    50% {
        transform: scale(1.15);
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- AUDIO CONTROL BUTTON --- */