/* ==========================================================================
   Gab & Honey Wedding Celebration - Modern Luxury Stylesheet
   ========================================================================== */

:root {
    --primary: #6c8299;
    --primary-light: #9bb0c4;
    --primary-dark: #4f667d;
    --secondary: #8c9dad;
    --secondary-dark: #374754;
    --accent: #7a93a6;
    --bg-cream: #f4f6f8;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-main: #24303b;
    --text-muted: #647382;
    --text-light: #ffffff;
    --border-soft: rgba(108, 130, 153, 0.22);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-dark: rgba(24, 32, 40, 0.75);
    --glass-border: rgba(255, 255, 255, 0.45);
    --shadow-sm: 0 4px 15px rgba(50, 70, 90, 0.05);
    --shadow-md: 0 12px 35px rgba(50, 70, 90, 0.08);
    --shadow-lg: 0 22px 60px rgba(50, 70, 90, 0.12);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-full: 9999px;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-cream);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* Subtle decorative grain background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: radial-gradient(rgba(108, 130, 153, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
    z-index: 9999;
}

/* Container & Layout */
.section {
    padding: 110px 8%;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 55px;
    position: relative;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
}

.section-tag.light {
    color: var(--primary-light);
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.section-header h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 18px auto 0;
}

.section-description {
    max-width: 650px;
    margin: 14px auto 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    background: linear-gradient(135deg, #6c8299 0%, #4f667d 100%);
    color: #ffffff !important;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(79, 102, 125, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.6s ease;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(79, 102, 125, 0.4);
    background: linear-gradient(135deg, #7c93aa 0%, #5a738c 100%);
}

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

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 30px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
    transform: translateY(-3px);
}

.btn-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-soft);
    background: #ffffff;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.btn-card-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-card-action svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
}

.btn-card-action:hover svg {
    transform: scale(1.15);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
    width: 100%;
    padding: 22px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: linear-gradient(180deg, rgba(140, 157, 173, 0.6) 0%, rgba(140, 157, 173, 0) 100%);
}

.navbar.scrolled {
    padding: 14px 8%;
    background: rgba(140, 157, 173, 0.6) 0%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary-light);
    font-style: italic;
    font-size: 1.6rem;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

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

.nav-cta {
    padding: 8px 22px !important;
    background: rgba(108, 130, 153, 0.25);
    border: 1px solid var(--primary);
    border-radius: var(--radius-full);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--primary);
    color: #ffffff !important;
}

/* Hamburger Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.menu-btn span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    margin: 2.5px 0;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.65) 100%),
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
        url('images/VAN06438.jpg') center/cover no-repeat;
    color: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
}

.hero-content {
    max-width: 900px;
    margin: auto;
    z-index: 2;
}

.hero-subtitle {
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 15px;
    animation: fadeInDown 1s ease forwards;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(3.8rem, 11vw, 7.8rem);
    font-weight: 500;
    margin: 10px 0 20px;
    line-height: 1;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: zoomIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-date {
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-date span.divider {
    color: var(--primary-light);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2;
}

.scroll-indicator:hover {
    color: #ffffff;
    transform: translateX(-50%) translateY(3px);
}

.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnim 1.8s infinite;
}

@keyframes scrollAnim {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ==========================================================================
   Event Details Section
   ========================================================================== */
.event-section {
    background: #ffffff;
}

