/* ===================================================
   NCTES — New Centre Trading & Engineering Services
   Main Stylesheet
   =================================================== */

:root {
  --purple-950: #200d30;
  --purple-900: #3a1856;
  --purple-800: #4c2270;
  --purple-700: #5e2a89;
  --purple-600: #7132a3;
  --purple-500: #8b45c2;
  --purple-100: #f4ecf9;
  --purple-50:  #faf6fc;
  --gold: #c9a24b;
  --gold-light: #e4c876;
  --gold-dark: #a98332;
  --ink: #1b1620;
  --slate: #5a5462;
  --paper: #f8f6fa;
  --white: #ffffff;
  --line: #e6dfee;
  --shadow: 0 20px 50px -20px rgba(44, 18, 64, 0.35);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
  --ff-display: 'Oswald', sans-serif;
  --ff-body: 'Barlow', sans-serif;
  --ff-ar: 'Cairo', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* RTL Arabic Typography */
html[dir="rtl"] body {
  font-family: var(--ff-ar);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .btn,
html[dir="rtl"] .stat-num,
html[dir="rtl"] .badge30 {
  font-family: var(--ff-ar);
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--purple-900);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

section {
  padding: 90px 0;
  position: relative;
  scroll-margin-top: 70px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  color: var(--purple-900);
}

.section-head p {
  color: var(--slate);
  margin-top: 16px;
  font-size: 17px;
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 3px;
  border: 1.5px solid var(--purple-900);
  color: var(--purple-900);
  transition: all 0.25s ease;
  cursor: pointer;
  background: transparent;
  text-align: center;
}

.btn:hover {
  background: var(--purple-900);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58, 24, 86, 0.2);
}

.btn.filled {
  background: var(--purple-800);
  color: #fff;
  border-color: var(--purple-800);
}

.btn.filled:hover {
  background: var(--purple-950);
  border-color: var(--purple-950);
}

.btn.gold {
  border-color: var(--gold);
  color: var(--purple-950);
  background: var(--gold);
}

.btn.gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--purple-950);
}

/* ===================================================
   HEADER & NAVIGATION
   =================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

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

.logo-mark {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #ffffff;
  border: 1.5px solid var(--gold);
  box-shadow: 0 3px 10px rgba(44, 18, 64, 0.12);
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.logo-text {
  color: var(--purple-900);
  line-height: 1.15;
}

.logo-text .en {
  font-family: var(--ff-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.logo-text .sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--purple-800);
  font-size: 14.5px;
  letter-spacing: 0.02em;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--gold-dark);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-btn {
  border: 1.5px solid var(--purple-700);
  color: var(--purple-800);
  background: transparent;
  padding: 7px 16px;
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
  font-weight: 600;
}

.lang-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--purple-950);
}

/* Mobile Menu Button */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1001;
}

.burger span {
  width: 26px;
  height: 2.5px;
  background: var(--purple-900);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--purple-950);
  padding: 30px 24px;
  flex-direction: column;
  gap: 18px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  display: flex;
}

.mobile-menu a {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--ff-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-menu a:hover {
  color: var(--gold-light);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(32, 13, 48, 0.92) 0%, rgba(58, 24, 86, 0.85) 45%, rgba(44, 18, 64, 0.65) 100%),
    url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
  padding-top: 90px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--purple-800));
  pointer-events: none;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 28px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: end;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(228, 200, 118, 0.4);
  background: rgba(44, 18, 64, 0.4);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 3px;
  margin-bottom: 24px;
}

.badge30 {
  font-family: var(--ff-display);
  font-size: 28px;
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1;
}

