/* ========================================
   RESPONSIVE WEBSITE - MOBILE OPTIMIZATION
   ========================================
   
   OPTIMIZATION GUIDELINES FOR IMAGES & MEDIA:
   
   1. IMAGE OPTIMIZATION:
      - Use WebP format with PNG/JPG fallbacks
      - Implement srcset for responsive images
      - Compress all images (TinyPNG, ImageOptim)
      - Use appropriate image dimensions for each breakpoint
      - Lazy load below-fold images using loading="lazy"
      - Consider CDN delivery (Cloudflare, Fastly)
   
   2. BACKGROUND IMAGES:
      - All hero/background images disabled on mobile (background-attachment: scroll)
      - Consider low-quality placeholder images (LQIP)
      - Use image compression for background images
   
   3. PERFORMANCE:
      - Remove unnecessary animations on mobile (prefers-reduced-motion)
      - Minimize reflows and repaints
      - Use hardware acceleration for transforms
      - Implement critical CSS
      - Minify CSS/JS in production
   
   4. MOBILE-SPECIFIC:
      - All buttons/links: minimum 44-48px touch targets
      - Font sizes: minimum 14px for body text
      - Form inputs: 16px font to prevent iOS zoom
      - Disable parallax effects on mobile
      - Optimize for 4G networks
   
   5. VIEWPORT SETTINGS:
      - All pages have: <meta name="viewport" content="width=device-width, initial-scale=1.0">
      - No width-specific constraints that prevent responsive scaling
   
   ======================================== */

/* BASE CSS VARIABLES FOR EASIER THEME SWITCHING (USER RULES) */
:root {
  /* Color Palette - Dark Theme */
  --color-primary-deep-blue: #000000;
  /* Re-purposed as true black */
  --color-primary-blue-hover: #111111;
  /* Off-black */
  --color-accent-earthy: #F2C357;
  /* Golden to match logo */
  --color-accent-earthy-hover: #D4A336;
  /* additional accent color used on métiers page */
  --color-metallic-gray: #7A8999;
  --color-light-gray: #1E1E1E;
  /* Re-purposed to a dark charcoal for alternate sections */
  --color-white: #FFFFFF;
  /* Base text color for dark theme elements */
  --color-text-dark: #FFFFFF;
  /* High contrast text */
  --color-text-body: #A0AAB2;
  /* Light grey text for body */
  
  /* Additional variables for metiers/realizations pages */
  --color-dark-gray: #1A1A1A;
  --color-bg-dark: #0a0a0a;
  --color-text-light: #FFFFFF;
  --color-text-muted: #A0AAB2;
  --font-accent: 'Outfit', system-ui, sans-serif;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout & Sizing */
  --container-max-width: 1024px;
  --nav-height: 70px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;

  /* Utilities */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --box-shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 10px 30px rgba(10, 25, 47, 0.15);
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Prevent Cumulative Layout Shift */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Better image rendering */
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  font-size: 14px; /* Base font size reduction to effectively scale down the layout */
  font-family: var(--font-body);
  background-color: #000000;
  color: var(--color-text-body);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
  background-color: #000000;
  overflow-x: hidden; /* Prevent horizontal scroll */
  margin: 0;
  padding: 0;
}

/* Main Background - Reusable clean background class */
.main-background {
  background-color: #000000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.bg-grid-pattern {
  position: relative;
}

.bg-grid-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Images */
picture {
  display: block;
}

picture img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Improve text rendering on mobile */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent text from being too small */
@supports (font-size: clamp(1rem, 1vw, 2rem)) {
  body {
    font-size: clamp(0.875rem, 1vw, 1rem);
  }
}

/* UTILITIES */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  width: 100%;
  box-sizing: border-box;
}

/* Responsive container widths */
@media (max-width: 992px) {
  .container {
    max-width: 960px;
    padding: 0 var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 720px;
    padding: 0 var(--spacing-md);
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    max-width: 100%;
    padding: 0 var(--spacing-md);
    width: calc(100% - 2 * var(--spacing-md));
  }
}

.section {
  padding: var(--spacing-xxl) 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .section {
    padding: var(--spacing-xl) 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-lg) 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--spacing-lg) 0;
  }
}

.bg-light {
  background-color: var(--color-light-gray);
}

.bg-primary {
  background-color: var(--color-primary-deep-blue);
}

.bg-dark {
  background-color: #111111;
}

.text-white {
  color: #FFFFFF;
}

.text-white h2,
.text-white h3 {
  color: #FFFFFF;
}

.accent-text {
  color: var(--color-accent-earthy);
}

/* métiers page uses default site accent (no red override) */

.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--color-accent-earthy);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-accent-earthy-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 111, 51, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: white;
  color: white;
}

.btn-outline:hover {
  background-color: white;
  color: #000000;
  transform: translateY(-2px);
}

.btn-dark-outline {
  background-color: transparent;
  border-color: var(--color-accent-earthy);
  color: #FFFFFF;
}

.btn-dark-outline:hover {
  background-color: var(--color-accent-earthy);
  border-color: var(--color-accent-earthy);
  color: #000000;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

.btn-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent-earthy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-link span {
  transition: transform var(--transition-fast);
}

.btn-link:hover span {
  transform: translateX(4px);
}

/* TYPOGRAPHY COMPONENTS */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent-earthy);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-md);
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: -1px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-text-body);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
  padding: 0 var(--spacing-lg);
}

.navbar.scrolled {
  background-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
  gap: var(--spacing-lg);
}

/* Logo - Far Left */
.navbar-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.navbar-logo a {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 50px;
  width: auto;
  border-radius: 50%;
  box-shadow: var(--box-shadow-subtle);
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: scale(1.05);
}

/* Main Navigation - Center */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-grow: 1;
  justify-content: center;
  margin: 0 var(--spacing-lg);
}

.navbar-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: #FFFFFF;
  font-size: 1rem;
  position: relative;
  transition: color var(--transition-fast);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-earthy);
  transition: width var(--transition-fast);
}

.navbar-nav a:hover {
  color: var(--color-accent-earthy);
}

.navbar-nav a:hover::after {
  width: 100%;
}

/* Right Section - Language, Social, Button */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

/* Language Switcher */
.navbar-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-divider {
  color: #7A8999;
  opacity: 0.5;
}

.lang-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0.5rem 0.5rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  color: #FFFFFF;
}

.lang-btn.active {
  color: var(--color-accent-earthy);
  font-weight: 700;
}

/* Social Icons */
.navbar-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-social .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #FFFFFF;
  transition: all var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
}

.navbar-social .social-icon:hover {
  background-color: var(--color-accent-earthy);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(242, 195, 87, 0.2);
}

.navbar-social .social-icon svg {
  width: 18px;
  height: 18px;
}

