/* 1. Fonts (Keep your @font-face rules for 'Trueno') */
@font-face {
  font-family: "Trueno";
  src: url("assets/fonts/truenorg.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Trueno";
  src: url("assets/fonts/truenobd.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
}

/* 2. CSS Variables (Dark Theme Inspired by Modern Designs) */
:root {
  --color-background: #121212; /* Near black */
  --color-background-alt: #1e1e1e; /* Slightly lighter dark grey */
  --color-surface: #2a2a2a; /* For cards/elements on dark bg */
  --color-primary-text: #e0e0e0; /* Light grey text */
  --color-secondary-text: #aaaaaa; /* Dimmer grey */
  --color-heading: #ffffff;
  --color-accent-primary: #dac329; /* Orange/Amber accent */
  --color-accent-secondary: white; /* Deep Sky Blue accent */
  --color-border: #383838;
  --color-button-bg: var(--color-accent-primary);
  --color-button-text: #121212;
  --color-button-hover-bg: #dac329;
  --color-success: #28a745;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.5);
  --font-primary: "Trueno", sans-serif;
}

/* 3. Basic Reset & Defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* outline: 1px solid red; */

}
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-primary);
  font-weight: normal;
  line-height: 1.7; /* Increased line height */
  color: var(--color-primary-text);
  background-color: var(--color-background);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
} /* Wider container */

h1,
h2,
h3,
h4 {
  font-weight: bold;
  color: var(--color-heading);
  line-height: 1.3;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
} /* Responsive H1 */
h2.section-title {
 margin-top: 4.5rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  color: var(--color-heading);
}
h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 0.8rem;
}
h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 0.6rem;
  color: var(--color-heading);
}

p {
  margin-bottom: 1.2rem;
  color: var(--color-secondary-text);
}
a {
  color: var(--color-accent-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--color-accent-primary);
}
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}

/* 4. Header & Navigation */
#header {
  background-color: rgba(18, 18, 18, 0.85); /* Semi-transparent dark */
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  position: fixed; /* Changed from sticky for consistent position */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
}
/* Optional: Add background on scroll */
/* #header.scrolled { background-color: var(--color-background-alt); } */

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 0 100px;
  box-sizing: border-box;
}


/* Default logo positioning (left for LTR languages) */
#header .logo-link {
  text-align: left; /* Default alignment */
}

/* When the language is Arabic (RTL), align the logo to the right */
html[dir="rtl"] #header .logo-link {
  text-align: right; /* Align logo to the right */
}

/* Control size */
#header .logo-link img {
  display: block;
  height: 45px;
  width: auto;
}

.nav-links {
  display: flex;
    column-gap: 10px;
} /* Increased gap */
.nav-links a {
  font-weight: normal;
  color: var(--color-primary-text);
  padding: 8px 5px;
  position: relative;
  text-transform: uppercase; /* Uppercase nav links */
  font-size: 14px;
  letter-spacing: 0.5px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent-primary);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent-primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
} /* Underline effect */

.mobile-menu-toggle {
  display: none; /* Handled by JS and media query */
}
 /* Language Selector Styles */
.language-selector {
  position: relative; /* For positioning the options dropdown */
  
}

#current-lang {
 /* width: 30px;  /* Slightly larger for better touch */
  /* height: 30px;*/
  border-radius: 50%;
  border: 1px solid #ccc; /* Add a subtle border */
  cursor: pointer;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff; /* White background */
  overflow: hidden; /* Ensure flag stays within circle */
  transition: box-shadow 0.2s ease;
}
#current-lang:focus {
   outline: 2px solid #007bff; /* Focus indicator */
   outline-offset: 2px;
}
#current-lang:hover {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.flag-icon {
  display: inline-block;
  width: 28px;  /* Slightly smaller than button */
  height: 28px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #eee; /* Subtle border on flag */
}

/* --- PLACEHOLDER FLAGS --- */
/* Replace with your actual flag image paths */
.flag-icon.fr {
  /* background-image: url('/assets/images/fr.png'); */
  background-image: url('https://res.cloudinary.com/diu2cdrmm/image/upload/v1748198701/fr_p5pvtg.png'); /* Placeholder */
  background-color: #ED2939; /* Add bg color for better placeholder */
}

.flag-icon.ar {
  /* background-image: url('/assets/images/ar.png'); */
  background-image: url('/assets/images/ar.png'); /* Placeholder */
   background-color: #CE1126; /* Add bg color for better placeholder */
}

.flag-icon.en {
  /* background-image: url('/assets/images/en.png'); */
  background-image: url('https://res.cloudinary.com/diu2cdrmm/image/upload/v1748198489/en_wqplup.png'); /* Placeholder */
   background-color: #C8102E; /* Add bg color for better placeholder */
}
/* --- END PLACEHOLDER FLAGS --- */


