/* ==================================================
   Amir Qawali Night Event — Premium Royal Gold Theme
   Design tokens:
   --royal-black   #0A0810  (base background, near-black with a violet undertone)
   --royal-deep    #150F24  (panel background)
   --royal-purple  #2A1B45  (secondary accent, mehfil-night depth)
   --gold-bright   #F0C75E  (primary gold)
   --gold-deep     #B8860B  (gold shadow/gradient end)
   --ivory         #F5EFE0  (body text on dark)
   --muted         #A99FC0  (secondary text)
   Typography:
   Display: 'Cormorant Garamond' (elegant serif, evokes Urdu ghazal manuscripts)
   Body:    'Poppins' (clean, modern, highly legible)
   Signature element: a slow-drifting "sound wave of light" behind the hero —
   concentric golden arcs that pulse like a harmonium's breath, plus floating
   music notes that rise like smoke from the stage.
   ================================================== */

:root {
    --royal-black: #0A0810;
    --royal-deep: #150F24;
    --royal-panel: #1C1430;
    --royal-purple: #2A1B45;
    --gold-bright: #F0C75E;
    --gold-deep: #B8860B;
    --gold-glow: rgba(240, 199, 94, 0.35);
    --ivory: #F5EFE0;
    --muted: #A99FC0;
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: var(--royal-black);
    color: var(--ivory);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Prevent any media/table from ever forcing horizontal overflow (mobile zoom-out symptom) */
img, video, iframe, table { max-width: 100%; }

h1, h2, h3, h4, .display-font {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.5px;
}

a { text-decoration: none; }

.text-gold { color: var(--gold-bright) !important; }

.gold-gradient-text {
    background: linear-gradient(120deg, var(--gold-deep), var(--gold-bright) 45%, #FFE9A8 60%, var(--gold-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-bright);
    font-weight: 500;
}

/* ---------- Preloader ---------- */
#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--royal-black);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-ring {
    width: 64px; height: 64px;
    border: 2px solid rgba(240,199,94,0.15);
    border-top-color: var(--gold-bright);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navbar ---------- */
.navbar-custom {
    background: rgba(10, 8, 16, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(240, 199, 94, 0.12);
    transition: background 0.3s ease, padding 0.3s ease;
    padding: 18px 0;
}
.navbar-custom.scrolled {
    background: rgba(10, 8, 16, 0.92);
    padding: 10px 0;
}
.navbar-custom .navbar-brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold-bright);
}
.navbar-custom .nav-link {
    color: var(--ivory);
    font-size: 0.92rem;
    letter-spacing: 1px;
    margin: 0 10px;
    position: relative;
}
.navbar-custom .nav-link::after {
    content: '';
    position: absolute; left: 0; bottom: -4px;
    width: 0; height: 1px;
    background: var(--gold-bright);
    transition: width 0.3s ease;
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after { width: 100%; }

.btn-gold {
    background: linear-gradient(120deg, var(--gold-deep), var(--gold-bright));
    color: var(--royal-black);
    font-weight: 600;
    border: none;
    padding: 11px 28px;
    border-radius: 2px;
    letter-spacing: 1px;
    box-shadow: 0 8px 24px -8px var(--gold-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -6px var(--gold-glow);
    color: var(--royal-black);
}
.btn-outline-gold {
    border: 1px solid var(--gold-bright);
    color: var(--gold-bright);
    background: transparent;
    padding: 10px 26px;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.25s ease;
}
.btn-outline-gold:hover { background: var(--gold-bright); color: var(--royal-black); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    background: radial-gradient(ellipse at 50% 30%, var(--royal-purple) 0%, var(--royal-black) 65%);
    overflow: hidden;
}
.hero-bg-image {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.35;
    mix-blend-mode: luminosity;
}
.hero-bg-image::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,8,16,0.4) 0%, rgba(10,8,16,0.85) 85%, var(--royal-black) 100%);
}

/* Signature element: concentric golden sound-wave arcs pulsing behind headline */
.sound-arcs {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 900px; height: 900px;
    pointer-events: none;
    z-index: 1;
}
.sound-arcs span {
    position: absolute; inset: 0;
    border: 1px solid var(--gold-glow);
    border-radius: 50%;
    animation: arcPulse 4.5s ease-out infinite;
    opacity: 0;
}
.sound-arcs span:nth-child(2) { animation-delay: 1.1s; }
.sound-arcs span:nth-child(3) { animation-delay: 2.2s; }
.sound-arcs span:nth-child(4) { animation-delay: 3.3s; }
@keyframes arcPulse {
    0%   { transform: scale(0.25); opacity: 0; }
    15%  { opacity: 0.55; }
    100% { transform: scale(1); opacity: 0; }
}

/* Floating music notes rising like smoke */
.music-notes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.music-notes i {
    position: absolute;
    bottom: -40px;
    color: var(--gold-glow);
    font-size: 1.4rem;
    animation: noteRise linear infinite;
}
@keyframes noteRise {
    0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.4; }
    100% { transform: translateY(-110vh) translateX(40px) rotate(25deg); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; }
.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 20px;
}
.hero-typed {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    color: var(--muted);
    min-height: 32px;
}
.hero-typed .cursor { color: var(--gold-bright); }

