/* CSS Variables - Design System */
:root {
    --color-base: #FBF3E7;
    --color-maroon: #7A1620;
    --color-gold: #C9A227;
    --color-gold-shimmer: #E8C874;
    --color-red: #D62839;
    --color-pink: #E8A0BF;
    --color-orange: #F2994A;
    --color-green: #4C7A3D;

    --font-heading: 'Great Vibes', cursive;
    --font-body: 'Cormorant Garamond', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-base);
    color: var(--color-maroon);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.couple-names,
.section-title,
.event-title {
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Utility Classes */
.gold-text {
    color: var(--color-gold);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-glow {
    text-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 20px auto;
}

/* Section Backgrounds */
section {
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    /* Do NOT use background-attachment: fixed */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('Assets/bg_hero_desktop.webp');
    padding: 40px 20px 0 20px;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    min-height: 90vh;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero {
        background-image: url('Assets/bg_hero_mobile.webp');
    }
}

/* =========================================
   Hero Section Staggered Animation System
   ========================================= */
.hero-anim {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.overline.hero-anim {
    transform: translateY(-30px);
}

.couple-names.hero-anim {
    transform: scale(0.86) translateY(20px);
}

.tagline.hero-anim {
    transform: translateY(22px);
}

.scratch-card-wrapper.hero-anim {
    transform: perspective(800px) rotateX(20deg) translateY(30px) scale(0.92);
}

.scratch-prompt.hero-anim {
    transform: translateY(15px);
}

.couple-image.hero-anim {
    transform: translateY(45px) scale(0.95);
}

.scroll-down-indicator.hero-anim {
    transform: scale(0.82) translateY(18px);
}

#hero.hero-active .hero-anim {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) rotateX(0deg) !important;
}

#hero.hero-active .hero-anim-1 {
    transition-delay: 0.1s;
}

#hero.hero-active .hero-anim-2 {
    transition-delay: 0.35s;
}

#hero.hero-active .hero-anim-3 {
    transition-delay: 0.6s;
}

#hero.hero-active .hero-anim-4 {
    transition-delay: 0.85s;
}

#hero.hero-active .hero-anim-5 {
    transition-delay: 1.1s;
}

#hero.hero-active .hero-anim-6 {
    transition-delay: 1.3s;
}

#hero.hero-active .hero-anim-7 {
    transition-delay: 1.55s;
}

.hero-top {
    margin-top: 2vh;
    z-index: 2;
    width: 100%;
}

.overline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: none;
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(201, 162, 39, 0.3);
    margin-bottom: 10px;
}

.couple-names {
    font-size: 5rem;
    color: var(--color-maroon);
    -webkit-text-stroke: 0.8px var(--color-maroon);
    text-stroke: 0.9px var(--color-maroon);
    text-shadow: 0px 2px 10px rgba(201, 162, 39, 0.4);
    line-height: 1.2;
    margin: 10px 0;
}

.ampersand {
    color: var(--color-gold);
    font-size: 4rem;
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
}

.tagline {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-maroon);
    -webkit-text-stroke: 0.4px var(--color-maroon);
    text-stroke: 0.4px var(--color-maroon);
}

@media (max-width: 768px) {
    .overline {
        font-size: 1.1rem;
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        padding: 5px 18px;
        border-radius: 20px;
        display: inline-block;
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.8), 0 2px 10px rgba(0, 0, 0, 0.12);
        color: #5A0C13;
        font-weight: 700;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
        margin-bottom: 12px;
    }

    .couple-names {
        font-size: 3.4rem;
    }

    .ampersand {
        font-size: 2.8rem;
    }

    .tagline {
        font-size: 1.2rem;
    }
}

/* Reduced font sizes & spacing for mobile viewports with screen height less than 800px */
@media (max-width: 768px) and (max-height: 800px) {
    .hero {
        padding: 35px 15px 12px 15px !important;
    }

    .overline {
        font-size: 0.9rem !important;
    }

    .couple-names {
        font-size: 3.05rem !important;
    }

    .ampersand {
        font-size: 2.5rem !important;
    }

    .tagline {
        font-size: 0.95rem !important;
    }

    .hero-center {
        margin-top: 14px !important;
        margin-bottom: 0 !important;
    }

    .hero-bottom {
        margin-top: 30px !important;
    }

    .couple-image {
        max-height: 30vh !important;
    }

    .scroll-down-indicator {
        margin: 6px auto 4px auto !important;
    }

    .scroll-text {
        font-size: 0.85rem !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 2px !important;
    }

    .scroll-arrow svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Vertical spacing, image scaling & typography for tall mobile viewports with screen height greater than 900px */
@media (max-width: 768px) and (min-height: 900px) {
    .couple-names {
        font-size: 3.85rem !important;
    }

    .ampersand {
        font-size: 3.1rem !important;
    }

    .hero-center {
        margin-bottom: 0 !important;
    }

    .hero-bottom {
        margin-top: 30px !important;
    }

    .couple-image {
        max-width: 288px !important;
        /* Scaled down by 20% from 360px */
        max-height: 30vh !important;
    }
}

.hero-center {
    margin: 30px auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#shavings-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
}

/* Scratch Card */
.scratch-card-wrapper {
    position: relative;
    width: 320px;
    height: 130px;
    margin: 0 auto;
    border: 2px solid var(--color-gold);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(201, 162, 39, 0.4);
    overflow: hidden;
    background-color: var(--color-maroon);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .scratch-card-wrapper {
        width: 300px;
        height: 90px;
        /* Reduced height by 40px for mobile view */
    }
}

.scratch-card-wrapper::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid var(--color-gold-shimmer);
    border-radius: 8px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.8;
}