#lang-options {
  position: absolute;
  top: calc(100% + 8px); /* Position below the button with some gap */
  right: 0;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 8px; /* More rounded */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 100; /* Ensure it's above other elements */
  overflow: hidden; /* Clip corners */
  padding: 5px 0; /* Padding top/bottom */
  min-width: 55px; /* Ensure minimum width */
  opacity: 0; /* Start hidden for transition */
  transform: translateY(-10px); /* Start slightly up */
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none; /* Prevent interaction when hidden */
}

#lang-options.visible {

   opacity: 1;
   transform: translateY(0);
   pointer-events: auto; /* Allow interaction when visible */
}

#lang-options button {
  /* display: block; */ /* Removed, flex handles layout */
  width: 100%; /* Take full width */
  /* height: 40px; */ /* Increased height */
  padding: 8px 10px; /* Adjust padding */
  border: none;
  background-color: transparent;
  cursor: pointer;
  display: flex;
  justify-content: relative;  /* Changed to center */
  align-items: center;
  gap: 8px; /* Space between flag and potential text */
  transition: background-color 0.2s ease;
}

#lang-options button .lang-name {
  font-size: 14px;  /* Adjust font size for language names */
  font-weight: 500;  /* Optional: Make the text bolder */
  color: #333; /* Text color */
  text-transform: capitalize; /* Make the language name text proper case */
}

#lang-options button:hover {
  background-color: #f0f0f0; /* Lighter hover */
}

#lang-options button .flag-icon {
  width: 25px; /* Slightly smaller flags in dropdown */
  height: 25px;
}

/* Utility class to hide elements visually and from screen readers */
.hidden {
 display: none;
}

/* Ensure the language selector is positioned correctly within the nav */
/* nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Or space-around, adjust as needed */ 
}

nav ul.nav-links {
    /* Existing styles */
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul.nav-links li {
    margin-right: 1em;
}


/* Ensure language selector doesn't interfere with mobile menu button */
.mobile-menu-toggle {
    /* Existing styles */
    order: 1; /* Adjust order if needed */
}

/*.language-selector {
    order: 2; /* Adjust order to position it correctly }*/

/* 5. Hero Section */
.hero-section {
  height: 100vh; /* Full viewport height */
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Center content horizontally */
  text-align: center;
  overflow: hidden;
  /* *** Add your HAMILCAR hero background image here *** */
  background: url("/assets/images/hamilcar_hero_main.jpg") no-repeat center
    center / cover;
  color: #fff;
}
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Makes sure the image covers the whole area */
  filter: brightness(0.85) contrast(1.05);

}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(18, 18, 18, 0.2) 0%,
    rgba(18, 18, 18, 0.6) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem; /* Reduced margin */
  
}
.hero-content .subtitle {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--color-primary-text);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  
}
.cta-button {
  /* Main CTA Button Style */
  font-family: var(--font-primary);
  font-weight: bold;
  display: inline-block;
  background-color: var(--color-button-bg);
  color: var(--color-button-text);
  padding: 14px 35px;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
  margin-bottom: auto;
}
.cta-button:hover {
  background-color: var(--color-button-hover-bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
/* Secondary Button Style */
.cta-button.secondary {
  background-color: transparent;
  color: var(--color-accent-primary);
  border: 2px solid var(--color-accent-primary);
  box-shadow: none;
}
.cta-button.secondary:hover {
  background-color: rgba(255, 165, 0, 0.1); /* Light accent bg on hover */
  color: var(--color-button-hover-bg);
  border-color: var(--color-button-hover-bg);
  transform: translateY(-2px);
  box-shadow: none;
}

.scroll-down-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
}
.scroll-down-indicator svg {
  width: 30px;
  height: 30px;
}

/* vehicule part*/
/* Container for the side-by-side design sections */
.design-sections-container {
  display: flex; /* Enables Flexbox layout */
  justify-content: center; /* Centers the two sections horizontally within the container */
  align-items: flex-start; /* Aligns items at the top if they have different heights */
  flex-wrap: wrap; /* Allows items to wrap onto the next line on smaller screens */
  gap: 30px; /* Adds space between the two sections (adjust as needed) */
  margin-top: 30px; /* Adds space below the main section header */
  margin-bottom: 30px; /* Adds space below this container */
}

/* Styling for each individual design section (Exterior/Interior) */
.carousel-wrapper {
  display: flex;
  align-items: center;
  width: calc(429px * 3 + 10px); /* 3 images + 2 gaps of 5px */
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.carousel-container {
  display: flex;
  gap: 5px;
  overflow-x: scroll; 
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE 10+ */
  scroll-behavior: smooth;
  padding: 5px 0;
  width: max-content;
}

.carousel-container::-webkit-scrollbar {
  display: none;              /* Chrome, Safari */
}

.carousel-container img {
  width: 429px;
  height: 498px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
}

.extarrow {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 8px;
  font-size: 2rem;
  padding: 0 10px;
  cursor: pointer;
  z-index: 10;
  height: 100%;
  transition: background-color 0.3s ease;
}

.extarrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.extarrow.left {
  position: absolute;
  left: 0;
}

.extarrow.right {
  position: absolute;
  right: 0;
}

.intarrow {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 8px;
  font-size: 2rem;
  padding: 0 10px;
  cursor: pointer;
  z-index: 10;
  height: 100%;
  transition: background-color 0.3s ease;
}

.intarrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.intarrow.left {
  position: absolute;
  left: 0;
}

.intarrow.right {
  position: absolute;
  right: 0;
}

.design-section {
  flex-basis: 45%; /* Each section takes up roughly 45% of the container width */
  /* Alternatively, use max-width if you want a fixed max size */
  /* max-width: 500px; */
  min-width: 280px; /* Prevents sections from becoming too narrow */
  text-align: center; /* Centers the H4 title within its section */
}

.design-section h4 {
  color: white; /* Inherit color or set specific one */
  margin-bottom: 15px; /* Space between title and paragraph */
  font-size: 1.3rem; /* Adjust title size if needed */
}

.design-section p {
  margin: 15px;
  text-align: justify; /* Justifies the paragraph text */
  font-size: 0.95rem; /* Adjust paragraph font size if needed */
  color: var(--color-secondary-text); /* Use your text color variable */
  line-height: 1.6; /* Improve readability */
}

/* --- Responsive Adjustments --- */
/* On smaller screens, stack the sections instead of side-by-side */
@media (max-width: 768px) {
  .container {
  width: auto;
  margin: 0 auto;

} /* Wider container */

  .design-sections-container {
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally when stacked */
    gap: 40px; /* Adjust vertical gap */
    max-width: 100%;
    
  }

  .design-section {
    flex-basis: 90%; /* Allow sections to take up more width when stacked */
    max-width: 550px; /* Optional: constrain max width */
  }

  #lang-options button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    width: 100%;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease;
    direction: ltr; /* force left-to-right inside button by default */
  }
  
  html[dir="rtl"] #lang-options button {
    direction: rtl; /* flip inside button when Arabic */
  }
  
  #lang-options .flag-icon {
    width: 25px;
    height: 25px;
  }
  
  #lang-options .lang-name {
    font-size: 16px;
    white-space: nowrap; /* Prevent breaking text */
  }
  
  html[dir="rtl"] #lang-options {
    right: 0;
    left: auto;
  }
  
