/* ============================================================
   YRD HVAC Website — Main Stylesheet
   Theme: Shady Green & White | Font: Cairo (Arabic + Latin)
   Mobile-first | RTL Support | Production-Quality
   ============================================================ */

/* ------------------------------------------------------------
   CSS VARIABLES
   ------------------------------------------------------------ */
:root {
  --primary-green: #2e7d32;
  --accent-green: #00c853;
  --dark-green: #1b5e20;
  --light-green-1: #e8f5e9;
  --light-green-2: #f0f7f0;
  --white: #ffffff;
  --text-dark: #1b5e20;
  --text-body: #444444;
  --text-muted: #666666;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --radius: 12px;
  --radius-lg: 16px;
  --navbar-height: 70px;
  --transition: 0.3s ease;
}

/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-body);
  line-height: 1.6;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------------------------------------
   NAVBAR
   ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  /* LTR: white on left (logo), green on right */
  background: linear-gradient(to right, #ffffff 0%, #ffffff 15%, #2e7d32 40%, #2e7d32 100%);
  transition: background var(--transition);
}

/* RTL: flip the gradient direction */
[dir='rtl'] .navbar {
  background: linear-gradient(to left, #ffffff 0%, #ffffff 15%, #2e7d32 40%, #2e7d32 100%);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Logo --- */
.navbar-logo img {
  height: 50px;
  mix-blend-mode: multiply; /* hides white logo background */
}

/* --- Nav Links --- */
.nav-links ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 8px 16px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: var(--transition);
}

/* Underline indicator — LTR */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-green);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Underline indicator — RTL */
[dir='rtl'] .nav-link::after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-green);
}

/* ------------------------------------------------------------
   NAV RIGHT (language toggle + call button)
   ------------------------------------------------------------ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Language Toggle --- */
.lang-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
}

.lang-btn {
  padding: 6px 14px;
  border: none;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--accent-green);
  color: #fff;
  border-radius: 20px;
}

/* --- Call Now Button --- */
.call-now-btn {
  background: var(--accent-green);
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.call-now-btn:hover {
  background: #00b848;
  transform: translateY(-1px);
}

/* ------------------------------------------------------------
   HAMBURGER (mobile only)
   ------------------------------------------------------------ */
.hamburger {
  display: none; /* shown via media query */
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--transition);
}

/* ------------------------------------------------------------
   MOBILE NAV
   ------------------------------------------------------------ */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-green);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav .nav-link {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

/* ------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  background: linear-gradient(135deg, #ffffff 0%, #f0f7f0 50%, #e8f5e9 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* --- Availability Badge --- */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light-green-1);
  color: var(--primary-green);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 200, 83, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0);
  }
}

/* --- Hero Title --- */
.hero-title {
  font-weight: 900;
  font-size: clamp(30px, 5vw, 54px);
  color: var(--dark-green);
  line-height: 1.2;
  margin-bottom: 16px;
}

/* --- Hero Tagline --- */
.hero-tagline {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-body);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* --- Hero Buttons --- */
.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Cairo', sans-serif;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-phone {
  background: var(--primary-green);
  color: #fff;
}

.btn-phone:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-green);
  display: block;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Hero Card (right side) --- */
.hero-card {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--light-green-1);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.hero-card-title {
  font-weight: 800;
  font-size: 18px;
  color: var(--dark-green);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-green-1);
}

.hero-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.hero-card-item .card-icon {
  width: 36px;
  height: 36px;
  background: var(--light-green-1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  flex-shrink: 0;
}

.hero-card-item .card-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
}

.hero-card-badge {
  margin-top: 16px;
  background: var(--accent-green);
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

/* ------------------------------------------------------------
   TICKER SECTION
   ------------------------------------------------------------ */
.ticker-section {
  background: var(--primary-green);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  animation: ticker-scroll 30s linear infinite;
}

/* RTL: scroll in opposite direction */
[dir='rtl'] .ticker-track {
  animation-direction: reverse;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.ticker-item {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 0 12px;
}

.ticker-dot {
  color: var(--accent-green);
  font-size: 18px;
  padding: 0 4px;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------------------
   SECTION HEADER (shared component)
   ------------------------------------------------------------ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  background: var(--light-green-1);
  color: var(--primary-green);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-title {
  font-weight: 900;
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--dark-green);
  margin-bottom: 12px;
  line-height: 1.3;
}

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

/* ------------------------------------------------------------
   SERVICES SECTION
   ------------------------------------------------------------ */
.services-section {
  padding: 80px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.service-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--light-green-1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  margin-bottom: 16px;
}

.service-title {
  font-weight: 800;
  font-size: 18px;
  color: var(--dark-green);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.service-btn:hover {
  color: var(--accent-green);
  gap: 10px;
}

/* ------------------------------------------------------------
   BRANDS SECTION
   ------------------------------------------------------------ */
.brands-section {
  text-align: center;
  padding-top: 16px;
}

.brands-label {
  font-weight: 800;
  font-size: 18px;
  color: var(--dark-green);
  margin-bottom: 20px;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.brand-pill {
  background: var(--light-green-1);
  color: var(--primary-green);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: var(--transition);
}

.brand-pill:hover {
  border-color: var(--primary-green);
  background: #fff;
}

/* ------------------------------------------------------------
   ABOUT SECTION
   ------------------------------------------------------------ */
.about-section {
  padding: 80px 0;
  background: var(--light-green-1);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.about-description {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
}

.about-stats-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid #e0e0e0;
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

.stat-box .stat-number {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-green);
  margin-bottom: 4px;
}

.stat-box .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- About Features --- */
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e0e0e0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--light-green-1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  flex-shrink: 0;
  font-size: 20px;
}

.feature-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark-green);
}

/* ------------------------------------------------------------
   PROJECTS SECTION
   ------------------------------------------------------------ */
.projects-section {
  padding: 80px 0;
  background: var(--light-green-2);
}

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

.project-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #e0e0e0;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-green);
}

