:root {
    /* ============================
       WEDDING PALETTE — Matched to Slider Images
       Warm Ivory · Rich Gold · Deep Rose Gold
       ============================ */

    /* Backgrounds */
    --color-bg-deep: #FDF6EE;
    /* Warm ivory — main background */
    --color-bg-dark: #F2E4D0;
    /* Champagne beige — card/section contrast */
    --color-bg-card: #FFFAF5;
    /* Soft white card */

    /* Gold Palette (richer, matched to sliders) */
    --color-gold-primary: #C9956C;
    /* Warm terracotta-gold (from slider bouquets) */
    --color-gold-light: #E6B99A;
    /* Lighter warm gold */
    --color-gold-dark: #A07050;
    /* Deep warm brown-gold */

    /* True Gold Accent */
    --color-gold-true: #D4AF37;
    /* Classic wedding gold */
    --color-gold-rose: #E6B7A9;
    /* Rose gold */

    /* Text */
    --color-text-main: #4A3728;
    /* Deep warm brown */
    --color-text-muted: #9A7B68;
    /* Soft brownish */

    /* Accent Colors (from slider flowers) */
    --color-accent-rose: #E8A598;
    /* Deeper blush pink */
    --color-accent-cream: #F5DEC6;
    /* Warm cream */
    --color-accent-sage: #8A9E7A;
    /* Muted sage green */
    --color-accent-burgundy: #7D3D4A;
    /* Deep rose/burgundy from flowers */

    /* Typography */
    --font-heading: 'El Messiri', 'Aref Ruqaa', sans-serif;
    --font-body: 'Noto Naskh Arabic', serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --spacing-xxl: 12rem;

    /* Borders & Shadows */
    --border-gold: 1px solid rgba(201, 149, 108, 0.35);
    --shadow-soft: 0 10px 40px -10px rgba(74, 55, 40, 0.12);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-main);
    font-family: var(--font-body);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    /* Warm vignette matching slider warm tones */
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(201, 149, 108, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold-primary);
    border-radius: 5px;
    border: 2px solid var(--color-bg-dark);
}

/* Utilities */
.hidden {
    display: none !important;
}

.full-screen {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.content-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-gold-dark);
    line-height: 1.3;
}

/* Rich gold gradient for special headings */
.section-title {
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold-true, #D4AF37), var(--color-gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1.1rem;
    color: var(--color-text-main);
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, rgba(201, 149, 108, 0.08), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(201, 149, 108, 0.6);
    color: var(--color-gold-dark);
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    border-radius: 8px;
    margin-top: var(--spacing-md);
    position: relative;
    overflow: hidden;
    z-index: 100;
    letter-spacing: 0.05em;
}

.cta-btn:hover {
    background: linear-gradient(135deg, rgba(201, 149, 108, 0.18), rgba(212, 175, 55, 0.12));
    border-color: var(--color-gold-dark);
    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.25),
        0 8px 25px rgba(201, 149, 108, 0.2);
    transform: translateY(-3px) scale(1.02);
    color: var(--color-gold-dark);
}

/* Audio Controller */
.audio-controller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.audio-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(138, 110, 28, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.audio-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.audio-btn.playing {
    animation: rotateSlowly 4s linear infinite;
}

@keyframes rotateSlowly {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.audio-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform-origin: bottom right;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.audio-menu.hidden {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.audio-menu button {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    text-align: right;
}

.audio-menu button:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold-dark);
}

/* --- Navigation Bar --- */
/* --- Navigation Bar (Premium Royal) --- */
.wedding-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* Increased for larger logo */
    /* Slightly taller for elegance */
    background: rgba(255, 252, 245, 0.85);
    /* Warm white glass */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.15);
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    z-index: 99999;
    direction: rtl;
    transition: all 0.4s ease;
}

