/* ============================================================
   MEPCO Smart HVAC Systems — main stylesheet
   Author : MEPCO Web Team
   Version: 2.0 (Bilingual AR/EN, Editable, Deploy-ready)
   ============================================================ */

:root {
  --bg-deep:        #06121f;
  --bg-night:       #0a1a2c;
  --bg-card:        #0f2238;
  --bg-elev:        #15304d;
  --line:           rgba(255,255,255,0.08);
  --line-strong:    rgba(255,255,255,0.16);
  --text-hi:        #f3f8ff;
  --text-md:        #b9c8db;
  --text-lo:        #7e93ac;
  --brand:          #00b4ff;
  --brand-2:        #3edcff;
  --brand-3:        #0067ff;
  --accent:         #7afbe1;
  --success:        #20d39a;
  --gold:           #ffc857;
  --danger:         #ff5b5b;
  --shadow-1:       0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(0,0,0,.6);
  --shadow-glow:    0 0 0 1px rgba(0,180,255,.25), 0 20px 60px -20px rgba(0,180,255,.45);
  --radius-xl:      22px;
  --radius-lg:      16px;
  --radius-md:      12px;
  --max:            1240px;
  --easing:         cubic-bezier(.2,.7,.2,1);
  --font-ar:        'Tajawal', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-en:        'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-quran:     'Amiri Quran', 'Tajawal', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ar);
  background: var(--bg-deep);
  color: var(--text-hi);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  direction: rtl;
  transition: opacity .25s ease;
}
body.lang-en { font-family: var(--font-en); direction: ltr; }
body.lang-en .stat-num,
body.lang-en .why-metric-value,
body.lang-en .section-title,
body.lang-en .cta-title,
body.lang-en .brand-name { letter-spacing: -.5px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* === GRID BACKDROP === */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% -100px, rgba(0,180,255,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(122,251,225,.10), transparent 60%),
    linear-gradient(180deg, #05101c 0%, #07182a 100%);
}
.bg-grid::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
  opacity: .8;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* === TOP BAR === */
.topbar {
  background: rgba(6,18,31,.85);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-md);
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; gap: 16px; flex-wrap: wrap;
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar a:hover { color: var(--brand-2); }
.topbar .left, .topbar .right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar i { width: 14px; height: 14px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(0,180,255,.10);
  border: 1px solid rgba(0,180,255,.3);
  border-radius: 999px;
  color: var(--brand-2); font-weight: 700; font-size: 12px;
  letter-spacing: 1px; transition: all .25s var(--easing);
}
.lang-toggle:hover { background: rgba(0,180,255,.18); transform: translateY(-1px); }
.lang-toggle i { width: 14px; height: 14px; }

/* === NAVBAR === */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6,18,31,.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.scrolled { background: rgba(6,18,31,.92); box-shadow: 0 12px 30px -20px rgba(0,0,0,.5); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%);
  border-radius: 12px;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(0,180,255,.7);
  overflow: hidden; padding: 6px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { line-height: 1; }
.brand-name { font-size: 18px; font-weight: 900; color: #fff; }
.brand-name .sep { color: var(--brand-2); }
.brand-tag  { font-size: 11px; color: var(--text-lo); margin-top: 4px; letter-spacing: 1.5px; font-family: var(--font-en); }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 10px 14px; border-radius: 10px; font-size: 14px;
  color: var(--text-md); font-weight: 500;
  transition: all .25s var(--easing);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.04); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  border: 1px solid transparent;
  transition: all .25s var(--easing);
}
.btn i { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%);
  color: #fff;
  box-shadow: 0 12px 32px -10px rgba(0,180,255,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(0,180,255,.7); }