.scroll-cue {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    z-index: 2; color: var(--gold-bright); opacity: 0.7;
    animation: bounce 2s ease-in-out infinite;
    font-size: 1.4rem;
}
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---------- Glass cards ---------- */
.glass-card {
    background: rgba(28, 20, 48, 0.55);
    border: 1px solid rgba(240, 199, 94, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 6px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(240, 199, 94, 0.5);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
}

/* ---------- Section spacing ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--royal-deep); }
.section-title { margin-bottom: 16px; }
.section-sub { color: var(--muted); max-width: 620px; }

/* ---------- Stats counters ---------- */
.stat-number { font-family: var(--font-display); font-size: 3rem; color: var(--gold-bright); font-weight: 700; overflow-wrap: break-word; word-break: break-word; }
.stat-label { color: var(--muted); letter-spacing: 1px; font-size: 0.85rem; text-transform: uppercase; }

/* ---------- Gallery ---------- */
.gallery-item {
    position: relative; overflow: hidden; border-radius: 6px;
    aspect-ratio: 4/5;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,8,16,0.9));
    display: flex; align-items: flex-end; padding: 18px;
    opacity: 0; transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---------- Testimonials ---------- */
.testimonial-card { padding: 34px; }
.testimonial-card .fa-star { color: var(--gold-bright); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.footer {
    background: var(--royal-black);
    border-top: 1px solid rgba(240,199,94,0.1);
    padding: 70px 0 30px;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--gold-bright); }
.social-icon {
    width: 38px; height: 38px; border: 1px solid rgba(240,199,94,0.3);
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: var(--gold-bright); margin-right: 8px; transition: all 0.25s ease;
}
.social-icon:hover { background: var(--gold-bright); color: var(--royal-black); }

/* ---------- Floating action buttons ---------- */
.floating-btns { position: fixed; bottom: 26px; right: 26px; z-index: 1000; display: flex; flex-direction: column; gap: 12px; }
.fab {
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.4);
    transition: transform 0.25s ease;
}
.fab:hover { transform: scale(1.1); }
.fab-whatsapp { background: #25D366; }
.fab-call { background: linear-gradient(120deg, var(--gold-deep), var(--gold-bright)); color: var(--royal-black); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .sound-arcs { width: 500px; height: 500px; }

    /* Force 16px on all inputs: iOS Safari auto-zooms into any input with
       a computed font-size below 16px, then snaps back out on blur - this
       is what causes the page to keep "zooming in and out" on mobile. */
    input, select, textarea,
    .form-control, .form-select {
        font-size: 16px !important;
    }
}

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

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .sound-arcs span, .music-notes i, .scroll-cue { animation: none; }
}

/* ---------- Forms (dark theme) ---------- */
.form-control, .form-select {
    background: rgba(10, 8, 16, 0.55);
    border: 1px solid rgba(240, 199, 94, 0.25);
    color: var(--ivory);
    padding: 11px 14px;
    border-radius: 4px;
}
.form-control:focus, .form-select:focus {
    background: rgba(10, 8, 16, 0.7);
    border-color: var(--gold-bright);
    color: var(--ivory);
    box-shadow: 0 0 0 3px rgba(240, 199, 94, 0.15);
}
.form-control::placeholder { color: var(--muted); opacity: 0.7; }
.form-check-input { background-color: rgba(10,8,16,.6); border-color: rgba(240,199,94,.4); }
.form-check-input:checked { background-color: var(--gold-bright); border-color: var(--gold-bright); }
.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff9fa8;
    border-radius: 4px;
}
.alert-success {
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #7CE8A4;
    border-radius: 4px;
}
.slot-taken { color: #ff9fa8 !important; }
.slot-available { color: #7CE8A4 !important; }

/* ---------- User dashboard layout ---------- */
.dash-sidebar {
    background: var(--royal-deep);
    border-right: 1px solid rgba(240,199,94,0.1);
    min-height: calc(100vh - 76px);
    padding: 30px 0;
}
.dash-sidebar .nav-link {
    color: var(--muted);
    padding: 12px 26px;
    border-left: 3px solid transparent;
    font-size: 0.92rem;
}
.dash-sidebar .nav-link.active, .dash-sidebar .nav-link:hover {
    color: var(--gold-bright);
    background: rgba(240,199,94,0.06);
    border-left-color: var(--gold-bright);
}
.dash-content { padding: 40px; }
@media (max-width: 768px) {
    .dash-sidebar {
        width: 100% !important;
        min-height: auto;
        padding: 10px 0;
        border-right: none;
        border-bottom: 1px solid rgba(240,199,94,0.1);
    }
    .dash-sidebar .nav { flex-direction: row !important; overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; }
    .dash-sidebar .nav-link { border-left: none; border-bottom: 3px solid transparent; padding: 10px 16px; }
    .dash-sidebar .nav-link.active, .dash-sidebar .nav-link:hover { border-left-color: transparent; border-bottom-color: var(--gold-bright); }
    .dash-content { padding: 20px 16px; }
    .stat-number { font-size: 1.6rem !important; }
}
.status-badge { padding: 5px 14px; border-radius: 20px; font-size: 0.78rem; letter-spacing: 0.5px; }
.status-pending { background: rgba(240,199,94,0.15); color: var(--gold-bright); }
.status-approved { background: rgba(37,211,102,0.15); color: #7CE8A4; }
.status-rejected { background: rgba(220,53,69,0.15); color: #ff9fa8; }
.status-completed { background: rgba(169,159,192,0.15); color: var(--muted); }
.table-dark-custom { color: var(--ivory); }
.table-dark-custom th { color: var(--gold-bright); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.5px; text-transform: uppercase; border-color: rgba(240,199,94,0.1); }
.table-dark-custom td { border-color: rgba(240,199,94,0.08); vertical-align: middle; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold-bright); outline-offset: 3px;
}
