/* ============================================
   STS - Special Technical Service Company
   Main Stylesheet
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800&family=Barlow+Condensed:wght@600;700;800&family=Noto+Kufi+Arabic:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Brand Colors (from STS logo) */
  --navy:        #1a2b52;
  --navy-dark:   #0f1a35;
  --navy-mid:    #243668;
  --teal:        #1a7a72;
  --teal-light:  #2aa89e;
  --green:       #2a7a3c;
  --slate:       #4a5568;

  /* Light Mode */
  --bg:          #f5f7fa;
  --bg-alt:      #ffffff;
  --bg-card:     #ffffff;
  --text:        #1a2030;
  --text-muted:  #556080;
  --border:      #dde3ef;
  --shadow:      rgba(26, 43, 82, 0.10);
  --shadow-lg:   rgba(26, 43, 82, 0.18);

  /* Accent */
  --accent:      var(--teal);
  --accent-alt:  var(--green);

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container:   1200px;
  --radius:      14px;
  --radius-sm:   8px;

  /* Typography */
  --font-en:     'Barlow', sans-serif;
  --font-en-disp:'Barlow Condensed', sans-serif;
  --font-ar:     'Noto Kufi Arabic', sans-serif;

  /* Transitions */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans:       0.3s var(--ease);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg:         #0d1526;
  --bg-alt:     #111d35;
  --bg-card:    #162040;
  --text:       #e8edf8;
  --text-muted: #8a9abf;
  --border:     #243058;
  --shadow:     rgba(0, 0, 0, 0.30);
  --shadow-lg:  rgba(0, 0, 0, 0.50);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--trans), color var(--trans);
}

/* Arabic Language */
body.lang-ar {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4 {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-en-disp);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar h4 {
  font-family: var(--font-ar);
}

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #017040;
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: #017040;
}
body.lang-ar .section-label::before { display: none; }
body.lang-ar .section-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--teal-light);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--trans);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 20px var(--shadow);
}
.btn-primary:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--shadow-lg);
}
.btn-outline {
  border: 2px solid var(--teal-light);
  color: var(--teal-light);
}
.btn-outline:hover {
  background: var(--teal-light);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- HEADER ---------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--trans), box-shadow var(--trans), padding var(--trans);
  background-color: #fff;
}

#header.scrolled {
  background: var(--bg-alt);
  box-shadow: 0 2px 24px var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.logo img {
  height: 60px;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text strong {
  font-family: var(--font-en-disp);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.05em;
}
[data-theme="dark"] .logo-text strong { color: #fff; }
.logo-text span {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--trans);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: rgba(26, 43, 82, 0.06);
}
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  /*color: #fff;*/
  background: rgba(255,255,255,0.08);
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--trans);
  letter-spacing: 0.05em;
}
.lang-btn:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
}

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--trans);
}
.theme-btn:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
  transform: rotate(15deg);
}

.cta-nav {
  background: var(--navy);
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 50px !important;
}
.cta-nav:hover {
  background: var(--teal) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-alt);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  font-family: var(--font-en-disp);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color var(--trans);
  padding: 0.3rem 1rem;
}
.mobile-nav a:hover { color: var(--teal-light); }
.mobile-nav-controls {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

/* ---------- HERO ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(26,122,114,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(42,122,60,0.15) 0%, transparent 50%),
    linear-gradient(135deg, #0f1a35 0%, #1a2b52 50%, #0d2040 100%);
}
/* Animated dots grid */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 36px 36px; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: var(--section-pad) clamp(1rem, 4vw, 2.5rem);
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.hero-content { color: #fff; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /*background: rgba(42,168,158,0.15);*/
  border: 1px solid #017040;
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /*color: var(--teal-light);*/
  color: #017040;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #017040;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: #fff;
}
.hero-title .highlight {
  display: block;
  /*background: linear-gradient(90deg, var(--teal-light), #4ecdc4);*/
  background-color: #017040;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-actions .btn-primary {
  /*background: linear-gradient(135deg, var(--teal), var(--teal-light));*/
  background-color:#017040;
  box-shadow: 0 6px 28px rgba(42,168,158,0.35);
}
.hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-family: var(--font-en-disp);
  font-size: 2.2rem;
  font-weight: 800;
  color: #017040;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-globe {
  position: relative;
  width: 440px;
  height: 440px;
}
.hero-globe img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(42,168,158,0.3));
  animation: floatLogo 6s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(42,168,158,0.2);
  animation: ringExpand 4s ease-out infinite;
}
.hero-ring:nth-child(2) { width: 110%; height: 110%; top: -5%; left: -5%; animation-delay: 0s; }
.hero-ring:nth-child(3) { width: 130%; height: 130%; top: -15%; left: -15%; animation-delay: 1.3s; }
.hero-ring:nth-child(4) { width: 150%; height: 150%; top: -25%; left: -25%; animation-delay: 2.6s; }