.project-image {
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-green-1);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-weight: 800;
  font-size: 17px;
  color: var(--dark-green);
  margin-bottom: 8px;
}

.project-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   CLIENTS SECTION
   ------------------------------------------------------------ */
.clients-section {
  padding: 80px 0;
  background: var(--white);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.client-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.client-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

.client-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.client-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.3;
}

/* Client icon background color cycle (green shades) */
.client-card:nth-child(6n+1) .client-icon { background: #2e7d32; }
.client-card:nth-child(6n+2) .client-icon { background: #388e3c; }
.client-card:nth-child(6n+3) .client-icon { background: #43a047; }
.client-card:nth-child(6n+4) .client-icon { background: #4caf50; }
.client-card:nth-child(6n+5) .client-icon { background: #66bb6a; }
.client-card:nth-child(6n+6) .client-icon { background: #81c784; }

/* ------------------------------------------------------------
   CONTACT SECTION
   ------------------------------------------------------------ */
.contact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(46, 125, 50, 0.15);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.contact-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.contact-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 14px;
  color: var(--text-body);
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

a.contact-value:hover {
  color: var(--primary-green);
}

/* --- Contact Map --- */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-map iframe {
  border-radius: var(--radius-lg);
}

.map-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: var(--primary-green);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.map-button:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--primary-green);
  color: #fff;
  padding: 32px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 35px;
  background: #fff;
  border-radius: 4px;
  padding: 4px;
}

.footer-company-name {
  font-weight: 800;
  font-size: 14px;
}

.footer-nav {
  display: flex;
  gap: 16px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* ------------------------------------------------------------
   FLOATING BUTTONS (WhatsApp + Phone)
   ------------------------------------------------------------ */
.float-btn {
  position: fixed;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.float-btn:hover {
  transform: scale(1.1);
}

/* WhatsApp — LTR default */
.float-whatsapp {
  background: #25d366;
  right: 24px;
  animation: float-pulse 2s infinite;
}

/* Phone — LTR default */
.float-phone {
  background: var(--primary-green);
  left: 24px;
}

/* RTL overrides */
[dir='rtl'] .float-whatsapp {
  left: 24px;
  right: auto;
}

[dir='rtl'] .float-phone {
  right: 24px;
  left: auto;
}

@keyframes float-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ------------------------------------------------------------
   SCROLL ANIMATIONS
   ------------------------------------------------------------ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays — Service Cards */
.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.4s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.5s; }

/* Staggered delays — Feature Cards */
.about-features .feature-card:nth-child(1) { transition-delay: 0s; }
.about-features .feature-card:nth-child(2) { transition-delay: 0.1s; }
.about-features .feature-card:nth-child(3) { transition-delay: 0.2s; }
.about-features .feature-card:nth-child(4) { transition-delay: 0.3s; }
.about-features .feature-card:nth-child(5) { transition-delay: 0.4s; }
.about-features .feature-card:nth-child(6) { transition-delay: 0.5s; }

/* Staggered delays — Stat Boxes */
.about-stats-side .stat-box:nth-child(1) { transition-delay: 0s; }
.about-stats-side .stat-box:nth-child(2) { transition-delay: 0.1s; }
.about-stats-side .stat-box:nth-child(3) { transition-delay: 0.2s; }
.about-stats-side .stat-box:nth-child(4) { transition-delay: 0.3s; }

/* Staggered delays — Project Cards */
.projects-grid .project-card:nth-child(1) { transition-delay: 0s; }
.projects-grid .project-card:nth-child(2) { transition-delay: 0.1s; }
.projects-grid .project-card:nth-child(3) { transition-delay: 0.2s; }
.projects-grid .project-card:nth-child(4) { transition-delay: 0.3s; }
.projects-grid .project-card:nth-child(5) { transition-delay: 0.4s; }
.projects-grid .project-card:nth-child(6) { transition-delay: 0.5s; }

/* Staggered delays — Client Cards */
.clients-grid .client-card:nth-child(1) { transition-delay: 0s; }
.clients-grid .client-card:nth-child(2) { transition-delay: 0.05s; }
.clients-grid .client-card:nth-child(3) { transition-delay: 0.1s; }
.clients-grid .client-card:nth-child(4) { transition-delay: 0.15s; }
.clients-grid .client-card:nth-child(5) { transition-delay: 0.2s; }
.clients-grid .client-card:nth-child(6) { transition-delay: 0.25s; }

/* ------------------------------------------------------------
   RESPONSIVE — Tablet (≤ 992px)
   ------------------------------------------------------------ */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   RESPONSIVE — Mobile (≤ 768px)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
  }

  .navbar {
    background: linear-gradient(
      to right,
      #ffffff 0%,
      #ffffff 35%,
      #2e7d32 60%,
      #2e7d32 100%
    ) !important;
  }

  [dir='rtl'] .navbar {
    background: linear-gradient(
      to left,
      #ffffff 0%,
      #ffffff 35%,
      #2e7d32 60%,
      #2e7d32 100%
    ) !important;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-title {
    font-size: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-stats-side {
    grid-template-columns: 1fr 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ------------------------------------------------------------
   RESPONSIVE — Small Mobile (≤ 480px)
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .about-stats-side {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