.hero-badge .txt {
  color: #f2eaf8;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.hero h1 {
  color: #fff;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  font-weight: 600;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero .tagline {
  display: inline-block;
  margin-top: 20px;
  background: var(--gold);
  color: var(--purple-950);
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 2px;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-side {
  color: #f0e6f7;
  border-left: 3px solid var(--gold);
  padding-left: 24px;
}

html[dir="rtl"] .hero-side {
  border-left: none;
  border-right: 3px solid var(--gold);
  padding-left: 0;
  padding-right: 24px;
}

.hero-side p {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.95;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: #cbb9de;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.scroll-cue .line {
  width: 1.5px;
  height: 34px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ===================================================
   3D ISOMETRIC SKYLINE
   =================================================== */
.skyline-wrap {
  position: relative;
  background: linear-gradient(180deg, var(--purple-800) 0%, var(--purple-900) 100%);
  padding: 64px 0 0;
  overflow: hidden;
}

.skyline-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.skyline-head {
  position: relative;
  text-align: center;
  margin-bottom: 30px;
}

.skyline-head .eyebrow {
  color: var(--gold-light);
}

.skyline-head h3 {
  color: #fff;
  font-size: clamp(22px, 2.6vw, 32px);
}

.iso-scene {
  position: relative;
  height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  perspective: 1200px;
}

.iso-building {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(52deg) rotateZ(-40deg);
  margin: 0 -6px;
  transition: transform 0.6s ease;
}

.iso-face {
  position: absolute;
}

.iso-top {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  top: 0;
  left: 0;
}

.iso-side-a {
  width: 64px;
  transform-origin: top;
  transform: rotateX(-90deg);
  background: linear-gradient(180deg, var(--purple-500), var(--purple-700));
  top: 0;
  left: 0;
}

.iso-side-b {
  height: 64px;
  transform-origin: left;
  transform: rotateY(90deg);
  background: linear-gradient(90deg, var(--purple-800), var(--purple-950));
  top: 0;
  left: 0;
}

.iso-building .iso-side-a { height: var(--h); }
.iso-building .iso-side-b { width: var(--h); }

.iso-b1 { --h: 90px; }
.iso-b2 { --h: 150px; }
.iso-b3 { --h: 210px; }
.iso-b4 { --h: 130px; }
.iso-b5 { --h: 180px; }
.iso-b6 { --h: 100px; }
.iso-b7 { --h: 240px; }

.crane {
  position: absolute;
  bottom: 0;
  right: 8%;
  width: 2px;
  height: 230px;
  background: var(--gold-light);
  opacity: 0.9;
}

.crane::before {
  content: '';
  position: absolute;
  top: 0;
  left: -90px;
  width: 140px;
  height: 2px;
  background: var(--gold-light);
}

.crane::after {
  content: '';
  position: absolute;
  top: 0;
  left: -14px;
  width: 2px;
  height: 34px;
  background: var(--gold-light);
}

.crane .hook {
  position: absolute;
  top: 34px;
  left: -90px;
  width: 1.5px;
  height: 60px;
  background: rgba(228, 200, 118, 0.6);
}

.skyline-ground {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-top: -2px;
}

.skyline-caption {
  position: relative;
  text-align: center;
  padding: 26px 0 46px;
  color: #c9bcd8;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ===================================================
   TICKER (CERTIFICATIONS)
   =================================================== */
.ticker-bar {
  background: var(--purple-800);
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 32s linear infinite;
  width: max-content;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker span {
  color: #f2eaf8;
  font-family: var(--ff-display);
  font-size: 13.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}

.ticker span::after {
  content: '◆';
  color: var(--gold);
  font-size: 9px;
  margin-left: 14px;
}

html[dir="rtl"] .ticker span::after {
  margin-left: 0;
  margin-right: 14px;
}

/* ===================================================
   ABOUT SECTION
   =================================================== */
.about {
  background: var(--white);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  background-image: linear-gradient(rgba(91, 42, 137, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 42, 137, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at right, black, transparent 75%);
  pointer-events: none;
}

html[dir="rtl"] .about::before {
  right: auto;
  left: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: start;
}

.about-img {
  position: relative;
}

.about-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.about-img .frame {
  position: absolute;
  top: 18px;
  left: -18px;
  right: 18px;
  bottom: -18px;
  border: 2px solid var(--gold);
  z-index: -1;
  border-radius: 4px;
}

html[dir="rtl"] .about-img .frame {
  left: 18px;
  right: -18px;
}

.md-quote {
  background: var(--purple-900);
  color: #fff;
  padding: 24px 28px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
  margin-left: -20px;
  max-width: 360px;
  box-shadow: var(--shadow);
  border-radius: 3px;
  border-left: 3px solid var(--gold);
}

html[dir="rtl"] .md-quote {
  margin-left: 0;
  margin-right: -20px;
  border-left: none;
  border-right: 3px solid var(--gold);
}

.md-quote .name {
  font-family: var(--ff-display);
  color: var(--gold-light);
  font-size: 15px;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 10px;
}

.md-quote .role {
  font-size: 12px;
  color: #cbb9de;
  margin-top: 2px;
}

.about-copy p {
  color: var(--slate);
  margin-bottom: 18px;
  font-size: 16px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--ff-display);
  font-size: 40px;
  color: var(--purple-800);
  font-weight: 700;
  line-height: 1;
}

.stat-lbl {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 6px;
  font-weight: 600;
}

/* ===================================================
   VISION, MISSION, VALUES
   =================================================== */
.vmv {
  background: var(--purple-800);
  color: #fff;
  position: relative;
}

.vmv::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1519575706483-221029bfd7de?q=80&w=1600&auto=format&fit=crop') center/cover;
  opacity: 0.12;
}

.vmv .wrap {
  position: relative;
  z-index: 2;
}

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

.vmv-card {
  background: rgba(32, 13, 48, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 36px 30px;
  border-radius: 4px;
}

.vmv-card h3 {
  color: var(--gold-light);
  font-size: 21px;
  margin-bottom: 14px;
}

.vmv-card p {
  color: #e3d7ee;
  font-size: 15px;
}

.vmv-card ul {
  margin-top: 6px;
}

.vmv-card li {
  color: #e3d7ee;
  font-size: 14.5px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  list-style: none;
  position: relative;
  padding-left: 18px;
}

html[dir="rtl"] .vmv-card li {
  padding-left: 0;
  padding-right: 18px;
}

.vmv-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

html[dir="rtl"] .vmv-card li::before {
  left: auto;
  right: 0;
}

/* ===================================================
   TIMELINE (OUR JOURNEY)
   =================================================== */
.timeline {
  background: var(--paper);
}

.tl-track {
  position: relative;
  margin-top: 30px;
}

.tl-track::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--line);
}

.tl-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tl-item {
  position: relative;
  padding-top: 52px;
}

.tl-dot {
  position: absolute;
  top: 12px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 2px var(--purple-800);
}

html[dir="rtl"] .tl-dot {
  left: auto;
  right: 0;
}

.tl-year {
  font-family: var(--ff-display);
  font-size: 32px;
  color: var(--purple-900);
  font-weight: 700;
}

.tl-item p {
  color: var(--slate);
  font-size: 14.5px;
  margin-top: 10px;
  line-height: 1.6;
}

/* ===================================================
   SERVICES
   =================================================== */
.services {
  background: var(--white);
}

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

.svc-card {
  background: #fff;
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.svc-card:hover {
  background: var(--purple-50);
  border-color: var(--purple-500);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -10px rgba(44, 18, 64, 0.2);
}

.svc-num {
  font-family: var(--ff-display);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
  font-weight: 700;
}

.svc-card h3 {
  font-size: 19px;
  margin: 10px 0 12px;
  color: var(--purple-900);
}

.svc-card p {
  color: var(--slate);
  font-size: 14.5px;
}

/* Sub-Services Tabs */
.sub-services {
  background: var(--purple-100);
}

.sub-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.tab-btn {
  padding: 12px 22px;
  border: 1.5px solid var(--purple-700);
  color: var(--purple-800);
  background: #fff;
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--purple-800);
  color: #fff;
  border-color: var(--purple-800);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mep-block {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: 4px;
}

.mep-block h4 {
  color: var(--purple-800);
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mep-block h4::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--gold);
  display: inline-block;
  border-radius: 2px;
}

.mep-block ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 30px;
  list-style: none;
}

.mep-block li {
  font-size: 15px;
  color: var(--slate);
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}

html[dir="rtl"] .mep-block li {
  padding-left: 0;
  padding-right: 18px;
}

.mep-block li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-size: 12px;
}