.btn-ghost { background: rgba(255,255,255,.05); color: #fff; border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { background: transparent; color: #fff; border-color: var(--line-strong); }
.btn-outline:hover { background: rgba(255,255,255,.06); border-color: var(--brand-2); }
.btn.block { display: flex; justify-content: center; width: 100%; padding: 14px 18px; }

.nav-burger { display: none; background: transparent; border: 1px solid var(--line-strong); color: #fff; padding: 8px; border-radius: 10px; }
.nav-burger i { width: 22px; height: 22px; }

/* === QURAN BANNER === */
.quran-banner {
  padding: 32px 0 0;
  position: relative;
}
.quran-frame {
  position: relative;
  background:
    radial-gradient(800px 240px at 50% 0%, rgba(0,180,255,.18), transparent 60%),
    linear-gradient(180deg, rgba(15,34,56,.7), rgba(10,26,44,.4));
  border: 1px solid rgba(255,200,87,.18);
  border-radius: 20px;
  padding: 34px 40px 28px;
  text-align: center;
  overflow: hidden;
}
.quran-frame::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 100%, rgba(255,200,87,.05), transparent 50%);
  pointer-events: none;
}
.quran-corner {
  position: absolute; width: 32px; height: 32px;
  border: 2px solid rgba(255,200,87,.5);
  pointer-events: none;
}
.quran-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.quran-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.quran-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.quran-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.bism {
  font-family: var(--font-quran);
  color: var(--gold); font-size: 22px;
  margin-bottom: 14px;
  letter-spacing: .5px;
  text-shadow: 0 0 25px rgba(255,200,87,.3);
}
.ayah {
  font-family: var(--font-quran);
  font-size: clamp(22px, 3vw, 32px);
  color: #fff; line-height: 2;
  margin: 0 0 10px;
  font-weight: 400;
  letter-spacing: .5px;
}
.ayah-ref {
  color: var(--gold); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; margin-bottom: 14px;
}
.ayah-tr {
  color: var(--text-md); font-size: 14px; max-width: 700px; margin: 0 auto;
  font-style: italic;
}

