:root {
  --green-dark: #0d3d2f;
  --green-mid: #1a5e43;
  --green-main: #2d8c5e;
  --green-light: #3dbd7e;
  --green-accent: #5fe89e;
  --text-white: #f0fff6;
  --text-muted: #a8d4be;
  --card-bg: rgba(255,255,255,0.05);
  --card-border: rgba(93, 232, 158, 0.15);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background-color: var(--green-dark);
  color: var(--text-white);
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--green-dark); }
::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 3px; }

/* ── NAVBAR ── */
.navbar {

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(61, 189, 126, 0.18);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand img { height: 44px; }

.navbar-brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}
.navbar-brand-text small {
  font-size: 0.65rem;
  color: var(--green-accent);
  font-weight: 400;
  display: block;
  letter-spacing: 1px;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem !important;
  border-radius: 6px;
  transition: all 0.25s;
}
.nav-link:hover, .nav-link.active {
  color: var(--green-accent) !important;
  background: rgba(93,232,158,0.08);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-dark) 0%, #0a2a1f 40%, #081e16 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(45,140,94,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(61,189,126,0.10) 0%, transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(93,232,158,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93,232,158,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-badge {
  display: inline-block;
  background: rgba(93,232,158,0.12);
  border: 1px solid rgba(93,232,158,0.3);
  color: var(--green-accent);
  font-size: 0.78rem;
  letter-spacing: 2px;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-white);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--green-light), var(--green-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--green-main), var(--green-light));
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(45,140,94,0.35);
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45,140,94,0.5);
  color: #fff;
}

.btn-outline-custom {
  border: 1.5px solid var(--green-light);
  color: var(--green-light);
  background: transparent;
  font-weight: 600;
  padding: 0.78rem 1.8rem;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.btn-outline-custom:hover {
  background: rgba(61,189,126,0.1);
  color: var(--green-accent);
  border-color: var(--green-accent);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

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

.hero-logo-glow {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,140,94,0.25) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(93,232,158,0.12), 0 0 0 20px rgba(93,232,158,0.06); }
  50% { box-shadow: 0 0 0 20px rgba(93,232,158,0.06), 0 0 0 40px rgba(93,232,158,0.03); }
}

.hero-logo-inner {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-main));
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  border: 1px solid rgba(93,232,158,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  font-family: 'Tajawal', sans-serif;
}

.floating-card {
  position: absolute;
  background: rgba(13,61,47,0.85);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.floating-card.c1 { top: 10%; left: -10%; animation: float1 4s ease-in-out infinite; }
.floating-card.c2 { bottom: 15%; right: -8%; animation: float2 5s ease-in-out infinite; }
.floating-card.c3 { top: 55%; left: -15%; animation: float1 3.5s ease-in-out infinite 1s; }

@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }

/* ── SECTIONS ── */
section { padding: 5rem 0; }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.2;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 600px;
}

/* ── ABOUT ── */
.about-section { background: linear-gradient(180deg, var(--green-dark), #081e16); }

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.about-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-main), var(--green-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

/* ── SERVICES ── */
.services-section {
  background: #081e16;
  position: relative;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-main), var(--green-accent));
  transform: scaleX(0);
  transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(93,232,158,0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.service-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(45,140,94,0.3), rgba(61,189,126,0.15));
  border: 1px solid rgba(93,232,158,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.4rem;
  transition: all 0.3s;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--green-main), var(--green-light));
  border-color: transparent;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.service-list li::before {
  content: '▸';
  color: var(--green-accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── VALUES ── */
.values-section { background: var(--green-dark); }

.value-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s;
}
.value-pill:hover {
  background: rgba(45,140,94,0.12);
  border-color: rgba(93,232,158,0.3);
}
.value-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-main), var(--green-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.value-name { font-weight: 700; color: var(--text-white); font-size: 1rem; }
.value-desc { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.1rem; }

/* ── TEAM ── */
.team-section { background: #081e16; }

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: all 0.3s;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(93,232,158,0.35);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.team-card.team-leader {
  border-color: rgba(93,232,158,0.4);
}

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-main), var(--green-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
  color: white;
  font-weight: 700;
  border: 3px solid rgba(93,232,158,0.25);
  overflow: hidden;
}
.leader-avatar {
  background: linear-gradient(135deg, #1a5e43, #3dbd7e);
}

.team-name { font-weight: 700; font-size: 0.9rem; color: var(--text-white); line-height: 1.3; }
.team-role {
  font-size: 0.75rem;
  color: var(--green-accent);
  background: rgba(93,232,158,0.1);
  border: 1px solid rgba(93,232,158,0.2);
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
  display: inline-block;
  margin-top: 0.5rem;
}

/* ── WHY US ── */
.why-section { background: var(--green-dark); }

.why-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  transition: all 0.3s;
}
.why-item:hover {
  background: rgba(45,140,94,0.1);
  border-color: rgba(93,232,158,0.25);
}
.why-num {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-main), var(--green-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}
.why-title { font-weight: 700; font-size: 1rem; color: var(--text-white); }
.why-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-top: 0.3rem; }