html[dir="rtl"] .mep-block li::before {
  left: auto;
  right: 0;
}

/* ===================================================
   STAT BAND
   =================================================== */
.band {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  padding: 50px 0;
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.band-grid .num {
  font-family: var(--ff-display);
  font-size: 44px;
  color: var(--purple-950);
  font-weight: 700;
  line-height: 1;
}

.band-grid .lbl {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-900);
  margin-top: 6px;
  font-weight: 700;
}

/* ===================================================
   CLIENTS
   =================================================== */
.clients {
  background: var(--white);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.client-chip {
  border: 1px solid var(--line);
  padding: 22px 14px;
  text-align: center;
  font-size: 13.5px;
  color: var(--purple-800);
  font-weight: 600;
  transition: all 0.2s;
  border-radius: 3px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-chip:hover {
  border-color: var(--gold);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

/* ===================================================
   PROJECTS GALLERY
   =================================================== */
.projects {
  background: var(--paper);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}

.proj-grid .p1 {
  grid-column: span 2;
  grid-row: span 2;
}

.proj-tile {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.proj-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.proj-tile:hover img {
  transform: scale(1.08);
}

.proj-tile .cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(32, 13, 48, 0.92) 0%, rgba(32, 13, 48, 0.4) 60%, transparent 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ===================================================
   CERTIFICATIONS
   =================================================== */
.certs {
  background: var(--purple-800);
  color: #fff;
}

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

.cert-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.cert-card .tag {
  font-family: var(--ff-display);
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.cert-card h4 {
  color: #fff;
  font-size: 19px;
  margin: 10px 0;
}

.cert-card p {
  color: #d7c8e5;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ===================================================
   CONTACT SECTION
   =================================================== */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.info-row {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.info-ic {
  width: 48px;
  height: 48px;
  background: var(--purple-100);
  color: var(--purple-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border-radius: 4px;
}

.info-row h4 {
  font-size: 14px;
  color: var(--purple-900);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-row p,
.info-row a {
  font-size: 15px;
  color: var(--slate);
  display: block;
}

.info-row a:hover {
  color: var(--gold-dark);
}

.form-card {
  background: var(--purple-100);
  padding: 40px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.form-card h3 {
  font-size: 24px;
  margin-bottom: 22px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple-800);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d4cae0;
  background: #fff;
  font-family: var(--ff-body);
  font-size: 15px;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--purple-600);
  box-shadow: 0 0 0 3px rgba(113, 50, 163, 0.15);
}

html[dir="rtl"] .form-row input,
html[dir="rtl"] .form-row textarea {
  font-family: var(--ff-ar);
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.form-feedback {
  display: none;
  padding: 14px;
  margin-top: 14px;
  border-radius: 3px;
  font-size: 14px;
  text-align: center;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: var(--purple-950);
  color: #d7c8e5;
  padding: 70px 0 28px;
  border-top: 3px solid var(--gold);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-grid h5 {
  color: #fff;
  font-family: var(--ff-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}

.foot-grid p,
.foot-grid a {
  font-size: 14.5px;
  color: #c0b0d3;
  line-height: 2.1;
  display: block;
}

.foot-grid a:hover {
  color: var(--gold-light);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: #9c89b0;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===================================================
   REVEAL ON SCROLL
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .vmv-grid { grid-template-columns: 1fr; }
  .tl-items { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .mep-block ul { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .proj-grid .p1 { grid-column: span 2; grid-row: span 1; }
  .cert-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .md-quote { margin-left: 0; max-width: none; margin-top: 20px; }
  html[dir="rtl"] .md-quote { margin-right: 0; }
  .about-img .frame { display: none; }
}

@media (max-width: 600px) {
  section { padding: 60px 0; }
  .wrap { padding: 0 20px; }
  .tl-items { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .proj-grid .p1 { grid-column: span 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
}
