﻿﻿ /* ═══════════════════════════════════════════════════
   AHMED & BASMALA — Wedding Invitation Stylesheet
   Aesthetic: Luxury Editorial · Dark & Light Mode
   Enhanced with Gallery, Music Player & 3D Effects
   Uniform Gallery + Full CRUD Wish Styles
════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Great+Vibes&family=Montserrat:wght@300;400;500;600&display=swap');
/* ── CSS Variables ── */
:root {
    --gold: #C9A96E;
    --gold-light: #E8D5B0;
    --gold-dark: #9A7B4F;
    --gold-glow: rgba(201, 169, 110, 0.35);
    --champagne: rgb(26 16 40 / 47%);
    --rose: #C4687A;
    --rose-soft: #F0C4CE;
    --ivory: #FDF8F4;
    --dark: #140C1E;
    --dark-mid: #231530;
    --text-body: #3A2540;
    --text-muted: #7A607A;
    --white: #FFFFFF;
    --border-soft: rgba(201, 169, 110, 0.25);
    --shadow-card: 0 4px 40px rgba(0,0,0,0.06);
    --shadow-lift: 0 12px 50px rgba(0,0,0,0.10);
    --bg-primary: var(--ivory);
    --bg-secondary: #FFFFFF;
    --bg-section-alt: var(--champagne);
    --text-primary: var(--text-body);
    --text-secondary: var(--text-muted);
    --border-color: var(--border-soft);
    --card-bg: var(--white);
}

/* ── Dark Mode ── */
[data-theme="dark"] {
    --bg-primary: rgb(13 8 22 / 70%);
    --bg-secondary: rgb(20 12 30 / 70%);
    --bg-section-alt: rgb(26 16 40 / 70%);
    --text-primary: #EDE0D4;
    --text-secondary: #9A8FA8;
    --border-color: rgba(201, 169, 110, 0.2);
    --card-bg: rgba(255,255,255,0.04);
    --shadow-card: 0 4px 40px rgba(0,0,0,0.3);
    --shadow-lift: 0 12px 50px rgba(0,0,0,0.5);
}

/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s ease, color 0.4s ease;
}

/* ── Theme Toggle ── */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border: 1px solid var(--gold);
    background: rgba(20, 12, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gold);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--gold-glow);
}

    .theme-toggle:hover {
        background: var(--gold);
        color: var(--dark);
        transform: scale(1.1) rotate(15deg);
    }

[data-theme="light"] .theme-toggle {
    background: rgba(253, 248, 244, 0.8);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--dark);
}

#three-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(20,12,30,0.1) 0%, rgba(20,12,30,0.55) 70%, rgba(20,12,30,0.88) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    opacity: 0;
}

.hero-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3.5rem, 9vw, 8rem);
    color: var(--white);
    line-height: 1.0;
    text-shadow: 0 0 80px var(--gold-glow), 0 2px 20px rgba(0,0,0,0.3);
    opacity: 0;
}

.name-ahmed, .name-basmala {
    display: inline-block;
}

.hero-amp {
    font-size: 0.65em;
    color: var(--gold);
    margin: 0 0.15em;
    font-style: italic;
}

.hero-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem auto;
    opacity: 0;
}

.ornament-line {
    display: block;
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.ornament-icon {
    color: var(--gold);
    font-size: 1.2rem;
    line-height: 1;
}

.hero-date-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    font-weight: 400;
    font-style: italic;
    color: var(--gold-light);
    letter-spacing: 0.05em;
    opacity: 0;
}

.hero-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.4em;
    margin-top: 0.2rem;
    opacity: 0;
}

/* ── Countdown ── */
.countdown-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    opacity: 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.cdown-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1;
    min-width: 2.5ch;
    text-align: center;
    transition: transform 0.2s ease;
}

    .cdown-num.tick {
        transform: scale(1.08);
        color: var(--gold-light);
    }

.cdown-lbl {
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
}

.cdown-dot {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
    padding-top: 0.2rem;
    opacity: 0.6;
}

/* ── Scroll cue ── */
.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
}