#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: crosshair;
}

.scratch-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-maroon) 0%, #4a0d13 100%);
}

.reveal-text {
    font-family: var(--font-body);
    font-size: 1.8rem;
    color: var(--color-gold-shimmer);
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.scratch-prompt {
    position: absolute;
    bottom: -32px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-maroon);
    -webkit-text-stroke: 0.3px var(--color-maroon);
    text-stroke: 0.3px var(--color-maroon);
    font-weight: 600;
    transition: opacity 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hero-bottom {
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.couple-image {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 450px;
    height: auto;
    max-height: 45vh;
    object-fit: contain;
    object-position: center bottom;
    /* Soft fade at the bottom edge */
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 15%);
    mask-image: linear-gradient(to top, transparent 0%, black 15%);
}

@media (max-width: 768px) {
    .couple-image {
        max-width: 360px;
        /* Scaled down by 20% on mobile */
        max-height: 36vh;
    }
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 15px auto 10px auto;
    text-decoration: none;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.scroll-text {
    font-family: 'Cormorant Garamond', 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FBF3E7;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.98), 0 0 18px rgba(0, 0, 0, 0.9);
    margin-bottom: 4px;
}

.scroll-arrow {
    color: #FBF3E7;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 12px rgba(0, 0, 0, 0.9));
    animation: bounceDown 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

.scroll-down-indicator:hover {
    transform: scale(1.08);
}

.scroll-down-indicator:hover .scroll-text {
    color: #FFF2A7;
}

/* Section Level Scroll Down Indicators - Light White Color */
.section-scroll-down {
    margin-top: 35px;
    margin-bottom: 5px;
    z-index: 10;
    position: relative;
}

.section-scroll-down .scroll-text {
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 18px rgba(0, 0, 0, 0.9) !important;
}

.section-scroll-down .scroll-arrow {
    color: #FFFFFF !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 12px rgba(0, 0, 0, 0.9)) !important;
}

/* Dark color override for Hero section mobile scroll indicator only */
@media (max-width: 768px) {
    #hero .scroll-down-indicator .scroll-text {
        color: #38070C !important;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 1px rgba(56, 7, 12, 0.3) !important;
    }

    #hero .scroll-down-indicator .scroll-arrow {
        color: #38070C !important;
        filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.9)) !important;
    }
}

@keyframes bounceDown {

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

    40% {
        transform: translateY(8px);
        opacity: 1;
    }

    60% {
        transform: translateY(4px);
        opacity: 0.95;
    }
}

/* Invitation Section */
.invitation {
    background-image: url('Assets/bg1_desktop.webp');
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 110px 20px;
}

.ganesh-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 12px auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(122, 22, 32, 0.2));
    transition: transform 0.4s ease;
}

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

@media (max-width: 768px) {
    .invitation {
        background-image: url('Assets/bg1_mobile.webp');
        padding: 65px 16px 145px 16px;
        /* Top padding reduced by 30px for mobile view */
    }

    .ganesh-img {
        width: 65px;
        height: 65px;
        margin-bottom: 8px;
    }
}

/* Reduced horizontal padding for tall mobile screens (>800px height) */
@media (max-width: 768px) and (min-height: 800px) {
    .invitation {
        padding-left: 26px;
        padding-right: 26px;
    }
}

.ornate-frame {
    background: transparent;
    border: none;
    padding: 20px 20px;
    max-width: 850px;
    box-shadow: none;
    position: relative;
    margin: 0 auto;
}

/* Remove corner frame borders */
.ornate-frame::before,
.ornate-frame::after {
    display: none;
}

.devotional-header {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-gold-shimmer);
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 10px rgba(201, 162, 39, 0.5);
}

.invite-copy {
    font-size: 1.35rem;
    line-height: 1.7;
    margin: 20px 0 30px 0;
    color: var(--color-base);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.couple-details-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.person-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 10px 20px;
    width: 100%;
    max-width: 600px;
}

