/* ============================================================
   modern.css — Elfares 2025 Design System
   Liquid Glass + Modern Industrial Style
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --blue:        #0ea5e9;
  --blue-dark:   #0369a1;
  --indigo:      #6366f1;
  --purple:      #8b5cf6;
  --grad:        linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #8b5cf6 100%);
  --grad-dark:   linear-gradient(135deg, #0c4a6e 0%, #312e81 100%);

  /* Glass */
  --glass-bg:    rgba(255,255,255,0.08);
  --glass-bg2:   rgba(255,255,255,0.12);
  --glass-border:rgba(255,255,255,0.18);
  --glass-shadow:0 8px 32px rgba(0,0,0,0.18);

  /* Light mode */
  --bg:          #f0f4ff;
  --bg2:         #e8eeff;
  --surface:     #ffffff;
  --surface2:    #f8faff;
  --border:      rgba(99,102,241,0.12);
  --text:        #0f172a;
  --text2:       #334155;
  --muted:       #64748b;

  /* Spacing */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-2xl: 48px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(99,102,241,0.08);
  --shadow-md: 0 8px 32px rgba(99,102,241,0.14);
  --shadow-lg: 0 20px 60px rgba(99,102,241,0.2);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.3);

  /* Transitions */
  --ease: cubic-bezier(0.4,0,0.2,1);
  --t:    0.3s;
}

/* Dark mode */
.theme-dark {
  --bg:       #060b18;
  --bg2:      #0d1526;
  --surface:  #111827;
  --surface2: #1e293b;
  --border:   rgba(99,102,241,0.2);
  --text:     #f1f5f9;
  --text2:    #cbd5e1;
  --muted:    #94a3b8;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; transition: color var(--t); }

/* ── Typography ────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.25);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.5); }
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
}
.section-center { text-align: center; }
.section-center .section-desc { margin: 0 auto; }

/* ── Liquid Glass ──────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  overflow: hidden;
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.theme-dark .glass-card {
  background: var(--surface);
  border-color: var(--border);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--t);
}
.btn-modern:hover::before { opacity: 1; }

.btn-primary-m {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}
.btn-primary-m:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99,102,241,0.5);
  color: #fff;
}
.btn-outline-m {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline-m:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: rgba(99,102,241,0.06);
}
.btn-ghost-m {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}
.btn-ghost-m:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ── Section wrapper ───────────────────────────────────────── */
.section-wrap {
  padding: 100px 0;
  position: relative;
}
.section-wrap-sm { padding: 60px 0; }

/* ── Gradient orbs (background decoration) ────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.orb-blue   { background: rgba(14,165,233,0.25); }
.orb-purple { background: rgba(139,92,246,0.2); }
.orb-indigo { background: rgba(99,102,241,0.2); }

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

/* ── Stats counter card ────────────────────────────────────── */
.stat-item {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
}
.stat-item:hover::before { transform: scaleX(1); }
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-num {
  font-size: 52px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  direction: ltr;
  display: inline-block;
}
.stat-label {
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 600;
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(14,165,233,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 60%, rgba(139,92,246,0.12) 0%, transparent 60%);
  z-index: 0;
}
.theme-dark .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(14,165,233,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 60%, rgba(139,92,246,0.18) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.3);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2s infinite;
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-title .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 32px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  direction: ltr;
  display: inline-block;
}
.hero-stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Hero visual panel */
.hero-visual {
  position: relative;
  z-index: 2;
}
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
}
.hero-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.service-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface2);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  transition: all var(--t) var(--ease);
  cursor: default;
}
.service-chip:hover {
  border-color: var(--indigo);
  background: rgba(99,102,241,0.06);
  transform: translateX(-4px);
}
.service-chip .chip-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; flex-shrink: 0;
}
.service-chip .chip-name { font-size: 14px; font-weight: 600; color: var(--text); }
.service-chip .chip-badge {
  margin-right: auto;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(14,165,233,0.1);
  color: var(--blue);
  font-weight: 700;
}