.scroll-cue-text {
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.scroll-mouse {
    width: 20px;
    height: 34px;
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.scroll-wheel {
    width: 2px;
    height: 7px;
    background: var(--gold);
    border-radius: 2px;
    animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    80% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 0;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════
   MUSIC PLAYER
══════════════════════════════════════════ */
.music-player {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.music-panel {
    background: rgba(20, 12, 30, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 1rem 1.2rem;
    min-width: 260px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px var(--gold-glow);
    transform: translateY(10px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .music-panel.open {
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: all;
    }

[data-theme="light"] .music-panel {
    background: rgba(253, 248, 244, 0.95);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 30px var(--gold-glow);
}

.music-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-bottom: 0.6rem;
    text-align: center;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="light"] .music-title {
    color: var(--gold-dark);
}

.music-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 28px;
    margin-bottom: 0.75rem;
}

    .music-waveform .bar {
        width: 3px;
        background: var(--gold);
        border-radius: 2px;
        animation: wave-idle 1.4s ease-in-out infinite;
        opacity: 0.4;
        transform-origin: bottom;
    }

    .music-waveform.playing .bar {
        opacity: 1;
        animation: wave-play 0.7s ease-in-out infinite;
    }

    .music-waveform .bar:nth-child(1) {
        height: 8px;
        animation-delay: 0s;
    }

    .music-waveform .bar:nth-child(2) {
        height: 16px;
        animation-delay: 0.1s;
    }

    .music-waveform .bar:nth-child(3) {
        height: 22px;
        animation-delay: 0.2s;
    }

    .music-waveform .bar:nth-child(4) {
        height: 14px;
        animation-delay: 0.3s;
    }

    .music-waveform .bar:nth-child(5) {
        height: 20px;
        animation-delay: 0.15s;
    }

    .music-waveform .bar:nth-child(6) {
        height: 10px;
        animation-delay: 0.25s;
    }

    .music-waveform .bar:nth-child(7) {
        height: 18px;
        animation-delay: 0.05s;
    }

    .music-waveform .bar:nth-child(8) {
        height: 12px;
        animation-delay: 0.35s;
    }

    .music-waveform .bar:nth-child(9) {
        height: 24px;
        animation-delay: 0.1s;
    }

    .music-waveform .bar:nth-child(10) {
        height: 8px;
        animation-delay: 0.2s;
    }

@keyframes wave-idle {
    0%, 100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.5);
    }
}

@keyframes wave-play {
    0%, 100% {
        transform: scaleY(1);
    }

    25% {
        transform: scaleY(2);
    }

    75% {
        transform: scaleY(0.4);
    }
}

.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mc-btn {
    background: none;
    border: 1px solid rgba(201,169,110,0.3);
    color: var(--gold);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

    .mc-btn:hover {
        background: var(--gold);
        color: var(--dark);
        border-color: var(--gold);
        transform: scale(1.1);
    }

    .mc-btn.play-pause {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        border-color: var(--gold);
        background: rgba(201,169,110,0.1);
    }

        .mc-btn.play-pause:hover {
            box-shadow: 0 0 20px var(--gold-glow);
        }

.music-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .music-volume label {
        font-size: 0.6rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--gold);
        white-space: nowrap;
    }

.volume-slider {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    height: 2px;
    background: linear-gradient(to right, var(--gold) 70%, rgba(201,169,110,0.2) 70%);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

    .volume-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--gold);
        cursor: pointer;
        box-shadow: 0 0 8px var(--gold-glow);
    }

.music-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 30px rgba(201,169,110,0.5), 0 0 0 0 var(--gold-glow);
    transition: all 0.3s ease;
    animation: pulse-fab 3s ease-in-out infinite;
    color: var(--dark);
}

    .music-fab:hover {
        transform: scale(1.12);
        box-shadow: 0 12px 40px rgba(201,169,110,0.6);
    }

    .music-fab.playing {
        animation: pulse-fab-active 1.5s ease-in-out infinite;
    }

@keyframes pulse-fab {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(201,169,110,0.4), 0 0 0 0 rgba(201,169,110,0.3);
    }

    50% {
        box-shadow: 0 8px 30px rgba(201,169,110,0.6), 0 0 0 12px rgba(201,169,110,0);
    }
}

@keyframes pulse-fab-active {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(201,169,110,0.5), 0 0 0 0 rgba(201,169,110,0.4);
    }

    50% {
        box-shadow: 0 8px 30px rgba(201,169,110,0.8), 0 0 0 16px rgba(201,169,110,0);
    }
}

/* ══════════════════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════════════════ */
.section {
    padding: 6rem 1.5rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

    .section-tag.light {
        color: var(--gold-light);
    }

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.15;
    transition: color 0.4s ease;
}

    .section-heading.light {
        color: var(--white);
    }