@keyframes ringExpand {
  0% { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.05); }
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-hint .arrow {
  width: 20px;
  height: 32px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  position: relative;
}
.scroll-hint .arrow::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255,255,255,0.5);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 5px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

/* ---------- ABOUT ---------- */
#about {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-stack {
  position: relative;
  height: 480px;
}

.about-card-img {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-lg);
}
.about-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-card-img:first-child {
  width: 70%;
  height: 70%;
  top: 0;
  left: 0;
}
.about-card-img:last-child {
  width: 55%;
  height: 55%;
  bottom: 0;
  right: 0;
  border: 4px solid var(--bg-alt);
}

.about-badge-float {
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  text-align: center;
  box-shadow: 0 12px 40px var(--shadow-lg);
  z-index: 2;
  min-width: 130px;
}
.about-badge-float strong {
  display: block;
  font-family: var(--font-en-disp);
  font-size: 2.5rem;
  font-weight: 800;
  color: #017040;
  line-height: 1;
}
.about-badge-float span { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

.about-content {}
.about-mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.mv-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--trans);
}
.mv-card:hover {
  border-color: var(--teal-light);
  box-shadow: 0 8px 32px var(--shadow);
  transform: translateY(-3px);
}
.mv-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}
.mv-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.mv-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.value-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--trans);
}
.value-chip:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.value-chip .vi { font-size: 1rem; }

/* ---------- SERVICES ---------- */
#services {
  padding: var(--section-pad) 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
#services::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(26,122,114,0.07) 0%, transparent 70%);
}

.services-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 4rem;
}
.services-head .section-desc { margin: 0 auto; }
.services-head .section-label { justify-content: center; }
.services-head .section-label::before { display: none; }

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  box-shadow: 0 16px 48px var(--shadow);
  border-color: transparent;
  transform: translateY(-5px);
}

.service-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, rgba(26,122,114,0.12), rgba(26,43,82,0.12));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: all var(--trans);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--teal), var(--navy));
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---------- PROJECTS ---------- */
#projects {
  padding: var(--section-pad) 0;
  background: var(--bg-alt);
}

.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--trans);
}
.project-card:hover {
  box-shadow: 0 20px 60px var(--shadow-lg);
  transform: translateY(-6px);
}

.project-card-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  padding: 2rem;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  align-items: flex-end;
}
.project-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.project-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(42,168,158,0.25);
  border: 1px solid rgba(42,168,158,0.4);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal-light);
  position: relative;
}
.project-icon-bg {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 4rem;
  opacity: 0.08;
}

.project-card-body {
  padding: 1.5rem 1.75rem;
}
.project-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.project-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.project-meta {
  display: flex;
  gap: 1.5rem;
}
.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.project-meta-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.project-meta-item .val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

