/* ═══════════════════════════════════════════
   ROOT VARIABLES & RESET
═══════════════════════════════════════════ */
:root {
  --bg:        #050b18;
  --bg2:       #070f20;
  --surface:   rgba(14, 26, 52, 0.7);
  --glass:     rgba(255,255,255,0.04);
  --border:    rgba(56,189,248,0.15);
  --text:      #e2eaf6;
  --muted:     #637898;
  --accent:    #38bdf8;
  --accent2:   #818cf8;
  --accent3:   #34d399;
  --gold:      #f59e0b;
  --rose:      #f43f5e;
  --glow:      rgba(56,189,248,0.35);
  --glow2:     rgba(129,140,248,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════════ */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; mix-blend-mode: screen;
}
#cursor-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  position: absolute; transform: translate(-50%,-50%);
  transition: width .2s, height .2s, opacity .2s;
  box-shadow: 0 0 12px var(--accent), 0 0 24px var(--accent);
}
#cursor-ring {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(56,189,248,0.5);
  position: absolute; transform: translate(-50%,-50%);
  transition: transform .12s cubic-bezier(.23,1,.32,1), width .3s, height .3s, opacity .3s;
}
body:hover #cursor-dot { opacity: 1; }

/* ═══════════════════════════════════════════
   CANVAS BACKGROUND — STARS & NEBULA
═══════════════════════════════════════════ */
#starfield {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}

/* ═══════════════════════════════════════════
   AURORA BACKGROUND
═══════════════════════════════════════════ */
.aurora-wrap {
  position: fixed; inset: 0; z-index: 1;
  overflow: hidden; pointer-events: none;
}
.aurora {
  position: absolute; border-radius: 50%;
  -webkit-filter: blur(80px);
  filter: blur(80px); opacity: 0.18;
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora-1 { width: 700px; height: 500px; top: -150px; right: -200px;
  background: radial-gradient(ellipse, #38bdf8, #818cf8); animation-delay: 0s; }
.aurora-2 { width: 500px; height: 400px; bottom: -100px; left: -100px;
  background: radial-gradient(ellipse, #34d399, #38bdf8); animation-delay: -6s; }
.aurora-3 { width: 400px; height: 300px; top: 40%; right: 10%;
  background: radial-gradient(ellipse, #818cf8, #f43f5e); animation-delay: -12s; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-20px, 40px) scale(0.95); }
}

/* ═══════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════ */
.page-wrap {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  width: 100%; overflow: hidden;
}

/* ═══════════════════════════════════════════
   NAV BAR
═══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; width: 100%; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(5,11,24,0.6);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
nav.scrolled { padding: 10px 48px; }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.nav-brand svg { width: 32px; height: 32px; }
.nav-brand-name { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.5px; }
.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  transition: color .2s; position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #050b18 !important; font-weight: 700 !important;
  padding: 8px 20px !important; border-radius: 8px;
  opacity: 1 !important;
}
.nav-cta::after { display: none !important; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative; width: 100%; max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 18px;
  font-size: 0.8rem; color: var(--accent); margin-bottom: 32px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: fadeUp .8s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent3);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}

.hero-eyebrow {
  font-family: 'Amiri', serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--muted); letter-spacing: 3px;
  margin-bottom: 16px; font-style: italic;
  animation: fadeUp .8s .1s ease both;
}

.hero-title {
  font-size: clamp(5rem, 16vw, 12rem);
  font-weight: 900; line-height: 0.9;
  letter-spacing: -4px; margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 40%, #818cf8 70%, #f59e0b 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp .8s .2s ease both;
  position: relative;
}

.hero-title-en {
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 300; color: var(--muted);
  letter-spacing: 12px; text-transform: uppercase;
  margin-bottom: 40px;
  animation: fadeUp .8s .35s ease both;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--muted); max-width: 500px;
  line-height: 1.7; margin-bottom: 56px;
  animation: fadeUp .8s .45s ease both;
}
.hero-tagline strong { color: var(--text); font-weight: 500; }

.hero-cta-group {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  animation: fadeUp .8s .55s ease both;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 12px;
  font-family: 'Tajawal', sans-serif; font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: none;
  transition: transform .2s, box-shadow .2s;
  border: none;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #050b18;
  box-shadow: 0 0 30px rgba(56,189,248,0.4);
}
.btn-primary:hover { box-shadow: 0 0 50px rgba(56,189,248,0.6); }

.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--accent); }

/* SCROLL INDICATOR */
.scroll-hint {
  position: absolute; bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.75rem;
  animation: fadeUp .8s .9s ease both;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}

/* HERO GLOW ORBS */
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.hero-orb-1 {
  width: 300px; height: 300px;
  top: 20%; right: -80px;
  background: radial-gradient(circle, rgba(56,189,248,0.12), transparent 70%);
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 200px; height: 200px;
  bottom: 30%; left: -60px;
  background: radial-gradient(circle, rgba(129,140,248,0.12), transparent 70%);
  animation-delay: -4s;
}
@keyframes orbFloat {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-40px) scale(1.1); }
}

/* ═══════════════════════════════════════════
   STATS TICKER
═══════════════════════════════════════════ */
.stats-bar {
  width: 100%; padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(14,26,52,0.5);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.stats-inner {
  display: flex; gap: 0; animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}
.stat-item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 48px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.stat-num { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--muted); }
.stat-icon { font-size: 1.3rem; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   SECTION BASE
═══════════════════════════════════════════ */
section { width: 100%; padding: 100px 24px; position: relative; }
.section-container { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 4px;
  color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before {
  content: ''; display: inline-block;
  width: 30px; height: 1px; background: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -1.5px; margin-bottom: 16px;
}

.section-desc {
  color: var(--muted); font-size: 1.05rem; max-width: 500px; line-height: 1.8;
  margin-bottom: 56px;
}

/* ═══════════════════════════════════════════
   PROJECTS (CARDS)
═══════════════════════════════════════════ */
#projects { background: transparent; }

.projects-header { margin-bottom: 60px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: transform .35s cubic-bezier(.23,1,.32,1), border-color .3s, box-shadow .3s;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 0;
  cursor: none;
}
.card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--accent)), transparent);
  opacity: 0; transition: opacity .3s;
}
.card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%),
    rgba(56,189,248,0.06), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.card:hover::before { opacity: 1; }
.card:hover::after  { opacity: 1; }

.card.active-card { border-color: rgba(56,189,248,0.3); }
.card.active-card:hover { border-color: var(--accent); }

.card.coming { opacity: 0.55; cursor: not-allowed; }
.card.coming:hover { transform: none; box-shadow: none; }

.card-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--card-accent, var(--accent));
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 100px; padding: 4px 12px; margin-bottom: 24px;
  width: fit-content;
}