.hero-section {
  height: 450px; /* Full viewport height */
  min-height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* Center content horizontally */
  text-align: center;
  overflow: hidden;

}
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 55%;
  object-fit: cover; /* Makes sure the image covers the whole area */
  filter: brightness(0.85) contrast(1.05);

}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(18, 18, 18, 0.2) 0%,
    rgba(18, 18, 18, 0.6) 100%
  );
  z-index: 1;
}
.scroll-down-indicator {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
}

.content-section {
  padding: 0px 0;
} 

}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

/* 6. Content Sections General Styles */
.content-section {
  padding: 100px 0;
} 

.content-section.alt-bg {
  background-color: var(--color-background-alt);
}

.section-header {
  text-align: center;
  top: 0;
  z-index: 10;
  margin-bottom: 60px; /* More space after header */
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-secondary-text);
  max-width: 600px;
  margin: 0 auto;
}

.link-arrow {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-accent-primary);
  font-weight: bold;
}
.link-arrow::after {
  content: " →"; /* Add arrow */
  transition: transform 0.3s ease;
  display: inline-block;
}
.link-arrow:hover::after {
  transform: translateX(5px);
}
.link-inline {
  display: inline;
  text-decoration: underline;
}
.section-footer-link {
  text-align: center;
  margin-top: 40px;
}

/* 7. Specific Section Styles */