.person-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: var(--color-gold-shimmer);
    margin-bottom: 5px;
    line-height: 1.2;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9), 0 0 15px rgba(201, 162, 39, 0.4);
}

.parentage {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-base);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.with-badge {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-gold);
    margin: 5px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.invitation-quote {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-gold-shimmer);
    max-width: 650px;
    margin: 20px auto 0 auto;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Mobile-Specific Responsive Optimizations for Invitation Section */
@media (max-width: 768px) {
    .ornate-frame {
        padding: 10px 5px;
        width: 100%;
    }

    .devotional-header {
        font-size: 1.05rem;
        letter-spacing: 1.8px;
        margin-bottom: 6px;
    }

    .invite-copy {
        font-size: 1.08rem;
        line-height: 1.55;
        margin: 14px 0 20px 0;
        padding: 0 6px;
    }

    .couple-details-box {
        gap: 12px;
        margin: 18px 0;
    }

    .person-card {
        padding: 8px 10px;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .person-title {
        font-size: 2.15rem;
        margin-bottom: 4px;
    }

    .parentage {
        font-size: 1.02rem;
        line-height: 1.45;
    }

    .with-badge {
        font-size: 1.75rem;
        margin: 2px 0;
    }

    .invitation-quote {
        font-size: 1.02rem;
        line-height: 1.55;
        margin: 14px auto 0 auto;
        padding: 0 8px;
    }
}

/* Best Compliments Section */
.compliments-section {
    background-image: url('Assets/bg3_desktop.webp');
    text-align: center;
    padding: 70px 20px;
    border-top: 1px solid rgba(201, 162, 39, 0.3);
}

@media (max-width: 768px) {
    .compliments-section {
        background-image: url('Assets/bg3_mobile.webp');
        padding: 80px 16px;
    }
}

.compliments-content {
    max-width: 900px;
    margin: 0 auto;
}

.compliments-section .section-title {
    font-size: 2.85rem;
    color: var(--color-gold-shimmer);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 15px rgba(201, 162, 39, 0.5);
}

@media (max-width: 768px) {
    .compliments-section .section-title {
        font-size: 2.2rem;
    }
}

.compliments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 35px;
}

.compliment-card {
    position: relative;
    background: linear-gradient(145deg, #3D1B2D 0%, #2A101E 65%, #190812 100%);
    border: 2px solid #E5C583;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(229, 197, 131, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.compliment-card::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(247, 197, 211, 0.4);
    border-radius: 12px;
    pointer-events: none;
}

.compliment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(247, 197, 211, 0.4);
}

.compliment-heading {
    font-family: 'Cormorant Garamond', 'Cinzel', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-gold-shimmer);
    margin-bottom: 8px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.compliment-names {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: #FBF3E7;
    margin-bottom: 6px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.compliment-sub {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #F5DFE6;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Events Section & Unique Theme Gradients Outside Cards */
.events-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.event-section {
    width: 100%;
    padding: 80px 100px 60px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 2px solid var(--color-gold);
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.3);
}

.view-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 32px;
    padding: 11px 26px;
    background: rgba(18, 5, 7, 0.72);
    border: 1.5px solid var(--color-gold-shimmer);
    border-radius: 30px;
    color: #FFF2A7;
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 0 12px rgba(229, 197, 131, 0.2);
    transition: all 0.35s ease;
    z-index: 5;
    position: relative;
}

.view-map-btn:hover {
    background: var(--color-gold-shimmer);
    color: #38070C;
    border-color: #FFFFFF;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(229, 197, 131, 0.5), 0 0 15px rgba(255, 255, 255, 0.6);
}

.view-map-btn svg {
    transition: transform 0.3s ease;
}

.view-map-btn:hover svg {
    transform: scale(1.18);
}

@media (max-width: 768px) {
    .event-section {
        padding: 50px 20px 40px 20px;
    }

    .view-map-btn {
        margin-top: 24px;
        padding: 9px 20px;
        font-size: 0.9rem;
    }
}

/* Event Section Blurred Background Images */
.event-section::before {
    content: '';
    position: absolute;
    inset: -25px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(4px) brightness(0.55);
    transform: scale(1.05);
    z-index: 1;
}

.event-section-mehndi::before {
    background-image: url('Assets/event-Mehndi.webp');
}

.event-section-cocktail::before {
    background-image: url('Assets/event-Cocktail.webp');
}

.event-section-engagement::before {
    background-image: url('Assets/event-Ring Ceremony.webp');
}

.event-section-haldi::before {
    background-image: url('Assets/event-Haldi.webp');
}

.event-section-south::before {
    background-image: url('Assets/event-South Wedding.webp');
}

.event-section-north::before {
    background-image: url('Assets/event-North Wedding.webp');
}

.event-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 3 / 4;
    border: 2px solid var(--color-gold);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 25px rgba(201, 162, 39, 0.5);
}

