/* ===================================================
   VoltAIR Pro — Premium Photovoltaic Website
   Design System & Global Styles
   =================================================== */

/* ---------- Google Fonts ---------- */
/* Loaded via <link> in HTML for non-blocking render (see <head>) */

/* ---------- Custom Properties ---------- */
:root {
  /* Primary palette */
  --clr-deep-green: #0a6e3a;
  --clr-green: #1a9d5c;
  --clr-green-light: #2ecc71;
  --clr-green-accent: #6bc94b;

  /* Dark palette */
  --clr-graphite: #1a1f2e;
  --clr-dark-blue: #0f1923;
  --clr-dark: #0b0f1a;
  --clr-card-dark: #131927;
  --clr-card-dark-2: #1a2035;

  /* Neutrals */
  --clr-white: #ffffff;
  --clr-light: #f0f4f8;
  --clr-light-2: #e2e8f0;
  --clr-gray: #94a3b8;
  --clr-gray-dark: #64748b;

  /* Accents */
  --clr-solar-yellow: #f5b731;
  --clr-teal: #14b8a6;
  --clr-teal-light: #2dd4bf;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--clr-deep-green) 0%, var(--clr-teal) 100%);
  --gradient-dark: linear-gradient(180deg, var(--clr-dark-blue) 0%, var(--clr-graphite) 100%);
  --gradient-card: linear-gradient(145deg, rgba(26, 32, 53, 0.9) 0%, rgba(19, 25, 39, 0.95) 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(11, 15, 26, 0.75) 0%, rgba(10, 110, 58, 0.3) 50%, rgba(11, 15, 26, 0.85) 100%);
  --gradient-green-glow: linear-gradient(135deg, var(--clr-green) 0%, var(--clr-green-accent) 100%);

  /* Typography */
  --ff-heading: 'Outfit', sans-serif;
  --ff-body: 'Inter', sans-serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container-max: 1240px;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --shadow-glow-green: 0 0 30px rgba(26, 157, 92, 0.3);
  --shadow-glow-teal: 0 0 30px rgba(20, 184, 166, 0.25);

  /* Transitions */
  --trans-fast: 0.2s ease;
  --trans-med: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Light Theme Overrides ---------- */
[data-theme="light"] {
  /* Dark palette becomes light backgrounds */
  --clr-graphite: #f8fafc;
  --clr-dark-blue: #f1f5f9;
  --clr-dark: #ffffff;
  --clr-card-dark: #ffffff;
  --clr-card-dark-2: #f8fafc;

  /* Neutrals become dark text */
  --clr-white: #0f172a; /* text-primary */
  --clr-light: #1e293b;
  --clr-light-2: #334155;
  --clr-gray: #64748b;  /* text-secondary */
  --clr-gray-dark: #94a3b8;

  /* Gradients */
  --gradient-dark: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(26, 157, 92, 0.1) 50%, rgba(255, 255, 255, 0.95) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

/* Adjustments for explicit white elements avoiding data-theme flip */
[data-theme="light"] .btn-primary,
[data-theme="light"] .blog-card-category,
[data-theme="light"] .article-category-tag {
  color: #ffffff !important;
}

[data-theme="light"] .btn-secondary {
  color: var(--clr-white); /* which is dark */
  border-color: rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.02);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.3);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

[data-theme="light"] .nav-links a {
  color: rgba(0,0,0,0.65);
}

[data-theme="light"] .nav-links a:hover {
  color: var(--clr-white); /* #0f172a */
}

/* Theme Toggle Button */
.theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  cursor: pointer;
  transition: all var(--trans-med);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.5s ease;
}

.theme-toggle:hover svg {
  transform: rotate(30deg);
}

.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Prevent any horizontal scroll on all browsers including Android Chrome */
  max-width: 100vw;
}