/* About / Legacy (#about-legacy) */
.about-layout {
  display: flex;
  gap: 50px;
  align-items: center;
}
.about-text {
  flex: 1;
}
.about-image-or-video {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.founder-intro {
  margin-top: 40px;
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
}
.founder-intro h4 {
  color: var(--color-accent-secondary);
}

.about-image-or-video img {
  width: 100%;
  height: auto;
  display: block; /* Removes extra space under the image caused by inline-block */
  object-fit: cover; /* Optional, use if you want to control how the image fills the box */
}

/* Vehicles (#vehicles) */
.vehicle-gallery-placeholder {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.vehicle-gallery-placeholder:hover {
  transform: scale(1.01);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.vehicle-gallery-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.4s ease;
  object-fit: contain; /* or cover if you want it to fully fill */
  border-radius: 16px; /* 🎯 This is what makes the corners rounded */
}

.vehicle-gallery-placeholder:hover img {
  transform: scale(1.03);
}

.key-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
  margin-top: 50px;
}
/* Styling for the table within the feature item card */
.feature-item .feature-table {
  width: 100%; /* Make table fill the card width */
  margin-top: 15px; /* Add space below the heading */
  border-collapse: collapse; /* Clean up borders */
  font-size: 0.9rem; /* Match paragraph font size or adjust as needed */
  color: var(--color-secondary-text); /* Use secondary text color */
}

.feature-item .feature-table th,
.feature-item .feature-table td {
  padding: 8px 4px; /* Add some padding to cells */
  text-align: left; /* Align text to the left */
  border-bottom: 1px solid var(--color-border-light, #eee); /* Light line between rows - define --color-border-light or use a hex code */
}

.feature-item .feature-table tr:last-child th,
.feature-item .feature-table tr:last-child td {
  border-bottom: none; /* Remove border from the last row */
}

.feature-item .feature-table th {
  font-weight: 600; /* Make labels slightly bolder */
  /* color: var(--color-text); */ /* Optionally use primary text color for labels */
  padding-right: 10px; /* Add spacing between label and value */
  white-space: nowrap; /* Prevent labels from wrapping if possible */
  color: white;
}

.feature-item .feature-table td {
  text-align: right; /* Align values to the right - looks neat for specs */
}

/* Optional: Add a subtle background on hover for table rows if desired */
/*
.feature-item .feature-table tr:hover {
  background-color: rgba(0, 0, 0, 0.03);
}
*/

/* Technology (#technology) */
.technology-layout {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 40px; /* Adjust gap as needed */
  align-items: flex-start; /* Align items to the top - often better than center */
  margin-bottom: 40px; /* Add some space below this section */
}
.tech-image-area {
  flex: 1 1 400px; /* Allow flex grow/shrink, basis of 400px */
  min-width: 600px; /* Prevent it from getting too small */
}
.tech-image-area img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.tech-description-area {
  flex: 1 1 500px; /* Allow grow/shrink, suggest a slightly larger basis for text */
  min-width: 300px;
}

.tech-description-area h4 {
  color: var(--color-accent-secondary); /* Or your desired heading color */
  margin-bottom: 15px;
  font-size: 1.5rem; /* Example size */
}

.tech-description-area p {
  font-size: 1rem; /* Example size */
  line-height: 1.7;
  color: var(--color-secondary-text); /* Or your desired text color */
}
.tech-point {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 25px;
}
.tech-point-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  opacity: 0.9; /* Add filter: invert(1) brightness(1.5); if icons are dark */
}
.tech-point h4 {
  color: var(--color-accent-primary);
  margin-bottom: 5px;
  font-size: 2.5rem;
  margin-left: 20px;
}
.tech-point p {
  color: var(--color-primary-text);
  margin-bottom: 0;
  font-size: 1.3rem;
  margin-left: 20px;
}
.tech-3d-placeholder {
  margin-top: 30px;
  min-height: 200px;
  background-color: var(--color-background-alt);
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-secondary-text);
}
.video-section {
  margin-top: 60px;
  text-align: center;
}
.video-section h3 {
  color: var(--color-accent-secondary);
  margin-bottom: 20px;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 90%; /* Keep this */
  background: #000;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  /* --- ENSURE THIS IS PRESENT --- */
  margin-left: auto;
  margin-right: auto;
  /* Remove duplicate max-width and commented-out justify-content */
}

/* Find this existing rule in your CSS */
.video-wrapper iframe,
.video-wrapper img,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover; /* Keep cover if you prefer filling space */
  /* --- REMOVE THESE (ineffective) --- */
  /* justify-content: center; */
  /* align-items: center; */
}

.construction-container {
  position: relative; /* Establish positioning context for absolute children */
  width: 100%;
  aspect-ratio: 16 / 9; /* IMPORTANT: Force an aspect ratio (e.g., 16:9) */
  /* Or use a min-height: min-height: 400px; */
  border-radius: 8px;
  overflow: hidden; /* Keep absolutely positioned children contained */
  box-shadow: var(--shadow-md); /* Use a consistent shadow */
  background-color: var(
    --color-surface-dark,
    #333
  ); /* Add a background while images load/animate */
}

.construction-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Ensure height is set if not already */
  object-fit: cover; /* Ensure object-fit is set */
  border-radius: 8px; /* Keep consistent styling */

  /* Default state (before animation starts or after reset) */
  opacity: 0;
  transform: translateY(-50px); /* Start position */
  /* Remove the base animation property here */
}

/* Apply animation ONLY when the container has the 'animate-steps' class */
.construction-container.animate-steps .construction-step {
  /* Define animation properties here */
  animation-name: dropFade;
  animation-duration: 1s;
  animation-timing-function: ease;
  animation-fill-mode: forwards; /* Keep 'forwards' */
  /* Remove individual animation delays from here if applying below */
}