/* Contact Button - Call to Action */
.btn-contact {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  border: 2px solid white;
  transition: all var(--transition-fast);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-contact:hover {
  background-color: white !important;
  color: #000000 !important;
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  margin-left: auto;
  flex-shrink: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #FFFFFF;
  transition: all var(--transition-fast);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(10, 10, 10, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
  z-index: 999;
  padding: var(--spacing-xl);
  overflow-y: auto;
}

@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.mobile-nav-links a {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: #FFFFFF;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  width: 100%;
  text-align: center;
}

.mobile-menu .mobile-utils,
.mobile-menu .mobile-lang,
.mobile-menu .mobile-social {
  color: #FFFFFF;
}

.mobile-menu .mobile-lang button,
.mobile-menu .mobile-social a {
  color: #FFFFFF;
}

/* About Section Upgrade */
.about .section-header {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.about-content-wrap {
  background: rgba(255, 255, 255, 0.02);
  border-left: 4px solid var(--color-accent-earthy);
  padding: 3rem;
  border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: 3rem;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.3);
}

.rtl .about-content-wrap {
  border-left: none;
  border-right: 4px solid var(--color-accent-earthy);
  border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

.about .section-description {
  font-size: 1.25rem;
  color: #E0E0E0;
  line-height: 1.8;
  max-width: 100%;
  text-align: left;
}

.rtl .about .section-description {
  text-align: right;
}

.section-subtitle {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent-earthy);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

/* Mobile Utilities Section */
.mobile-utils {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.mobile-lang {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.mobile-social .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-metallic-gray);
  transition: all var(--transition-fast);
  min-width: 48px;
  min-height: 48px;
}

.mobile-social .social-icon:hover {
  background-color: var(--color-accent-earthy);
  color: #000000;
  transform: translateY(-2px);
}

/* Improved Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent-earthy);
  outline-offset: 2px;
}

/* Better touch target spacing */
@media (hover: none) and (pointer: coarse) {
  button,
  a,
  input,
  textarea,
  select {
    min-height: 48px;
    min-width: 48px;
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/bg.png');
  background-color: #000000;
  background-size: 120%;
  background-position: center 30%;
  background-repeat: no-repeat;
  /* background-attachment: fixed; Disable attachment fixed to ensure no distortion/cropping on wide screens */
  padding: 90px 1rem 40px;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .hero {
    min-height: 50vh;
    padding: calc(60px + 0.75rem) 0 1.5rem;
    background-attachment: scroll; /* Disable parallax on mobile for performance */
  }

  .hero-overlay {
    background: linear-gradient(
      135deg, 
      rgba(0, 0, 0, 0.3) 0%, 
      rgba(0, 0, 0, 0.2) 40%, 
      rgba(0, 0, 0, 0.15) 100%
    );
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-content-inner {
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .hero-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
  }

  .hero-title br {
    display: none;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding: calc(70px + 1rem) 0 2rem;
    background-attachment: scroll; /* Disable parallax on tablet for performance */
  }
}

@media (max-width: 992px) {
  .hero {
    min-height: 70vh;
    padding: calc(70px + 1rem) 0 2rem;
    background-attachment: scroll;
  }
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.65) 35%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
  max-width: 850px;
  text-align: center;
  padding: 1rem;
  margin: 0 auto;
}

.hero-content-inner {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.hero-title .accent-text {
  background: linear-gradient(90deg, var(--color-accent-earthy), #FFFFFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.hero-actions .btn {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* SECTORS SECTION - CENTERED & COMPACT */
.sectors .container {
  max-width: 1440px;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  justify-content: center;
}

@media (max-width: 992px) {
  .sectors-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 2rem;
  }
}

.sector-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sector-card:hover {
  transform: translateY(-12px);
  border-color: rgba(242, 195, 87, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.sector-img-wrapper {
  height: 200px;
  overflow: hidden;
}

.sector-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.sector-card:hover .sector-img-wrapper img {
  transform: scale(1.05);
}

.sector-content {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .sector-content {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .sector-content {
    padding: 0.75rem 1rem;
  }
}

.sector-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F2C357 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sector-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-body);
}

/* PORTFOLIO SECTION */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  width: 100%;
}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 320px;
  cursor: pointer;
  width: 100%;
}

@media (max-width: 768px) {
  .portfolio-item {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .portfolio-item {
    height: 200px;
  }
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
  color: #FFFFFF;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-meta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-earthy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.portfolio-title {
  font-size: 1.5rem;
  color: #FFFFFF;
}

.portfolio-action {
  text-align: center;
}

/* STATS SECTION */
.stats-section {
  padding: var(--spacing-xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  text-align: center;
  width: 100%;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-accent-earthy);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  font-weight: 500;
  opacity: 0.9;
}

/* FOOTER */
.footer {
  padding: var(--spacing-xxl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--spacing-xl);
  width: 100%;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
  }
}

.footer-brand a {
  display: inline-block;
  margin-bottom: var(--spacing-md);
}

.brand-logo-footer {
  height: 80px;
  width: auto;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.footer-brand p {
  color: var(--color-metallic-gray);
  max-width: 300px;
}

.footer-links h3,
.footer-contact h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-accent-earthy);
}

.footer-links a {
  display: block;
  color: var(--color-metallic-gray);
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--color-accent-earthy);
  padding-left: 5px;
}

.footer-contact p {
  color: var(--color-metallic-gray);
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--color-metallic-gray);
  transition: all var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
}

.social-links a:hover {
  background-color: var(--color-accent-earthy);
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(242, 195, 87, 0.2);
}

.footer-bottom {
  text-align: center;
  color: var(--color-metallic-gray);
  font-size: 0.875rem;
}

/* ANIMATIONS */
.animate-fade-in-up {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.is-visible {
  animation-fill-mode: forwards;
}

.fade-in-up.is-visible {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-left.is-visible {
  animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-right.is-visible {
  animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.zoom-in.is-visible {
  animation: zoomIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

.hero-content-inner {
  position: relative;
  overflow: hidden;
}

.hero-content-inner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(242, 195, 87, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */

/* Extra Small Devices (320px - 480px) */
@media (max-width: 480px) {
  :root {
    --nav-height: 60px;
    --spacing-md: 0.75rem;
    --spacing-lg: 1.25rem;
    --spacing-xl: 2.5rem;
    --spacing-xxl: 3.5rem;
  }

  html {
    font-size: 14px; /* Slightly smaller for small devices */
  }

  /* Navigation */
  .navbar {
    padding: 0 0.5rem;
  }

  .navbar-container {
    gap: 0.5rem;
    height: 60px;
    padding: 0 0.25rem;
  }

  .brand-logo {
    height: 45px;
  }

  /* Hide desktop nav */
  .navbar-nav {
    display: none !important;
  }

  .navbar-right {
    display: flex !important;
    gap: 0.5rem;
    align-items: center;
  }

  .navbar-right > .navbar-social,
  .navbar-right > .btn-contact {
    display: none !important;
  }

  .navbar-lang {
    gap: 0.35rem;
  }

  .lang-btn {
    min-width: auto;
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex !important;
    z-index: 1001;
  }

  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
  }

  /* Hero Section */
  .hero {
    min-height: 70vh;
    padding: calc(60px + 1rem) 0 2rem;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-content-inner {
    padding: 1.5rem;
    border-radius: 8px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    min-height: 44px;
  }

  /* Section Styling */
  .section {
    padding: 2rem 0;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 1rem;
  }

  .section-description {
    font-size: 0.95rem;
    max-width: 100%;
  }

  /* Grids */
  .sectors-grid,
  .portfolio-grid,
  .projects-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portfolio-item {
    height: 200px;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-large {
    padding: 1rem 1.75rem;
    font-size: 1rem;
  }

  .btn-contact {
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  /* About Section */
  .about-content-wrap {
    padding: 1.5rem;
    border-left: 3px solid var(--color-accent-earthy);
  }

  .rtl .about-content-wrap {
    border-right: 3px solid var(--color-accent-earthy);
    border-left: none;
  }

  /* Mobile Menu */
  .mobile-menu {
    padding: 1.5rem;
  }

  .mobile-nav-links {
    gap: 2rem;
  }

  .mobile-nav-links a {
    font-size: 1.25rem;
  }

  .mobile-utils {
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  /* Forms */
  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem 0.875rem;
    font-size: 1rem;
    min-height: 44px;
  }

  .contact-form .btn {
    min-height: 48px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer {
    padding: 2rem 0 1rem;
  }

  /* Links and clickable elements */
  a, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  /* Text scaling */
  h1 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
  h2 { font-size: clamp(1.25rem, 4vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
  h4 { font-size: 1.05rem; }
  p { font-size: clamp(0.9rem, 2vw, 1rem); }
}

/* Medium Devices (768px - 992px) */
@media (max-width: 992px) {
  /* Hero Section */
  .hero {
    min-height: 60vh;
    padding: calc(70px + 1rem) 0 2rem;
  }

  .hero-content {
    padding: 2rem;
  }

  .hero-content-inner {
    padding: 2rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Sections */
  .section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }

  .section-description {
    font-size: 1rem;
  }

  /* Grids adjustments */
  .sectors-grid {
    gap: 2rem;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .btn-large {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  /* About Section */
  .about-content-wrap {
    padding: 2rem;
  }

  .about .section-description {
    font-size: 1.1rem;
  }
}

/* Tablet/iPad (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .navbar {
    padding: 0 var(--spacing-md);
  }

  .navbar-container {
    height: 70px;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .navbar-nav,
  .navbar-right {
    display: none !important;
  }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none !important;
  }

  .navbar-nav {
    display: flex !important;
  }

  .navbar-right {
    display: flex !important;
  }
}

/* Ensure responsive behavior for all image elements */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }

  picture img {
    max-width: 100%;
    height: auto;
  }
}

/* Prevent overflow on small screens */
@media (max-width: 480px) {
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }
}

/* Small Devices (480px - 768px) */
@media (max-width: 768px) {

  /* Header adjustments */
  .navbar {
    padding: 0 var(--spacing-md);
  }

  .navbar-container {
    gap: var(--spacing-md);
    height: 70px;
  }

  .brand-logo {
    height: 50px;
  }

  /* Hide desktop nav elements */
  .navbar-nav {
    display: none;
  }

  .navbar-right {
    display: none !important;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 60vh;
    padding: calc(70px + 1.5rem) 0 2.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .sectors-grid,
  .portfolio-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item {
    height: 300px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .btn {
    min-height: 44px;
  }

  /* Contact Form */
  .form-group input,
  .form-group textarea {
    min-height: 44px;
    font-size: 1rem;
  }
}

/* Medium Devices (768px - 992px) */
@media (max-width: 992px) {

  .sectors-grid,
  .portfolio-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  /* Tablet adjustments for header */
  .navbar-nav {
    gap: 2rem;
    margin: 0 var(--spacing-md);
  }

  .navbar-right {
    gap: 1.5rem;
  }

  /* Featured project adjustments */
  .featured-project-wrapper {
    gap: var(--spacing-lg);
  }

  .featured-project-title {
    font-size: 2rem;
  }

  .featured-project-details {
    gap: var(--spacing-md);
  }

  .btn {
    min-height: 44px;
  }
}

/* CONTACT PAGE STYLES */
/* .contact-hero overrides cleared */

/* Contact Info Section */
.contact-info-section {
  background-color: var(--color-primary-deep-blue);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.contact-info-card {
  background-color: var(--color-light-gray);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-subtle);
}

.contact-info-card .section-title {
  font-size: 2rem;
  margin-bottom: 0;
}

.contact-info-card .section-subtitle {
  margin-bottom: var(--spacing-lg);
}

.company-description {
  color: var(--color-text-body);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

/* Contact Details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.contact-detail-item {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.contact-detail-item svg {
  color: var(--color-accent-earthy);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.875rem;
  color: var(--color-accent-earthy);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--color-text-dark);
  font-size: 1.125rem;
  font-weight: 500;
}

.contact-value a {
  color: var(--color-accent-earthy);
}

.contact-value a:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--color-light-gray);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-subtle);
}

.form-title {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
  min-height: 44px;
  width: 100%;
}

/* Prevent iOS zoom on input focus */
@supports (-webkit-touch-callout: none) {
  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-earthy);
  background-color: rgba(242, 195, 87, 0.05);
  box-shadow: 0 0 0 3px rgba(242, 195, 87, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form .btn {
  margin-top: var(--spacing-md);
  width: 100%;
}

.form-message {
  text-align: center;
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-sm);
  display: none;
}

.form-message.success {
  display: block;
  color: #4CAF50;
  background-color: rgba(76, 175, 80, 0.1);
  border-left: 4px solid #4CAF50;
}

.form-message.error {
  display: block;
  color: #f44336;
  background-color: rgba(244, 67, 54, 0.1);
  border-left: 4px solid #f44336;
}

/* Maps Section */
.maps-section {
  background-color: var(--color-light-gray);
}

.map-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-subtle);
  height: 500px;
}

.map-container iframe {
  border: none;
  display: block;
}

/* Responsive Contact Page */
@media (max-width: 992px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  /* contact-hero media cleared */

  .hero-title {
    font-size: 2rem;
  }

  .map-container {
    height: 400px;
  }

  .btn {
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  /* contact-hero media cleared */

  .contact-info-card,
  .contact-form-wrapper {
    padding: var(--spacing-lg);
  }

  .contact-detail-item {
    gap: var(--spacing-sm);
  }

  .form-title {
    font-size: 1.5rem;
  }

  .map-container {
    height: 300px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    min-height: 44px;
    font-size: 1rem;
  }

  .form-group label {
    font-size: 0.95rem;
  }

  .contact-form .btn {
    min-height: 48px;
    font-size: 1rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* contact-hero media cleared */

  .contact-hero .hero-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }

  .contact-info-card,
  .contact-form-wrapper {
    padding: 1rem;
  }

  .form-title {
    font-size: 1.25rem;
  }

  .map-container {
    height: 250px;
  }

  .contact-detail-item {
    flex-direction: column;
  }

  .contact-value, .contact-label {
    font-size: 0.9rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem 0.75rem;
    font-size: 16px; /* Forces mobile not to zoom */
  }
}

/* RTL SUPPORT FOR ARABIC */
body.rtl {
  font-family: 'Tajawal', var(--font-body), sans-serif;
  text-align: right;
  direction: rtl;
}

body.rtl .nav-links,
body.rtl .lang-switcher {
  margin-left: 0;
  margin-right: 1rem;
}

body.rtl .footer-grid,
body.rtl .stats-grid,
body.rtl .sectors-grid,
body.rtl .portfolio-grid,
body.rtl .contact-info-grid {
  direction: rtl;
}

body.rtl .section-header {
  margin-right: auto;
  margin-left: auto;
}

body.rtl .contact-info-card,
body.rtl .contact-form-wrapper {
  text-align: right;
}

body.rtl .contact-detail-item {
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
}

body.rtl .contact-detail-item svg {
  order: 1;
  margin-inline-start: var(--spacing-md);
  margin-inline-end: 0;
}

body.rtl .contact-detail-item > div {
  order: 0;
  width: 100%;
  min-width: 0;
}

body.rtl .contact-label,
body.rtl .contact-value {
  text-align: right;
}

body.rtl .contact-value.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

body.rtl .contact-form,
body.rtl .form-group {
  direction: rtl;
  text-align: right;
}

body.rtl .form-group input,
body.rtl .form-group textarea {
  text-align: right;
  direction: rtl;
}

body.rtl .btn-whatsapp {
  justify-content: center;
}

/* PROJECTS PAGE STYLES */
/* projects-hero base overrides cleared */

/* Projects Filters Section */
.projects-filters-section {
  background-color: var(--color-primary-deep-blue);
  text-align: center;
}

.filters-header {
  margin-bottom: var(--spacing-xl);
}

.filters-header .section-title {
  margin-bottom: var(--spacing-md);
}

.filters-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem;
}

.filter-btn {
  padding: 0.7rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-accent-earthy);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.filter-btn.active {
  background-color: var(--color-accent-earthy);
  border-color: var(--color-accent-earthy);
  color: #1a1a1a !important;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(242, 195, 87, 0.3);
}

.group-toggle::after {
  content: '▾';
  font-size: 0.9rem;
  margin-left: 0.6rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  opacity: 0.7;
}

.filter-group.active .group-toggle::after {
  transform: rotate(90deg);
  opacity: 1;
}

/* Nested Filters Glass Design */
.filter-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.sub-filters {
  display: flex;
  gap: 0.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-top: 0;
  padding: 0 0.5rem;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group.active .sub-filters {
  max-height: 100px;
  opacity: 1;
  padding: 0.8rem;
  margin-top: 1rem;
}

.sub-btn {
  padding: 0.4rem 1.2rem !important;
  font-size: 0.8rem !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  font-weight: 400 !important;
}

.sub-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

@media (max-width: 768px) {
  .filters-container {
    gap: 0.8rem;
  }
  .sub-filters {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Projects Grid */
.projects-section .container {
  max-width: 1440px;
  width: 96%;
  margin-left: auto;
  margin-right: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}


.project-card {
  background-color: #0a0a0a;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.project-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.view-more-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.project-card-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.project-card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: #FFFFFF;
}

.project-card-year {
  font-size: 0.875rem;
  color: var(--color-accent-earthy);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.project-card-description {
  color: var(--color-text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* Featured Project Section */
.featured-project-section {
  background-color: var(--color-primary-deep-blue);
  padding: var(--spacing-lg) 0;
}

.featured-project-section .container {
  max-width: 1600px;
}

.featured-project-section .section-header {
  margin-bottom: var(--spacing-lg);
}

.featured-project-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.featured-project-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fadeInLeft 0.8s ease-out;
  height: 400px;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
  display: block;
}

.featured-project-image:hover img {
  transform: scale(1.05);
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.featured-project-content {
  animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.featured-badge {
  display: inline-block;
  background-color: var(--color-accent-earthy);
  color: #000000;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.featured-project-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.featured-project-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.featured-project-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.detail-value {
  font-size: 1.1rem;
  color: #FFFFFF;
  font-weight: 600;
}

.featured-project-features {
  margin-bottom: var(--spacing-md);
}

.featured-project-features h3 {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-project-features ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

.featured-project-features li {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.featured-project-features li::before {
  content: "✓";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: var(--color-accent-earthy);
  color: #000000;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  margin-right: var(--spacing-md);
  flex-shrink: 0;
}

.btn-featured {
  align-self: flex-start;
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Projects Section Header */
.projects-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.projects-header .section-title {
  margin-bottom: var(--spacing-md);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  overflow-y: auto;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--color-light-gray);
  border-radius: var(--border-radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2001;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background-color: var(--color-accent-earthy);
  color: #000000;
}

.modal-body {
  padding: var(--spacing-xl);
}

.modal-gallery {
  width: 100%;
  margin-bottom: var(--spacing-xl);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.gallery-main {
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: #000000;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.gallery-thumbnails {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) 0;
  overflow-x: auto;
  justify-content: center;
}

.gallery-thumbnail {
  width: 80px;
  height: 80px;
  border: 3px solid transparent;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  object-fit: cover;
  transition: all var(--transition-fast);
  opacity: 0.6;
}

.gallery-thumbnail:hover {
  opacity: 1;
  border-color: var(--color-accent-earthy);
}

.gallery-thumbnail.active {
  border-color: var(--color-accent-earthy);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(242, 195, 87, 0.3);
}

.modal-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-xl);
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Call To Action Section */
.cta-section {
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: #FFFFFF;
}

.cta-section p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
}

/* Load More Section */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-xxl);
  padding-top: var(--spacing-xl);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  display: none;
}

.load-more-container.show {
  display: flex;
}

.load-more-container .btn {
  min-width: 250px;
  position: relative;
  overflow: hidden;
}

.load-more-container .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
  z-index: -1;
}

.load-more-container .btn:hover::before {
  left: 100%;
}

/* Enhanced Project Card Animations */
.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(242, 195, 87, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.project-card:hover::before {
  left: 100%;
}

.project-card-image {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal), filter var(--transition-normal);
  filter: brightness(1);
  padding: 0.75rem;
}

.project-card:hover .project-card-image img {
  transform: scale(1.12) rotate(0.5deg);
  filter: brightness(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  padding: var(--spacing-lg);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.view-more-btn {
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
  transform: scale(0.8);
  transition: transform var(--transition-fast);
}

.project-card:hover .view-more-btn {
  transform: scale(1);
}

.project-card-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 0;
}

.project-card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-year {
  font-size: 0.875rem;
  color: var(--color-accent-earthy);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-card-description {
  color: var(--color-text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Small thumbnail strip shown inside project cards for harmonic visuals */
.card-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--spacing-sm);
  align-items: center;
}

.card-thumb {
  width: 60px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  opacity: 0.9;
}

.card-thumb:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--box-shadow-hover);
  opacity: 1;
}

.project-card-client {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Modal Improvements */
.modal-details {
  padding-top: var(--spacing-xl);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-details h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
  color: #FFFFFF;
  font-weight: 800;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-meta-item {
  display: flex;
  flex-direction: column;
}

.modal-meta-label {
  font-size: 0.875rem;
  color: var(--color-accent-earthy);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.modal-meta-value {
  font-size: 1.125rem;
  color: #FFFFFF;
}

.modal-description,
.modal-features {
  margin-bottom: var(--spacing-xl);
}

.modal-description h3,
.modal-features h3 {
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: var(--spacing-md);
}

.modal-description p {
  color: var(--color-text-body);
  line-height: 1.8;
  font-size: 1rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  color: var(--color-text-body);
  position: relative;
  font-size: 0.95rem;
}

.features-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent-earthy);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Responsive Projects Page */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .filters-container {
    gap: var(--spacing-sm);
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  .modal-content {
    max-width: 90%;
    border-radius: var(--border-radius-md);
  }

  .modal-body {
    padding: var(--spacing-lg);
  }

  .modal-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-main {
    height: 300px;
  }

  .gallery-thumbnails {
    max-height: 100px;
  }

  .featured-project-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .featured-project-title {
    font-size: 1.75rem;
  }

  .featured-project-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  /* projects-hero media query overrides cleared */

  .featured-project-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .featured-project-title {
    font-size: 1.75rem;
  }

  .featured-project-description {
    font-size: 1rem;
  }

  .featured-project-details {
    grid-template-columns: 1fr;
  }

  .featured-project-features ul {
    grid-template-columns: 1fr;
  }

  .featured-project-image {
    height: 250px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .filters-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .filter-btn {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 1rem;
  }

  .project-card-image {
    height: 200px;
  }

  .project-card-title {
    font-size: 1.1rem;
  }

  .project-card-description {
    font-size: 0.9rem;
  }

  .modal {
    padding: 0;
  }

  .modal-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-body {
    padding: var(--spacing-lg);
  }

  .modal-close {
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    min-height: 44px;
  }

  .gallery-main {
    height: 200px;
  }

  .gallery-thumbnails {
    gap: 0.25rem;
  }

  .gallery-thumbnail {
    width: 60px;
    height: 60px;
    border-width: 2px;
  }

  .modal-image {
    height: 200px;
    margin-bottom: var(--spacing-lg);
  }

  .modal-details h2 {
    font-size: 1.5rem;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .modal-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .modal-meta-label {
    font-size: 0.75rem;
  }

  .modal-meta-value {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .load-more-container {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
  }

  .load-more-container .btn {
    min-width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  /* projects-hero media query overrides cleared */

  .projects-hero .hero-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }

  .featured-project-wrapper {
    gap: 1rem;
  }

  .featured-project-title {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
  }

  .featured-project-image {
    height: 150px;
  }

  .featured-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
  }

  .projects-grid {
    gap: 0.75rem;
  }

  .project-card-image {
    height: 150px;
  }

  .project-card-title {
    font-size: 1rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .filters-container {
    gap: 0.5rem;
  }

  .modal-content {
    max-height: 100%;
  }

  .modal-body {
    padding: 1rem;
  }

  .gallery-main {
    height: 150px;
  }

  .gallery-thumbnail {
    width: 50px;
    height: 50px;
  }

  .modal-details h2 {
    font-size: 1.25rem;
  }

  .modal-meta-grid {
    gap: 0.375rem;
  }
}

/* RTL Support for Projects Page */
body.rtl .projects-grid {
  direction: rtl;
}

body.rtl .filters-container {
  direction: rtl;
}

body.rtl .features-list li {
  padding-left: 0;
  padding-right: 2rem;
}

body.rtl .features-list li:before {
  left: auto;
  right: 0;
}

body.rtl .modal-close {
  right: auto;
  left: var(--spacing-lg);
}

body.rtl .modal-meta-grid {
  direction: rtl;
}

/* Infos Page Styles */
.founder-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.founder-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.founder-content {
  padding-left: var(--spacing-lg);
}

.figures-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.figure-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.figure-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary-deep-blue);
}

.figure-label {
  font-size: 1.1rem;
  margin: var(--spacing-sm) 0;
}

.figure-currency {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Removed redundant timeline styles to avoid conflicts with information page timeline */


/* Responsive Extensions */
@media (max-width: 992px) {
  .intro-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .intro-image-container img {
    box-shadow: 10px 10px 0px var(--color-accent-earthy);
  }

  .founder-wrapper {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-xl);
  }

  .founder-image {
    width: 280px;
    margin: 0 auto var(--spacing-xl);
  }

  .figures-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-dot {
    left: 30px;
  }

  .timeline-item {
    justify-content: flex-start;
  }

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px;
  }

  .infos-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .infos-hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  /* .infos-hero media query overrides deleted to match .hero */

  .intro-wrapper {
    gap: var(--spacing-lg);
  }

  .intro-image-container img {
    box-shadow: 5px 5px 0px var(--color-accent-earthy);
    border-radius: 8px;
  }

  .intro-badge {
    bottom: -20px;
    right: -20px;
    padding: 0.75rem;
    border-radius: 6px;
  }

  .intro-badge span {
    font-size: 1.75rem;
  }

  .intro-badge label {
    font-size: 0.7rem;
  }

  .intro-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .founder-wrapper {
    padding: var(--spacing-lg);
    gap: var(--spacing-lg);
  }

  .founder-image {
    width: 100%;
    max-width: 250px;
  }

  .founder-name {
    font-size: 1.75rem;
  }

  .founder-title {
    font-size: 0.9rem;
  }

  .founder-bio {
    font-size: 1rem;
  }

  .figures-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .figure-card {
    padding: var(--spacing-lg);
  }

  .figure-number {
    font-size: 2.25rem;
  }

  .figure-label {
    font-size: 1rem;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-dot {
    left: -12px;
  }

  .timeline-item {
    margin-bottom: var(--spacing-xl);
  }

  .timeline-content {
    width: calc(100% - 30px);
    margin-left: 30px;
    padding: var(--spacing-lg);
  }

  .timeline-year {
    font-size: 1.2rem;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .infos-hero-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
  }

  .infos-hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .figures-grid {
    grid-template-columns: 1fr;
  }

  .intro-wrapper {
    gap: 1rem;
  }

  .intro-text {
    font-size: 0.9rem;
  }

  .intro-badge {
    bottom: -15px;
    right: -15px;
    padding: 0.5rem 0.75rem;
  }

  .intro-badge span {
    font-size: 1.5rem;
  }

  /* .infos-hero media query overrides deleted to match .hero */

  .infos-hero-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }

  .infos-hero-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .intro-wrapper {
    gap: 0.75rem;
  }

  .intro-image-container img {
    width: 100%;
    height: auto;
  }

  .intro-badge {
    position: static;
    margin-top: 1rem;
    text-align: center;
  }

  .intro-text {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .founder-wrapper {
    padding: 1rem;
    margin: 0;
  }

  .founder-image {
    width: 100%;
    margin-bottom: 1rem;
  }

  .founder-name {
    font-size: 1.5rem;
  }

  .figures-grid {
    gap: 0.75rem;
  }

  .figure-card {
    padding: 0.75rem;
  }

  .figure-number {
    font-size: 2rem;
  }

  .figure-label {
    font-size: 0.85rem;
  }

  .timeline {
    padding-left: 15px;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-dot {
    left: -10px;
    width: 16px;
    height: 16px;
  }

  .timeline-content {
    width: calc(100% - 25px);
    margin-left: 25px;
    padding: 0.75rem;
  }

  .timeline-year {
    font-size: 1rem;
  }

  .timeline-content h3 {
    font-size: 1rem;
  }

  .timeline-content p {
    font-size: 0.875rem;
  }

  .infos-hero-title {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
  }

  .infos-hero-subtitle {
    font-size: 0.85rem;
  }

  .linkedin-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    min-height: 44px;
  }
}

/* INFORMATIONS PAGE SPECIFIC STYLES */
.informations-page {
  padding-top: 0;
}

/* .infos-hero styles cleared to match .hero */

.infos-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.infos-hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  font-weight: 400;
  letter-spacing: 1px;
}

/* Intro Section */
.informations-intro {
  background-color: #000000;
}

.intro-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.intro-image-container {
  position: relative;
}

.intro-image-container img {
  border-radius: var(--border-radius-lg);
  box-shadow: 20px 20px 0px var(--color-accent-earthy);
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.intro-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background-color: var(--color-accent-earthy);
  color: #000000;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.intro-badge span {
  display: block;
  font-size: 2.5rem;
}

.intro-badge label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Founder Section */
.founder-section {
  background-color: #111111;
  position: relative;
  overflow: hidden;
}

.founder-wrapper {
  display: flex;
  gap: var(--spacing-xxl);
  align-items: center;
  background-color: rgba(255, 255, 255, 0.02);
  padding: var(--spacing-xxl);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.founder-image {
  flex-shrink: 0;
  width: 400px;
}

.founder-image img {
  border-radius: var(--border-radius-md);
  filter: grayscale(0.2) contrast(1.1);
  transition: filter 0.5s ease;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.founder-image:hover img {
  filter: grayscale(0) contrast(1);
}

.founder-content {
  flex-grow: 1;
}

.founder-name {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xs);
  color: var(--color-accent-earthy);
}

.founder-title {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-lg);
  opacity: 0.7;
}

.founder-bio {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0077B5;
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
}

.linkedin-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

/* Figures Section */
.figures-section {
  background-color: #000000;
}

.figures-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}

.figure-card {
  text-align: center;
  padding: var(--spacing-xl);
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-lg);
  border-bottom: 3px solid transparent;
  transition: all 0.4s ease;
}

.figure-card:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-10px);
  border-bottom-color: var(--color-accent-earthy);
}

.figure-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-md);
  color: var(--color-accent-earthy);
}

.figure-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--spacing-xs);
  color: #FFFFFF;
}

.figure-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.figure-currency {
  font-size: 0.85rem;
  opacity: 0.5;
  text-transform: uppercase;
}

/* Timeline */
.timeline-section {
  background-color: #111111;
  padding-bottom: 100px;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-accent-earthy), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xxl);
  width: 100%;
  display: flex !important;
  justify-content: flex-start !important;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end !important;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 20px;
  height: 20px;
  background-color: var(--color-accent-earthy);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 5px rgba(242, 195, 87, 0.2);
}

.timeline-content {
  width: 45%;
  padding: var(--spacing-xl);
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--color-accent-earthy);
}

.timeline-year {
  display: inline-block;
  font-weight: 800;
  color: var(--color-accent-earthy);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

/* Responsive Extensions */
@media (max-width: 768px) {
  .intro-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .intro-image-container img {
    box-shadow: 10px 10px 0px var(--color-accent-earthy);
  }

  .founder-wrapper {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-xl);
  }

  .founder-image {
    width: 280px;
    margin: 0 auto var(--spacing-xl);
  }

  .figures-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-dot {
    left: 30px;
  }

  .timeline-item {
    justify-content: flex-start !important;
  }

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px;
  }
}

@media (max-width: 576px) {
  .figures-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   METIERS PAGE
   ========================================== */
.metiers-page {
  padding-top: 0;
}

.metiers-hero {
  background-image: url("../images/bg.png");
  background-position: center 30%;
  background-size: 120%;
}


.process-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-dark-gray);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xxl);
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent-earthy), transparent);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 100px;
  height: 100px;
  background-color: var(--color-bg-dark);
  border: 4px solid var(--color-accent-earthy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  font-family: var(--font-accent);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent-earthy);
  box-shadow: 0 0 30px rgba(242, 195, 87, 0.2);
  transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

.process-step:hover .step-number {
  transform: scale(1.1);
  background-color: var(--color-accent-earthy);
  color: var(--color-bg-dark);
}

.step-content h3 {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-accent);
}

.step-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xxl) var(--spacing-xl);
  }

  .process-grid::before {
    display: none;
  }
}

@media (max-width: 576px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   REALISATIONS PAGE
   ========================================== */
.projects-page {
  padding-top: 0;
}

/* projects-hero secondary block cleared */

.featured-project-section {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-bg-dark);
}

.featured-project-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: #0a0a0a;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(242, 195, 87, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-project-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 20px rgba(242, 195, 87, 0.05);
}

.featured-project-image {
  height: 100%;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(242, 195, 87, 0.05);
}

.featured-project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
}

