/* ══════════════════════════════════════
   ISLAMIC WEDDING INVITATION — STYLE SYSTEM
   Emerald & Gold Dark Islamic Theme
   ══════════════════════════════════════ */

/* ── CSS Custom Properties (Dark Mode Only) ── */
:root {
    --emerald: #0A6847;
    --emerald-deep: #053B30;
    --emerald-light: #16a34a;
    --gold: #C8A951;
    --gold-light: #e8d48a;
    --gold-glow: rgba(200, 169, 81, 0.4);
    --cream: #0a1a14;
    --cream-dark: #122a20;
    --sage: #122a20;
    --dark: #0a1a14;
    --dark-card: #122a20;
    --text-primary: #e8f0e8;
    --text-secondary: #9cc0a8;
    --text-light: #f0ece0;
    --glass-bg: rgba(18, 42, 32, 0.6);
    --glass-border: rgba(200, 169, 81, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --font-script: 'Great Vibes', cursive;
    --font-arabic: 'Amiri', serif;
    --font-body: 'Outfit', sans-serif;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 50%;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--cream);
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.hidden {
    display: none !important;
}

/* ── Utility Classes ── */
.script-heading {
    font-family: var(--font-script);
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--gold);
    text-align: center;
}

.heading-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 12px auto 0;
    border-radius: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-star {
    position: absolute;
    color: var(--gold);
    font-size: 0.9rem;
    background: var(--dark);
    padding: 0 8px;
    top: 50%;
    transform: translateY(-50%);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ══════════════════════════════════════
   ISLAMIC GEOMETRIC PATTERNS (CSS)
   ══════════════════════════════════════ */
.islamic-border-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background:
        repeating-linear-gradient(90deg,
            var(--gold) 0px,
            var(--gold) 10px,
            transparent 10px,
            transparent 14px,
            var(--emerald) 14px,
            var(--emerald) 24px,
            transparent 24px,
            transparent 28px);
    z-index: 5;
}

/* Islamic arch clip path for cards */
.islamic-arch-card {
    position: relative;
    border-top: 3px solid var(--gold);
}

.islamic-arch-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    background: var(--gold);
    border-radius: 0 0 60px 60px;
    opacity: 0.3;
}

/* ══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════
   PARTICLE CANVAS
   ══════════════════════════════════════ */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}



/* ══════════════════════════════════════
   ENVELOPE PRELOADER — Islamic Green
   ══════════════════════════════════════ */
#envelope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1a14 0%, #122a20 50%, #0a1a14 100%);
    cursor: pointer;
    transition: opacity 0.6s ease;
}

#envelope-overlay.opened {
    opacity: 0;
    pointer-events: none;
}

.envelope-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.envelope {
    position: relative;
    width: 280px;
    height: 180px;
    perspective: 800px;
}

.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--emerald), var(--emerald-deep));
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(10, 104, 71, 0.3);
}

/* Islamic geometric pattern overlay on envelope back */
.envelope-back::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    background:
        repeating-conic-gradient(from 0deg at 50% 50%,
            rgba(200, 169, 81, 0.08) 0deg 30deg,
            transparent 30deg 60deg);
    opacity: 0.5;
}

.envelope-front {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(180deg, var(--emerald-deep), var(--emerald));
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 3;
}

.envelope-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 140px 60px 140px;
    border-color: transparent transparent var(--emerald-deep) transparent;
    transform: translateY(-59px);
}

/* Gold geometric line on envelope front */
.envelope-front::after {
    content: '✦ ✦ ✦';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 0.6rem;
    letter-spacing: 8px;
    opacity: 0.5;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    transform-origin: top center;
    transition: transform 0.6s ease;
}

.envelope-flap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 90px 140px 0 140px;
    border-color: var(--emerald) transparent transparent transparent;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.envelope.open .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-letter {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, var(--cream), #fff);
    border-radius: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s ease 0.3s;
}

.envelope.open .envelope-letter {
    transform: translateY(-80px) scale(1.05);
}

.envelope-bismillah {
    font-family: var(--font-arabic);
    font-size: 1.1rem;
    color: var(--emerald);
    direction: rtl;
}

.envelope-initials {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--emerald);
}

.envelope-subtitle {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

.envelope-tap {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: tapPulse 2s ease-in-out infinite;
}

@keyframes tapPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* ══════════════════════════════════════
   1. HERO SECTION — Islamic Theme
   ══════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(160deg, var(--sage) 0%, var(--cream) 40%, rgba(200, 169, 81, 0.08) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(10, 104, 71, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(200, 169, 81, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Mosque dome silhouette background */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background:
        radial-gradient(ellipse 100px 120px at 150px 80px, rgba(10, 104, 71, 0.04) 100%, transparent 0),
        radial-gradient(ellipse 40px 80px at 60px 120px, rgba(10, 104, 71, 0.03) 100%, transparent 0),
        radial-gradient(ellipse 40px 80px at 240px 120px, rgba(10, 104, 71, 0.03) 100%, transparent 0);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-bismillah {
    font-family: var(--font-arabic);
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--gold);
    direction: rtl;
    margin-bottom: 4px;
    line-height: 1.8;
}

.hero-bismillah-eng {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-tagline {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 300;
}

.hero-names {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 10vw, 5rem);
    color: var(--gold);
    line-height: 1.3;
    margin-bottom: 12px;
}

.crescent-icon {
    display: inline-block;
    color: var(--gold);
    vertical-align: middle;
    margin: 0 8px;
    animation: crescentGlow 3s ease-in-out infinite;
}

.crescent-icon svg {
    width: clamp(28px, 6vw, 40px);
    height: clamp(28px, 6vw, 40px);
}

@keyframes crescentGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(200, 169, 81, 0.3));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(200, 169, 81, 0.6));
        transform: scale(1.1);
    }
}