body {
  font-family: var(--ff-body);
  color: var(--clr-white);
  background: var(--clr-dark);
  line-height: 1.7;
  overflow-x: hidden;
  /* Ensure body never exceeds viewport width */
  max-width: 100%;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- RTL Support ---------- */
[dir="rtl"] body {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

[dir="rtl"] .container {
  direction: rtl;
}

/* ---------- Utility ---------- */
.section-subtitle {
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--clr-green-accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-subtitle::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--clr-green-accent);
  border-radius: 1px;
}

[dir="rtl"] .section-subtitle::before {
  order: 1;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 1.25rem;
  max-width: 640px;
}

.section-desc {
  color: var(--clr-gray);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--trans-med);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-green-glow);
  color: var(--clr-white);
  box-shadow: var(--shadow-glow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(26, 157, 92, 0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--clr-white);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* ============================
   NAVIGATION
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--trans-med);
}

.navbar.scrolled {
  background: rgba(11, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.65rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 1.35rem;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-logo span {
  background: var(--gradient-green-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-green-glow);
  border-radius: 1px;
  transition: width var(--trans-med);
}

[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

.nav-links a:hover {
  color: var(--clr-white);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--clr-white);
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans-fast);
  font-family: var(--ff-body);
}

.lang-btn:hover {
  background: rgba(255,255,255,0.12);
}

.lang-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--clr-card-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--trans-fast);
  box-shadow: var(--shadow-lg);
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--trans-fast);
  color: var(--clr-gray);
}

.lang-option:hover,
.lang-option.active {
  background: rgba(255,255,255,0.06);
  color: var(--clr-white);
}

.lang-option.active {
  color: var(--clr-green-accent);
}

/* Nav CTA */
.nav-cta {
  font-size: 0.85rem !important;
  padding: 0.6rem 1.5rem !important;
}

.nav-cta-mobile {
  display: none;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: all var(--trans-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video,
.hero-video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26, 157, 92, 0.15);
  border: 1px solid rgba(26, 157, 92, 0.3);
  color: var(--clr-green-accent);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.75rem;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: var(--gradient-green-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--clr-gray);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-inline: 1.5rem;
}

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

.hero-stat-icon {
  color: var(--clr-green-accent);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.25rem;
}

.hero-stat-icon svg {
  width: 32px;
  height: 32px;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--clr-gray);
  margin-top: 0.25rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-gray);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

[dir="rtl"] .scroll-indicator {
  right: auto;
  left: 2rem;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: var(--clr-gray);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-green-accent);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ============================
   ABOUT SECTION
   ============================ */
.about {
  padding: var(--section-pad) 0;
  background: var(--clr-dark);
  position: relative;
  overflow: hidden;
}

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

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform var(--trans-slow);
}

.about-image-wrap:hover img {
  transform: scale(1.03);
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  background: var(--gradient-green-glow);
  opacity: 0.15;
  z-index: -1;
}

[dir="rtl"] .about-image-accent {
  right: auto;
  left: -20px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
}

.about-highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(26, 157, 92, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-highlight-icon svg {
  width: 18px;
  height: 18px;
  color: var(--clr-green-accent);
}

.about-highlight span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--clr-light-2);
}

/* ============================
   SERVICES SECTION
   ============================ */
.services {
  padding: var(--section-pad) 0;
  background: var(--clr-dark-blue);
  position: relative;
  overflow: hidden;
}

.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services-header .section-title,
.services-header .section-desc {
  margin-inline: auto;
}

.services-header .section-subtitle {
  justify-content: center;
}

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

.service-card {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--trans-med);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 157, 92, 0.3);
  box-shadow: var(--shadow-glow-green);
}

.service-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 15, 26, 0.9) 100%);
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(26, 157, 92, 0.1);
  border: 1px solid rgba(26, 157, 92, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.service-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--clr-green-accent);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--clr-white);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--clr-gray);
  line-height: 1.7;
}

/* ============================
   WHY CHOOSE US
   ============================ */
.why-us {
  padding: var(--section-pad) 0;
  background: var(--clr-dark);
  position: relative;
  overflow: hidden;
}

.why-us-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.why-us-header .section-title,
.why-us-header .section-desc {
  margin-inline: auto;
}

.why-us-header .section-subtitle {
  justify-content: center;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.why-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--trans-med);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-green-glow);
  opacity: 0;
  transition: opacity var(--trans-med);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 157, 92, 0.25);
  background: rgba(26, 157, 92, 0.05);
}

.why-card:hover::before {
  opacity: 1;
}

.why-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(26, 157, 92, 0.1);
  border: 1px solid rgba(26, 157, 92, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all var(--trans-med);
}