/* Apply delays when the container has the 'animate-steps' class */
.construction-container.animate-steps .construction-step:nth-child(1) {
  z-index: 1;
  animation-delay: 0.5s;
}
.construction-container.animate-steps .construction-step:nth-child(2) {
  z-index: 2;
  animation-delay: 2s;
}
.construction-container.animate-steps .construction-step:nth-child(3) {
  z-index: 3;
  animation-delay: 3.5s;
}
.construction-container.animate-steps .construction-step:nth-child(4) {
  z-index: 4;
  animation-delay: 5s;
}
.construction-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keep your keyframes */
@keyframes dropFade {
  /* Make sure the 'from' state matches the default state if needed,
     though 'forwards' handles the end state persistence */
  /* from { opacity: 0; transform: translateY(-50px); } */
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

img {
  width: 100%;
  display: block;
}

.transmission-container {
  position: relative; /* Establish positioning context for absolute children */
  width: 100%;
  aspect-ratio: 16 / 9; /* IMPORTANT: Force an aspect ratio (e.g., 16:9) */
  /* Or use a min-height: min-height: 400px; */
  border-radius: 8px;
  overflow: hidden; /* Keep absolutely positioned children contained */
  box-shadow: var(--shadow-md); /* Use a consistent shadow */
  background-color: var(
    --color-surface-dark,
    #333
  ); /* Add a background while images load/animate */
}

/* this is for the client switcher images */
.client-image-switcher {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  align-self: center;
  /* border-radius: 8px; */
  aspect-ratio: 16 / 9;
  background: transparent;
}

.switch-client-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  pointer-events: none;
  background-color: transparent;
}

.switch-client-image.active {
  opacity: 1;
  z-index: 1;
}

/* this is for the pres switcher images */
.presentation-image-switcher {
    height: 100vh; /* Full viewport height */
  min-height: 600px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: auto;
  overflow: hidden;
  align-self: center;
  /* border-radius: 8px; */
  aspect-ratio: 16 / 9;
  background: transparent;
}

.switch-presentation-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  pointer-events: none;
  background-color: transparent;
}

.switch-presentation-image.active {
  opacity: 1;
  z-index: 1;
}

/* and this one is for the technology */
.simple-image-switcher {
  position: relative; /* Needed for absolute positioning of children */
  width: 100%;
  max-width: 600px; /* Example: Set a max width */
  overflow: hidden; /* Hide anything that might spill out */
  border-radius: 8px; /* Optional styling */
  aspect-ratio: 16 / 9; /* Give it a defined aspect ratio */
  background-color: #f0f0f0; /* Background placeholder */
}

.switch-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Or 'contain' */
  border-radius: 8px; /* Match container */

  /* --- Visibility & Transition --- */
  opacity: 0; /* Hidden by default */
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  z-index: 1; /* Default stack level */
}

.switch-image.active {
  opacity: 1; /* Make visible */
  visibility: visible;
  z-index: 2; /* Bring active image to the top */
}

/* --- Arrow Button Styling --- */
.switch-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3; /* Make sure buttons are above images */
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.switch-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.switch-btn.prev {
  left: 10px;
}

.switch-btn.next {
  right: 10px;
}

/* Style to hide buttons when they are not needed */
.switch-btn.hidden {
    display: none;
}
/* Clients / Testimonials (#clients) */
.testimonial-slider-placeholder {
  /* Style your actual slider */
  min-height: 250px;
  background-color: var(--color-surface);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  border: 1px solid var(--color-border);
  color: var(--color-secondary-text);
  padding: 20px;
}
/* Example Testimonial Item Style (adapt to your slider) */

/*          technologie produit           */

/* Grid Container for the vehicles */
.vehicules-layout {
  display: grid; /* Use CSS Grid */
  grid-template-columns: repeat(2, 1fr); /* Create 2 equal-width columns */
  gap: 30px; /* Space between grid items (adjust as needed) */
  margin-top: 40px; /* Adjust top margin */
  /* Remove align-items: center; Flexbox property */
}