.wedding-nav.scrolled {
    background: rgba(255, 252, 245, 0.95);
    height: 80px;
    /* Keeps logo slightly smaller when scrolled */
    /* Shrink on scroll */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wedding-nav.hidden {
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

.nav-brand {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.nav-logo {
    height: 80px;
    /* Increased to make logo larger */
    max-width: 250px;
    width: auto;
    object-fit: contain;
    transition: height 0.4s ease;
}

.wedding-nav.scrolled .nav-logo {
    height: 60px;
    /* Shrinks the logo on scroll */
}

.nav-links {
    list-style: none;
    display: flex !important;
    flex-direction: row !important;
    gap: 3rem;
    /* More breathing room */
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li a {
    text-decoration: none !important;
    color: var(--color-text-main) !important;
    font-family: 'El Messiri', sans-serif;
    font-size: 1.3rem;
    /* Larger text */
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--color-gold-dark) !important;
    transform: translateY(-2px);
}

/* Elegant Underline */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold-dark), transparent);
    transition: width 0.4s ease, left 0.4s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
    left: 0;
}

.mobile-menu-btn {
    display: none !important;
    font-size: 2rem;
    cursor: pointer;
    color: #bfa028;
    /* Deep Gold */
    background: none;
    border: none;
    transition: transform 0.3s;
}

.mobile-menu-btn:hover {
    transform: rotate(90deg);
}

/* Responsive Nav */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
    }

    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column !important;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        margin: 1rem 0;
    }
}

/* ============================================================
   INVITATION & QR SCENE
   ============================================================ */
.invite-scene-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.invite-scene-title {
    text-align: center;
    margin-bottom: 3rem;
}

.invite-scene-title h2 {
    font-family: 'Aref Ruqaa', 'El Messiri', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold-true));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.invite-scene-title p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.invite-scene-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Invitation Card */
.inline-invite-card {
    background: var(--color-bg-card);
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(160,112,80,0.12);
    border: 1px solid rgba(201,149,108,0.2);
    overflow: hidden;
}

.iic-top-border {
    height: 5px;
    background: linear-gradient(90deg, #C9956C, #D4AF37, #E8C97A, #D4AF37, #C9956C);
}

.iic-body {
    padding: 2rem;
    text-align: center;
}

.iic-bismillah {
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.1rem;
    color: var(--color-gold-primary);
    margin-bottom: 1rem;
}

.iic-ring {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.iic-invite-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.8rem 0;
}

.iic-names {
    font-family: 'Aref Ruqaa', serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    background: linear-gradient(135deg, #A07050, #D4AF37, #C9956C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.8rem 0;
}

.iic-and {
    font-size: 1.5rem;
    margin: 0 0.3rem;
}

.iic-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.2rem 0;
    text-align: right;
}

.iic-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(249,243,236,0.8);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(201,149,108,0.15);
}

.iic-detail-item span { font-size: 1.4rem; }
.iic-detail-item small { display: block; font-size: 0.75rem; color: var(--color-text-muted); }
.iic-detail-item strong { font-size: 0.95rem; color: var(--color-text-main); }

.iic-verse {
    font-family: 'Aref Ruqaa', serif;
    font-size: 1rem;
    color: #8A6A50;
    margin: 1rem 0;
    line-height: 1.8;
}

.iic-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}

.iic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: 'Cairo', 'El Messiri', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
}

.iic-btn-gold {
    background: linear-gradient(135deg, #A07050, #C9956C, #D4AF37);
    color: #fff;
    box-shadow: 0 4px 15px rgba(160,112,80,0.25);
}

.iic-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(160,112,80,0.35); }

.iic-btn-outline {
    background: transparent;
    color: var(--color-gold-dark);
    border: 1.5px solid rgba(201,149,108,0.4);
}

.iic-btn-outline:hover { background: rgba(201,149,108,0.1); transform: translateY(-2px); }

/* QR Card */
.inline-qr-card {
    background: var(--color-bg-card);
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(160,112,80,0.12);
    border: 1px solid rgba(201,149,108,0.2);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.iqr-header { margin-bottom: 1.5rem; }
.iqr-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.iqr-header h3 {
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.5rem;
    color: var(--color-gold-dark);
    margin-bottom: 0.3rem;
}
.iqr-header p { color: var(--color-text-muted); font-size: 0.9rem; }

.iqr-frame {
    background: #FFFDF9;
    border-radius: 16px;
    border: 3px solid rgba(212,175,55,0.35);
    padding: 12px;
    box-shadow: 0 4px 20px rgba(160,112,80,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.iqr-frame canvas { border-radius: 6px; }

@media (max-width: 768px) {
    .invite-scene-content { grid-template-columns: 1fr; }
    .invite-scene-wrapper { padding: 2rem 1rem; }
}