.why-card:hover .why-card-icon {
  background: rgba(26, 157, 92, 0.18);
  box-shadow: 0 0 20px rgba(26, 157, 92, 0.15);
}

.why-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--clr-green-accent);
}

.why-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--clr-white);
}

.why-card p {
  font-size: 0.83rem;
  color: var(--clr-gray);
  line-height: 1.6;
}

/* ============================
   PROJECTS / PORTFOLIO
   ============================ */
.projects {
  padding: var(--section-pad) 0;
  background: var(--clr-dark-blue);
  position: relative;
  overflow: hidden;
}

.projects-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.projects-header .section-title,
.projects-header .section-desc {
  margin-inline: auto;
}

.projects-header .section-subtitle {
  justify-content: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

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

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

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 15, 26, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: all var(--trans-med);
}

[data-theme="light"] .project-card-overlay {
  background: linear-gradient(180deg, transparent 30%, rgba(255, 255, 255, 0.95) 100%);
}

.project-card:hover .project-card-overlay {
  background: linear-gradient(180deg, rgba(10, 110, 58, 0.1) 0%, rgba(11, 15, 26, 0.95) 90%);
}

.project-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--clr-green-accent);
  margin-bottom: 0.4rem;
}

.project-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff; /* Keep project card titles explicitly white inside images */
}

[data-theme="light"] .project-card h4 {
  color: var(--clr-white); /* Become dark in light mode because overlay is light */
}

.project-card p {
  font-size: 0.8rem;
  color: var(--clr-gray);
  margin-top: 0.3rem;
}

/* ============================
   PROCESS / HOW WE WORK
   ============================ */
.process {
  padding: var(--section-pad) 0;
  background: var(--clr-dark);
  position: relative;
  overflow: hidden;
}

.process-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.process-header .section-title,
.process-header .section-desc {
  margin-inline: auto;
}

.process-header .section-subtitle {
  justify-content: center;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 42px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 0;
}

[dir="rtl"] .process-timeline::before {
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-card-dark);
  border: 2px solid rgba(26, 157, 92, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-green-accent);
  transition: all var(--trans-med);
}

.process-step:hover .process-step-number {
  background: rgba(26, 157, 92, 0.15);
  border-color: var(--clr-green-accent);
  box-shadow: var(--shadow-glow-green);
}

.process-step-icon {
  margin: 0 auto 1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step-icon svg {
  width: 28px;
  height: 28px;
  color: var(--clr-green-accent);
  opacity: 0.6;
}

.process-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--clr-white);
}

.process-step p {
  font-size: 0.85rem;
  color: var(--clr-gray);
  line-height: 1.6;
}

/* ============================
   CONTACT SECTION
   ============================ */
.contact {
  padding: var(--section-pad) 0;
  background: var(--clr-dark-blue);
  position: relative;
  overflow: hidden;
}

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  transition: all var(--trans-med);
}

.contact-info-card:hover {
  border-color: rgba(26, 157, 92, 0.25);
  background: rgba(26, 157, 92, 0.04);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(26, 157, 92, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--clr-green-accent);
}

.contact-info-text h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: 0.15rem;
}

.contact-info-text p,
.contact-info-text a {
  font-size: 0.85rem;
  color: var(--clr-gray);
}

.contact-info-text a:hover {
  color: var(--clr-green-accent);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.contact-form-wrap h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-form-wrap > p {
  font-size: 0.9rem;
  color: var(--clr-gray);
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--clr-light-2);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--clr-white);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  transition: all var(--trans-fast);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--clr-gray-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(26, 157, 92, 0.5);
  background: rgba(26, 157, 92, 0.04);
  box-shadow: 0 0 0 3px rgba(26, 157, 92, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

[dir="rtl"] .form-group select {
  background-position: left 1rem center;
}

.form-group select option {
  background: var(--clr-card-dark);
  color: var(--clr-white);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--clr-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 3.5rem 0 0;
  overflow: hidden;
}

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

.footer-brand p {
  color: var(--clr-gray);
  font-size: 0.88rem;
  margin-top: 1rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
}

.footer-social a:hover {
  background: rgba(26, 157, 92, 0.15);
  border-color: rgba(26, 157, 92, 0.3);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  color: var(--clr-gray);
}

.footer-social a:hover svg {
  color: var(--clr-green-accent);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--clr-gray);
  transition: all var(--trans-fast);
}