/* Styling for each vehicle card */
.vehicle-card {
  background-color: var(--color-surface, #fff); /* Background for the card */
  border-radius: 10px; /* Slightly rounder corners */
  overflow: hidden; /* Keep image and title within bounds */
  box-shadow: var(--shadow-md, 0 4px 6px rgba(0,0,0,0.1)); /* Use shadow variable or default */
  text-align: center; /* Center the title text */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
  /* Remove flex: 1; Flexbox property */
}

.vehicle-card:hover {
  transform: translateY(-6px); /* Lift card slightly on hover */
  box-shadow: var(--shadow-lg, 0 10px 15px rgba(0,0,0,0.15)); /* Enhance shadow on hover */
}

/* Styling for the image within the card */
.vehicle-card img {
  display: block; /* Remove extra space below image */
  width: 100%; /* Make image fill card width */
  height: auto; /* Maintain aspect ratio */
  /* Consider adding aspect-ratio if images have varying heights */
  /* aspect-ratio: 16 / 10; */
  object-fit: cover; /* Cover the area, may crop */
}

/* Styling for the title text inside the card */
.vehicle-card .vehicle-title {
  padding: 15px 10px; /* Padding around the title text */
  font-size: 1rem; /* Adjust title font size */
  font-weight: 600; /* Make title semi-bold */
  color: var(--color-text, #333); /* Use text color variable or default */
  background-color: var(--color-surface-alt, #f8f8f8); /* Optional subtle background for title area */
  border-top: 1px solid var(--color-border-light, #eee); /* Optional separator line */
}

/* --- Responsive Adjustments --- */
/* On smaller screens, stack the cards into a single column */
@media (max-width: 768px) {
  .vehicules-layout {
    grid-template-columns: 1fr; /* Switch to 1 column */
    gap: 25px; /* Adjust vertical gap */
  }
  .carousel-wrapper {
    margin-top: 10rem; /* Even smaller margin */
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    display: flex;
    align-items: center;
  }


.carousel-container {
  display: flex;
  gap: 5px;
  overflow-x: scroll; 
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE 10+ */
  scroll-behavior: smooth;
  padding: 5px 0;
  width: max-content;
}

  .carousel-container img {
   max-height: 280px; 
   aspect-ratio: 4/3;
  }

  .arrow {
    font-size: 1.5rem; /* Even smaller arrows */
    padding: 0 6px;
  }

  .carousel-container {
    gap: 3px; /* Slightly reduce gap if images feel too spaced out on small screens */
    padding: 3px 0;
  }
}

@media (max-width: 480px) {
  .vehicle-card .vehicle-title {
    font-size: 0.9rem; /* Slightly smaller title on very small screens */
    padding: 12px 8px;
  }
  .vehicules-layout {
     gap: 20px;
  }
 
.arrow {
  font-size: 1.5rem;
  padding: 0 6px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  height: 100%;
  z-index: 10;
  position: absolute;
  top: 0;
  transition: background-color 0.3s ease;
}

.arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.arrow.left {
  left: 0;
}

.arrow.right {
  right: 0;
}

 .design-sections-container {
    flex-direction: column; /* Stack sections vertically */
    align-items: center;
    gap: 40px; /* Adjust vertical gap */
    width: 100%;
    overflow-x: hidden; /* Add this to prevent horizontal scrollbars from its content */
  }

  .design-section {
    width: 100%; /* Ensures it takes the full width of its parent */
    text-align: center;
    box-sizing: border-box; /* Recommended for easier width/padding management */
    padding-left: 15px; /* Optional: Add some padding if content is too close to screen edges */
    padding-right: 15px; /* Optional: Add some padding */
  }

  .carousel-wrapper {
    position: relative;
    /* overflow: hidden; -- This is good to keep if you want to ensure nothing from .carousel-container spills out of the wrapper */
    width: 100%; /* Make the wrapper take the full available width of .design-section */
    /* max-width: 350px; */ /* Optional: You can still set a max-width if you don't want it to become too large on screens between, say, 350px and 480px. If used, margin: 1rem auto; would center it. */
    display: flex;
    align-items: center;
    margin-top: 1rem;
    box-sizing: border-box; /* Include for consistent box model behavior */
  }

  .carousel-container {
    display: flex;
    gap: 5px;
    overflow-x: scroll; /* This allows horizontal scrolling of images within the wrapper */
    scroll-behavior: smooth;
    padding: 5px 0;
    scrollbar-width: none;    /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    width: 100%;              /* Ensures it uses the full width of .carousel-wrapper */
  }

  .carousel-container::-webkit-scrollbar {
    display: none; /* Hides scrollbar for WebKit browsers */
  }

  .carousel-container img {
    flex: 0 0 75%; /* Adjust as needed. Maybe 1.33 images visible (100% / 1.33 = ~75%) or 80% for more of one image */
    /* Or for a single image to be more prominent and only a bit of the next: */
    /* flex: 0 0 90%; */
    height: 280px; /* Or consider using aspect-ratio if all images are same dimensions */
    object-fit: cover;
    border-radius: 8px;
  }



  .design-section p {
    /* Ensure text wraps correctly and doesn't cause overflow */
    overflow-wrap: break-word;
    word-wrap: break-word; /* For older browser compatibility */
    hyphens: auto; /* Optional: for better text breaking */
    text-align: justify; /* Or center, if preferred, but ensure it fits */
    padding: 0 5px; /* Add a little horizontal padding to prevent text from touching the carousel arrows if they overlap */
  }

}

/* .testimonial-item { padding: 30px; text-align: center; }
.testimonial-item blockquote { font-size: 1.2rem; font-style: italic; color: var(--color-primary-text); border-left: 3px solid var(--color-accent-primary); padding-left: 20px; margin-bottom: 20px; text-align: left; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 15px; }
.testimonial-author img { height: 50px; width: auto; border-radius: 50%; }
.testimonial-author h4 { font-size: 1rem; margin: 0; color: var(--color-heading); }
.testimonial-author p { font-size: 0.9rem; margin: 0; color: var(--color-secondary-text); } */

.client-pres{
  font-family: sans-serif;
  margin: 20px;
}

.client-container {
  position: relative; /* Establish positioning context for absolute children */
  width: 100%;
  /* Or use a min-height: min-height: 400px; */
  border-radius: 8px;
  overflow: hidden; /* Keep absolutely positioned children contained */
  box-shadow: var(--shadow-md); /* Use a consistent shadow */
  background-color: var(--color-background); /*kenet --color-surface*/
  color: white;
}

.client-item {
  padding: 15px;
  border-bottom: 1px solid #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.client-item:last-child {
  border-bottom: none;
}

.client-item-header {
  font-weight: bold;
  margin-bottom: 5px;
}

.client-item-description {
  color: black;
  font-size: 0.9em;
}

.expand-button {
  border: none;
  background: none;
  font-size: 1.2em;
  color: #ffffff;
  cursor: pointer;
  outline: none;
}

.top-client-item {
  background-color: #f0f8ff; /* Light blue background */
}

.image-text-wrapper {
  display: flex;
  gap: 20px; /* space between image and text */
  align-items: flex-start; /* aligns top edges */
  flex-wrap: wrap; /* allows wrapping on small screens */
}

.text-content {
  max-width: 500px; /* optional, control text block width */
}

.toggle-content {
  padding: 15px;
  background-color: var(--color-background-alt);
  border-top: 1px solid #eee;
  display: none; /* Initially hidden */
}
.toggle-content p {
  white-space: pre-line; 
  color: rgb(255, 255, 255);
  margin: 10px 0;
}

.toggle-content h4 {
  font-size: 1.3rem;
  color: var(--color-accent-primary);
  max-width: 600px;
  margin: 0px;
}

.client-logos {
  margin-top: 50px;
  text-align: center;
}
.client-logos h4 {
  color: var(--color-secondary-text);
  margin-bottom: 25px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.logo-grid img {
  height: 45px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(100%) brightness(1.5);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.logo-grid img:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
}

/* Contact (#contact) */
.contact-section {
  background-color: var(--color-background-alt);
} /* Example different bg */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: flex-start;
}
.contact-info h3 {
  color: white;
}
.contact-details {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.contact-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.8; /* Add filter: invert(1) brightness(1.5); if needed */
}
.contact-details span,
.contact-details a {
  color: var(--color-primary-text);
  line-height: 1.6;
}
.map-placeholder {
  width: 100%;
  height: 395px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-secondary-text);
}


.contact-form-container h3 {
  color: var(--color-accent-primary);
  margin-bottom: 25px;
}
.form-group {
  margin-bottom: 20px;
}
.contact-form-container label {
  margin-top:10px;
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--color-secondary-text);
  font-weight: bold;
}
.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container textarea {
  width: 100%;
  padding: 14px;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-primary-text);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form-container input:focus,
.contact-form-container textarea:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.2); /* Accent focus ring */
}
.contact-form-container textarea {
  resize: vertical;
}
.contact-form-container button[type="submit"] {
  width: 100%;
  margin-top: 10px;
  padding: 15px;
}
.form-status {
  margin-bottom: 15px;
  font-weight: bold;
} /* For JS messages */

