/* =========================================================
   Al-Ixsaan Hospital – custom styles (on top of Tailwind)
   ========================================================= */
:root {
  --brand: #2dd4bf;
  --sky: #38bdf8;
  --violet: #a78bfa;
  --ink: #050b18;
}

html { scrollbar-color: #14b8a6 #030712; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #030712; }
::-webkit-scrollbar-thumb { background: linear-gradient(#2dd4bf, #38bdf8); border-radius: 10px; }
::selection { background: rgba(45, 212, 191, .35); color: #fff; }

body { background:
  radial-gradient(1000px 500px at 75% 0%, rgba(13, 148, 136, 0.12), transparent 55%),
  radial-gradient(800px 450px at 15% 40%, rgba(14, 116, 144, 0.10), transparent 55%),
  #07101e; }
body.loading { overflow: hidden; }

/* ---------- Preloader ---------- */
.ecg-line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: ecg 1.6s ease-in-out infinite; filter: drop-shadow(0 0 6px #2dd4bf); }
@keyframes ecg { 0% { stroke-dashoffset: 420; } 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -420; } }
.loader-logo { animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(.98); } 45% { transform: scale(1.08); } }
#preloader { transition: opacity .8s ease, visibility .8s ease; }
#preloader.done { opacity: 0; visibility: hidden; }

/* ---------- Cursor glow ---------- */
#cursor-glow { background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 60%); transition: opacity .3s; }

/* ---------- Utilities ---------- */
.glass { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.text-gradient { background: linear-gradient(105deg, #5eead4 0%, #38bdf8 60%, #93c5fd 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shine-text { color: #fef08a; text-shadow: 0 0 20px rgba(254, 240, 138, 0.4); }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: #5eead4; }
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: #2dd4bf; }
.section-title { margin-top: .9rem; font-family: Sora, sans-serif; font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; color: #fff; letter-spacing: -.02em; }

.grid-bg { background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }

/* ---------- Buttons ---------- */
.btn-glow { position: relative; display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.5rem; border-radius: 1rem; font-weight: 700; font-size: .9rem; color: #022c22; background: linear-gradient(120deg, #5eead4, #2dd4bf); box-shadow: 0 8px 24px -6px rgba(45,212,191,.5); transition: all .3s ease; }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -6px rgba(45,212,191,.7); }
.btn-ghost { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.5rem; border-radius: 1rem; font-weight: 600; font-size: .9rem; color: #e2e8f0; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); backdrop-filter: blur(10px); transition: all .3s; }
.btn-ghost:hover { border-color: rgba(45,212,191,.6); color: #fff; background: rgba(45,212,191,.08); }

/* ---------- Navbar ---------- */
#navbar.scrolled { background: rgba(7, 16, 30, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.06); box-shadow: 0 10px 30px -15px rgba(0,0,0,.6); }
.nav-link { position: relative; padding: .55rem .9rem; border-radius: .75rem; color: #94a3b8; transition: color .3s, background .3s; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.05); }
.nav-link.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; transform: translateX(-50%); border-radius: 2px; background: #2dd4bf; }
#mobile-menu.open { transform: translateX(0); }
.m-link { display: flex; padding: .8rem 0; color: #cbd5e1; border-bottom: 1px solid rgba(255,255,255,.05); }

/* ---------- Hero ---------- */
.aurora { position: absolute; border-radius: 9999px; filter: blur(120px); opacity: .28; pointer-events: none; }
.aurora-1 { width: 500px; height: 500px; top: -100px; right: 10%; background: radial-gradient(circle, #0d9488, transparent 70%); }
.aurora-2 { width: 450px; height: 450px; bottom: -80px; right: 30%; background: radial-gradient(circle, #0284c7, transparent 70%); }
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.15); } }

.avatar-dot { width: 42px; height: 42px; border-radius: 9999px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; border: 3px solid #050b18; }
.float-card { position: absolute; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem; border-radius: 1.25rem; background: rgba(10,20,40,.55); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(45,212,191,.05) inset; animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.float-slow { animation: floatY 7s ease-in-out infinite; }
.icon-chip { width: 44px; height: 44px; border-radius: .9rem; display: grid; place-items: center; flex-shrink: 0; }
.scroll-dot { animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { width: max-content; animation: marquee 40s linear infinite; }
.marquee span.item { color: transparent; -webkit-text-stroke: 1px rgba(148,163,184,.45); transition: all .3s; }
.marquee span.item:hover { color: #5eead4; -webkit-text-stroke: 1px transparent; text-shadow: 0 0 20px rgba(45,212,191,.6); }
.marquee span.sep { color: #2dd4bf; text-shadow: 0 0 12px #2dd4bf; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stat-card { position: relative; padding: 2rem; border-radius: 1.5rem; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01)); border: 1px solid rgba(255,255,255,.07); overflow: hidden; transition: transform .4s, border-color .4s; }
.stat-card::before { content: ""; position: absolute; width: 160px; height: 160px; right: -60px; top: -60px; border-radius: 9999px; background: radial-gradient(circle, rgba(45,212,191,.25), transparent 70%); transition: transform .6s; }
.stat-card:hover { transform: translateY(-6px); border-color: rgba(45,212,191,.35); }
.stat-card:hover::before { transform: scale(1.6); }
.stat-num { margin-top: 1.1rem; font-family: Sora, sans-serif; font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; }
.stat-label { color: #94a3b8; font-size: .9rem; margin-top: .2rem; }

/* ---------- About ---------- */
.feature-pill { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border-radius: 1rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); color: #e2e8f0; font-weight: 500; transition: all .3s; }
.feature-pill:hover { border-color: rgba(45,212,191,.4); background: rgba(45,212,191,.06); transform: translateX(4px); }

.glow-border { position: relative; isolation: isolate; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.glow-border::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: linear-gradient(140deg, rgba(45,212,191,.7), rgba(56,189,248,.15) 40%, rgba(167,139,250,.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: 2; pointer-events: none; }

/* ---------- Specialty cards ---------- */
.spec-card { position: relative; padding: 2rem; border-radius: 1.75rem; background: linear-gradient(165deg, rgba(15,29,56,.9), rgba(5,11,24,.9)); border: 1px solid rgba(255,255,255,.07); overflow: hidden; transform-style: preserve-3d; transition: border-color .4s, box-shadow .4s; }
.spec-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(45,212,191,.16), transparent 40%); opacity: 0; transition: opacity .4s; }
.spec-card:hover { border-color: rgba(45,212,191,.35); box-shadow: 0 25px 60px -25px rgba(45,212,191,.45); }
.spec-card:hover::before { opacity: 1; }
.spec-icon { position: relative; width: 54px; height: 54px; border-radius: 1rem; display: grid; place-items: center; transition: transform .3s ease; box-shadow: 0 4px 14px -3px rgba(0,0,0,.25); }
.spec-card:hover .spec-icon { transform: scale(1.06); }
.spec-card h3 { margin-top: 1.3rem; font-family: Sora, sans-serif; font-weight: 700; font-size: 1.25rem; color: #fff; }
.spec-card .so { font-size: .8rem; color: #5eead4; margin-top: .2rem; }
.spec-card p.desc { margin-top: .8rem; color: #94a3b8; font-size: .95rem; line-height: 1.65; }
.spec-card .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.spec-card .tags span { font-size: .72rem; padding: .3rem .65rem; border-radius: 9999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #cbd5e1; }

/* ---------- Department tabs ---------- */
.dept-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1.1rem; border-radius: .85rem; font-size: .85rem; font-weight: 600; color: #94a3b8; transition: all .35s; }
.dept-tab:hover { color: #fff; }
.dept-tab.active { color: #031b1a; background: linear-gradient(120deg, #5eead4, #38bdf8); box-shadow: 0 8px 25px -8px rgba(45,212,191,.8); }
.dept-li { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-radius: .9rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); color: #e2e8f0; font-size: .92rem; }
.dept-li svg { color: #2dd4bf; flex-shrink: 0; }

/* ---------- Banner ---------- */
.banner-glow { background: linear-gradient(120deg, #0f766e 0%, #0e7490 45%, #6d28d9 100%); box-shadow: 0 40px 100px -40px rgba(45,212,191,.6); }
.banner-glow::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }

/* ---------- Doctors ---------- */
.doc-filter { padding: .6rem 1.15rem; border-radius: 9999px; font-size: .85rem; font-weight: 600; color: #94a3b8; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); transition: all .3s; }
.doc-filter:hover { color: #fff; border-color: rgba(45,212,191,.4); }
.doc-filter.active { color: #031b1a; background: #2dd4bf; border-color: #2dd4bf; box-shadow: 0 0 25px -5px #2dd4bf; }

.doc-card { position: relative; border-radius: 1.75rem; padding: 2rem; background: linear-gradient(170deg, rgba(15,29,56,.95), rgba(5,11,24,.95)); border: 1px solid rgba(255,255,255,.07); overflow: hidden; transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .4s, box-shadow .4s; }
.doc-card:hover { transform: translateY(-8px); border-color: rgba(45,212,191,.35); box-shadow: 0 30px 60px -30px rgba(45,212,191,.5); }
.doc-card .cover { position: absolute; inset: 0 0 auto 0; height: 110px; opacity: .55; }
.doc-avatar { position: relative; width: 104px; height: 104px; border-radius: 9999px; display: grid; place-items: center; font-family: Sora, sans-serif; font-size: 2rem; font-weight: 800; color: #fff; margin-top: 1rem; overflow: hidden; border: 3px solid rgba(45,212,191,0.5); box-shadow: 0 8px 24px -6px rgba(0,0,0,0.4); }
.doc-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; border-radius: 9999px; }
.doc-avatar .inner { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: inherit; display: grid; place-items: center; }
.doc-card h3 { margin-top: 1.4rem; font-family: Sora, sans-serif; font-size: 1.25rem; font-weight: 700; color: #fff; }
.doc-card .role { color: #5eead4; font-size: .88rem; font-weight: 600; margin-top: .2rem; }
.doc-card .bio { color: #94a3b8; font-size: .92rem; line-height: 1.6; margin-top: .9rem; }
.doc-card .chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.doc-card .chips span { font-size: .72rem; padding: .3rem .65rem; border-radius: 9999px; background: rgba(45,212,191,.08); color: #99f6e4; border: 1px solid rgba(45,212,191,.18); }
.doc-card .actions { margin-top: 1.5rem; display: flex; gap: .6rem; }
.doc-card .actions a { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: .4rem; padding: .7rem; border-radius: .85rem; font-size: .85rem; font-weight: 600; transition: all .3s; }
.doc-card .actions a.primary { background: rgba(45,212,191,.12); color: #5eead4; border: 1px solid rgba(45,212,191,.25); }
.doc-card .actions a.primary:hover { background: #2dd4bf; color: #031b1a; }
.doc-card .actions a.secondary { background: rgba(255,255,255,.04); color: #cbd5e1; border: 1px solid rgba(255,255,255,.08); }
.doc-card .actions a.secondary:hover { border-color: rgba(255,255,255,.3); color: #fff; }
.exp-badge { position: absolute; top: 1.2rem; right: 1.2rem; padding: .35rem .75rem; border-radius: 9999px; font-size: .7rem; font-weight: 700; background: rgba(251,191,36,.12); color: #fcd34d; border: 1px solid rgba(251,191,36,.3); }

/* ---------- Steps ---------- */
.step { position: relative; display: flex; gap: 1.25rem; align-items: flex-start; padding: 1rem 1.25rem 1rem 0; border-radius: 1.25rem; transition: background .3s; }
.step:hover { background: rgba(255,255,255,.03); }
.step-num { position: relative; z-index: 1; flex-shrink: 0; width: 48px; height: 48px; border-radius: 1rem; display: grid; place-items: center; font-family: Sora, sans-serif; font-weight: 800; color: #031b1a; background: linear-gradient(135deg, #5eead4, #38bdf8); box-shadow: 0 0 25px -5px #2dd4bf; }
.step h4 { font-family: Sora, sans-serif; font-weight: 700; color: #fff; font-size: 1.1rem; }
.step p { color: #94a3b8; margin-top: .25rem; font-size: .95rem; }
.ecg-mini { stroke-dasharray: 200; stroke-dashoffset: 200; animation: ecgMini 1.4s linear infinite; filter: drop-shadow(0 0 4px #34d399); }
@keyframes ecgMini { to { stroke-dashoffset: -200; } }

/* ---------- Gallery ---------- */
.gallery-item { position: relative; border-radius: 1.5rem; overflow: hidden; cursor: zoom-in; border: 1px solid rgba(255,255,255,.07); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1), filter .6s; filter: saturate(.85) brightness(.85); }
.gallery-item:hover img { transform: scale(1.08); filter: saturate(1.1) brightness(1); }
.gallery-item figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .45rem .9rem; border-radius: 9999px; font-size: .8rem; font-weight: 600; color: #fff; background: rgba(5,11,24,.6); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.1); transform: translateY(10px); opacity: 0; transition: all .4s; }
.gallery-item:hover figcaption { transform: translateY(0); opacity: 1; }
#lightbox.show { display: flex; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: .5rem; }
.field span { font-size: .8rem; font-weight: 600; color: #94a3b8; letter-spacing: .03em; }
.field input, .field select, .field textarea { width: 100%; padding: .95rem 1.1rem; border-radius: 1rem; background: rgba(3,7,18,.6); border: 1px solid rgba(255,255,255,.09); color: #f1f5f9; outline: none; transition: all .3s; font-size: .95rem; }
.field select option { background: #0a1428; }
.field input::placeholder, .field textarea::placeholder { color: #475569; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #2dd4bf; box-shadow: 0 0 0 4px rgba(45,212,191,.15), 0 0 30px -10px #2dd4bf; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); }
.contact-row { display: flex; align-items: center; gap: 1rem; color: #fff; font-weight: 600; }
.contact-row > svg { width: 48px; height: 48px; padding: 13px; border-radius: 1rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #5eead4; flex-shrink: 0; }
.contact-row small { display: block; font-size: .72rem; font-weight: 500; color: #94a3b8; }

/* ---------- Contact ---------- */
.info-card { display: flex; gap: 1rem; padding: 1.4rem; border-radius: 1.4rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); transition: all .3s; }
.info-card:hover { border-color: rgba(45,212,191,.35); transform: translateY(-3px); }
.info-card > svg { width: 46px; height: 46px; padding: 12px; border-radius: .9rem; background: rgba(45,212,191,.1); color: #5eead4; flex-shrink: 0; }
.info-card h4 { font-family: Sora, sans-serif; font-weight: 700; color: #fff; }
.info-card p { color: #94a3b8; font-size: .92rem; margin-top: .25rem; line-height: 1.6; }
.map-dark { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); border: 0; }

/* ---------- Footer ---------- */
.footer-h { font-family: Sora, sans-serif; color: #fff; font-weight: 700; margin-bottom: 1.2rem; }
.footer-list { display: flex; flex-direction: column; gap: .7rem; color: #94a3b8; font-size: .92rem; }
.footer-list a { transition: color .3s, padding .3s; }
.footer-list a:hover { color: #5eead4; padding-left: 4px; }
.social { width: 40px; height: 40px; border-radius: .8rem; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #cbd5e1; transition: all .3s; }
.social:hover { background: #2dd4bf; color: #031b1a; box-shadow: 0 0 20px #2dd4bf; transform: translateY(-3px); }

/* ---------- FABs ---------- */
.fab-wa { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60; width: 58px; height: 58px; border-radius: 9999px; display: grid; place-items: center; color: #fff; background: #22c55e; box-shadow: 0 10px 30px -5px rgba(34,197,94,.7); transition: transform .3s; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #22c55e; animation: ripple 2s ease-out infinite; z-index: -1; }
.fab-wa:hover { transform: scale(1.1) rotate(-8deg); }
@keyframes ripple { from { transform: scale(1); opacity: .6; } to { transform: scale(1.8); opacity: 0; } }
.fab-top { position: fixed; right: 1.4rem; bottom: 5.6rem; z-index: 60; width: 46px; height: 46px; border-radius: 9999px; display: grid; place-items: center; color: #5eead4; background: rgba(10,20,40,.8); border: 1px solid rgba(45,212,191,.3); backdrop-filter: blur(10px); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .4s; }
.fab-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab-top:hover { background: #2dd4bf; color: #031b1a; }

/* ---------- Reveal fallbacks (GSAP animates these) ---------- */
.no-gsap .reveal, .no-gsap .reveal-left, .no-gsap .reveal-right { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee { animation: none; }
}