.featured-project-wrapper:hover .featured-project-image img {
  transform: scale(1.05);
}

.featured-project-content {
  padding: var(--spacing-xxl);
}

.featured-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background-color: rgba(242, 195, 87, 0.1);
  color: var(--color-accent-earthy);
  border: 1px solid rgba(242, 195, 87, 0.3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
  border-radius: 4px;
  margin-bottom: var(--spacing-lg);
}

.featured-project-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-light);
  font-family: var(--font-accent);
}

.featured-project-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: var(--spacing-xl) 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--color-accent-earthy);
  font-weight: 700;
  letter-spacing: 1.5px;
  opacity: 0.8;
}

.detail-value {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.4;
}

.featured-project-features h3 {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-accent);
}

.featured-project-features ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.featured-project-features li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  padding-left: 1.8rem;
  position: relative;
  line-height: 1.4;
}

.featured-project-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent-earthy);
  font-weight: 900;
  font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE IMAGE OPTIMIZATION
   Mobile-specific image fixes and enhancements
   ============================================ */

/* Sector Cards - Mobile Optimization */
@media (max-width: 768px) {
  .sector-img-wrapper {
    height: 180px;
  }

  .sector-card {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  .sector-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 480px) {
  .sector-img-wrapper {
    height: 160px;
  }

  .sector-content h3 {
    font-size: 1.15rem;
  }

  .sector-content p {
    font-size: 0.9rem;
  }
}

/* Intro Image - Mobile Optimization */
@media (max-width: 768px) {
  .intro-image-container img {
    max-width: 100%;
    height: auto;
    box-shadow: 10px 10px 0px var(--color-accent-earthy);
  }

  .intro-badge {
    bottom: -15px;
    right: -15px;
    padding: 0.75rem;
  }

  .intro-badge span {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .intro-image-container img {
    box-shadow: 5px 5px 0px var(--color-accent-earthy);
    border-radius: 8px;
  }

  .intro-badge {
    bottom: -10px;
    right: -10px;
    padding: 0.5rem;
  }

  .intro-badge span {
    font-size: 1.25rem;
  }

  .intro-badge label {
    font-size: 0.65rem;
  }
}

/* Founder Image - Mobile Optimization */
@media (max-width: 768px) {
  .founder-wrapper {
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: var(--spacing-lg);
  }

  .founder-image {
    width: 100%;
    max-width: 280px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .founder-wrapper {
    padding: var(--spacing-md);
    gap: var(--spacing-md);
  }

  .founder-image {
    max-width: 240px;
  }

  .founder-image img {
    border-radius: 12px;
  }
}

/* Featured Project - Mobile Optimization */
@media (max-width: 992px) {
  .featured-project-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .featured-project-image {
    height: 300px;
  }

  .featured-project-content {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .featured-project-image {
    height: 250px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  }

  .featured-project-title {
    font-size: 1.75rem;
  }

  .featured-project-description {
    font-size: 0.95rem;
  }

  .featured-project-details {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .featured-project-image {
    height: 200px;
    border-radius: 12px;
  }

  .featured-project-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .featured-project-wrapper:hover .featured-project-image img {
    transform: scale(1.02);
  }

  .featured-badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.8rem;
  }

  .featured-project-content {
    padding: var(--spacing-md);
  }

  .featured-project-details {
    padding: 1rem;
    margin: var(--spacing-md) 0;
  }

  .detail-label {
    font-size: 0.65rem;
  }

  .detail-value {
    font-size: 0.9rem;
  }

  .featured-project-features ul {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .featured-project-features li {
    font-size: 0.8rem;
    padding-left: 1.5rem;
  }
}

/* Ensure all images maintain aspect ratio on mobile */
@media (max-width: 480px) {
  img {
    width: 100%;
    height: auto;
  }

  .sector-img-wrapper img,
  .featured-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .intro-image-container img,
  .founder-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

.btn-featured {
  margin-top: var(--spacing-xl);
}

.filters-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.filter-btn {
  padding: 0.8rem 2.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  font-weight: 600;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-family: var(--font-accent);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--color-accent-earthy);
  color: var(--color-bg-dark);
  border-color: var(--color-accent-earthy);
  box-shadow: 0 10px 20px rgba(242, 195, 87, 0.2);
}

@media (max-width: 992px) {
  .featured-project-wrapper {
    grid-template-columns: 1fr;
  }

  .featured-project-image {
    height: auto;
    min-height: 300px;
  }

  .featured-project-content {
    padding: var(--spacing-xl);
  }
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-page {
  padding-top: 0;
}

.contact-form-section {
  padding: var(--spacing-lg) 0;
}

.contact-form-section .container {
  max-width: 1600px;
}

/* contact-hero secondary block cleared */

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: stretch;
}

.contact-info-card {
  padding: var(--spacing-xl);
  background: var(--color-dark-gray);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.contact-detail-item {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  width: 100%;
}

.contact-detail-item svg {
  color: var(--color-accent-earthy);
  flex-shrink: 0;
  margin-top: 0;
  margin-inline-end: var(--spacing-md);
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-accent-earthy);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 3px;
  text-align: left;
}

.contact-value {
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.75;
  text-decoration: none;
  transition: color 0.3s ease;
  max-width: 100%;
  word-wrap: break-word;
  word-break: break-word;
}

.contact-value.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

a.contact-value:hover {
  color: var(--color-accent-earthy);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  margin-top: 0.5rem;
  box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(18, 140, 126, 0.3);
}

.contact-form-wrapper {
  padding: var(--spacing-xl);
  background: var(--color-bg-dark);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-title {
  font-size: 2rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  font-family: var(--font-accent);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--color-text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-earthy);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(242, 195, 87, 0.1);
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 992px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .contact-details {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-detail-item.full-width {
    grid-column: span 1;
  }

  .contact-info-card,
  .contact-form-wrapper {
    padding: var(--spacing-xl);
  }
}

/* ==========================================
   FORM FEEDBACK & LOADING
   ========================================== */
.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--border-radius-md);
  display: none;
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-message.success {
  display: block;
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.form-message.error {
  display: block;
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.2);
}

.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-accent-earthy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   SECTOR CARD TOGGLE (SUB-CATEGORIES)
   ========================================== */
.sector-card-toggle {
  position: relative;
  cursor: pointer;
}

.sector-card-main {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.sub-sectors-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.sector-card-toggle.active .sub-sectors-overlay {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.sector-card-toggle.active .sector-card-main {
  opacity: 0.1;
  transform: scale(0.95);
  filter: blur(2px);
}

.btn-sub-sector {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(242, 195, 87, 0.2);
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-sub-sector:hover {
  background: var(--color-accent-earthy);
  border-color: var(--color-accent-earthy);
  color: #000000;
  transform: translateX(5px);
}

.btn-close-sub {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-close-sub:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.click-hint {
  margin-top: auto;
  padding-top: var(--spacing-md);
  font-size: 0.75rem;
  color: var(--color-accent-earthy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.sector-card-toggle:hover .click-hint {
  color: #FFFFFF;
  border-top-color: rgba(242, 195, 87, 0.4);
}

.click-hint span {
  font-size: 1.2rem;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-6px);}
  60% {transform: translateY(-3px);}
}

/* ==========================================
   METHODOLOGY TIMELINE DESIGN (4-STEP HORIZONTAL)
   ========================================== */
.process-timeline-wrapper {
  position: relative;
  background-color: transparent; 
  padding: 6rem 0;
  width: 100%;
}

.timeline-grid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 5rem 0;
}

/* Hide structural elements we no longer need */
.timeline-line, .timeline-arrow, .timeline-grid::before, .timeline-grid::after {
  display: none !important;
}

.process-item {
  flex: 0 0 25%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 160px 10px; /* Space for content above/below */
  z-index: 2;
}

/* The Continuous Line logic (Joining segments) */
.process-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent-earthy);
  z-index: 1;
  pointer-events: none;
}

/* First item of row starts from center and fades in */
.process-item:nth-child(4n+1)::before {
  left: 50%;
  width: 50%;
  background: linear-gradient(to right, transparent, var(--color-accent-earthy));
}

/* Last item of row stops at center and fades out */
.process-item:nth-child(4n)::before {
  left: 0;
  width: 50%;
  background: linear-gradient(to right, var(--color-accent-earthy), transparent);
}

.t-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 320px;
  text-align: center;
  z-index: 5;
}

.top-item .t-content {
  bottom: calc(50% + 65px);
}

.bottom-item .t-content {
  top: calc(50% + 65px);
}

.t-content h3 {
  color: var(--color-accent-earthy);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.t-content p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #FFFFFF;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-item.active .t-content p {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.75rem;
}

.t-node {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.t-icon {
  position: relative;
  width: 80px;
  height: 80px;
  background: #0a0a0a;
  border: 3px solid var(--color-accent-earthy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.t-icon svg {
  width: 35px;
  height: 35px;
  fill: #FFFFFF;
}

.t-dot {
  display: none; 
}

.process-item:hover .t-icon {
  box-shadow: 0 0 30px rgba(242, 195, 87, 0.4);
  transform: translateY(-5px);
  background: #111111;
}

.process-item:hover .t-icon svg,
.process-item.active .t-icon svg {
  fill: #FFFFFF;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .timeline-grid {
    padding: 3rem 0;
  }
  .process-item {
    flex: 0 0 50%;
    padding: 130px 10px;
  }
  .process-item::before {
    width: 100%;
    left: 0;
  }
  .process-item:nth-child(2n+1)::before {
    left: 50%;
    width: 50%;
  }
  .process-item:nth-child(2n)::before {
    left: 0;
    width: 50%;
  }
}

@media (max-width: 576px) {
  .timeline-grid {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }
  
  .process-item {
    flex: 0 0 100%;
    width: 100%;
    padding: 3rem 0;
    flex-direction: column;
    min-height: auto;
  }
  
  .process-item::before {
    display: none;
  }
  
  .t-content {
    position: static;
    transform: none;
    width: 100%;
    padding: 1.5rem 0;
  }
  
  .top-item .t-content, .bottom-item .t-content {
    order: 2;
    margin: 0;
  }
  
  .t-node {
    order: 1;
  }
  
  .t-icon {
    width: 70px;
    height: 70px;
  }
  
  .t-icon svg {
    width: 30px;
    height: 30px;
  }
}

/* ========================================
   RTL (ARABIC) TIMELINE ADJUSTMENTS
   ========================================== */
html[dir="rtl"] .timeline-grid {
  direction: rtl;
  flex-direction: row;
}

html[dir="rtl"] .process-item {
  flex: 0 0 25%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2rem 10px;
  z-index: 2;
  min-height: auto;
}

html[dir="rtl"] .process-item::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent-earthy);
  z-index: 1;
  pointer-events: none;
}

html[dir="rtl"] .process-item:nth-child(4n+1)::before {
  right: 50%;
  width: 50%;
  background: linear-gradient(to left, transparent, var(--color-accent-earthy));
}

html[dir="rtl"] .process-item:nth-child(4n)::before {
  right: 0;
  width: 50%;
  background: linear-gradient(to left, var(--color-accent-earthy), transparent);
}

html[dir="rtl"] .process-item.top-item,
html[dir="rtl"] .process-item.bottom-item {
  flex: 0 0 25%;
}

html[dir="rtl"] .process-item.top-item .t-content,
html[dir="rtl"] .process-item.bottom-item .t-content {
  position: static;
  transform: none;
  width: 100%;
  bottom: auto;
  top: auto;
  max-width: 100%;
  padding: 1rem 0;
  text-align: center;
}

html[dir="rtl"] .t-node {
  order: 0;
  margin-bottom: 1rem;
}

html[dir="rtl"] .t-content {
  position: static;
  transform: none;
  left: auto;
  right: auto;
  width: 100%;
  max-width: 320px;
  text-align: right;
  z-index: 5;
}

html[dir="rtl"] .t-content h3 {
  color: var(--color-accent-earthy);
  font-size: 1rem;
  margin-bottom: 0;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

html[dir="rtl"] .t-content p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  text-align: right;
}

@media (max-width: 992px) {
  html[dir="rtl"] .process-item {
    flex: 0 0 50%;
  }
}

@media (max-width: 576px) {
  html[dir="rtl"] .timeline-grid {
    flex-direction: column;
  }

  html[dir="rtl"] .process-item {
    flex: 0 0 100%;
  }
}

/* INFORMATIONS PAGE STYLES */


/* INFORMATIONS PAGE HERO */
/* .infos-hero cleared to inherit from .hero */

.infos-hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
}

.founder-section {
    background: #050505;
    padding: var(--spacing-xxl) 0;
}

.founder-section .container {
    max-width: 1200px;
}

.founder-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.founder-image-container {
    position: relative;
    padding: 1rem;
}

.founder-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.founder-image img {
    width: 100%;
    transition: transform 0.6s ease;
}

.founder-image:hover img {
    transform: scale(1.05);
}

.founder-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-accent-earthy);
    color: #000;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.founder-experience-badge .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.founder-experience-badge .label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    padding: 4rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.founder-header {
    margin-bottom: 2rem;
}

.founder-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.founder-bio-quote {
    border-left: 3px solid var(--color-accent-earthy);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: rgba(255,255,255,0.9);
}

.founder-text {
    line-height: 1.8;
    color: var(--color-text-body);
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #0077b5;
    color: #FFF;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

/* SECTOR CARD EXPANSION */
.sector-short-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-body);
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.sector-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-body);
  margin-bottom: 0;
  text-align: left;
}

.rtl .sector-details {
  text-align: right;
}

.sector-card.expanded .sector-details {
  max-height: 1000px;
  opacity: 1;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sector-card.expanded .sector-short-desc {
  display: none;
}

.btn-more {
  display: inline-block;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--color-accent-earthy);
  color: var(--color-accent-earthy);
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  align-self: flex-start;
  margin-top: auto;
}

.btn-more:hover {
  background: var(--color-accent-earthy);
  color: #000000;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
    .founder-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-detail-item.full-width {
  grid-column: span 2;
}

@media (max-width: 576px) {
  .contact-detail-item.full-width {
    grid-column: span 1;
  }
}