/* 8. Footer */
footer {
  background-color: #000000; /* Black footer */
  padding: 50px 0 30px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 80px; /* Space before footer */
}
.footer-content {
  text-align: center;
}
.footer-logo img {
  height: 40px;
  margin-bottom: 20px;
}
.footer-nav {
  margin-bottom: 25px;
}
.footer-nav a {
  color: var(--color-secondary-text);
  margin: 0 15px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-nav a:hover {
  color: var(--color-accent-primary);
}
.footer-social {
  margin-bottom: 25px;
}
.footer-social a {
  display: inline-block;
  margin: 0 10px;
}
.footer-social img {
  height: 24px;
  width: 24px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: invert(10%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
    contrast(100%); /* Makes icons greyish */
}
.footer-social a:hover img {
  opacity: 2;
  filter: invert(52%) sepia(72%) saturate(657%) hue-rotate(12deg)
    brightness(96%) contrast(90%);
}

.header-social {
  margin-top: 18px;
  margin-bottom: 10px;
}
.header-social a {
  display: inline-block;
  margin: 0 10px;
}
.header-social img {
  height: 24px;
  width: 24px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: invert(10%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
    contrast(100%); /* Makes icons greyish */
}
.header-social a:hover img {
  opacity: 2;
  filter: invert(52%) sepia(72%) saturate(657%) hue-rotate(12deg)
    brightness(96%) contrast(90%);
}

.footer-copyright {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}


/* 10. Responsiveness */
@media (max-width: 992px) {
  .container {
    max-width: 960px;
  }
  h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  }
  h2.section-title {
    padding-top: 20px;
    margin-bottom: 20px;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .content-section {
    padding: 0px 0;
  }
  .about-layout,
  .technology-layout {
    flex-direction: column;
    gap: 0px;
  }
  .about-text {
    margin-top: 40px;
  }
  .contact-layout {
    gap: 40px;
  }
  .tech-point p {
    font-size: 1rem;
    color: var(--color-secondary-text);
    max-width: 600px;
    margin: 0px;
  }
  .tech-point h4 {
    font-size: 1.3rem;
    color: var(--color-accent-primary);
    max-width: 600px;
    margin: 0px;
  }
  .construction-container {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  body {
    line-height: 1.6;
  }
  .container {
    padding: 0 15px;
  }
  h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  h2.section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 50px;
  }

  /* Mobile Menu */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 46px; /* Adjust based on header height */
    left: 0;
    margin-top: 29px;
    background-color: var(--color-background-alt);
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--color-border);
  }
  .nav-links.active {
    display: flex;
  } /* JS Toggles this */
  .nav-links li {
    margin: 0;
    width: 100%;
  }
  .nav-links a {
    padding: 15px 20px;
    display: block;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background-color: rgba(255, 165, 0, 0.1);
    color: var(--color-accent-primary);
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-primary-text);
    padding: 0px 10px 0px 0px;
  }

  /* Stack Layouts */
  .hero-content .subtitle {
    max-width: 90%;
  }
  .about-layout,
  #clients-investisseurs .mission-container {
    flex-direction: column;
  }
  .about-image-or-video {
    margin-top: 0px;
  }
  .technology-layout {
    flex-direction: column-reverse;
  } /* Image below text */
  .tech-image-area{
    margin-top: 0px;
  }
  .tech-image-area,
  .tech-description-area {
     flex-basis: auto; /* Reset flex-basis */
     min-width: 100%; /* Ensure they take full width */
     /* Or maybe slightly less like 95% with auto margins */
     /* width: 95%;
     margin-left: auto;
     margin-right: auto; */
  }

  .tech-description-area {
    /* Reduce text size slightly on mobile for better readability? */
     font-size: 0.95rem;
  }
  .tech-description-area h4 {
    font-size: 1.3rem;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-info {
    margin-bottom: 30px;
  }
  .map-placeholder {
    height: 200px;
 }

  .key-features-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }
  .footer-content {
    padding: 0 0px;
  }
  .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .footer-nav a {
    margin: 0;
  }

  image-text-wrapper {
    flex-direction: column;
  }

  .text-content,
  .simple-image-switcher {
    width: 100%;
  }
}

