/* ============================================
   DYNAMIC PROJECT MANAGEMENT — STYLES.CSS
   ============================================ */

/* --- Variables --- */
:root {
  --bg-dark:      #060e1e;
  --bg-base:      #0a1628;
  --bg-mid:       #0f2040;
  --bg-card:      #132848;
  --bg-card-h:    #1a3360;

  --blue:         #2563eb;
  --blue-dark:    #1d4ed8;
  --blue-light:   #3b82f6;
  --cyan:         #0ea5e9;
  --gold:         #f59e0b;
  --gold-dark:    #d97706;

  --text:         #e2e8f0;
  --text-sub:     #94a3b8;
  --text-muted:   #64748b;

  --border:       rgba(37, 99, 235, 0.25);
  --border-light: rgba(255, 255, 255, 0.08);

  --shadow-sm:    0 2px 8px rgba(0,0,0,.2);
  --shadow-md:    0 4px 20px rgba(0,0,0,.3);
  --shadow-blue:  0 4px 24px rgba(37,99,235,.25);

  --ease:         0.3s ease;
  --r-sm:         6px;
  --r:            12px;
  --r-lg:         20px;

  --nav-h:        72px;
  --max-w:        1200px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Heebo', sans-serif;
  background: var(--bg-base);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 90px 0; }
.section-sm { padding: 60px 0; }

/* --- Section Header --- */
.section-header { text-align: center; margin-bottom: 56px; }

.section-tag {
  display: inline-block;
  background: rgba(37,99,235,.13);
  color: var(--blue-light);
  border: 1px solid rgba(37,99,235,.3);
  border-radius: 50px;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-title span { color: var(--blue-light); }

.section-subtitle {
  font-size: 16px;
  color: var(--text-sub);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.divider {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  margin: 18px auto;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: var(--ease);
}
.navbar.scrolled {
  background: rgba(6,14,30,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-light), 0 4px 20px rgba(0,0,0,.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }

.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: white;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .main { font-size: 15px; font-weight: 800; color: white; }
.logo-text .sub  { font-size: 11px; color: var(--text-sub); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--text-sub);
  transition: var(--ease);
}
.nav-links a:hover, .nav-links a.active {
  color: white;
  background: rgba(255,255,255,.08);
}
.nav-cta {
  background: var(--blue) !important;
  color: white !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 70% 30%, rgba(37,99,235,.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(6,182,212,.08) 0%, transparent 50%),
    linear-gradient(160deg, #060e1e 0%, #0a1628 50%, #0a1f3d 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .15; }
.shape-1 { width: 500px; height: 500px; background: var(--blue); top: -100px; left: -100px; }
.shape-2 { width: 300px; height: 300px; background: var(--cyan); bottom: -50px; right: 20%; }
.shape-3 { width: 200px; height: 200px; background: var(--gold); top: 30%; right: 10%; opacity: .07; }

.hero-content {
  position: relative; z-index: 1;
  max-width: 800px; padding: 120px 24px 60px;
  margin: 0 auto; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,.15);
  border: 1px solid rgba(37,99,235,.4);
  border-radius: 50px; padding: 8px 20px;
  font-size: 13px; font-weight: 600; color: var(--blue-light);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 900; line-height: 1.1;
  color: white; letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-sub); line-height: 1.8;
  max-width: 560px; margin: 0 auto 44px;
}
.hero-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding-top: 48px; border-top: 1px solid var(--border-light);
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 34px; font-weight: 900; color: white;
  line-height: 1; margin-bottom: 6px;
}
.stat-number span { color: var(--blue-light); }
.stat-label { font-size: 13px; color: var(--text-sub); }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 12px;
  animation: bounce 2.2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; font-family: inherit;
  transition: var(--ease); cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.45);
}
.btn-secondary {
  background: rgba(255,255,255,.07);
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a1628; font-weight: 700;
  box-shadow: 0 4px 16px rgba(245,158,11,.3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,.4); }
.btn-outline {
  background: transparent; color: var(--blue-light);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: white; transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 16px; }

/* ============================================
   FEATURE CARDS (about)
   ============================================ */

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px 28px; text-align: center;
  transition: var(--ease); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transition: var(--ease);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(37,99,235,.4); box-shadow: var(--shadow-blue); }