.hero-married {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-date {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.hero-location {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 2;
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
}

.scroll-arrow span:nth-child(2) {
    opacity: 0.5;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ══════════════════════════════════════
   QURAN VERSE SECTION
   ══════════════════════════════════════ */
.quran-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--sage) 50%, var(--cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quran-card {
    max-width: 550px;
    margin: 0 auto;
    padding: 40px 28px;
    text-align: center;
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    box-shadow:
        0 8px 32px var(--glass-shadow),
        inset 0 0 30px rgba(200, 169, 81, 0.03);
}

/* Ornamental corner accents */
.quran-card::before,
.quran-card::after {
    content: '✦';
    position: absolute;
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0.6;
}

.quran-card::before {
    top: 12px;
    left: 16px;
}

.quran-card::after {
    bottom: 12px;
    right: 16px;
}

.quran-arabic {
    font-family: var(--font-arabic);
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    color: var(--gold-light);
    direction: rtl;
    line-height: 2;
    margin-bottom: 16px;
}

.quran-translation {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 12px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.quran-reference {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
}

/* ══════════════════════════════════════
   2. COUPLE SECTION
   ══════════════════════════════════════ */
.couple-section {
    padding: 80px 20px;
    text-align: center;
    background: var(--cream);
}

.couple-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.couple-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.couple-card h3 {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--gold);
}

.couple-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.couple-parent {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.photo-frame {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-full);
    border: 4px solid var(--gold);
    overflow: hidden;
    box-shadow:
        0 0 0 4px var(--cream),
        0 0 0 8px var(--emerald),
        0 8px 30px rgba(10, 104, 71, 0.15);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.photo-frame:hover img {
    transform: scale(1.1);
}

/* Islamic frame decoration */
.islamic-frame {
    position: relative;
}

.islamic-frame::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: var(--radius-full);
    border: 1px dashed rgba(200, 169, 81, 0.3);
    pointer-events: none;
    animation: rotateFrame 20s linear infinite;
}

@keyframes rotateFrame {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Float effect */
.float-effect {
    animation: floatUpDown 4s ease-in-out infinite;
}

.couple-card:nth-child(2) .float-effect {
    animation-delay: -2s;
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.couple-message {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 420px;
    margin: 0 auto;
}

/* ══════════════════════════════════════
   3. WEDDING DETAILS
   ══════════════════════════════════════ */
.details-section {
    padding: 80px 20px;
    background: var(--sage);
}

.glass-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 32px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.event-title {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(200, 169, 81, 0.2);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(200, 169, 81, 0.15);
}

.detail-item:last-of-type {
    border-bottom: none;
}

.detail-icon {
    font-size: 1.5rem;
    min-width: 36px;
    text-align: center;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.detail-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.detail-btn {
    flex: 1;
    min-width: 140px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
    color: var(--cream-dark);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--gold-glow);
}

/* ══════════════════════════════════════
   4. COUNTDOWN TIMER
   ══════════════════════════════════════ */
.countdown-section {
    padding: 80px 20px;
    background: var(--cream);
    text-align: center;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.glass-block {
    width: 78px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.glass-block::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(10, 104, 71, 0.08) 0%, transparent 60%);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    z-index: 1;
    position: relative;
}

/* ══════════════════════════════════════
   5. JOURNEY TIMELINE
   ══════════════════════════════════════ */
.timeline-section {
    padding: 80px 20px;
    background: var(--sage);
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--emerald), var(--gold), var(--emerald), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 45%;
    margin-bottom: 40px;
}

.timeline-item.left {
    margin-right: auto;
    text-align: right;
    padding-right: 30px;
}

.timeline-item.right {
    margin-left: auto;
    text-align: left;
    padding-left: 30px;
}

.timeline-heart {
    position: absolute;
    top: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
}

.timeline-item.left .timeline-heart {
    right: -16px;
}

.timeline-item.right .timeline-heart {
    left: -16px;
}

.glass-card-sm {
    padding: 20px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px var(--glass-shadow);
}

.timeline-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 600;
}

.timeline-card h3 {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--gold-light);
    margin: 4px 0 8px;
}

.timeline-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive timeline for very small screens */
@media (max-width: 480px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        margin-right: 0 !important;
        text-align: left !important;
        padding-left: 20px !important;
        padding-right: 0 !important;
    }

    .timeline-heart {
        left: -36px !important;
        right: auto !important;
    }
}

/* ══════════════════════════════════════
   6. GALLERY
   ══════════════════════════════════════ */
.gallery-section {
    padding: 80px 20px;
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--glass-shadow);
    transition: all var(--transition);
    aspect-ratio: 1;
    border: 2px solid transparent;
}