/* === HERO === */
.hero { position: relative; padding: 70px 0 80px; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 60px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(0,180,255,.10);
  border: 1px solid rgba(0,180,255,.25);
  color: var(--brand-2);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-en);
}
.pill::before {
  content:""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-2); box-shadow: 0 0 12px var(--brand-2);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.4); opacity: 1; }
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05; font-weight: 900;
  margin: 22px 0 18px; letter-spacing: -.5px;
  background: linear-gradient(180deg, #fff 0%, #b9d6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.hero p.lead {
  color: var(--text-md); font-size: 18px;
  max-width: 580px; margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.trust {
  margin-top: 38px;
  display: flex; gap: 22px; align-items: center;
  color: var(--text-lo); font-size: 13px; flex-wrap: wrap;
}
.trust .stars { color: var(--gold); letter-spacing: 2px; }
.trust .dot-sep { opacity: .4; }
.trust i { width: 16px; height: 16px; color: var(--brand-2); vertical-align: -3px; }

/* === HERO VISUAL === */
.hero-visual {
  position: relative; aspect-ratio: 1/1; max-width: 560px; margin-inline-start: auto;
}
.hero-card {
  position: absolute;
  background: linear-gradient(180deg, rgba(15,34,56,.95) 0%, rgba(15,34,56,.6) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-1);
}
.hero-card.main {
  inset: 8% 6% 8% 6%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 0%, rgba(0,180,255,.35), transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(122,251,225,.20), transparent 60%),
    linear-gradient(160deg, #0a2440 0%, #061829 100%);
  display: grid; place-items: center; overflow: hidden;
}
.hvac-icon { width: 70%; height: 70%; display: grid; place-items: center; position: relative; }
.hvac-icon i { width: 60%; height: 60%; color: #fff; opacity: .9; filter: drop-shadow(0 10px 30px rgba(0,180,255,.45)); }
.ring {
  position: absolute; border-radius: 50%;
  border: 1px dashed rgba(122,251,225,.35);
  animation: spin 30s linear infinite;
}
.ring.r1 { inset: 6%; }
.ring.r2 { inset: 18%; border-color: rgba(0,180,255,.35); animation-duration: 50s; animation-direction: reverse; }
.ring.r3 { inset: 32%; border-color: rgba(255,255,255,.18); animation-duration: 80s; }
@keyframes spin { to { transform: rotate(360deg); } }
.dot-orbit {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand-2); box-shadow: 0 0 20px var(--brand-2);
  top: 6%; left: 50%; transform: translateX(-50%);
}
.hero-card.float-1 { top: 4%; right: -2%; width: 220px; animation: floaty 6s ease-in-out infinite; }
.hero-card.float-2 { bottom: 4%; left: -4%; width: 240px; animation: floaty 6s ease-in-out infinite reverse; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.mini-stat-row { display: flex; align-items: center; gap: 12px; }
.mini-stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,180,255,.20), rgba(0,103,255,.10));
  border: 1px solid rgba(0,180,255,.3);
  display: grid; place-items: center; flex: 0 0 auto;
}
.mini-stat-icon.alt { background: linear-gradient(135deg, rgba(122,251,225,.20), rgba(0,180,255,.10)); }
.mini-stat-icon i { width: 22px; height: 22px; color: var(--brand-2); }
.mini-stat-label { font-size: 12px; color: var(--text-lo); margin-bottom: 2px; }
.mini-stat-value { font-size: 18px; font-weight: 800; color: #fff; }
.mini-foot { font-size: 11px; color: var(--text-lo); margin-top: 8px; }
.progress { height: 6px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress > span { display: block; height: 100%; width: 80%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: inherit; }
.progress.lg { height: 8px; margin-top: 14px; }
.badge-mini-row { display: flex; gap: 6px; margin-top: 10px; }

/* === STATS === */
.stats {
  margin-top: -10px; padding: 30px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { display: flex; align-items: center; gap: 16px; padding: 8px 0; }
.stat-num {
  font-size: clamp(34px, 4vw, 48px); font-weight: 900;
  background: linear-gradient(180deg, #fff 0%, var(--brand-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -1px; line-height: 1;
  font-family: var(--font-en);
}
.stat-label { color: var(--text-md); font-size: 14px; }

/* === SECTION COMMON === */
section { padding: 110px 0; position: relative; }
section.no-top { padding-top: 0; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--brand-2); text-transform: uppercase;
  padding: 6px 12px; border: 1px solid rgba(0,180,255,.25);
  border-radius: 999px; background: rgba(0,180,255,.06);
  font-family: var(--font-en);
}
.section-title {
  font-size: clamp(32px, 4vw, 48px); font-weight: 900;
  line-height: 1.1; margin: 16px 0 14px; color: #fff;
}
.section-sub { color: var(--text-md); font-size: 17px; max-width: 720px; }
.section-head { margin-bottom: 60px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }
.center-cta { text-align: center; margin-top: 50px; }

/* === SERVICES === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative;
  background: linear-gradient(180deg, rgba(15,34,56,.85) 0%, rgba(10,26,44,.6) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 30px 28px 32px; overflow: hidden;
  transition: transform .35s var(--easing), border-color .25s var(--easing), box-shadow .35s var(--easing);
}
.service::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 240px at var(--mx, 30%) -20%, rgba(0,180,255,.18), transparent 60%);
  opacity: 0; transition: opacity .35s var(--easing);
}
.service:hover { transform: translateY(-6px); border-color: rgba(0,180,255,.35); box-shadow: var(--shadow-glow); }
.service:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,180,255,.18) 0%, rgba(0,103,255,.08) 100%);
  border: 1px solid rgba(0,180,255,.3);
  margin-bottom: 22px; position: relative; z-index: 1;
}
.service-icon i { width: 26px; height: 26px; color: var(--brand-2); }
.service h3 { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 10px; position: relative; z-index: 1; }
.service p  { color: var(--text-md); font-size: 14.5px; margin: 0 0 18px; position: relative; z-index: 1; }
.service ul { list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
.service ul li { display: flex; align-items: center; gap: 8px; color: var(--text-md); font-size: 13.5px; padding: 5px 0; }
.service ul li i { width: 14px; height: 14px; color: var(--success); flex: 0 0 auto; }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.about-visual {
  position: relative;
  border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line-strong);
  aspect-ratio: 4/5; max-width: 480px;
  box-shadow: var(--shadow-1);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; bottom: 22px; right: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  border-radius: 18px; padding: 16px 22px;
  text-align: center; color: #fff;
  box-shadow: 0 18px 40px -10px rgba(0,180,255,.6);
}
.about-badge-num { font-size: 32px; font-weight: 900; line-height: 1; font-family: var(--font-en); }
.about-badge-lbl { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 4px; opacity: .9; }
.about-copy p { color: var(--text-md); font-size: 16px; margin: 20px 0 28px; }

.vision-mission { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.vm-card {
  background: linear-gradient(180deg, rgba(15,34,56,.85), rgba(10,26,44,.5));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  transition: all .25s var(--easing);
}
.vm-card:hover { border-color: rgba(0,180,255,.35); transform: translateY(-3px); }
.vm-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  display: grid; place-items: center; margin-bottom: 12px;
}
.vm-icon i { width: 20px; height: 20px; color: #fff; }
.vm-card h4 { margin: 0 0 6px; font-size: 16px; color: #fff; font-weight: 800; }
.vm-card p { margin: 0; color: var(--text-md); font-size: 13.5px; line-height: 1.7; }

/* === WHY US === */
.why { background: linear-gradient(180deg, transparent 0%, rgba(0,180,255,0.03) 100%); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-points { display: grid; gap: 22px; margin-top: 32px; }
.why-point {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px; border-radius: var(--radius-lg);
  background: rgba(15,34,56,.4); border: 1px solid var(--line);
  transition: all .25s var(--easing);
}
.why-point:hover { background: rgba(15,34,56,.7); border-color: var(--line-strong); transform: translateX(-6px); }
body.lang-en .why-point:hover { transform: translateX(6px); }
.why-point-icon {
  flex: 0 0 auto;
  width: 50px; height: 50px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%);
  box-shadow: 0 12px 24px -8px rgba(0,180,255,.4);
}
.why-point-icon i { width: 24px; height: 24px; color: #fff; }
.why-point h4 { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: #fff; }
.why-point p  { margin: 0; color: var(--text-md); font-size: 14px; line-height: 1.7; }

.why-visual {
  position: relative;
  background: linear-gradient(160deg, #0a2440 0%, #061829 100%);
  border: 1px solid var(--line-strong);
  border-radius: 28px; padding: 32px;
  aspect-ratio: 1/1.05; overflow: hidden;
  box-shadow: var(--shadow-1);
}
.why-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 360px at 100% 0%, rgba(0,180,255,.28), transparent 60%),
    radial-gradient(420px 260px at 0% 100%, rgba(122,251,225,.18), transparent 60%);
}
.why-visual-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-strong);
  font-size: 13px; color: #fff; font-weight: 600;
}
.badge i { width: 14px; height: 14px; color: var(--brand-2); }
.badge.mini { padding: 4px 10px; font-size: 11px; }
.why-metric {}
.why-metric-row { display: flex; justify-content: space-between; align-items: flex-end; }
.why-metric-label { color: var(--text-lo); font-size: 13px; }
.why-metric-value {
  font-size: 42px; font-weight: 900; color: #fff;
  line-height: 1; margin-top: 6px; font-family: var(--font-en);
}
.why-metric-value .pct { color: var(--brand-2); }
.trend {
  color: var(--success); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-en);
}
.trend i { width: 16px; height: 16px; }

.quote-block {
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px;
}
.quote-block .q {
  font-size: 22px; font-weight: 700; color: #fff; line-height: 1.5;
  margin-bottom: 18px;
}
.quote-block .who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  display: grid; place-items: center;
  font-weight: 800; color: #fff; flex: 0 0 auto;
}
.who-meta { font-size: 13px; }
.who-meta strong { display: block; color: #fff; }
.who-meta span  { color: var(--text-lo); }

/* === PROJECTS === */
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px; gap: 20px;
}
.project {
  position: relative;
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #0a2440 0%, #061829 100%);
  transition: all .35s var(--easing);
}
.project.wide { grid-column: span 2; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  z-index: 1;
}
.project-content { position: absolute; inset: auto 0 0 0; padding: 24px; z-index: 2; }
.project-cat { font-size: 12px; color: var(--brand-2); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; font-family: var(--font-en); }
.project h4 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: #fff; }
.project p  { margin: 0; color: var(--text-md); font-size: 14px; }
.project:hover { transform: translateY(-6px); border-color: rgba(0,180,255,.35); }
.project:hover img { transform: scale(1.05); }
.project img { transition: transform .8s var(--easing); }
.project-mark {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(0,0,0,.4); border: 1px solid var(--line-strong);
  display: grid; place-items: center; backdrop-filter: blur(8px);
}
.project-mark i { width: 22px; height: 22px; color: #fff; }

/* === TEAM === */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.team-card {
  background: linear-gradient(180deg, rgba(15,34,56,.85), rgba(10,26,44,.5));
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  overflow: hidden; transition: all .3s var(--easing);
}
.team-card:hover { transform: translateY(-6px); border-color: rgba(0,180,255,.35); box-shadow: var(--shadow-glow); }
.team-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--easing); }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-info { padding: 22px; }
.team-info h4 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: #fff; }
.team-info .role { margin: 0 0 10px; color: var(--brand-2); font-size: 13px; font-weight: 700; }
.team-info .bio { margin: 0 0 14px; color: var(--text-md); font-size: 13.5px; line-height: 1.7; }
.team-social { display: flex; gap: 8px; }
.team-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: all .25s var(--easing);
}
.team-social a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.team-social i { width: 16px; height: 16px; color: #fff; }

.team-stats {
  margin-top: 60px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(15,34,56,.85), rgba(10,26,44,.5));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.team-stat { text-align: center; }
.team-stat strong {
  display: block;
  font-size: 32px; font-weight: 900;
  background: linear-gradient(180deg, #fff 0%, var(--brand-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: var(--font-en);
}
.team-stat span { color: var(--text-md); font-size: 13px; }

/* === PROCESS === */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; position: relative;
}
.process-grid::before {
  content: ""; position: absolute; top: 36px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: .35;
}
.step { text-align: center; padding: 0 6px; position: relative; }
.step-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(180deg, rgba(15,34,56,1) 0%, rgba(10,26,44,1) 100%);
  border: 1px solid rgba(0,180,255,.35);
  display: grid; place-items: center;
  font-size: 24px; font-weight: 900; color: #fff;
  margin: 0 auto 22px; font-family: var(--font-en);
  box-shadow: 0 0 0 6px rgba(0,180,255,.06), 0 18px 40px -10px rgba(0,180,255,.35);
  position: relative; z-index: 1;
}
.step h4 { margin: 0 0 8px; color: #fff; font-size: 18px; font-weight: 800; }
.step p  { margin: 0; color: var(--text-md); font-size: 14px; }

/* === TESTIMONIALS === */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi {
  background: linear-gradient(180deg, rgba(15,34,56,.85) 0%, rgba(10,26,44,.6) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 28px; position: relative; transition: all .3s var(--easing);
}
.testi:hover { transform: translateY(-4px); border-color: rgba(0,180,255,.3); }
.quote-icon { position: absolute; top: 22px; left: 22px; color: var(--brand-2); opacity: .25; }
.quote-icon i { width: 36px; height: 36px; }
.testi .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; font-size: 14px; }
.testi .text { color: var(--text-hi); font-size: 15.5px; line-height: 1.7; margin-bottom: 22px; }
.testi .person { display: flex; align-items: center; gap: 12px; }
.testi .person .avatar { background: linear-gradient(135deg, #5e72eb, #00b4ff); }
.testi .person strong { display: block; color: #fff; font-size: 14px; }
.testi .person span { color: var(--text-lo); font-size: 13px; }

/* === CLIENTS === */
.clients {
  padding: 60px 0 !important;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.clients-label { text-align: center; color: var(--text-lo); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 28px; }
.clients-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 24px; align-items: center;
}
.client-logo {
  height: 70px; border: 1px solid var(--line);
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.02);
  transition: all .25s var(--easing);
  padding: 10px;
}
.client-logo img { max-height: 100%; opacity: .6; transition: opacity .25s var(--easing); }
.client-logo:hover { border-color: rgba(0,180,255,.35); background: rgba(0,180,255,.04); }
.client-logo:hover img { opacity: 1; }

/* === CTA / CONTACT === */
.cta-section { padding: 60px 0 80px; }
.cta-box {
  position: relative;
  border-radius: 32px; overflow: hidden;
  padding: 60px 50px;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(0,180,255,.45), transparent 60%),
    radial-gradient(600px 380px at 0% 100%, rgba(122,251,225,.25), transparent 60%),
    linear-gradient(135deg, #0a2a4d 0%, #051323 100%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-1);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
  opacity: .7;
}
.cta-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.cta-title { font-size: clamp(30px, 4vw, 42px); font-weight: 900; color: #fff; margin: 16px 0 14px; line-height: 1.15; }
.cta-sub { color: var(--text-md); font-size: 17px; margin: 0 0 24px; max-width: 540px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* === QUOTE FORM === */
.quote-form {
  background: rgba(6,18,31,.65);
  border: 1px solid var(--line-strong);
  border-radius: 22px; padding: 28px;
  backdrop-filter: blur(8px);
}
.quote-form h3 { margin: 0 0 18px; color: #fff; font-size: 18px; font-weight: 800; }
.form-row { position: relative; margin-bottom: 14px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 16px 14px 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  color: #fff; border-radius: 12px;
  font-size: 14px; outline: none;
  transition: border-color .25s var(--easing), background .25s var(--easing);
}
.form-row select { appearance: none; cursor: pointer; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--brand);
  background: rgba(0,180,255,.04);
}
.form-row label {
  position: absolute; top: 14px; right: 14px;
  font-size: 13px; color: var(--text-lo);
  pointer-events: none;
  transition: all .2s var(--easing);
  background: transparent; padding: 0 4px;
}
body.lang-en .form-row label { right: auto; left: 14px; }
.form-row input:focus + label,
.form-row input:not(:placeholder-shown) + label,
.form-row textarea:focus + label,
.form-row textarea:not(:placeholder-shown) + label,
.form-row select:focus + label,
.form-row select:valid + label {
  top: -8px; font-size: 11px; color: var(--brand-2);
  background: var(--bg-deep);
}
.form-note { text-align: center; color: var(--text-lo); font-size: 12px; margin-top: 10px; }

/* === CONTACT CARDS === */
.contact-cards {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.contact-card {
  background: linear-gradient(180deg, rgba(15,34,56,.7), rgba(10,26,44,.4));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all .25s var(--easing);
}
.contact-card:hover { border-color: rgba(0,180,255,.35); transform: translateY(-3px); }
.contact-card-ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  display: grid; place-items: center; margin-bottom: 14px;
}
.contact-card-ic i { width: 20px; height: 20px; color: #fff; }
.contact-card h5 { margin: 0 0 8px; color: #fff; font-size: 15px; font-weight: 800; }
.contact-card p { margin: 4px 0; color: var(--text-md); font-size: 13.5px; }
.contact-card a { color: var(--text-md); transition: color .2s; }
.contact-card a:hover { color: var(--brand-2); }

/* === MAP === */
.map-wrap { margin-top: 40px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong); }
.map-wrap iframe { filter: grayscale(0.4) invert(0.92) contrast(1.1); }

/* === FOOTER === */
footer {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 100%);
  border-top: 1px solid var(--line);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 40px; margin-bottom: 50px;
}
.footer-col h5 {
  font-size: 13px; font-weight: 800; color: #fff;
  letter-spacing: 2px; text-transform: uppercase;
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col ul a { color: var(--text-md); font-size: 14px; transition: color .2s; }
.footer-col ul a:hover { color: var(--brand-2); }
.footer-about p { color: var(--text-md); font-size: 14px; line-height: 1.8; margin: 20px 0 18px; }
.footer-about .brand { margin-bottom: 20px; }
.footer-contact { display: grid; gap: 12px; color: var(--text-md); font-size: 14px; }
.footer-contact a { color: var(--text-md); transition: color .2s; }
.footer-contact a:hover { color: var(--brand-2); }
.footer-contact .ic-line { display: flex; align-items: center; gap: 10px; }
.footer-contact i { width: 16px; height: 16px; color: var(--brand-2); flex: 0 0 auto; }

.social-row { display: flex; gap: 10px; margin-top: 8px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  display: grid; place-items: center;
  transition: all .25s var(--easing);
}
.social-row a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.social-row i { width: 16px; height: 16px; color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-lo); font-size: 13px; flex-wrap: wrap; gap: 14px;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--brand-2); }

/* === WHATSAPP FLOAT === */
.wa-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.7);
  animation: bob 3s ease-in-out infinite;
}
.wa-float i { width: 30px; height: 30px; color: #fff; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.wa-float::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.5);
  animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
  0% { transform: scale(.85); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* === ADMIN EDIT MODE === */
.admin-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  border: 0; display: none; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(0,180,255,.6);
  color: #fff;
}
.admin-toggle i { width: 24px; height: 24px; }
body.edit-mode .admin-toggle { display: grid; }
body.edit-mode .admin-toggle { background: var(--success); }
body.edit-mode [data-editable] {
  outline: 2px dashed var(--brand-2);
  outline-offset: 4px;
  cursor: pointer;
  transition: outline-color .2s;
}
body.edit-mode [data-editable]:hover {
  outline-color: var(--gold);
  outline-style: solid;
}
.edit-badge {
  position: fixed; top: 80px; right: 50%; transform: translateX(50%);
  z-index: 100; background: var(--success); color: #fff;
  padding: 10px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 12px 30px -8px rgba(32,211,154,.5);
  display: none;
}
body.edit-mode .edit-badge { display: block; animation: slideDown .4s var(--easing); }
@keyframes slideDown { from { transform: translateX(50%) translateY(-30px); opacity: 0; } to { transform: translateX(50%) translateY(0); opacity: 1; } }

/* === FADE IN ANIMATION === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--easing), transform .8s var(--easing); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { margin: 30px auto 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-grid::before { display: none; }
  .projects-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
  .project.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: auto; }
  .clients-row { grid-template-columns: repeat(3, 1fr); }
  .cta-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .vision-mission { grid-template-columns: 1fr; }
  .team-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 70px 0; }
  .quran-frame { padding: 28px 22px; }
  .ayah { line-height: 1.9; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .services-grid, .testi-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .project.wide { grid-column: span 1; }
  .process-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .clients-row { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6,18,31,.97);
    padding: 16px 24px; gap: 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav-burger { display: inline-flex; }
  .cta-box { padding: 40px 24px; }
  .hero { padding: 50px 0; }
  .topbar { font-size: 12px; }
  .topbar .left span:nth-child(3) { display: none; }
  .contact-cards { grid-template-columns: 1fr; }
  .wa-float { width: 54px; height: 54px; bottom: 16px; left: 16px; }
  .wa-float i { width: 26px; height: 26px; }
  .admin-toggle { bottom: 16px; right: 16px; width: 46px; height: 46px; }
}
