@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  --green-dark: #0a3d1f;
  --green-mid: #1a6b35;
  --green-light: #2d9e54;
  --green-accent: #4ec97a;
  --gold: #c9a227;
  --gold-light: #e8c558;
  --white: #f8faf8;
  --gray-light: #f0f4f0;
  --gray: #6b7c6b;
  --dark: #0d1f0d;
  --shadow: 0 8px 40px rgba(10,61,31,0.13);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.8;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 999;
  background: rgba(10,61,31,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
  padding: 8px 5% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  padding: 0;
}

.nav-logo-img {
  height: 85px;
  width: auto;
  display: block;
}

.nav-logo-text { color: var(--white); font-family: 'Tajawal', sans-serif; }
.nav-logo-text span { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; }
.nav-logo-text small { font-size: 11px; color: var(--gold-light); font-weight: 300; letter-spacing: 2px; }

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 18px;
}

.nav-links a {
  color: rgba(248,250,248,0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(201,162,39,0.18);
  color: var(--gold-light);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--green-dark) !important;
  font-weight: 700 !important;
  padding: 9px 22px !important;
  border-radius: 10px !important;
}

.nav-cta:hover { background: var(--gold-light) !important; }
.nav-cta.active { background: var(--gold-light) !important; color: var(--green-dark) !important; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0e4a20 45%, #123d1a 100%);
  padding: 172px 8% 70px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(78,201,122,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,162,39,0.09) 0%, transparent 55%);
}

.page-hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78,201,122,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,201,122,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero-content { position: relative; z-index: 2; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(248,250,248,0.55);
  margin-bottom: 18px;
}

.breadcrumb a { color: var(--gold-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: rgba(248,250,248,0.3); }

.page-hero h1 {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--gold-light);
  display: block;
}

.page-hero p {
  font-size: 17px;
  color: rgba(248,250,248,0.72);
  max-width: 540px;
}

/* ===== HERO (home) ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-dark) 0%, #0e4a20 45%, #123d1a 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 162px 8% 60px;
}

/* Video background */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Dark overlay so text stays readable over the video */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 22, 10, 0.80) 0%,
    rgba(8, 38, 16, 0.70) 50%,
    rgba(5, 22, 10, 0.75) 100%
  );
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(78,201,122,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,162,39,0.07) 0%, transparent 55%);
  z-index: 2;
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78,201,122,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,201,122,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 3; max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold-light);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeDown 0.8s ease forwards;
}

.hero-badge::before { content: '★'; color: var(--gold); }

.hero h1 {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 22px;
  animation: fadeUp 0.9s ease 0.1s both;
}

.hero h1 em { font-style: normal; color: var(--gold-light); display: block; }

.hero p {
  font-size: 18px;
  color: rgba(248,250,248,0.75);
  margin-bottom: 40px;
  max-width: 540px;
  animation: fadeUp 0.9s ease 0.25s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s ease 0.4s both;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  padding: 14px 34px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(201,162,39,0.35);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,162,39,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 34px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(248,250,248,0.35);
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.hero-stats {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeRight 1s ease 0.5s both;
  z-index: 3;
}

.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px 28px;
  text-align: center;
}

.stat-card .num {
  font-family: 'Tajawal', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--gold-light);
  display: block;
  line-height: 1;
}

.stat-card .lbl {
  font-size: 12px;
  color: rgba(248,250,248,0.65);
  font-weight: 400;
  margin-top: 4px;
  display: block;
}

/* ===== SECTIONS COMMON ===== */
section { padding: 90px 8%; }

.section-tag {
  display: inline-block;
  background: rgba(45,158,84,0.1);
  color: var(--green-light);
  border: 1px solid rgba(45,158,84,0.3);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray);
  max-width: 580px;
  margin-bottom: 56px;
}

.page-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.page-label .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45,158,84,0.3));
}

.page-label .line.left { background: linear-gradient(90deg, rgba(45,158,84,0.3), transparent); }

/* ===== ABOUT ===== */
.about {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }

.about-card-main {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: var(--radius);
  padding: 48px;
  color: white;
  position: relative;
  overflow: hidden;
}

.about-card-main::after {
  content: 'ATC';
  position: absolute;
  bottom: -20px; left: -10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 140px;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
}

.about-card-main h3 {
  font-family: 'Tajawal', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--gold-light);
}

.about-card-main p { font-size: 15px; color: rgba(255,255,255,0.82); line-height: 1.9; }

.about-card-float {
  position: absolute;
  bottom: -30px; left: -30px;
  background: var(--white);
  border-radius: 14px;
  padding: 20px 28px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 220px;
}