/* @media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
} */

@media (max-width: 480px) {
  html {
    font-size: 15px;
    scroll-behavior: auto; 
  }
  h1 {
    font-size: 1.8rem;
  }
  h2.section-title {
    font-size: 1.5rem;
  }
  .hero-content .subtitle {
    font-size: 1rem;
  }
  .cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
    width: 80%;
    max-width: auto;
  }
  .contact-form-container button[type="submit"] {
    width: 100%;
  }
  .key-features-grid {
    grid-template-columns: 1fr;
  } /* Single column */
  .logo-grid {
    gap: 25px;
  }

  #header .container {
    height: 50px;
  }
#header .logo-link img {
  display: block;
  height: 26px;
  width: 110px;
}

  #header .logo-grid img {
    height: 35px;
    width: 35px;
  }
  .footer-social a {
    margin: 0 8px;
  }

  .mobile-menu-toggle {
    display: block !important;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-primary-text);
    /* padding: 5px; */
  }
  #header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;

}

  #header .container {
    max-width: 100%;
    flex-direction: row;
    align-items: center;
     padding: 8px ; 
     gap: 20px; /* Optional: Adds spacing between stacked items */
  }
 

   .language-selector {
    display: block !important;
  } 
 
  

  .header-social {
    display: flex;
    margin-top: 15px;
    margin-bottom: 5px;
    text-align: center; /* Center social icons */
  }

  .header-social a {
    margin: 6px 6px; /* Tighter spacing between icons */
  }

  .header-social img {
    margin-bottom: 8px;
    height: 22px;
    width: 22px;
  }


}
/* --- Modal Styles --- */

.modal-overlay {
  position: fixed; /* Stay in place */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
  display: flex; /* Use flex for centering */
  justify-content: center;
  align-items: center;
  z-index: 2000; /* Ensure it's on top */
  opacity: 0; /* Start hidden */
  visibility: hidden; /* Start hidden */
  transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth fade */
}

.modal-overlay.active {
  opacity: 1; /* Fade in */
  visibility: visible; /* Make it visible */
}

.modal-box {
  background-color: #121212;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 90%;
  width: 400px; /* Max width of modal */
  position: relative;
  transform: scale(0.9); /* Start slightly smaller */
  transition: transform 0.3s ease; /* Smooth pop effect */
}

.modal-overlay.active .modal-box {
    transform: scale(1); /* Scale to full size when active */
}


.modal-icon {
    margin-bottom: 15px;
}
/* Optional: Style SVG icon color if not set inline */
/* .modal-icon svg { color: #28a745; } */


.modal-box h3 {
  font-family: 'Trueno', sans-serif; /* Or your title font */
  font-weight: bold;
  color: #ffffff; /* Dark title color */
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.modal-box p {
  font-family: 'Kentledge', sans-serif; /* Or your body font */
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: center; /* Ensure centered */
  max-width: none; /* Override centering margins if needed */
  margin-left: 0;
  margin-right: 0;
}
.modal-box p:last-of-type {
    margin-bottom: 0;
}

.modal-close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2rem; /* Make X larger */
  line-height: 1;
  cursor: pointer;
  color: #aaa;
  padding: 5px;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #666;
}

/* --- End Modal Styles --- */