.feature-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(14,165,233,.12));
  border: 1px solid rgba(37,99,235,.3);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--blue-light);
  margin: 0 auto 20px;
}
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-desc  { font-size: 14px; color: var(--text-sub); line-height: 1.75; }

/* ============================================
   SERVICE CARDS (home preview)
   ============================================ */

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px;
  transition: var(--ease); position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: right; transition: var(--ease);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); border-color: rgba(37,99,235,.45); box-shadow: var(--shadow-blue); }

.service-icon-wrap {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(14,165,233,.1));
  border: 1px solid rgba(37,99,235,.3);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--blue-light); margin-bottom: 20px;
}
.service-name { font-size: 19px; font-weight: 700; margin-bottom: 10px; color: white; }
.service-desc { font-size: 14px; color: var(--text-sub); line-height: 1.8; margin-bottom: 20px; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-light); font-size: 14px; font-weight: 600;
  transition: var(--ease);
}
.service-link:hover { color: white; gap: 10px; }

/* ============================================
   STATS BAND
   ============================================ */

.stats-section {
  background: linear-gradient(135deg, var(--bg-mid), #0d1f3a);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border-light);
}
.stat-card {
  background: var(--bg-mid); padding: 48px 32px;
  text-align: center; position: relative;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 0 0 4px 4px;
}
.stat-value { font-size: 46px; font-weight: 900; color: white; line-height: 1; margin-bottom: 8px; }
.stat-value .unit { font-size: 28px; color: var(--blue-light); }
.stat-desc  { font-size: 14px; color: var(--text-sub); }

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, rgba(37,99,235,.13) 0%, rgba(6,182,212,.07) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-title { font-size: clamp(22px, 3vw, 38px); font-weight: 800; margin-bottom: 14px; }
.cta-subtitle {
  font-size: 16px; color: var(--text-sub); margin-bottom: 36px;
  max-width: 480px; margin-right: auto; margin-left: auto; line-height: 1.8;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-dark);
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-light);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px; color: var(--text-sub); line-height: 1.8;
  margin: 16px 0 24px;
}
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub); font-size: 14px; transition: var(--ease);
}
.social-btn:hover { background: var(--blue); border-color: var(--blue); color: white; }

.footer-col h4 {
  font-size: 15px; font-weight: 700; color: white;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px; color: var(--text-sub);
  display: flex; align-items: center; gap: 6px; transition: var(--ease);
}
.footer-col ul li a:hover { color: var(--blue-light); gap: 10px; }

.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact-item i { color: var(--blue-light); font-size: 14px; margin-top: 3px; flex-shrink: 0; }
.footer-contact-item span { font-size: 14px; color: var(--text-sub); line-height: 1.6; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border-light);
  font-size: 13px; color: var(--text-muted);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */

.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(160deg, #060e1e 0%, #0a1628 60%, #0a1f3d 100%);
  position: relative; overflow: hidden; text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-content { position: relative; z-index: 1; }

.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 18px;
}
.breadcrumb a { color: var(--blue-light); transition: var(--ease); }
.breadcrumb a:hover { color: white; }

.page-title  { font-size: clamp(30px, 5vw, 54px); font-weight: 900; color: white; margin-bottom: 14px; }
.page-subtitle { font-size: 17px; color: var(--text-sub); max-width: 480px; margin: 0 auto; }

/* ============================================
   SERVICES PAGE — DETAILED
   ============================================ */

.services-detailed { display: flex; flex-direction: column; gap: 28px; }

.service-detail-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 40px;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 28px; align-items: start; transition: var(--ease);
}
.service-detail-card:hover {
  border-color: rgba(37,99,235,.45);
  box-shadow: var(--shadow-blue);
  transform: translateX(-4px);
}
.service-detail-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, rgba(37,99,235,.22), rgba(14,165,233,.12));
  border: 1px solid rgba(37,99,235,.35);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--blue-light); flex-shrink: 0;
}
.service-detail-title { font-size: 22px; font-weight: 800; color: white; margin-bottom: 10px; }
.service-detail-desc { font-size: 15px; color: var(--text-sub); line-height: 1.8; margin-bottom: 16px; }
.service-detail-list { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tag {
  background: rgba(37,99,235,.1); border: 1px solid rgba(37,99,235,.25);
  color: var(--blue-light); border-radius: 50px; padding: 4px 14px;
  font-size: 12px; font-weight: 600;
}

/* ============================================
   PROCESS STEPS
   ============================================ */

.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 36px;
  right: 12.5%; left: 12.5%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--blue));
  opacity: .4;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: white;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 8px rgba(37,99,235,.12);
}
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-desc  { font-size: 13px; color: var(--text-sub); line-height: 1.7; }