.event-overlay {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 30px 100px;
    width: 100%;
    text-align: center;
    color: var(--color-base);
    box-shadow: none;
}

@media (max-width: 768px) {
    .event-card {
        max-width: 380px;
    }

    .event-overlay {
        padding: 24px 68px !important;
    }

    .event-card-engagement .event-overlay,
    .event-card-south-wedding .event-overlay {
        padding-left: 38px !important;
        padding-right: 38px !important;
    }

    /* Engagement Card Mobile Text Shadow: Replace white shadow with Light Golden Shadow */
    .event-card-engagement .event-title {
        text-shadow: 0 1px 3px rgba(229, 197, 131, 0.85), 0 0 8px rgba(247, 215, 148, 0.5) !important;
    }

    .event-card-engagement .event-time,
    .event-card-engagement .event-schedule,
    .event-card-engagement .event-venue,
    .event-card-engagement .event-venue strong {
        text-shadow: 0 1px 2px rgba(229, 197, 131, 0.85), 0 0 6px rgba(247, 215, 148, 0.4) !important;
    }

    .event-title {
        font-size: 2.4rem !important;
        font-weight: 600 !important;
        line-height: 1.15 !important;
        margin-bottom: 10px !important;
    }

    .event-time {
        font-size: 1.1rem !important;
        line-height: 1.35 !important;
        margin-bottom: 6px !important;
    }

    .event-schedule {
        font-size: 1.02rem !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
    }

    .event-venue {
        font-size: 1.02rem !important;
        line-height: 1.35 !important;
        margin-bottom: 12px !important;
    }

    .event-desc {
        font-size: 0.98rem !important;
        line-height: 1.45 !important;
    }
}