.card-icon {
  font-size: 2.5rem; margin-bottom: 16px;
  transition: transform .3s;
}
.card:hover .card-icon { transform: scale(1.1) rotate(-5deg); }

.card h2 {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 12px;
  color: var(--text);
}
.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: 28px; }

.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--card-accent, var(--accent));
  transition: gap .2s;
}
.card:hover .card-link { gap: 12px; }
.card-link .arrow { font-size: 0.9rem; transition: transform .2s; }
.card:hover .card-link .arrow { transform: translateX(-4px); }

/* BIG FEATURED CARD */
.card.featured {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 48px;
  background: linear-gradient(135deg, rgba(14,26,52,0.9), rgba(20,35,70,0.8));
  border-color: rgba(56,189,248,0.25);
}
.card.featured .card-content { display: flex; flex-direction: column; }
.card.featured .card-visual {
  display: flex; align-items: center; justify-content: center;
  background: rgba(56,189,248,0.05); border-radius: 16px;
  border: 1px solid rgba(56,189,248,0.1);
  overflow: hidden; position: relative;
  min-height: 200px;
}

/* MINI PRAYER CLOCK inside card */
.prayer-clock {
  position: relative; width: 160px; height: 160px;
}
.clock-ring { animation: rotateClock 60s linear infinite; transform-origin: center; }
.clock-tick { animation: pulseTick 2s ease-in-out infinite; }
@keyframes rotateClock { to { transform: rotate(360deg); } }
@keyframes pulseTick { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ═══════════════════════════════════════════
   FEATURES SECTION
═══════════════════════════════════════════ */
#features {
  background: radial-gradient(ellipse at 50% 0%, rgba(56,189,248,0.06), transparent 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2px; border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
}
.feature-item {
  background: var(--glass); padding: 36px 28px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background .3s;
  border: 1px solid transparent;
}
.feature-item:hover { background: rgba(56,189,248,0.05); border-color: var(--border); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-item p  { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* ═══════════════════════════════════════════
   PHILOSOPHY / ABOUT SECTION
═══════════════════════════════════════════ */
#about {
  background: transparent;
}
.about-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-visual {
  display: flex; align-items: center; justify-content: center;
}

/* ARABIC CALLIGRAPHY SVG FRAME */
.calligraphy-frame {
  position: relative; width: 340px; height: 340px;
}
.calligraphy-frame .frame-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(56,189,248,0.2);
  animation: spinSlow 20s linear infinite;
}
.calligraphy-frame .frame-ring-2 {
  position: absolute; inset: 20px; border-radius: 50%;
  border: 1px solid rgba(129,140,248,0.15);
  animation: spinSlow 30s linear infinite reverse;
}
.calligraphy-inner {
  position: absolute; inset: 40px;
  background: radial-gradient(circle, rgba(14,26,52,0.95), rgba(7,15,32,0.9));
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  text-align: center; padding: 24px;
}
.calligraphy-ar {
  font-family: 'Amiri', serif; font-size: 1.6rem; color: var(--accent);
  line-height: 1.4;
}
.calligraphy-en {
  font-size: 0.7rem; letter-spacing: 3px; color: var(--muted);
  text-transform: uppercase;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.about-quote {
  font-family: 'Amiri', serif; font-size: 1.5rem;
  color: var(--text); line-height: 1.6; font-style: italic;
  border-right: 3px solid var(--accent);
  padding-right: 24px; margin: 24px 0; text-align: right;
}

.about-name {
  display: flex; align-items: center; gap: 12px; margin-top: 32px;
}
.about-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #050b18;
  flex-shrink: 0;
}
.about-name-text h4 { font-size: 1rem; font-weight: 700; }
.about-name-text p  { font-size: 0.82rem; color: var(--muted); }

/* ═══════════════════════════════════════════
   TECH STACK
═══════════════════════════════════════════ */
#stack {
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 100%, rgba(129,140,248,0.05), transparent 60%);
}
.stack-header { text-align: center; }
.stack-header .section-eyebrow { justify-content: center; }
.stack-header .section-eyebrow::before { display: none; }
.stack-header .section-desc { margin: 0 auto 56px; text-align: center; }