.section-byline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-style: italic;
    transition: color 0.4s ease;
}

.gold-rule {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto;
}

/* ══════════════════════════════════════════
   DETAILS SECTION
══════════════════════════════════════════ */
.details-section {
    background: var(--bg-primary);
    transition: background 0.4s ease;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    perspective: 800px;
}

    .detail-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(to right, transparent, var(--gold), transparent);
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }

    .detail-card:hover {
        transform: translateY(-8px) rotateX(3deg);
        box-shadow: var(--shadow-lift), 0 0 30px var(--gold-glow);
    }

        .detail-card:hover::after {
            transform: scaleX(1);
        }

.dc-icon-wrap {
    width: 44px;
    height: 44px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    color: var(--gold);
    transition: all 0.3s ease;
}

.detail-card:hover .dc-icon-wrap {
    background: var(--gold);
    color: var(--dark);
    box-shadow: 0 0 20px var(--gold-glow);
}

.dc-icon {
    width: 22px;
    height: 22px;
}

.dc-label {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.dc-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.4s ease;
}

.dc-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

/* ══════════════════════════════════════════
   GALLERY SECTION - UNIFORM GRID
══════════════════════════════════════════ */
.gallery-section {
    background: var(--bg-secondary);
    padding: 6rem 1.5rem;
    overflow: hidden;
    transition: background 0.4s ease;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    opacity: 0;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

    .gallery-item.in-view {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
        filter: brightness(0.9) saturate(1.1);
    }

    .gallery-item:hover img {
        transform: scale(1.07);
        filter: brightness(1) saturate(1.2);
    }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,12,30,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    color: var(--gold-light);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 5, 18, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

    .lightbox.open {
        opacity: 1;
        pointer-events: all;
    }

.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.open .lightbox-inner {
    transform: scale(1);
}

.lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 100px rgba(0,0,0,0.8), 0 0 60px var(--gold-glow);
}

.lb-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .lb-close:hover {
        background: var(--gold);
        color: var(--dark);
        transform: rotate(90deg);
    }

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20,12,30,0.7);
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

    .lb-nav:hover {
        background: var(--gold);
        color: var(--dark);
        transform: translateY(-50%) scale(1.1);
    }

.lb-prev {
    left: -3.5rem;
}

.lb-next {
    right: -3.5rem;
}

.lb-counter {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

/* ══════════════════════════════════════════
   QUOTE SECTION
══════════════════════════════════════════ */
.quote-section {
    background: linear-gradient(160deg, var(--dark) 0%, var(--dark-mid) 100%);
    padding: 5rem 1.5rem;
}

.quote-inner {
    max-width: 680px;
}

.quote-ornament {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.4;
    line-height: 0.5;
    display: block;
    margin-bottom: 1rem;
}

    .quote-ornament.flip {
        transform: rotate(180deg);
        margin-top: 1rem;
    }

.wedding-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--champagne);
    line-height: 1.9;
    opacity: 0;
    transform: translateY(20px);
}

.quote-source {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 1.2rem;
}

/* ══════════════════════════════════════════
   LOCATION SECTION
══════════════════════════════════════════ */
.location-section {
    background: linear-gradient(150deg, var(--dark-mid) 0%, var(--dark) 100%);
    padding: 6rem 1.5rem;
}

.location-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2.5rem;
    margin-top: 3rem;
    text-align: left;
    align-items: start;
}

.venue-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,169,110,0.2);
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.venue-badge {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
}

.venue-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
}

.venue-address {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--gold-light);
    line-height: 1.8;
}

.venue-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
}

    .venue-meta span {
        color: rgba(255,255,255,0.5);
        font-size: 0.8rem;
    }

.directions-btn {
    display: inline-block;
    margin-top: auto;
    padding: 0.75rem 2rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: background 0.3s, color 0.3s;
    align-self: flex-start;
    font-family: 'Montserrat', sans-serif;
}

    .directions-btn:hover {
        background: var(--gold);
        color: var(--dark);
    }

.map-wrapper {
    border: 1px solid rgba(201,169,110,0.25);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateX(30px);
}

    .map-wrapper iframe {
        width: 100%;
        height: 420px;
        display: block;
        border: 0;
        filter: grayscale(20%) contrast(1.05);
    }

/* ══════════════════════════════════════════
   WISHES SECTION - FULL CRUD + IMAGES
══════════════════════════════════════════ */
.wishes-section {
    background: var(--bg-section-alt);
    transition: background 0.4s ease;
}