@media (max-width: 480px) {
    .event-card {
        max-width: 340px;
    }

    .event-overlay {
        padding: 20px 62px !important;
    }

    .event-card-engagement .event-overlay,
    .event-card-south-wedding .event-overlay {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    .event-title {
        font-size: 2.1rem !important;
        margin-bottom: 8px !important;
    }

    .event-time {
        font-size: 1.02rem !important;
        margin-bottom: 5px !important;
    }

    .event-schedule {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        margin-bottom: 7px !important;
    }

    .event-venue {
        font-size: 0.95rem !important;
        margin-bottom: 10px !important;
    }

    .event-desc {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 360px) {
    .event-card {
        max-width: 300px;
    }

    .event-overlay {
        padding: 16px 58px !important;
    }

    .event-card-south-wedding .event-overlay {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .event-title {
        font-size: 1.85rem !important;
    }

    .event-time {
        font-size: 0.95rem !important;
    }

    .event-schedule {
        font-size: 0.88rem !important;
    }

    .event-venue {
        font-size: 0.88rem !important;
    }

    .event-desc {
        font-size: 0.84rem !important;
    }
}

.event-title {
    font-size: 3.2rem;
    color: var(--color-gold-shimmer);
    margin-bottom: 12px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9), 0 0 15px rgba(201, 162, 39, 0.5);
}

.event-time {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-base);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.event-schedule {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 12px;
    color: var(--color-base);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.event-venue {
    font-size: 1.15rem;
    margin-bottom: 15px;
    font-style: italic;
    color: var(--color-gold-shimmer);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.event-desc {
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--color-base);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Mehndi Card Text Styling - Optimized for Light Ivory/Parchment Background */
.event-card-mehndi .event-title {
    color: #4A0812;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8), 0 0 1px rgba(74, 8, 18, 0.3);
}

.event-card-mehndi .event-time {
    color: #1F3C21;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

.event-card-mehndi .event-schedule {
    color: #4A0812;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

.event-card-mehndi .event-venue {
    color: #2D050B;
    font-weight: 600;
    font-style: normal;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

.event-card-mehndi .event-venue strong {
    color: #1F3C21;
    font-weight: 700;
}

/* Cocktail Card Text Styling */
.event-card-cocktail .event-details {
    transform: translateY(-40px);
}

/* Engagement Card Text Styling - Optimized for Soft Blush Pink Background */
.event-card-engagement .event-details {
    transform: translateY(-40px);
}

.event-card-engagement .event-title {
    color: #4A0917;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85), 0 0 1px rgba(74, 9, 23, 0.3);
}

.event-card-engagement .event-time {
    color: #1E3B27;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

.event-card-engagement .event-schedule {
    color: #4A0917;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

.event-card-engagement .event-venue {
    color: #330610;
    font-weight: 600;
    font-style: normal;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

.event-card-engagement .event-venue strong {
    color: #1E3B27;
    font-weight: 700;
}

/* Haldi Card Text Styling - Optimized for Sunlit Marigold Yellow Background */
.event-card-haldi .event-title {
    color: #4A1200;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 1px rgba(74, 18, 0, 0.3);
}

.event-card-haldi .event-time {
    color: #1C3D21;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.95);
}

.event-card-haldi .event-schedule {
    color: #4A1200;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.95);
}

.event-card-haldi .event-venue {
    color: #330C00;
    font-weight: 600;
    font-style: normal;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.95);
}

.event-card-haldi .event-venue strong {
    color: #1C3D21;
    font-weight: 700;
}

/* South Indian Wedding Card Text Colors */
.event-card-south-wedding .event-title {
    color: #5A0C13;
    text-shadow: 0 0 12px #FFF2A7, 0 0 20px #FFFFFF, 2px 2px 6px #FBF3E7;
}

.event-card-south-wedding .event-time {
    color: #4A0D13;
    font-weight: 700;
    text-shadow: 0 0 10px #FFF2A7, 0 0 15px #FFFFFF, 1px 1px 4px #FBF3E7;
}

.event-card-south-wedding .event-venue {
    color: #5A0C13;
    font-weight: 700;
    text-shadow: 0 0 10px #FFF2A7, 0 0 15px #FFFFFF, 1px 1px 4px #FBF3E7;
}

.event-card-south-wedding .event-desc {
    color: #38070C;
    font-weight: 700;
    text-shadow: 0 0 10px #FFF2A7, 0 0 15px #FFFFFF, 1px 1px 4px #FBF3E7;
}

/* North Indian Wedding Card Text Styling - Optimized for Light Ivory Parchment Background */
.event-card-north-wedding .event-title {
    color: #4A050D;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 1px rgba(74, 5, 13, 0.3);
}

.event-card-north-wedding .event-time {
    color: #7A4C00;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.95);
}

.event-card-north-wedding .event-schedule {
    color: #4A050D;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.95);
}

.event-card-north-wedding .event-venue {
    color: #2E0308;
    font-weight: 600;
    font-style: normal;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.95);
}

.event-card-north-wedding .event-venue strong {
    color: #7A4C00;
    font-weight: 700;
}

/* Standalone Gallery Section */
.gallery-section {
    background-image: url('Assets/bg2_desktop.webp');
    text-align: center;
    padding: 80px 20px;
}

.gallery-section .section-title {
    font-size: 2.85rem;
    color: var(--color-gold-shimmer);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 15px rgba(201, 162, 39, 0.5);
}

.gallery-swipe-hint {
    display: none;
}

@media (max-width: 768px) {
    .gallery-section {
        background-image: url('Assets/bg2_mobile.webp');
        padding: 50px 15px;
    }

    .gallery-section .section-title {
        font-size: 2.65rem;
        line-height: 1.25;
    }

    .gallery-swipe-hint {
        display: block;
        font-family: 'Cormorant Garamond', 'Cinzel', serif;
        font-size: 1.05rem;
        font-weight: 600;
        font-style: italic;
        color: #F7C5D3;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(232, 200, 116, 0.4);
        padding-top: 35px !important;
        padding-bottom: 35px !important;
        margin-top: 0;
        margin-bottom: 0;
        letter-spacing: 0.8px;
        opacity: 0.95;
    }

    .coverflow-arrow {
        display: none !important;
    }

    .coverflow-container {
        transform: scale(1.2);
        transform-origin: center center;
        margin: 45px auto 35px auto;
    }

    .coverflow-dots {
        padding-top: 35px !important;
    }
}

.section-divider {
    margin: 60px auto;
}

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

.time-block {
    position: relative;
    background: linear-gradient(145deg, #3D1B2D 0%, #2A101E 65%, #190812 100%);
    border: 2px solid #E5C583;
    border-radius: 12px;
    width: 96px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), 0 0 15px rgba(229, 197, 131, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

/* Inner filigree gold & lotus accent border inside each time block */
.time-block::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border: 1px solid rgba(247, 197, 211, 0.4);
    border-radius: 9px;
    pointer-events: none;
}

/* Subtle split line decoration */
.time-block::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(229, 197, 131, 0.25);
    z-index: 1;
}

.time-block:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(247, 197, 211, 0.5);
}

.digit {
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #F7C5D3;
    text-shadow: 0 0 10px rgba(247, 197, 211, 0.7), 0 0 16px rgba(229, 197, 131, 0.35), 0 2px 5px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 2;
    margin-bottom: 2px;
}

.label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #F5DFE6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 2;
}

/* =========================================
   Mobile Optimization: Best Compliments & Countdown Section (@media max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    .compliments-section {
        background-image: url('Assets/bg3_mobile.webp');
        padding: 80px 16px;
    }

    .compliments-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .compliments-section .section-title {
        font-size: 2.15rem;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    /* Mobile Countdown Timer Sizing & Layout (Scaled down by 20%) */
    .countdown-timer {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 6px;
        margin-top: 14px;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        flex-wrap: nowrap;
    }

    .time-block {
        flex: 1 1 0px;
        min-width: 0;
        max-width: 66px;
        height: 62px;
        border-radius: 8px;
        padding: 4px 1px;
        border-width: 1.5px;
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45), 0 0 10px rgba(229, 197, 131, 0.25);
    }

    .digit {
        font-size: 1.32rem;
        margin-bottom: 0px;
    }

    .label {
        font-size: 0.54rem;
        letter-spacing: 0.6px;
    }

    .section-divider {
        margin: 28px auto;
    }

    /* Mobile Compliments Grid & Content (Card boxes removed on mobile) */
    .compliments-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
        margin-top: 24px;
        width: 100%;
    }

    .compliment-card {
        width: 100%;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 8px 0 !important;
        border-radius: 0 !important;
    }

    .compliment-card::after {
        display: none !important;
    }

    .compliment-heading {
        font-size: 1.4rem;
        margin-bottom: 6px;
        color: var(--color-gold-shimmer);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 10px rgba(201, 162, 39, 0.4);
    }

    .compliment-names {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 6px;
        color: #FBF3E7;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
        word-break: break-word;
    }

    .compliment-sub {
        font-size: 0.9rem;
        line-height: 1.45;
        color: #F5DFE6;
        opacity: 0.9;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    }
}

@media (max-width: 360px) {
    .countdown-timer {
        gap: 5px;
        max-width: 270px;
    }

    .time-block {
        height: 56px;
    }

    .digit {
        font-size: 1.18rem;
    }

    .label {
        font-size: 0.5rem;
        letter-spacing: 0.4px;
    }

    .compliment-names {
        font-size: 1.1rem;
    }
}



/* Royal 3D Coverflow Carousel */
.gallery-part {
    position: relative;
    width: 100%;
    margin-top: 40px;
}

.coverflow-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 480px;
    margin: 40px auto 20px auto;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: pan-y;
}

.coverflow-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.coverflow-slide {
    position: absolute;
    width: 320px;
    height: 420px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, box-shadow 0.6s ease;
    cursor: pointer;
    will-change: transform, opacity;
}

.slide-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid #E5C583;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 197, 131, 0.3);
    background: #2A101E;
}

.slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 15px 15px;
    background: linear-gradient(0deg, rgba(31, 10, 21, 0.95) 0%, rgba(31, 10, 21, 0.6) 70%, transparent 100%);
    color: #F7C5D3;
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 1px;
    text-align: center;
}