.gallery-item:hover {
    border-color: var(--gold);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(10, 104, 71, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 5001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 5001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

/* ══════════════════════════════════════
   7. RSVP
   ══════════════════════════════════════ */
.rsvp-section {
    padding: 80px 20px;
    background: var(--sage);
}

.rsvp-form {
    max-width: 480px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(10, 104, 71, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Attend Toggle */
.attend-toggle {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.attend-toggle input[type="radio"] {
    display: none;
}

.toggle-option {
    flex: 1;
    min-width: 140px;
    height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition);
    text-align: center;
}

.attend-toggle input[type="radio"]:checked+.toggle-option {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(200, 169, 81, 0.2), rgba(200, 169, 81, 0.05));
    color: var(--gold);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(200, 169, 81, 0.15);
}

/* Submit Button */
.rsvp-submit {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
    color: var(--cream);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.rsvp-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(10, 104, 71, 0.3);
}

.rsvp-submit:active {
    transform: translateY(0);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* RSVP Success */
.rsvp-success {
    text-align: center;
    padding: 40px 20px;
}

.rsvp-success h3 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.rsvp-success p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.heart-burst {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.heart-burst span {
    font-size: 1.5rem;
    animation: burstHeart 0.8s ease-out forwards;
    opacity: 0;
}

.heart-burst span:nth-child(1) {
    animation-delay: 0s;
}

.heart-burst span:nth-child(2) {
    animation-delay: 0.05s;
}

.heart-burst span:nth-child(3) {
    animation-delay: 0.1s;
}

.heart-burst span:nth-child(4) {
    animation-delay: 0.15s;
}

.heart-burst span:nth-child(5) {
    animation-delay: 0.2s;
}

.heart-burst span:nth-child(6) {
    animation-delay: 0.25s;
}

.heart-burst span:nth-child(7) {
    animation-delay: 0.3s;
}

.heart-burst span:nth-child(8) {
    animation-delay: 0.35s;
}

.heart-burst span:nth-child(9) {
    animation-delay: 0.4s;
}

.heart-burst span:nth-child(10) {
    animation-delay: 0.45s;
}

@keyframes burstHeart {
    0% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }

    50% {
        opacity: 1;
        transform: scale(1.5) translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(-10px);
    }
}

/* ══════════════════════════════════════
   8. FOOTER
   ══════════════════════════════════════ */
.footer-section {
    padding: 60px 20px 40px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--sage) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 85%, rgba(10, 104, 71, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(200, 169, 81, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-dua {
    font-family: var(--font-arabic);
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--gold);
    direction: rtl;
    margin-bottom: 4px;
}

.footer-dua-eng {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 16px;
}

.footer-thankyou {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 8px;
}

.footer-message {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-hashtag {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    border-radius: var(--radius-full);
    color: var(--gold);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--emerald);
    border-color: var(--emerald);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(10, 104, 71, 0.3);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ══════════════════════════════════════
   DESKTOP ENHANCEMENTS
   ══════════════════════════════════════ */
@media (min-width: 768px) {
    .glass-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px var(--glass-shadow), 0 0 20px var(--gold-glow);
    }

    .glass-card-sm:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px var(--glass-shadow);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 700px;
    }

    .photo-frame {
        width: 180px;
        height: 180px;
    }

    .countdown-block {
        width: 100px;
        height: 110px;
    }

    .countdown-number {
        font-size: 2.4rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 60px 40px;
    }

    .gallery-grid {
        max-width: 900px;
    }
}

/* ══════════════════════════════════════
   DEVELOPER CREDIT SECTION
   ══════════════════════════════════════ */
.developer-credit {
    padding: 24px 20px;
    background: linear-gradient(180deg, var(--cream) 0%, #060f0a 100%);
    border-top: 1px solid rgba(200, 169, 81, 0.15);
    position: relative;
    z-index: 2;
}

.developer-credit-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
    padding: 16px 24px;
    background: rgba(18, 42, 32, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 169, 81, 0.2);
    border-radius: var(--radius-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.developer-credit-inner:hover {
    border-color: rgba(200, 169, 81, 0.4);
    box-shadow: 0 4px 20px rgba(200, 169, 81, 0.1);
}

.developer-photo-wrapper {
    flex-shrink: 0;
}

.developer-photo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    border: 2px solid var(--gold);
    object-fit: cover;
    box-shadow: 0 0 12px rgba(200, 169, 81, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.developer-photo:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(200, 169, 81, 0.35);
}

.developer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.developer-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.developer-name {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 400;
    line-height: 1.3;
}

.developer-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    width: fit-content;
}

.developer-phone:hover {
    color: var(--gold);
}

.developer-phone svg {
    flex-shrink: 0;
}