.wish-form-card {
    max-width: 640px;
    margin: 3rem auto;
    background: var(--card-bg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(30px);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.wfc-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1.8rem;
    text-align: center;
    transition: color 0.4s ease;
}

.form-row {
    display: grid;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

    .form-group label {
        display: block;
        font-size: 0.6rem;
        letter-spacing: 0.3em;
        text-transform: uppercase;
        color: var(--gold-dark);
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.85rem 1rem;
        border: 1px solid var(--border-color);
        background: var(--bg-primary);
        font-family: 'Montserrat', sans-serif;
        font-size: 0.88rem;
        color: var(--text-primary);
        outline: none;
        transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.4s ease;
        border-radius: 0;
        resize: none;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 3px var(--gold-glow);
        }

.char-count {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.image-preview {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.image-preview-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.remove-image-btn {
    background: var(--rose);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    cursor: pointer;
    border-radius: 4px;
}

.emoji-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.emoji-pill {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

    .emoji-pill:hover {
        border-color: var(--gold);
        background: var(--bg-section-alt);
    }

    .emoji-pill.selected {
        background: var(--gold);
        border-color: var(--gold);
        color: var(--dark);
    }

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    color: var(--white);
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
    margin-top: 0.5rem;
}

    .submit-btn:hover:not(:disabled) {
        opacity: 0.92;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
    }

    .submit-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.btn-icon {
    font-size: 1rem;
    transition: transform 0.3s;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.form-message {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
    text-align: center;
    border-radius: 2px;
}

    .form-message.success {
        background: #f0faf0;
        color: #2e7d32;
        border: 1px solid #c8e6c9;
    }

    .form-message.error {
        background: #fdf0f0;
        color: #c62828;
        border: 1px solid #ffcdd2;
    }

.hidden {
    display: none !important;
}

.wishes-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.wall-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 2px solid var(--border-color);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.wish-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--gold);
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(20px);
    transition: box-shadow 0.3s ease, background 0.4s ease;
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

    .wish-card:hover {
        box-shadow: var(--shadow-lift);
    }

.wc-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.wc-emoji {
    font-size: 1.6rem;
    line-height: 1;
}

.wc-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    transition: color 0.4s ease;
}

.wc-date {
    font-size: 0.65rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.wc-msg {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-style: italic;
    transition: color 0.4s ease;
    margin: 0.75rem 0;
}

.wc-image {
    margin: 0.75rem 0;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-height: 200px;
    object-fit: cover;
}

.wish-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.wish-action-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

    .wish-action-btn.edit-btn:hover {
        border-color: var(--gold);
        color: var(--gold);
    }

    .wish-action-btn.delete-btn:hover {
        border-color: var(--rose);
        color: var(--rose);
    }

/* Edit mode styles */
.edit-mode-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

/* Cancel edit button */
.cancel-edit-btn {
    background: var(--text-secondary);
    color: white;
    margin-left: 0.5rem;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
    background: var(--dark);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-ring-left, .footer-ring-right {
    position: absolute;
    font-size: 20rem;
    color: rgba(201, 169, 110, 0.04);
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.footer-ring-left {
    left: -5rem;
}

.footer-ring-right {
    right: -5rem;
}

.footer-inner {
    position: relative;
    z-index: 1;
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--gold);
    text-shadow: 0 0 40px var(--gold-glow);
}

.footer-divider {
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0.5;
    margin: 0.75rem 0;
}

.footer-date {
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-heart {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════
   3D BACKGROUND CANVAS
══════════════════════════════════════════ */
#full-three-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 768px) {
    .location-layout {
        grid-template-columns: 1fr;
    }

    .map-wrapper {
        transform: none !important;
    }

    .countdown-wrap {
        gap: 0.75rem;
    }

    .cdown-num {
        font-size: 1.8rem;
    }

    .ornament-line {
        width: 60px;
    }

    .details-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wishes-wall {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .lb-prev {
        left: -0.5rem;
    }

    .lb-next {
        right: -0.5rem;
    }

    .lb-nav {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .music-player {
        bottom: 1.2rem;
        right: 1rem;
    }

    .music-panel {
        min-width: 220px;
    }
}

@media (max-width: 480px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .hero-names {
        font-size: 3rem;
    }

    .emoji-row {
        gap: 0.35rem;
    }

    .emoji-pill {
        font-size: 0.68rem;
        padding: 0.35rem 0.6rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}


/* ═══════════════════════════════════════════════════
   CUSTOM FILE INPUT
══════════════════════════════════════════════════ */
.custom-file-input {
    position: relative;
    display: inline-block;
    width: 100%;
}

    .custom-file-input input[type="file"] {
        position: absolute;
        opacity: 0;
        width: 0.1px;
        height: 0.1px;
        z-index: -1;
    }

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--gold);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

    .file-label:hover {
        border-color: var(--gold);
        background: var(--gold-glow);
    }

    .file-label i {
        font-style: normal;
        font-size: 1.1rem;
    }

/* ═══════════════════════════════════════════════════
   FANTASY DETAILS SECTION
══════════════════════════════════════════════════ */
.details-section {
    position: relative;
    overflow: hidden;
}

    .details-section::before {
        content: "✦";
        position: absolute;
        font-size: 15rem;
        color: var(--gold);
        opacity: 0.03;
        bottom: -5rem;
        right: -5rem;
        pointer-events: none;
        font-family: serif;
    }

    .details-section::after {
        content: "❧";
        position: absolute;
        font-size: 8rem;
        color: var(--gold);
        opacity: 0.04;
        top: -2rem;
        left: -2rem;
        pointer-events: none;
    }

.detail-card {
    position: relative;
    backdrop-filter: blur(2px);
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

    .detail-card:hover {
        transform: translateY(-12px) rotateX(5deg);
        box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 0 1px var(--gold);
    }

    .detail-card::before {
        content: "⚘";
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        font-size: 0.8rem;
        color: var(--gold);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .detail-card:hover::before {
        opacity: 0.6;
    }

.dc-icon-wrap {
    transition: all 0.4s ease;
}

.detail-card:hover .dc-icon-wrap {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    box-shadow: 0 0 20px var(--gold-glow);
}

/* ── Light mode section backgrounds ── */
[data-theme="light"] .details-section {
    background: linear-gradient(135deg, #fff9f5 0%, #fef7f0 100%);
}

[data-theme="light"] .gallery-section {
    background: #ffffff;
}

[data-theme="light"] .wishes-section {
    background: #faf6f0;
}

[data-theme="light"] .quote-section {
    background: linear-gradient(160deg, #f5ede4 0%, #f0e8df 100%);
}

[data-theme="light"] .location-section {
    background: linear-gradient(150deg, #f5efe9 0%, #ede5db 100%);
}

/* ── Hero light mode text overrides ── */
[data-theme="light"] .hero .hero-names {
    color: #2c1a2e;
    text-shadow: 0 0 20px rgba(201, 169, 110, 0.5);
}

[data-theme="light"] .hero .hero-eyebrow,
[data-theme="light"] .hero .hero-date-text,
[data-theme="light"] .hero .hero-year,
[data-theme="light"] .hero .cdown-num,
[data-theme="light"] .hero .cdown-lbl,
[data-theme="light"] .hero .cdown-dot,
[data-theme="light"] .hero .scroll-cue-text {
    color: #3a2540;
}

[data-theme="light"] .hero .hero-ornament .ornament-line {
    background: linear-gradient(to right, transparent, #9A7B4F, transparent);
}

[data-theme="light"] .hero .hero-amp {
    color: #9A7B4F;
}

/* ── Send Wish Button (ensuring visibility) ── */
.submit-btn {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    border: 1px solid var(--gold-light);
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
    transition: all 0.3s;
}

    .submit-btn:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(201, 169, 110, 0.5);
        border-color: var(--gold-light);
    }

/* ── 3D Background Opacity Control ── */
#full-three-bg {
    opacity: 0.65;
    transition: opacity 0.4s;
}

[data-theme="light"] #full-three-bg {
    opacity: 0.45;
}

/* ── Wish Card Image & Action Buttons ── */
.wc-image {
    max-width: 50px;
    max-height: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0.5rem 0;
    border: 1px solid var(--border-color);
}

.wish-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.wish-action-btn {
    background: none;
    border: none;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}

.wish-action-btn.edit-btn {
color: var(--gold);
border: 1px solid var(--gold);
}

.wish-action-btn.edit-btn:hover {
    background: var(--gold);
    color: var(--dark);
}

.wish-action-btn.delete-btn {
color: var(--rose);
border: 1px solid var(--rose);
}

.wish-action-btn.delete-btn:hover {
    background: var(--rose);
    color: white;
}