/* Active Slide Glow & Scaling */
.coverflow-slide.is-active .slide-card {
    border: 3px solid #E5C583;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(247, 197, 211, 0.6);
}

.coverflow-slide.is-active .slide-card img {
    transform: scale(1.03);
}

/* Navigation Arrows */
.coverflow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(42, 16, 30, 0.85);
    border: 2px solid #E5C583;
    color: #F7C5D3;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(229, 197, 131, 0.4);
    transition: all 0.3s ease;
}

.coverflow-arrow:hover {
    background: #E5C583;
    color: #2A101E;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(247, 197, 211, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.coverflow-prev {
    left: 20px;
}

.coverflow-next {
    right: 20px;
}

/* Pagination Dots */
.coverflow-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.coverflow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(245, 223, 230, 0.35);
    border: 1px solid #E5C583;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coverflow-dot.is-active {
    width: 32px;
    border-radius: 12px;
    background: #F7C5D3;
    box-shadow: 0 0 12px rgba(247, 197, 211, 0.8);
}

@media (max-width: 768px) {
    .gallery-part {
        overflow: hidden;
    }

    .coverflow-container {
        height: 360px;
        margin: 25px auto 15px auto;
    }

    .coverflow-slide {
        width: 220px;
        height: 300px;
    }

    .coverflow-arrow {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        z-index: 25;
    }

    .coverflow-prev {
        left: 0px;
    }

    .coverflow-next {
        right: 0px;
    }

    .slide-caption {
        font-size: 1.05rem;
        padding: 12px 10px;
    }
}

@media (max-width: 480px) {
    .coverflow-container {
        height: 320px;
    }

    .coverflow-slide {
        width: 190px;
        height: 260px;
        border-radius: 14px;
    }

    .coverflow-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .slide-caption {
        font-size: 0.9rem;
        padding: 8px 6px;
    }

    .coverflow-dots {
        gap: 6px;
        margin-top: 15px;
    }

    .coverflow-dot {
        width: 8px;
        height: 8px;
    }

    .coverflow-dot.is-active {
        width: 24px;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border: 3px solid var(--color-gold);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--color-gold);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #fff;
}