.timeline-container {
    max-width: 1050px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.timeline-media {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.timeline-media:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.timeline-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-media:hover .timeline-image {
    transform: scale(1.015);
}

.timeline-overlay-hint {
    position: absolute;
    inset: 0;
    background: rgba(36, 48, 59, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    opacity: 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.timeline-media:hover .timeline-overlay-hint {
    opacity: 1;
}

.timeline-overlay-hint svg {
    width: 32px;
    height: 32px;
    stroke: #ffffff;
    fill: none;
}

/* ==========================================================================
   Story / Ceremony & Venue Sections
   ========================================================================== */
.card-section {
    background:
        linear-gradient(rgba(18, 22, 26, 0.75), rgba(18, 22, 26, 0.75)),
        url('images/MainBG.png') center/cover fixed;
    color: #ffffff;
    text-align: center;
    padding: 130px 8%;
    position: relative;
}

.venue-card {
    max-width: 1050px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border: 1px solid rgba(108, 130, 153, 0.18);
    transition: var(--transition-smooth);
}

.venue-card.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

/* Stacked layout for landscape images (image on top, content below) */
.venue-card.stacked {
    grid-template-columns: 1fr;
    max-width: 860px;
}

.venue-card.stacked .venue-card-media {
    min-height: unset;
    height: auto;
    aspect-ratio: 16 / 9;
}

.venue-card.stacked .venue-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.venue-card.stacked .venue-card-body {
    padding: 36px 40px;
}

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

.venue-card-media {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.venue-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.venue-card:hover .venue-card-media img {
    transform: scale(1.04);
}

.venue-card-body {
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.venue-card-tag {
    font-size: 0.78rem;
    letter-spacing: 3px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.venue-card-body h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.2;
}

.venue-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.venue-address {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.7;
    position: relative;
    padding-left: 24px;
}

.venue-address svg {
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    stroke: var(--primary);
    fill: none;
}

.venue-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Attire Guide Section
   ========================================================================== */
.attire-section {
    background: #ffffff;
}

.attire-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.attire-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    background: var(--bg-cream);
}

.attire-media img {
    width: 100%;
    transition: transform 0.6s ease;
}

.attire-media:hover img {
    transform: scale(1.03);
}

.attire-overlay-hint {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    opacity: 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.attire-media:hover .attire-overlay-hint {
    opacity: 1;
}

.attire-overlay-hint svg {
    width: 32px;
    height: 32px;
    stroke: #ffffff;
    fill: none;
}

.attire-info h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.attire-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.palette-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 14px;
}

.palette-swatches {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.swatch-color {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #ffffff;
}

.swatch-item:hover .swatch-color {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.swatch-name {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.attire-guidelines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.guide-box {
    padding: 16px 20px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.guide-box h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.guide-box p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   Moments / Photo Gallery Section
   ========================================================================== */
.gallery-section {
    background: var(--bg-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 320px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    background: #000000;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
    opacity: 0.88;
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.gallery-card-content {
    color: #ffffff;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-content {
    transform: translateY(0);
}

.gallery-card-content span {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-light);
}

.gallery-card-content h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
}

/* ==========================================================================
   Countdown Section
   ========================================================================== */
.countdown-section {
    background:
        linear-gradient(rgba(18, 22, 26, 0.75), rgba(18, 22, 26, 0.75)),
        url('images/MainBG.png') center/cover fixed;
    color: #ffffff;
    text-align: center;
    padding: 130px 8%;
    position: relative;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 45px;
    flex-wrap: wrap;
}

.count-box {
    width: 160px;
    height: 170px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.count-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.count-box:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.count-box h3 {
    font-size: clamp(3rem, 5vw, 4.2rem);
    font-family: var(--font-serif);
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.count-box span {
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--primary-light);
    font-weight: 500;
}

.calendar-action-wrapper {
    margin-top: 45px;
}

/* ==========================================================================
   Entourage Section
   ========================================================================== */
.entourage-section {
    background:
        linear-gradient(rgba(18, 22, 26, 0.75), rgba(18, 22, 26, 0.75)),
        url('images/MainBG.png') center/cover fixed;
    color: #ffffff;
    text-align: center;
    padding: 130px 8%;
    position: relative;
}

.entourage-block {
    margin-bottom: 60px;
}

.entourage-block:last-child {
    margin-bottom: 0;
}

.entourage-group-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
    position: relative;
}

.entourage-group-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 12px auto 0;
}

/* --- Principal Couple Row --- */
.entourage-couple-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.entourage-couple-card {
    flex: 1;
    max-width: 340px;
    padding: 36px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
    cursor: default;
}

.entourage-couple-card.groom-side {
    background: linear-gradient(135deg, #eef2f6 0%, #dce7f0 100%);
    border: 1px solid rgba(108, 130, 153, 0.22);
}

.entourage-couple-card.bride-side {
    background: linear-gradient(135deg, #f7f3f0 0%, #ede5df 100%);
    border: 1px solid rgba(153, 130, 108, 0.22);
}

.entourage-couple-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.entourage-couple-card .entourage-role-tag {
    font-size: 0.78rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.entourage-couple-card.bride-side .entourage-role-tag {
    color: #9e7b65;
}

.entourage-couple-card .entourage-name {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.entourage-couple-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.couple-ampersand {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-style: italic;
    color: var(--bg-cream);
    opacity: 1;
    line-height: 1;
}

/* --- Parents Row --- */
.entourage-parents-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.entourage-parent-card {
    flex: 1;
    max-width: 360px;
    padding: 26px 28px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    text-align: center;
    transition: var(--transition-smooth);
    cursor: default;
}

.entourage-parent-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.entourage-parent-card .entourage-role-tag {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.entourage-parent-card .entourage-name {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    color: var(--text-main);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* --- Best Man & Maid of Honor Row --- */
.entourage-honor-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.entourage-honor-card {
    flex: 1;
    max-width: 380px;
    padding: 32px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: default;
}

.entourage-honor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.entourage-honor-card.groom-side {
    background: linear-gradient(135deg, #eef2f6 0%, #dce7f0 100%);
    border: 1px solid rgba(108, 130, 153, 0.22);
}

.entourage-honor-card.groom-side::before {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
}

.entourage-honor-card.bride-side {
    background: linear-gradient(135deg, #f7f3f0 0%, #ede5df 100%);
    border: 1px solid rgba(153, 130, 108, 0.22);
}

.entourage-honor-card.bride-side::before {
    background: linear-gradient(90deg, #c4a28c, #e8cfc0);
}

.entourage-honor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.entourage-honor-card .entourage-role-tag {
    font-size: 0.76rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.entourage-honor-card.bride-side .entourage-role-tag {
    color: #9e7b65;
}

.entourage-honor-card .entourage-name {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.3;
}

/* --- Sponsors Grid (Principal & Bridesmaids/Groomsmen) --- */
.entourage-sponsors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}

.entourage-sponsor-col {
    padding: 30px 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    transition: var(--transition-smooth);
}

.entourage-sponsor-col.groom-side {
    background: linear-gradient(160deg, #f0f4f8 0%, #e2ebf3 100%);
}

.entourage-sponsor-col.bride-side {
    background: linear-gradient(160deg, #f8f4f0 0%, #f3e8e2 100%);
}

.entourage-sponsor-col:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.entourage-col-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(108, 130, 153, 0.2);
}

.entourage-sponsor-col.bride-side .entourage-col-label {
    color: #9e7b65;
    border-bottom-color: rgba(158, 123, 101, 0.2);
}

.entourage-col-label svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.entourage-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-reset: entourage-counter;
}

.entourage-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: var(--text-main);
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    counter-increment: entourage-counter;
    position: relative;
}
.entourage-list li::before {
    content: counter(entourage-counter);
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(108, 130, 153, 0.15);
    color: var(--primary-dark);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.entourage-sponsor-col.bride-side .entourage-list li::before {
    background: rgba(158, 123, 101, 0.15);
    color: #9e7b65;
}

.entourage-list li:hover {
    background: rgba(108, 130, 153, 0.08);
    transform: translateX(4px);
}

.entourage-sponsor-col.bride-side .entourage-list li:hover {
    background: rgba(158, 123, 101, 0.08);
}

.entourage-list li:hover::before {
    background: var(--primary);
    color: #ffffff;
}

.entourage-sponsor-col.bride-side .entourage-list li:hover::before {
    background: #9e7b65;
    color: #ffffff;
}

/* --- Secondary Sponsors (Candle, Veil, Cord) --- */
.entourage-secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}

.entourage-secondary-card {
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    padding: 28px 22px;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: default;
}

.entourage-secondary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.secondary-sponsor-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1;
}

.entourage-secondary-card .entourage-role-tag {
    font-size: 0.74rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.entourage-secondary-card .entourage-name {
    font-family: var(--font-serif);
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.5;
}

.entourage-name-separator {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--primary);
    font-size: 1.1rem;
    margin: 6px 0;
    opacity: 0.6;
}

/* --- Bearers & Flower Girls Grid --- */
.entourage-bearers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.entourage-bearer-card {
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: default;
}

.entourage-bearer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.entourage-bearer-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto auto auto;
    align-items: start;
    column-gap: 20px;
    text-align: left;
    padding: 28px 32px;
}

.entourage-bearer-wide .secondary-sponsor-icon {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    font-size: 2rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    padding-top: 2px;
}

.entourage-bearer-wide .entourage-role-tag {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    text-align: left;
    align-self: center;
    margin-bottom: 0;
}

.entourage-bearer-wide .entourage-name {
    grid-column: 2 / 3;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.entourage-bearer-wide .entourage-name::before {
    content: '✿';
    color: var(--primary-light);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.entourage-bearer-card .entourage-role-tag {
    font-size: 0.74rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.entourage-bearer-card .entourage-name {
    font-family: var(--font-serif);
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.6;
}

/* Responsive - Entourage */
@media (max-width: 820px) {
    .entourage-sponsors-grid {
        grid-template-columns: 1fr;
    }

    .entourage-secondary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .entourage-bearers-grid {
        grid-template-columns: 1fr 1fr;
    }

    .entourage-bearer-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .entourage-couple-row {
        flex-direction: column;
        align-items: center;
    }

    .entourage-couple-card {
        max-width: 100%;
        width: 100%;
    }

    .entourage-couple-divider {
        transform: rotate(90deg);
    }

    .entourage-secondary-grid {
        grid-template-columns: 1fr;
    }

    .entourage-bearers-grid {
        grid-template-columns: 1fr;
    }

    .entourage-bearer-wide {
        grid-column: unset;
        display: block;
        text-align: center;
    }

    .entourage-bearer-wide .entourage-role-tag,
    .entourage-bearer-wide .entourage-name {
        text-align: center;
    }

    .entourage-bearer-wide .entourage-name {
        justify-content: center;
    }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    background: #ffffff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--border-soft);
}

.faq-question {
    width: 100%;
    padding: 22px 26px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    cursor: pointer;
    background: none;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(108, 130, 153, 0.12);
    color: var(--primary-dark);
    transition: transform 0.4s ease, background 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: var(--primary);
    color: #ffffff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    padding: 0 26px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 250px;
    padding: 0 26px 24px;
}

/* ==========================================================================
   RSVP Section
   ========================================================================== */
.rsvp-section {
    background:
        linear-gradient(rgba(18, 22, 26, 0.75), rgba(18, 22, 26, 0.75)),
        url('images/MainBG.png') center/cover fixed;
    color: #ffffff;
    text-align: center;
    padding: 130px 8%;
    position: relative;
}

.rsvp-card {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 60px 45px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
    position: relative;
    z-index: 2;
}

.rsvp-card::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(108, 130, 153, 0.35);
    border-radius: calc(var(--radius-lg) - 8px);
    pointer-events: none;
}

.rsvp-card h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.rsvp-card p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 30px;
}

.rsvp-deadline {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(108, 130, 153, 0.12);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 70px 20px 40px;
    text-align: center;
    background: #1d2228;
    color: #ffffff;
    position: relative;
}

.footer-monogram {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--primary-light);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.footer-quote {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    letter-spacing: 1px;
    font-style: italic;
    margin-bottom: 24px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-nav a:hover {
    color: var(--primary-light);
}

.footer-credit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Floating Widgets (Music Player & Back to Top)
   ========================================================================== */
.floating-controls {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(25, 30, 36, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.floating-btn:hover {
    background: var(--primary);
    transform: translateY(-3px) scale(1.05);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(79, 102, 125, 0.4);
}

.floating-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sound Wave Equalizer Icon */
.music-equalizer {
    display: flex;
    align-items: center;
    gap: 2.5px;
    height: 18px;
}

.music-equalizer span {
    width: 2.5px;
    background: currentColor;
    border-radius: 1px;
    height: 4px;
    transition: height 0.2s ease;
}

.music-playing .music-equalizer span:nth-child(1) { animation: soundWave 0.8s infinite ease-in-out; }
.music-playing .music-equalizer span:nth-child(2) { animation: soundWave 1.1s infinite ease-in-out 0.2s; }
.music-playing .music-equalizer span:nth-child(3) { animation: soundWave 0.9s infinite ease-in-out 0.4s; }
.music-playing .music-equalizer span:nth-child(4) { animation: soundWave 1.2s infinite ease-in-out 0.1s; }

@keyframes soundWave {
    0%, 100% { height: 4px; }
    50% { height: 18px; }
}

/* ==========================================================================
   Interactive Modals & Toast Notification
   ========================================================================== */
/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(25, 30, 36, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-notification svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary-light);
    fill: none;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 16, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 40px 20px;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

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

.lightbox-caption {
    margin-top: 16px;
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

/* Canvas Confetti */
#confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10002;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .timeline-container {
        padding: 0 10px;
    }

    .venue-card,
    .venue-card.reverse {
        grid-template-columns: 1fr;
    }

    .venue-card-media {
        min-height: 320px;
    }

    .attire-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 820px) {
    .section {
        padding: 80px 6%;
    }

    .menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        background: rgba(18, 22, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 25px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .count-box {
        width: 130px;
        height: 140px;
    }

    .count-box h3 {
        font-size: 2.8rem;
    }

    .rsvp-card {
        padding: 40px 24px;
    }

    .attire-guidelines {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .section {
        padding: 70px 5%;
    }

    .count-box {
        width: calc(50% - 15px);
        height: 125px;
    }

    .venue-card-body {
        padding: 30px 20px;
    }

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

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Envelope Opening Screen / Gate Animation Styles
   ========================================================================== */

/* Fullscreen Envelope Gate */
.envelope-gate {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(32, 38, 46, 0.94) 0%, rgba(12, 16, 20, 0.99) 100%);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px 20px;
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s ease;
    user-select: none;
}

.envelope-gate.revealing-site {
    opacity: 0;
    transform: scale(1.08);
    pointer-events: none;
    visibility: hidden;
}

.envelope-gate.hidden {
    display: none !important;
}

/* Floating Ambient Petals */
.envelope-petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.petal-particle {
    position: absolute;
    top: -20px;
    background: linear-gradient(135deg, rgba(142, 164, 186, 0.45), rgba(255, 255, 255, 0.75));
    border-radius: 50% 0 50% 50%;
    pointer-events: none;
    filter: blur(0.5px);
    animation: petalFall linear infinite;
}

@keyframes petalFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    15% {
        opacity: 0.7;
    }
    85% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(105vh) rotate(540deg) scale(1.1);
        opacity: 0;
    }
}


/* Stage Container */
.envelope-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 700px;
    width: 100%;
    margin: auto;
}

/* Header Text Above Envelope */
.envelope-intro-text {
    text-align: center;
    margin-bottom: 25px;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.envelope-tag {
    display: inline-block;
    color: var(--primary-light);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
}

.envelope-couple {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 1.5px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.envelope-couple span {
    font-style: italic;
    color: var(--primary-light);
    font-size: 0.9em;
}

.envelope-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
}

/* 3D Envelope Wrapper */
.envelope-3d-wrapper {
    position: relative;
    width: 90vw;
    max-width: 580px;
    aspect-ratio: 975 / 595;
    perspective: 1400px;
    transform-style: preserve-3d;
    cursor: pointer;
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.45));
    transition: transform 0.4s ease, filter 0.4s ease;
    animation: envelopeGentleFloat 4s ease-in-out infinite;
}

.envelope-3d-wrapper:hover {
    transform: translateY(-6px) scale(1.015);
    filter: drop-shadow(0 30px 60px rgba(79, 102, 125, 0.3));
}

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

.envelope-3d-wrapper.opening,
.envelope-3d-wrapper.opened {
    animation: none;
}

/* Envelope Back Wall (Behind Letter) */
.envelope-back-wall {
    position: absolute;
    inset: 0;
    background: #d9e2ea;
    border-radius: 6px;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Lower Front Pocket */
.envelope-pocket-front {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    clip-path: polygon(
        0 25.7%, 
        10% 27%, 
        20% 32%, 
        30% 35%, 
        40% 47%, 
        44% 56%, 
        50% 62%, 
        56% 56%, 
        60% 47%, 
        70% 35%, 
        80% 32%, 
        90% 27%, 
        100% 25.7%, 
        100% 100%, 
        0 100%
    );
}

.envelope-pocket-front img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}

/* 3D Top Flap */
.envelope-flap-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    transform-origin: top center;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% 25.7%, 
        90% 27%, 
        80% 32%, 
        70% 35%, 
        60% 47%, 
        56% 56%, 
        50% 62%, 
        44% 56%, 
        40% 47%, 
        30% 35%, 
        20% 32%, 
        10% 27%, 
        0 25.7%
    );
}

.flap-front {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flap-front img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}

.flap-back {
    position: absolute;
    inset: 0;
    background: #d0dae3;
    transform: rotateX(180deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 6px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.12);
}

.flap-back-liner {
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(108, 130, 153, 0.35);
    border-radius: 4px;
}

/* Flap Opened State */
.envelope-3d-wrapper.opened .envelope-flap-3d {
    transform: rotateX(178deg);
    z-index: 2;
}

/* Wax Seal Pulsing Beacon & Hotspot */
.wax-seal-hotspot {
    position: absolute;
    top: 50.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105px;
    height: 105px;
    border-radius: 50%;
    z-index: 20;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wax-seal-glow {
    position: absolute;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    border: 2px solid rgba(122, 147, 166, 0.8);
    box-shadow: 0 0 20px rgba(122, 147, 166, 0.6), inset 0 0 15px rgba(122, 147, 166, 0.35);
    animation: sealGlowPulse 2.2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes sealGlowPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.95;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.4;
    }
}

.envelope-3d-wrapper.opened .wax-seal-hotspot {
    animation: sealBreakEffect 0.5s forwards ease-out;
}

@keyframes sealBreakEffect {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
        visibility: hidden;
    }
}

/* The Formal Wedding Invitation Card */
.envelope-card {
    position: absolute;
    left: 4.5%;
    width: 91%;
    top: 8%;
    height: 86%;
    z-index: 3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 24px;
    text-align: center;
    transform: translateY(0) scale(0.96);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, box-shadow 0.8s ease;
    border: 1px solid rgba(108, 130, 153, 0.25);
}

.card-inner {
    position: relative;
    border: 1px solid rgba(108, 130, 153, 0.35);
    height: 100%;
    border-radius: 6px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #ffffff 0%, #f4f6f8 100%);
}

.card-border-ornate {
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(108, 130, 153, 0.2);
    border-radius: 4px;
    pointer-events: none;
}

.card-monogram {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 2px;
    line-height: 1;
}

.card-monogram span {
    font-style: italic;
    color: var(--primary-light);
}

.card-tag {
    font-size: 0.62rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.card-names {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--text-main);
    font-weight: 500;
    margin: 2px 0 4px;
    letter-spacing: 1px;
    line-height: 1.1;
}

.card-invite-msg {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 6px;
    max-width: 340px;
}

.card-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.card-location {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.card-prompt {
    margin-top: 6px;
    font-size: 0.65rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    animation: fadeInOut 1.5s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Card Rises Up on Opening */
.envelope-3d-wrapper.opened .envelope-card {
    transform: translateY(-84%) scale(1.06);
    z-index: 10;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

/* Action Prompt Below Envelope */
.envelope-actions {
    margin-top: 28px;
    text-align: center;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.envelope-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 38px;
    background: linear-gradient(135deg, #6c8299 0%, #4f667d 100%);
    color: #ffffff;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(79, 102, 125, 0.45);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.envelope-open-btn svg {
    transition: transform 0.3s ease;
}

.envelope-open-btn:hover {
    transform: translateY(-3px) scale(1.03);
    background: linear-gradient(135deg, #7c93aa 0%, #5a738c 100%);
    box-shadow: 0 14px 38px rgba(79, 102, 125, 0.55);
}

.envelope-open-btn:hover svg {
    transform: rotate(-10deg) scale(1.15);
}

.envelope-hint-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* The container must be relative so the button can center inside it */
/* .video-container {
    position: relative;
    max-width: 640px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
}

video {
    width: 100%;
    display: block;
    cursor: pointer;
} */

/* Perfectly centered overlay button */
/* .play-pause-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.2s ease;
    pointer-events: auto;
    z-index: 10;
} */

/* Subtle hover effect */
/* .play-pause-overlay:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translate(-50%, -50%) scale(1.1);
} */

/* Simple SVG icon styles */
/* .play-pause-overlay svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
} */

/* Responsive Scaling for Envelope */
@media (max-width: 600px) {
    .envelope-gate {
        padding: 20px 14px;
    }

    .envelope-couple {
        font-size: 2.2rem;
    }

    .envelope-intro-text {
        margin-bottom: 16px;
    }

    .card-names {
        font-size: 1.4rem;
    }

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

    .card-invite-msg {
        font-size: 0.65rem;
    }

    .card-details {
        font-size: 0.68rem;
    }

    .wax-seal-hotspot {
        width: 80px;
        height: 80px;
    }

    .wax-seal-glow {
        width: 75px;
        height: 75px;
    }

    .envelope-3d-wrapper.opened .envelope-card {
        transform: translateY(-80%) scale(1.03);
    }
}