/* ============================================
   PROJECTS PAGE
   ============================================ */

.filter-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.filter-btn {
  padding: 8px 20px; border-radius: 50px;
  font-size: 14px; font-weight: 600; color: var(--text-sub);
  background: rgba(255,255,255,.05); border: 1px solid var(--border-light);
  cursor: pointer; transition: var(--ease); font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--blue); border-color: var(--blue); color: white;
}

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; transition: var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-blue); border-color: rgba(37,99,235,.4); }

.project-image { height: 220px; position: relative; overflow: hidden; }
.project-image-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; transition: transform .5s ease;
  background-size: cover; background-position: center;
}
.project-card:hover .project-image-bg { transform: scale(1.06); }
.project-overlay {
  position: absolute; inset: 0;
  background: rgba(6,14,30,.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--ease);
}
.project-card:hover .project-overlay { opacity: 1; }

.project-body { padding: 24px; }
.project-category {
  display: inline-block;
  background: rgba(37,99,235,.14); color: var(--blue-light);
  border-radius: 4px; padding: 3px 10px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px;
}
.project-name { font-size: 18px; font-weight: 700; color: white; margin-bottom: 8px; }
.project-location {
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px; margin-bottom: 12px;
}
.project-desc { font-size: 13px; color: var(--text-sub); line-height: 1.7; margin-bottom: 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag {
  background: rgba(255,255,255,.05); border: 1px solid var(--border-light);
  color: var(--text-muted); border-radius: 4px; padding: 3px 10px; font-size: 11px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.contact-info-title { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.contact-info-sub { font-size: 15px; color: var(--text-sub); margin-bottom: 36px; line-height: 1.8; }

.contact-detail { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-detail-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(14,165,233,.1));
  border: 1px solid rgba(37,99,235,.3); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--blue-light); flex-shrink: 0;
}
.contact-detail-body h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 4px; }
.contact-detail-body p,
.contact-detail-body a { font-size: 14px; color: var(--text-sub); line-height: 1.6; transition: var(--ease); }
.contact-detail-body a:hover { color: var(--blue-light); }

.contact-form-wrapper {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 40px;
}
.form-title { font-size: 22px; font-weight: 800; margin-bottom: 28px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-sub); }

.form-control {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-light);
  border-radius: var(--r-sm); padding: 12px 16px;
  font-size: 14px; color: var(--text);
  font-family: inherit; direction: rtl;
  transition: var(--ease); outline: none;
}
.form-control:focus {
  border-color: var(--blue);
  background: rgba(37,99,235,.05);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 130px; resize: vertical; }

.form-submit { margin-top: 8px; width: 100%; padding: 15px; font-size: 16px; justify-content: center; }