.float-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

.float-text strong {
  display: block;
  font-family: 'Tajawal', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
}

.float-text span { font-size: 12px; color: var(--gray); font-weight: 400; }

.about-content { padding-bottom: 30px; }
.about-content .section-subtitle { margin-bottom: 32px; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}

.value-item { display: flex; gap: 14px; align-items: flex-start; }

.value-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(45,158,84,0.12), rgba(45,158,84,0.06));
  border: 1px solid rgba(45,158,84,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

.value-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 3px;
}

.value-text p { font-size: 12px; color: var(--gray); line-height: 1.6; }

/* ===== SERVICES ===== */
.services { background: var(--gray-light); }
.services-header { text-align: center; }
.services-header .section-subtitle { margin: 0 auto 56px; }

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: all 0.35s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-light), var(--gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(45,158,84,0.15);
  transform: translateY(-6px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: 'Tajawal', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.service-card p { font-size: 14px; color: var(--gray); line-height: 1.8; }

.service-sub {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  background: rgba(45,158,84,0.08);
  color: var(--green-mid);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

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

.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

.projects-header .section-subtitle { margin-bottom: 0; }

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

.project-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 32px;
  border-right: 5px solid var(--green-light);
  transition: all 0.3s;
}

.project-card:nth-child(even) { border-right-color: var(--gold); }

.project-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(-4px);
}

.project-date {
  display: inline-block;
  background: rgba(45,158,84,0.1);
  color: var(--green-mid);
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.project-card:nth-child(even) .project-date {
  background: rgba(201,162,39,0.1);
  color: #8a6e0d;
}

.project-card h3 {
  font-family: 'Tajawal', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 14px;
  line-height: 1.4;
}

.project-items { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.project-items li {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-items li::before { content: '✓'; color: var(--green-light); font-weight: 700; flex-shrink: 0; }

/* ===== VISION ===== */
.vision {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0e4a22 100%);
  padding: 90px 8%;
  position: relative;
  overflow: hidden;
}

.vision::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(78,201,122,0.06);
  top: -200px; left: -200px;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.vision-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all 0.35s;
}

.vision-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }

.vision-card-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  margin: 0 auto 24px;
}

.vision-card h3 {
  font-family: 'Tajawal', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.vision-card p { font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.9; }

/* ===== VISION STATS ===== */
.vision-stats {
  background: var(--white);
  padding: 90px 8%;
  text-align: center;
}

.vision-stats-sub {
  margin: 0 auto 56px;
}

.vision-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.vision-stat-item {
  padding: 32px 16px;
  background: var(--gray-light);
  border-radius: var(--radius);
}

.vision-stat-num {
  font-family: 'Tajawal', sans-serif;
  font-size: 52px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--green-mid), var(--green-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.vision-stat-lbl {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-dark);
}

/* ===== WHY US ===== */
.why { background: var(--gray-light); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 10px;
}

.why-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(10,61,31,0.06);
  transition: all 0.3s;
}