/* ── Service Cards ─────────────────────────────────────────── */
.svc-card {
  padding: 36px 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t) var(--ease);
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.svc-card:hover::after { transform: scaleX(1); transform-origin: left; }
.svc-icon {
  width: 64px; height: 64px;
  border-radius: var(--r-lg);
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}
.svc-title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.svc-desc  { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.svc-link  {
  font-size: 14px; font-weight: 700; color: var(--indigo);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--t);
}
.svc-link:hover { gap: 10px; color: var(--indigo); }

/* ── About Section ─────────────────────────────────────────── */
.about-img-wrap {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap img { width: 100%; height: 480px; object-fit: cover; }
.about-img-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; gap: 12px;
}
.about-img-badge .badge-num {
  font-size: 28px; font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-img-badge .badge-text { font-size: 13px; color: var(--muted); font-weight: 600; }
.about-feature {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface2);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: all var(--t) var(--ease);
}
.about-feature:hover { border-color: var(--indigo); transform: translateX(-4px); }
.about-feature .feat-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: rgba(99,102,241,0.1);
  color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.about-feature h5 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.about-feature p  { font-size: 13px; color: var(--muted); margin: 0; }

/* ── Projects Scroll ───────────────────────────────────────── */
.projects-track-wrap {
  position: relative;
  overflow: hidden;
}
.projects-track-wrap::before,
.projects-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.projects-track-wrap::before {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}
.projects-track-wrap::after {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.projects-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 40px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--indigo) transparent;
}
.projects-track::-webkit-scrollbar { height: 6px; }
.projects-track::-webkit-scrollbar-thumb { background: var(--indigo); border-radius: 3px; }
.proj-card {
  min-width: 360px;
  flex-shrink: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.proj-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.proj-card-img { height: 220px; overflow: hidden; position: relative; }
.proj-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.proj-card:hover .proj-card-img img { transform: scale(1.08); }
.proj-card-cat {
  position: absolute; top: 14px; right: 14px;
  background: var(--grad);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 14px; border-radius: 20px;
  box-shadow: 0 4px 12px rgba(99,102,241,0.4);
}
.proj-card-body { padding: 22px; }
.proj-card-body h4 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.proj-card-body p  { font-size: 13px; color: var(--muted); margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-card-meta { display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--border); }

/* ── Coverage ──────────────────────────────────────────────── */
.coverage-wrap {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  margin: 40px 0 28px;
}
.cov-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--t) var(--ease);
}
.cov-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--indigo); }
.cov-card.main { grid-column: span 2; background: var(--grad); border-color: transparent; }
.cov-card.main h5, .cov-card.main span { color: #fff !important; }
.cov-flag { font-size: 30px; flex-shrink: 0; }
.cov-name { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; }
.cov-sub  { font-size: 12px; color: var(--muted); }
.cov-hq   { font-size: 11px; font-weight: 700; background: rgba(255,255,255,0.2);
  color: #fff; padding: 2px 8px; border-radius: 20px; margin-right: auto; }

/* ── CTA Section ───────────────────────────────────────────── */
.cta-wrap {
  background: var(--grad-dark);
  border-radius: var(--r-2xl);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-wrap h2 { font-size: clamp(24px,3.5vw,40px); font-weight: 900; color: #fff; margin-bottom: 12px; position: relative; }
.cta-wrap p  { font-size: 17px; color: rgba(255,255,255,.75); margin-bottom: 36px; position: relative; }
.cta-btns    { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1da851; color: #fff; transform: translateY(-2px); }
.btn-call { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); }
.btn-call:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
  .coverage-wrap { grid-template-columns: repeat(2,1fr); }
  .cov-card.main { grid-column: span 2; }
  .section-wrap { padding: 70px 0; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-stats { gap: 20px; }
  .cta-wrap { padding: 40px 24px; }
}
@media (max-width: 767px) {
  .coverage-wrap { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .proj-card { min-width: 85vw; }
  .hero-title { font-size: 32px; }
  .hero-desc  { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .btn-modern { justify-content: center; }
  .about-img-wrap img { height: 280px; }
  .cta-btns { flex-direction: column; align-items: center; }
}
@media (max-width: 575px) {
  .coverage-wrap { grid-template-columns: 1fr 1fr; }
  .cov-card.main { grid-column: span 2; }
  .stat-num { font-size: 38px; }
}