.stack-row {
  overflow: hidden; margin-bottom: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.stack-inner {
  display: flex; gap: 16px;
  animation: slideStack 25s linear infinite;
}
.stack-row:nth-child(2) .stack-inner { animation-direction: reverse; animation-duration: 20s; }
.stack-inner.paused { animation-play-state: paused; }

.stack-chip {
  flex-shrink: 0;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 100px; padding: 10px 22px;
  font-size: 0.88rem; color: var(--text); font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color .2s, background .2s;
  cursor: none;
}
.stack-chip:hover { border-color: var(--accent); background: rgba(56,189,248,0.06); }
.stack-chip-icon { font-size: 1rem; }

@keyframes slideStack {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   ROADMAP / TIMELINE
═══════════════════════════════════════════ */
#roadmap { border-top: 1px solid var(--border); }
.roadmap-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.roadmap-item {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 0; position: relative;
}
.roadmap-item::before {
  content: ''; position: absolute;
  top: 0; bottom: 0; right: 139px;
  width: 1px; background: var(--border);
}
.roadmap-date {
  padding: 28px 28px 28px 0; text-align: left;
  font-size: 0.8rem; font-weight: 700; color: var(--muted);
  letter-spacing: 1px;
}
.roadmap-content {
  padding: 28px 0 28px 28px;
  border-right: none;
  position: relative;
}
.roadmap-content::before {
  content: ''; position: absolute;
  top: 38px; right: -5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border); border: 2px solid var(--bg);
  z-index: 1;
}
.roadmap-item.done .roadmap-content::before {
  background: var(--accent3);
  box-shadow: 0 0 12px var(--accent3);
}
.roadmap-item.active .roadmap-content::before {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-dot 2s infinite;
}
.roadmap-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.roadmap-content p  { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.roadmap-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; padding: 3px 10px; border-radius: 100px;
  margin-bottom: 8px; font-weight: 600;
}
.badge-done    { background: rgba(52,211,153,0.1); color: var(--accent3); border: 1px solid rgba(52,211,153,0.2); }
.badge-active  { background: rgba(56,189,248,0.1); color: var(--accent);  border: 1px solid rgba(56,189,248,0.2); }
.badge-planned { background: rgba(129,140,248,0.1); color: var(--accent2); border: 1px solid rgba(129,140,248,0.2); }

/* ═══════════════════════════════════════════
   CONTACT / CTA SECTION
═══════════════════════════════════════════ */
#contact {
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 50%, rgba(56,189,248,0.07), transparent 60%);
  text-align: center;
}
.contact-inner { max-width: 600px; margin: 0 auto; }
.contact-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900;
  line-height: 1; letter-spacing: -2px; margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 60%, var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.contact-sub { color: var(--muted); font-size: 1rem; margin-bottom: 48px; line-height: 1.7; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* SOCIAL LINKS */
.social-row {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 48px;
}
.social-btn {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; text-decoration: none; color: var(--muted);
  transition: color .2s, border-color .2s, transform .2s;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px); cursor: none;
}
.social-btn:hover { color: var(--text); border-color: var(--accent); transform: translateY(-3px); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  width: 100%; max-width: 1100px; margin: 0 auto;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; }
.footer-brand svg { width: 24px; height: 24px; }
footer p { font-size: 0.78rem; color: var(--muted); }