.why-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.why-num {
  font-family: 'Tajawal', sans-serif;
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--green-mid), var(--green-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.why-card h4 { font-size: 15px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.why-card p { font-size: 13px; color: var(--gray); line-height: 1.7; }

/* ===== CONTACT ===== */
.contact {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 12px; }
.contact-info .section-subtitle { margin-bottom: 40px; }

.contact-items { display: flex; flex-direction: column; gap: 22px; }

.contact-item { display: flex; align-items: flex-start; gap: 18px; }

.contact-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 3px;
}

.contact-item-text span { font-size: 14px; color: var(--gray); }

.contact-form {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form h3 {
  font-family: 'Tajawal', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 28px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(45,158,84,0.2);
  border-radius: 10px;
  background: var(--white);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  color: var(--dark);
  outline: none;
  transition: border-color 0.25s;
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(45,158,84,0.1);
}

.form-group textarea { height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(10,61,31,0.3);
}

.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(10,61,31,0.4); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 8% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.9;
  margin-top: 16px;
  max-width: 280px;
}

.footer-brand .brand-name {
  font-family: 'Tajawal', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot { width: 10px; height: 10px; background: var(--gold); border-radius: 50%; display: inline-block; }

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(201,162,39,0.3);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom span { color: var(--gold-light); }

/* ===== DIVIDER ===== */
.divider {
  height: 4px;
  background: linear-gradient(90deg, var(--green-dark), var(--gold), var(--green-light), var(--green-dark));
  background-size: 300% 100%;
  animation: shimmer 4s linear infinite;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translate(-40px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ===== GALLERY ===== */
.gallery-nav-bar {
  background: var(--gray-light);
  padding: 20px 8%;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(45,158,84,0.12);
  position: sticky;
  top: 152px;
  z-index: 90;
}

.gallery-nav-bar span {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}

.gallery-nav-link {
  background: var(--white);
  border: 1px solid rgba(45,158,84,0.2);
  color: var(--green-mid);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.gallery-nav-link:hover,
.gallery-nav-link.variety {
  background: var(--green-dark);
  color: var(--gold-light);
  border-color: var(--green-dark);
}

.gallery-section {
  padding: 72px 8%;
}

.gallery-section:nth-child(even) {
  background: var(--gray-light);
}

.gallery-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: white;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.gallery-section-header h2 {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.gallery-section-header p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

.photo-count {
  background: rgba(45,158,84,0.08);
  color: var(--green-mid);
  border: 1px solid rgba(45,158,84,0.2);
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: linear-gradient(135deg, #deeee5, #c5ddd0);
  border: 2px dashed rgba(45,158,84,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border: none;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
}

.gallery-ph .ph-icon {
  font-size: 30px;
  opacity: 0.4;
  line-height: 1;
}

.gallery-ph .ph-label {
  font-size: 11.5px;
  color: var(--gray);
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,61,31,0.78) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: white;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* Variety section */
.variety-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0e4a22 100%) !important;
  position: relative;
  overflow: hidden;
}

.variety-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(78,201,122,0.06);
  top: -250px; right: -200px;
  pointer-events: none;
}

.variety-section .gallery-section-header h2 { color: white; }
.variety-section .gallery-section-header p { color: rgba(255,255,255,0.6); }
.variety-section .project-badge {
  background: rgba(201,162,39,0.2);
  color: var(--gold-light);
  border: 1px solid rgba(201,162,39,0.35);
}
.variety-section .photo-count {
  background: rgba(255,255,255,0.08);
  color: var(--gold-light);
  border-color: rgba(255,255,255,0.15);
}
.variety-section .gallery-item {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}
.variety-section .gallery-ph .ph-icon { color: rgba(255,255,255,0.5); }
.variety-section .gallery-ph .ph-label { color: rgba(255,255,255,0.55); }

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.lightbox-close:hover { background: rgba(255,255,255,0.22); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.22); }

.lightbox-prev { right: 24px; }
.lightbox-next { left: 24px; }

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 600;
  background: rgba(0,0,0,0.45);
  padding: 8px 22px;
  border-radius: 50px;
  white-space: nowrap;
  max-width: 80vw;
  text-align: center;
}

/* ===== HAMBURGER BUTTON ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  transition: background 0.2s;
  flex-shrink: 0;
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
}

.nav-hamburger:hover { background: rgba(255,255,255,0.15); }

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE MENU ===== */
.mobile-nav {
  position: fixed;
  top: 72px;
  right: 0; left: 0;
  background: rgba(6, 36, 15, 0.98);
  backdrop-filter: blur(18px);
  z-index: 998;
  transform: translateY(-110%);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 2px solid var(--gold);
  padding: 10px 5% 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.mobile-nav.open { transform: translateY(0); }

.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.mobile-nav ul li a {
  display: block;
  color: rgba(248,250,248,0.85);
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 18px;
  border-radius: 10px;
  transition: all 0.2s;
  border-right: 3px solid transparent;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
  background: rgba(201,162,39,0.12);
  color: var(--gold-light);
  border-right-color: var(--gold);
}

.mobile-nav .mobile-cta a {
  background: var(--gold) !important;
  color: var(--green-dark) !important;
  font-weight: 700 !important;
  text-align: center;
  margin-top: 8px;
  border-right-color: transparent !important;
}

.mobile-nav .mobile-cta a:hover { background: var(--gold-light) !important; }

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  top: 72px;
  background: rgba(0,0,0,0.45);
  z-index: 997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-nav-overlay.open { opacity: 1; pointer-events: all; }

/* ===== RESPONSIVE — TABLET (≤1024px) ===== */
@media (max-width: 1024px) {
  nav { padding: 0 4%; flex-direction: row; height: 72px; justify-content: center; gap: 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo-img { height: 56px; }
  .page-hero { padding: 100px 6% 60px; }
  .gallery-nav-bar { top: 72px; }

  section { padding: 80px 6%; }
  .hero { padding: 100px 6% 60px; }
  .about, .contact { grid-template-columns: 1fr; gap: 56px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-stats { display: none; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-header { flex-direction: column; align-items: flex-start; }
  .vision-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ===== RESPONSIVE — MOBILE (≤768px) ===== */
@media (max-width: 768px) {
  nav { height: 64px; }
  .nav-logo-img { height: 44px; }
  .mobile-nav { top: 64px; }
  .mobile-nav-overlay { top: 64px; }
  .gallery-nav-bar { top: 64px; }

  section { padding: 60px 5%; }
  .page-hero { padding: 96px 5% 48px; }
  .hero { padding: 84px 5% 50px; }
  .hero-badge { font-size: 12px; padding: 6px 14px; margin-bottom: 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .vision { padding: 60px 5%; }
  .vision-stats { padding: 60px 5%; }
  .vision-stats-sub { margin-bottom: 36px; }
  .vision-stats-grid { gap: 14px; }

  /* About floating card */
  .about-card-float {
    position: relative;
    bottom: auto; left: auto;
    margin-top: 24px;
    width: fit-content;
  }
  .about-visual { padding-bottom: 0; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-nav-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 12px 5%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-nav-bar::-webkit-scrollbar { display: none; }
  .gallery-section { padding: 56px 5%; }
  .gallery-section-header { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Contact */
  .contact-form { padding: 28px 22px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}

/* ===== SUB-MENU DROPDOWN ===== */
.nav-links li { position: relative; }
.nav-links li .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 190px;
  background: rgba(10,61,31,0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 10px;
  padding: 6px 0;
  list-style: none;
  z-index: 1001;
  box-shadow: 0 8px 28px rgba(0,0,0,0.32);
  animation: dropIn 0.18s ease;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.nav-links li:hover > .dropdown,
.nav-links li:focus-within > .dropdown { display: block; }
.nav-links li .dropdown > li > a {
  display: block;
  padding: 10px 18px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.875rem;
  font-family: 'Cairo', sans-serif;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  border-right: 3px solid transparent;
}
.nav-links li .dropdown > li > a:hover {
  background: rgba(201,162,39,0.14);
  color: var(--gold, #c9a227);
  border-right-color: var(--gold, #c9a227);
}

/* ===== RESPONSIVE — SMALL MOBILE (≤480px) ===== */
@media (max-width: 480px) {
  .nav-logo-img { height: 38px; }

  .hero { padding: 78px 4% 44px; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; width: 100%; }

  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-item { border-radius: 10px; }
  .gallery-ph .ph-icon { font-size: 24px; }
  .gallery-ph .ph-label { font-size: 10.5px; }

  .vision-grid { grid-template-columns: 1fr; }
  .vision { padding: 48px 4%; }
  .vision-stats { padding: 48px 4%; }
  .vision-stats-grid { gap: 12px; }
  .vision-stat-item { padding: 22px 10px; }
  .vision-stat-num { font-size: 38px; }
  .vision-stat-lbl { font-size: 13px; }
  .contact-form { padding: 22px 16px; }
  .about-card-main { padding: 32px 24px; }
  .service-card { padding: 28px 22px; }
  .project-card { padding: 24px 18px; }
}

/* =========================================
   RTL to LTR OVERRIDES
   ========================================= */

[dir="ltr"] .hero-stats {
  left: auto;
  right: 8%;
}

[dir="ltr"] .about-card-main::after {
  left: auto;
  right: -10px;
}

[dir="ltr"] .about-card-float {
  left: auto;
  right: -30px;
}

[dir="ltr"] .service-card::before {
  transform-origin: left;
}

[dir="ltr"] .project-card {
  border-right: none;
  border-left: 5px solid var(--green-light);
}

[dir="ltr"] .project-card:nth-child(even) {
  border-right-color: transparent;
  border-left-color: var(--gold);
}

[dir="ltr"] .vision::before {
  left: auto;
  right: -200px;
}

[dir="ltr"] .nav-links li .dropdown {
  right: auto;
  left: 0;
}

[dir="ltr"] .nav-links li .dropdown > li > a {
  border-right: none;
  border-left: 3px solid transparent;
}

[dir="ltr"] .nav-links li .dropdown > li > a:hover {
  border-right-color: transparent;
  border-left-color: var(--gold, #c9a227);
}

[dir="ltr"] .page-label .line {
  background: linear-gradient(270deg, transparent, rgba(45,158,84,0.3));
}

[dir="ltr"] .page-label .line.left {
  background: linear-gradient(270deg, rgba(45,158,84,0.3), transparent);
}

[dir="ltr"] .lightbox-prev {
  right: auto;
  left: 24px;
  transform: scaleX(-1);
}

[dir="ltr"] .lightbox-next {
  left: auto;
  right: 24px;
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  [dir="ltr"] .about-card-float {
    left: auto;
    right: auto;
  }
}