/* Success toast */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: #10b981; color: white; border-radius: var(--r-sm);
  padding: 14px 28px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(16,185,129,.35);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  z-index: 9999;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.map-wrapper {
  height: 280px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; color: var(--text-muted);
  font-size: 14px; margin-top: 32px; overflow: hidden; position: relative;
}
.map-wrapper::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(37,99,235,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-pin {
  position: relative; z-index: 1;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 12px rgba(37,99,235,.12);
}
.map-pin i { transform: rotate(45deg); color: white; font-size: 16px; }
.map-wrapper span { position: relative; z-index: 1; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

[data-aos] { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade-left"]  { transform: translateX(28px); }
[data-aos="fade-left"].aos-animate  { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(-28px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(.9); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-grid      { grid-template-columns: repeat(2,1fr); }
  .stats-grid      { grid-template-columns: repeat(2,1fr); }
  .process-steps   { grid-template-columns: repeat(2,1fr); }
  .process-steps::before { display: none; }
  .projects-grid   { grid-template-columns: repeat(2,1fr); }
  .services-grid   { grid-template-columns: repeat(2,1fr); }
  .service-detail-card { grid-template-columns: auto 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links {
    display: none; position: fixed;
    top: var(--nav-h); right: 0; left: 0;
    background: rgba(6,14,30,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column; padding: 20px; gap: 4px;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.open  { display: flex; }
  .nav-links a     { padding: 12px 16px; }
  .nav-toggle      { display: flex; }

  .hero-stats { gap: 24px; }
  .stat-number { font-size: 26px; }

  .about-grid  { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  .contact-layout { grid-template-columns: 1fr; }
  .form-grid      { grid-template-columns: 1fr; }
  .projects-grid  { grid-template-columns: 1fr; }
  .process-steps  { grid-template-columns: 1fr; }
  .service-detail-card { grid-template-columns: 1fr; padding: 28px; }

  .section  { padding: 60px 0; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .stats-grid  { grid-template-columns: 1fr; }
  .hero-stats  { flex-direction: column; gap: 18px; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

/* ============================================
   ACCESSIBILITY WIDGET
   ============================================ */

/* --- States applied to <html> --- */
html.a11y-font-lg  { font-size: 112% !important; }
html.a11y-font-xl  { font-size: 128% !important; }

html.a11y-grayscale    { filter: grayscale(1); }
html.a11y-high-contrast { filter: contrast(1.6) brightness(1.05); }
html.a11y-grayscale.a11y-high-contrast { filter: grayscale(1) contrast(1.6) brightness(1.05); }

html.a11y-highlight-links a {
  text-decoration: underline !important;
  outline: 2px solid #facc15 !important;
  outline-offset: 2px;
}

html.a11y-readable-font,
html.a11y-readable-font * { font-family: Arial, Helvetica, sans-serif !important; }

html.a11y-no-animations *,
html.a11y-no-animations *::before,
html.a11y-no-animations *::after {
  animation-duration: 0.001ms !important;
  transition-duration: 0.001ms !important;
}

/* --- Widget shell --- */
.a11y-widget {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99999;
  direction: rtl;
}

/* --- Toggle button (tab on the left edge) --- */
.a11y-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 52px;
  background: var(--blue, #2563eb);
  color: #fff;
  border: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 3px 0 12px rgba(0,0,0,.35);
  transition: background .2s, width .2s;
}
.a11y-toggle:hover  { background: #1d4ed8; width: 52px; }
.a11y-toggle:focus  { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* --- Panel --- */
.a11y-panel {
  position: absolute;
  left: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: #f1f5f9;
  border-radius: 14px;
  padding: 14px;
  width: 230px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.a11y-panel[hidden] { display: none; }

/* header */
.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid #334155;
  padding-bottom: 10px;
}
.a11y-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}
.a11y-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 6px;
  line-height: 1;
}
.a11y-close:hover  { background: #334155; color: #f1f5f9; }
.a11y-close:focus  { outline: 2px solid #60a5fa; }

/* group labels */
.a11y-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin: 10px 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.a11y-level-badge {
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 20px;
  text-transform: none;
  letter-spacing: 0;
}

/* font row */
.a11y-row {
  display: flex;
  gap: 8px;
}
.a11y-row .a11y-btn { flex: 1; }

/* options grid */
.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* option button */
.a11y-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  background: #334155;
  color: #cbd5e1;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  text-align: center;
  font-family: inherit;
  line-height: 1.3;
  transition: background .15s, border-color .15s, color .15s;
}
.a11y-btn i { font-size: 18px; }
.a11y-btn:hover  { background: #475569; color: #fff; }
.a11y-btn:focus  { outline: 2px solid #60a5fa; }
.a11y-btn.active { background: #2563eb; color: #fff; border-color: #93c5fd; }

/* reset */
.a11y-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 9px;
  background: #7f1d1d;
  color: #fca5a5;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  transition: background .15s;
}
.a11y-reset:hover { background: #991b1b; color: #fff; }
.a11y-reset:focus { outline: 2px solid #f87171; }

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Responsive — move panel above toggle on very small screens */
@media (max-width: 400px) {
  .a11y-panel {
    left: 0;
    top: auto;
    bottom: 60px;
    transform: none;
    width: calc(100vw - 16px);
    max-width: 280px;
  }
  .a11y-toggle {
    top: auto;
    transform: none;
    border-radius: 0 0 10px 0;
    bottom: 0;
  }
  .a11y-widget { top: auto; bottom: 80px; transform: none; }
}