/* ═══════════════════════════════════════════
   ANIMATIONS / REVEAL
═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* STAGGER */
.reveal-stagger { opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════
   DECORATIVE GEOMETRIC
═══════════════════════════════════════════ */
.geo-corner {
  position: absolute; pointer-events: none; opacity: 0.12;
}
.geo-top-right { top: 120px; right: 0; }
.geo-bottom-left { bottom: 80px; left: 0; }

/* ═══════════════════════════════════════════
   NUMBER COUNTER
═══════════════════════════════════════════ */
.counter { font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════
   PRAYER TIME WIDGET
═══════════════════════════════════════════ */
.prayer-widget {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 24px; text-align: right;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px); margin-top: 48px;
  max-width: 380px;
}
.prayer-widget-title {
  font-size: 0.72rem; letter-spacing: 3px; color: var(--accent);
  text-transform: uppercase; margin-bottom: 16px;
}
.prayer-times {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.prayer-time-item { text-align: center; }
.prayer-time-name { font-size: 0.7rem; color: var(--muted); margin-bottom: 4px; }
.prayer-time-val  { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.prayer-time-item.active .prayer-time-name { color: var(--accent); }
.prayer-time-item.active .prayer-time-val  { color: var(--accent); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .calligraphy-frame { width: 240px; height: 240px; }
  .card.featured { grid-template-columns: 1fr; }
  .card.featured .card-visual { min-height: 160px; }
  .roadmap-item { grid-template-columns: 80px 1fr; }
  .roadmap-item::before { right: 79px; }
  footer { flex-direction: column; align-items: center; text-align: center; }
}

/* ═══════════════════════════════════════════
   GRID BACKGROUND LINES
═══════════════════════════════════════════ */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(56,189,248,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
}

/* ═══════════════════════════════════════════
   NOISE TEXTURE OVERLAY
═══════════════════════════════════════════ */
.noise {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════
   GLITCH TEXT EFFECT (hero)
═══════════════════════════════════════════ */
.glitch-wrap { position: relative; display: inline-block; }
.glitch-wrap::before,
.glitch-wrap::after {
  content: attr(data-text); position: absolute; inset: 0;
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 40%, #818cf8 70%, #f59e0b 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.glitch-wrap::before {
  animation: glitch1 4s infinite; -webkit-clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%); clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%);
  transform: translate(-2px, 0); opacity: 0;
}
.glitch-wrap::after {
  animation: glitch2 4s infinite; -webkit-clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  transform: translate(2px, 0); opacity: 0;
}
@keyframes glitch1 {
  0%,90%,100% { opacity: 0; }
  91% { opacity: 0.6; transform: translate(-3px, 1px); }
  93% { opacity: 0; }
  95% { opacity: 0.4; transform: translate(2px, -1px); }
  97% { opacity: 0; }
}
@keyframes glitch2 {
  0%,92%,100% { opacity: 0; }
  93% { opacity: 0.5; transform: translate(3px, -1px); }
  95% { opacity: 0; }
  97% { opacity: 0.3; transform: translate(-2px, 1px); }
  99% { opacity: 0; }
}

/* ═══════════════════════════════════════════
   UTILITIES & EXTENSIONS (Replaces Inline Styles)
═══════════════════════════════════════════ */
.mb-0 { margin-bottom: 0 !important; }
.section-header-padded { margin-bottom: 60px; }
.tags-container { margin-bottom: 16px; }
.tags-flex { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-flex.mb-16 { margin-bottom: 16px; }

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

.card-tahajjud { --card-accent: #38bdf8; }
.card-trading { --card-accent: #34d399; }
.card-labs { --card-accent: #818cf8; }

.feature-tag { font-size: 0.75rem; border-radius: 6px; padding: 4px 10px; color: var(--muted); }
.tag-blue { background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.2); }
.tag-green { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2); }
.tag-purple { background: rgba(129,140,248,0.08); border: 1px solid rgba(129,140,248,0.2); }

.card-tag.tag-trading { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.2); color: var(--accent3); }
.card-tag.tag-labs { background: rgba(129,140,248,0.08); border-color: rgba(129,140,248,0.2); color: var(--accent2); }

.card-link.link-trading { color: var(--accent3); }
.card-link.link-labs { color: var(--accent2); }

.about-bio { color: var(--muted); font-size: 0.9rem; line-height: 1.8; }
.calligraphy-divider { width: 40px; height: 1px; background: var(--border); margin: 12px auto; }
.calligraphy-sub { font-size: 1rem; color: var(--muted); }
.contact-eyebrow { font-size: 0.78rem; letter-spacing: 4px; color: var(--accent); text-transform: uppercase; margin-bottom: 16px; }
.footer-made-with { color: var(--border); }