/* Footer Section */
.footer {
    background: linear-gradient(180deg, var(--color-maroon) 0%, #4D0E15 50%, #2E070B 100%);
    color: var(--color-base);
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
    border-top: 3px solid var(--color-gold);
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer .section-title {
    font-size: 2.85rem;
    color: var(--color-gold-shimmer);
    text-shadow: 0 2px 12px rgba(232, 200, 116, 0.4);
}

.footer .devanagari-title {
    font-size: 2.1rem;
    line-height: 1.5;
    color: var(--color-gold-shimmer);
    text-shadow: 0 2px 14px rgba(232, 200, 116, 0.5), 0 0 25px rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-divider {
    margin: 55px auto;
}

.blessings-text {
    font-size: 1.5rem;
    font-style: italic;
    margin: 20px 0;
    color: var(--color-gold-shimmer);
}

.rsvp {
    margin: 30px 0;
    font-size: 1.2rem;
    color: var(--color-base);
}

.rsvp-phone {
    color: var(--color-base);
    text-decoration: none;
    transition: color 0.3s ease;
}

.rsvp-phone:hover {
    color: var(--color-gold-shimmer);
    text-decoration: underline;
}

.credits {
    margin-top: 50px;
    font-size: 0.95rem;
    color: var(--color-gold-shimmer);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative;
    z-index: 10;
}

.shubhsites-link {
    color: #FFF2A7;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.shubhsites-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(232, 200, 116, 0.9);
}

/* Footer Section Mobile Optimization */
@media (max-width: 768px) {
    .footer {
        padding: 55px 18px 40px;
    }

    .footer .section-title {
        font-size: 2.2rem;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .footer .devanagari-title {
        font-size: 1.15rem !important;
        line-height: 1.5 !important;
        max-width: 96%;
        margin: 0 auto 12px auto !important;
    }

    .blessings-text {
        font-size: 1.15rem;
        line-height: 1.55;
        margin: 16px auto 20px auto;
        max-width: 92%;
        padding: 0 4px;
    }

    .footer .divider {
        margin: 22px auto;
        width: 50px;
    }

    .rsvp {
        margin: 24px auto;
        padding: 0;
        max-width: 100%;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        font-size: 1.05rem;
    }

    .rsvp-title {
        font-family: 'Cinzel', 'Cormorant Garamond', serif;
        font-size: 1.1rem;
        letter-spacing: 2.5px;
        color: var(--color-gold-shimmer);
        margin-bottom: 8px;
    }

    .rsvp-phone {
        display: inline-block;
        margin: 3px 0;
        font-size: 1.02rem;
        color: #FBF3E7;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    }

    .credits {
        margin-top: 32px;
        font-size: 0.88rem;
        letter-spacing: 0.5px;
        opacity: 1 !important;
        visibility: visible !important;
        color: var(--color-gold-shimmer);
    }
}

/* =========================================
   ANIMATIONS & EFFECTS
   ========================================= */

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

.petal {
    position: absolute;
    top: -10%;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    animation: floatFlower linear infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes floatFlower {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(25vh) translateX(30px) rotate(90deg) scale(1.05);
    }

    50% {
        transform: translateY(55vh) translateX(-25px) rotate(180deg) scale(0.95);
    }

    75% {
        transform: translateY(85vh) translateX(20px) rotate(270deg) scale(1.02);
    }

    100% {
        transform: translateY(115vh) translateX(0) rotate(360deg) scale(0.9);
    }
}

/* Scroll Reveal Classes (Intersection Observer triggers these) */
.fade-in,
.fade-in-up,
.fade-in-down,
.fade-in-scale,
.fade-in-left,
.fade-in-right,
.fade-in-flip {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in {
    transition: opacity 1.2s ease-out;
}

.fade-in-up {
    transform: translateY(48px);
}

.fade-in-down {
    transform: translateY(-40px);
}

.fade-in-scale {
    transform: scale(0.91);
}

.fade-in-left {
    transform: translateX(-55px) rotate(-1.5deg);
}

.fade-in-right {
    transform: translateX(55px) rotate(1.5deg);
}

.fade-in-flip {
    transform: perspective(800px) rotateX(25deg) translateY(35px);
}

/* Active states appended by JS */
.is-visible {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) rotate(0deg) rotateX(0deg) !important;
}

/* Dynamic Stagger Delays */
.delay-1 {
    transition-delay: 0.15s;
}

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

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

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

.delay-5 {
    transition-delay: 0.75s;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .couple-names {
        font-size: 3.5rem;
    }

    .ampersand {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* =========================================
   Cinematic Entrance Video Overlay & Button
   ========================================= */
body.entrance-active {
    overflow: hidden !important;
    height: 100vh;
    touch-action: none;
}

.entrance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background-color: rgba(11, 5, 7, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), transform 1.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.4s;
}

.entrance-overlay.fade-out {
    opacity: 0;
    transform: scale(1.08);
    pointer-events: none;
    visibility: hidden;
}

.entrance-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

/* Desktop & Tablet Screens: centered in native original aspect ratio */
.entrance-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0.88;
}

/* Mobile Screens: edge-to-edge 100vw x 100vh with cover fit */
@media (max-width: 767px) {
    .entrance-video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        opacity: 0.88;
    }
}

.entrance-tap-container {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.entrance-tap-container.hidden {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.85);
    pointer-events: none;
    visibility: hidden;
}

.entrance-tap-btn {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4), 0 0 50px rgba(255, 255, 255, 0.25), inset 0 0 15px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.entrance-tap-btn:hover {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.7), 0 0 60px rgba(255, 255, 255, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.35);
}

.entrance-tap-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.9));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.tap-btn-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tapping-hand-icon {
    animation: softTapBounce 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
    stroke: #FFFFFF;
}

@keyframes softTapBounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(7px) scale(0.92);
    }
}