.footer-col ul li a:hover {
  color: var(--clr-green-accent);
  padding-inline-start: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--clr-green-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item span,
.footer-contact-item a {
  font-size: 0.85rem;
  color: var(--clr-gray);
}

.footer-contact-item a:hover {
  color: var(--clr-green-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--clr-gray-dark);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--clr-gray-dark);
}

.footer-bottom-links a:hover {
  color: var(--clr-green-accent);
}

/* ============================
   FLOATING WHATSAPP BUTTON
   ============================ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--trans-med);
  animation: whatsappPulse 2s infinite;
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 2rem;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@keyframes whatsappPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ============================
   ANIMATIONS (Scroll-triggered via JS)
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

[dir="rtl"] .reveal-left {
  transform: translateX(40px);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

[dir="rtl"] .reveal-right {
  transform: translateX(-40px);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1100px) {
  .why-us-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-us-grid .why-card:nth-child(4),
  .why-us-grid .why-card:nth-child(5) {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: rgba(11, 15, 26, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0;
    transition: right var(--trans-med);
    border-left: 1px solid rgba(255,255,255,0.05);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  [dir="rtl"] .nav-links {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid rgba(255,255,255,0.05);
    transition: left var(--trans-med);
  }

  .nav-links.open {
    right: 0;
  }

  [dir="rtl"] .nav-links.open {
    right: auto;
    left: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.8rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta-mobile {
    display: inline-flex;
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
  }

  .nav-cta-desktop {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .process-timeline::before {
    display: none;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .hero {
    min-height: 600px;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

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

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

  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .container {
    padding-inline: 1.25rem;
  }

  .hero {
    min-height: 550px;
  }

  .about-image-accent {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    gap: 0.25rem;
  }

  .nav-logo {
    font-size: 1.15rem;
    gap: 0.4rem;
  }

  .nav-logo img {
    height: 32px;
  }

  .nav-right {
    gap: 0.5rem;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .theme-toggle svg {
    width: 16px;
    height: 16px;
  }

  .lang-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }

  .lang-btn svg:first-child {
    width: 14px;
    height: 14px;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  [dir="rtl"] .whatsapp-float {
    right: auto;
    left: 1.5rem;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .projects-grid,
  .process-timeline,
  .why-us-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn,
  .article-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form-wrap {
    padding: 1.5rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .container {
    padding-inline: 1rem;
  }

  .hero {
    min-height: 500px;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
    letter-spacing: 1.5px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  .service-card-body {
    padding: 1.25rem;
  }

  .why-card {
    padding: 1.5rem 1.25rem;
  }

  .contact-info-card {
    padding: 1rem;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Extra small devices: 320px and similar */
@media (max-width: 360px) {
  .nav-logo img {
    height: 28px;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .lang-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .lang-btn svg:first-child {
    width: 12px;
    height: 12px;
  }

  /* Hide the dropdown arrow on very small screens */
  .lang-btn svg:last-child {
    display: none;
  }

  .hero-title {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.8rem;
    letter-spacing: 1px;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.88rem;
  }

  .section-title {
    font-size: clamp(1.4rem, 5vw, 1.75rem);
  }

  .container {
    padding-inline: 0.875rem;
  }

  .contact-form-wrap {
    padding: 1.25rem;
  }

  .nav-links {
    width: 90%;
    padding: 5rem 1.5rem 2rem;
  }
}

/* ============================
   MOBILE NAV OVERLAY
   ============================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans-fast);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================
   BACKGROUND DECORATIONS
   Contained within parent sections via overflow:hidden
   ============================ */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  pointer-events: none;
  /* Prevent these from extending the document width */
  /* They are clipped by their parent section's overflow:hidden */
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--clr-green);
  top: -200px;
  right: -200px;
}

.bg-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--clr-teal);
  bottom: -150px;
  left: -150px;
}

[dir="rtl"] .bg-glow-1 {
  right: auto;
  left: -200px;
}

[dir="rtl"] .bg-glow-2 {
  left: auto;
  right: -150px;
}