/* Partners */
.clients-strip {
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-label {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}
.client-logo-item {
  font-family: var(--font-en-disp);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  opacity: 0.55;
  transition: opacity var(--trans);
  letter-spacing: 0.05em;
}
.client-logo-item:hover { opacity: 1; }

/* ---------- WHY US ---------- */
#whyus {
  padding: var(--section-pad) 0;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
}
#whyus::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}
.whyus-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.whyus-content { color: #fff; }
.whyus-content .section-label { color: #017040; }
.whyus-content .section-title { color: #fff; }
.whyus-content .section-desc { color: rgba(255,255,255,0.55); max-width: 100%; }

.features-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-icon-wrap {
  width: 42px;
  height: 42px;
  background: rgba(42,168,158,0.15);
  border: 1px solid rgba(42,168,158,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--trans);
}
.feature-item:hover .feature-icon-wrap {
  background: var(--teal);
  border-color: var(--teal);
}
.feature-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}
.feature-text p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.stats-grid-dark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.stat-card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--trans);
}
.stat-card-dark:hover {
  background: rgba(42,168,158,0.1);
  border-color: rgba(42,168,158,0.3);
  transform: translateY(-4px);
}
.stat-card-dark .num {
  font-family: var(--font-en-disp);
  font-size: 3rem;
  font-weight: 800;
  color: #017040;
  line-height: 1;
  display: block;
}
.stat-card-dark .lbl {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.4rem;
  display: block;
  letter-spacing: 0.05em;
}

/* ---------- CONTACT ---------- */     
#contact {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {}
.contact-info .section-desc { margin-bottom: 2.5rem; }

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--trans);
}
.contact-item:hover {
  border-color: var(--teal-light);
  box-shadow: 0 6px 24px var(--shadow);
  transform: translateX(5px);
}
body.lang-ar .contact-item:hover { transform: translateX(-5px); }
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.15rem;
}
.contact-item-text a,
.contact-item-text span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--trans);
}
.contact-item-text a:hover { color: var(--teal-light); }

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2.5rem;
}
.contact-form-wrap h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.contact-form-wrap p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  transition: all var(--trans);
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(42,168,158,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.form-submit:hover {
  background: linear-gradient(135deg, var(--teal), #017040);
  /*background-color:#017040;*/
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(42,168,158,0.3);
}

a[href^="tel"],
.phone-number {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* ---------- FOOTER ---------- */
#footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.55);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  max-width: 280px;
}
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text span { color: rgba(255,255,255,0.4); }

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--trans);
}
.footer-col ul a:hover { color: #017040; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}
.footer-bottom a { color: #017040; }

/* ============================================
   ANIMATIONS & SCROLL REVEAL
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="left"].revealed,
[data-reveal="right"].revealed { transform: translateX(0); }

/* Delay classes */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-stack { height: 360px; }
  .about-visual { display: none; }
  .whyus-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-desc { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .cta-nav-desktop { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .projects-head { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .about-mission-vision { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid-dark { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SERVICE CARDS — WITH IMAGES
   ============================================ */

.service-card {
  padding: 0;
  overflow: hidden;
}

.service-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--navy-dark);
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
  filter: brightness(1) contrast(1.05) saturate(1.1);
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.06);
  filter: brightness(0.92) contrast(1.05) saturate(1.1);
}

.service-icon-overlay {
  position: absolute;
  bottom: 0.85rem;
  left: 1.25rem;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border: 2px solid rgba(42,168,158,0.5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  transition: background var(--trans), border-color var(--trans);
}

.service-card:hover .service-icon-overlay {
  background: var(--teal);
  border-color: var(--teal-light);
}

.service-body {
  padding: 1.4rem 1.6rem 1.6rem;
}

.service-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.service-body p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* RTL service icon position */
body.lang-ar .service-icon-overlay {
  left: auto;
  right: 1.25rem;
}

/* ============================================
   PROJECT CARDS — WITH IMAGES
   ============================================ */

.project-card-header {
  position: relative;
  padding: 0;
  min-height: 200px;
  overflow: hidden;
  background: var(--navy-dark);
}

.project-card-header img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: brightness(1) contrast(1.05) saturate(1.08);
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}

.project-card:hover .project-card-header img {
  transform: scale(1.05);
  filter: brightness(0.88) contrast(1.05) saturate(1.08);
}

.project-header-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(to top, rgba(10,18,40,0.85) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
}

/* Remove old ::before dot grid from project header since we have a real image now */
.project-card-header::before {
  display: none;
}

/* RTL Adjustments */
body.lang-ar .section-label::before { display: none; }
body.lang-ar .hero-actions { flex-direction: row-reverse; }
body.lang-ar .feature-item { flex-direction: row-reverse; text-align: right; }
body.lang-ar .footer-brand p { max-width: 100%; }