/* ── CONTACT ── */
.contact-section { background: #081e16; }

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45,140,94,0.3), rgba(61,189,126,0.15));
  border: 1px solid rgba(93,232,158,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--green-accent);
}
.contact-label { font-size: 0.75rem; color: var(--text-muted); }
.contact-value { font-size: 0.92rem; color: var(--text-white); font-weight: 600; }

/* ── FOOTER ── */
footer {
  background: #040f0a;
  border-top: 1px solid var(--card-border);
  padding: 2rem 0;
}
.footer-text { color: var(--text-muted); font-size: 0.85rem; }

/* ── DIVIDER ── */
.green-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--green-main), var(--green-accent));
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ── NAV TOGGLE ── */
.navbar-toggler {
  border-color: rgba(93,232,158,0.3);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2893, 232, 158, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── FADE IN ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Form Controls (Dark Theme) ── */
.form-control-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  color: var(--text-white);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}
.form-control-dark::placeholder {
  color: var(--text-muted);
}
.form-control-dark:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--green-light);
  color: var(--text-white);
  box-shadow: 0 0 0 0.2rem rgba(45,140,94,0.25);
}

/* ── Social Links ── */
.social-icon-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(93,232,158,0.08);
  border: 1px solid rgba(93,232,158,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-accent);
  font-size: 1.1rem;
  transition: all 0.3s;
  text-decoration: none;
}
.social-icon-link:hover {
  background: linear-gradient(135deg, var(--green-main), var(--green-light));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45,140,94,0.4);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(93,232,158,0.08);
  border: 1px solid rgba(93,232,158,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-accent);
  font-size: 0.95rem;
  transition: all 0.3s;
  text-decoration: none;
}
.footer-social-link:hover {
  background: linear-gradient(135deg, var(--green-main), var(--green-light));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ── Hero Full-Width Slider ── */
.hero-slider-active {
  position: relative;
  overflow: hidden;
  background: #040d07;
}
.hero-slider-active::before {
  display: none;
}
.hero-fullbg-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-fullbg-carousel .carousel-inner {
  position: absolute !important;
  inset: 0 !important;
  height: auto !important;
  overflow: hidden;
}
.hero-fullbg-carousel .carousel-item {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  float: none !important;
  margin-right: 0 !important;
  display: block !important;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url('/images/hero-bg.svg');
  opacity: 0 !important;
  transition: opacity 1.2s ease-in-out !important;
  transform: none !important;
}
.hero-fullbg-carousel .carousel-item.active {
  opacity: 1 !important;
  z-index: 1;
}
.hero-slide-color-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-content-z {
  position: relative;
  z-index: 2;
}
/* ── Slide Panel (right column) ── */
.hero-slide-panel {
  width: 100%;
  padding: 2.5rem 2rem;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(93,232,158,0.12);
  border-radius: 20px;
}
.slide-panel-item {
  display: none;
  animation: fadeSlideIn 0.5s ease;
}
.slide-panel-item.active { display: block; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-panel-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.slide-panel-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0;
  line-height: 1.7;
}
/* ── Slider Arrow Controls ── */
.hero-slider-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero-slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(93,232,158,0.1);
  border: 1.5px solid rgba(93,232,158,0.35);
  color: var(--green-accent);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}
.hero-slider-arrow:hover {
  background: var(--green-accent);
  border-color: var(--green-accent);
  color: #0a1a14;
  transform: scale(1.08);
}
.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}
.hero-dot.active {
  background: var(--green-accent);
  width: 24px;
  border-radius: 4px;
}

/* ── Clients Section ── */
.clients-section {
  padding: 4rem 0;
  background: var(--dark-card);
  border-top: 1px solid rgba(93,232,158,0.06);
  border-bottom: 1px solid rgba(93,232,158,0.06);
  overflow: hidden;
}
.clients-marquee-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.clients-marquee {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  padding: 1rem 0;
}
.clients-marquee:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(93,232,158,0.08);
  border-radius: 12px;
  transition: all 0.3s;
  min-width: 140px;
  height: 80px;
}
.client-logo-item:hover {
  background: rgba(93,232,158,0.06);
  border-color: rgba(93,232,158,0.2);
  transform: translateY(-2px);
}
.client-logo-item img {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(40%) brightness(1.1);
  transition: filter 0.3s;
}
.client-logo-item:hover img { filter: grayscale(0%) brightness(1.2); }
.client-logo-item a { display: flex; align-items: center; text-decoration: none; }
.client-name-fallback {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  transition: color 0.3s;
}
.client-logo-item:hover .client-name-fallback { color: var(--green-accent); }