/* Expanding Touch Ripple Rings */
.ripple-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.65);
    pointer-events: none;
    animation: rippleExpand 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.ring-1 {
    animation-delay: 0s;
}

.ring-2 {
    animation-delay: 1s;
}

.ring-3 {
    animation-delay: 2s;
}

@keyframes rippleExpand {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }

    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

.tap-btn-label {
    color: #FFFFFF;
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 0, 0, 0.85);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.9));
    animation: textBlackShadowPulse 2.4s ease-in-out infinite;
    user-select: none;
}

@keyframes textBlackShadowPulse {

    0%,
    100% {
        opacity: 0.9;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.85);
    }

    50% {
        opacity: 1;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 0, 0, 0.9);
    }
}

/* Glassmorphic Venue Map Modal */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.map-modal.is-active {
    display: flex;
    opacity: 1;
}

.map-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 4, 6, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.map-modal-card {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 640px;
    background: linear-gradient(135deg, rgba(38, 12, 16, 0.96) 0%, rgba(20, 5, 8, 0.98) 100%);
    border: 2px solid var(--color-gold);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(229, 197, 131, 0.35);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-modal.is-active .map-modal-card {
    transform: scale(1) translateY(0);
}

.map-modal-close {
    position: absolute;
    top: 14px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--color-gold-shimmer);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
}

.map-modal-close:hover {
    color: #FFFFFF;
    transform: scale(1.15) rotate(90deg);
}

.map-modal-title {
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-gold-shimmer);
    margin-bottom: 16px;
    text-align: center;
    padding-right: 30px;
    padding-left: 30px;
    line-height: 1.45;
}

.map-iframe-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(229, 197, 131, 0.4);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 18px;
    background: #1a1a1a;
}

.map-modal-footer {
    display: flex;
    justify-content: center;
}

.map-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: var(--color-gold-shimmer);
    color: #38070C;
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(229, 197, 131, 0.4);
    transition: all 0.3s ease;
}

.map-app-btn:hover {
    background: #FFFFFF;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .map-modal-card {
        padding: 18px 16px;
        width: 94%;
    }

    .map-modal-title {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }

    .map-iframe-wrapper iframe {
        height: 250px;
    }
}

/* Floating Preview Mode Payment Reminder Banner */
.payment-banner {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    width: 360px;
    max-width: 90vw;
    background: linear-gradient(135deg, rgba(42, 10, 16, 0.95) 0%, rgba(20, 5, 8, 0.98) 100%);
    border: 1.5px solid var(--color-gold);
    border-radius: 16px;
    padding: 18px 20px 18px 20px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(232, 200, 116, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(140%) scale(0.92);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.payment-banner.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.payment-banner-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--color-gold-shimmer);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
    padding: 2px;
}

.payment-banner-close:hover {
    color: #FFFFFF;
    transform: scale(1.15) rotate(90deg);
}

.payment-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(214, 40, 57, 0.25);
    border: 1px solid rgba(214, 40, 57, 0.6);
    color: #FF8F9C;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #D62839;
    border-radius: 50%;
    box-shadow: 0 0 8px #D62839;
    animation: pulseBadge 1.5s infinite ease-in-out;
}

@keyframes pulseBadge {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }
}

.payment-banner-title {
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gold-shimmer);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.payment-banner-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--color-base);
    margin-bottom: 14px;
    padding-right: 10px;
}

.payment-banner-text strong {
    color: var(--color-gold-shimmer);
}

.payment-banner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--color-gold-shimmer) 0%, var(--color-gold) 100%);
    color: #38070C;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(229, 197, 131, 0.4);
    transition: all 0.3s ease;
}

.payment-banner-btn:hover {
    background: #FFFFFF;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

.payment-banner-btn svg {
    transition: transform 0.3s ease;
}

.payment-banner-btn:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .payment-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
        padding: 16px;
        border-radius: 16px;
    }

    .payment-banner-title {
        font-size: 1.02rem;
    }

    .payment-banner-text {
        font-size: 0.88rem;
        margin-bottom: 12px;
    }

    .payment-banner-btn {
        padding: 9px 14px;
        font-size: 0.78rem;
    }
}