* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 🔥 Add this block */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@font-face {
  font-family: "Exo2";
  src: url("font/Exo2-SemiBold.ttf");
}

@font-face {
  font-family: "SourceSansPro";
  src: url("font/SourceSansPro-Regular.ttf");
}

:root {
  --white: #fff;
  --grey: #c4c6c9;
  --blue: #404f68;
  --dark-grey: #7c7e7f;
  --black: #000;
  --heading: "Exo2";
  --para: "SourceSansPro";
}

.navbar {
  height: 10vh;
  width: 100%;
  background: var(--dark-grey);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid var(--light-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 100000;
}

.logo {
  width: 30%;
  height: 10vh;
  color: var(--grey);
  display: flex;
  font-size: 20px;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: 125px;
  height: 55px;
}

.hamburger {
  width: 20%;
  height: 10vh;
  font-size: 35px;
  background: var(--dark-grey);
  border: none;
  color: var(--white);
}

/* MOBILE NAV (default) */
.nav-links {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  background: var(--dark-grey);
  height: auto;
  max-height: calc(100vh - 80px); /* you can keep this or tweak later */
  overflow-y: auto;
  padding: 10px 0 20px;
  text-align: left;
  position: absolute;
  top: 100%; /* ✅ sit directly under the navbar */
  left: 0;
  right: 0;
  z-index: 1001;
}

.nav-links a {
  padding: 10px 18px;
  cursor: pointer;
  color: var(--white);
  font-size: 15px;
  text-decoration: none;
  font-family: var(--heading);
}

.dropdown {
  position: relative;
  /* float & overflow not needed with flex nav */
}

.dropdown a:hover {
  border: none;
}

.dropdown .dropbtn {
  font-size: 15px;
  border: none;
  outline: none;
  color: var(--white);
  padding: 14px 0px;
  background-color: inherit;
}

/* 🔥 Dropdown aligned directly below Products */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* just under the button */
  left: 0; /* left-aligned with Products */
  background: var(--dark-grey);
  min-width: 150px;
  z-index: 999;
}

.dropdown-content a {
  float: none;
  color: var(--white);
  padding: 8px 18px;
  text-decoration: none;
  display: block;
  text-align: center;
  font-family: var(--para);
  font-size: 10px;
}

.dropdown-content a:hover {
  color: var(--black);
  background: var(--white);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropdown-content {
  display: block;
}

@media only screen and (min-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .navbar {
    width: 100%;
    height: 10vh;
    background: var(--dark-grey);
    backdrop-filter: blur(15px);
    border-bottom: 3px solid var(--light-blue);
    display: flex;
    position: fixed;
    top: 0;
    z-index: 10000;
  }

  .logo {
    flex: 0 0 auto; /* don’t stretch */
    width: auto;
    height: 9vh;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo img {
    width: 135px;
    height: 65px;
  }

  .hamburger {
    display: none;
  }

  .nav-links {
    flex: 1; /* fill remaining width */
    width: auto;
    height: 10vh;
    display: flex !important;
    background: none;
    justify-content: flex-end;
    align-items: center;
    font-size: 13px;
    padding-right: 20px;
    position: static;
    flex-direction: row;
    overflow: visible; /* safety – no internal scrollbars */
  }

  .nav-links a {
    padding: 8px 15px;
    border: none;
    font-size: 20px;
    text-decoration: none;
    cursor: pointer;
    color: var(--white);
    transition: all 100ms ease-in-out;
    font-family: var(--heading);
  }

  .nav-links a:hover {
    border-bottom: 2px solid var(--white);
  }

  .dropdown {
    position: relative;
  }

  .dropdown a:hover {
    border: none;
  }

  .dropdown .dropbtn {
    font-size: 20px;
    border: none;
    outline: none;
    color: var(--white);
    padding: 14px 16px;
    background-color: inherit;
    margin: 0;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-grey);
    min-width: 160px;
    z-index: 10;
  }

  .dropdown-content a {
    float: none;
    color: var(--white);
    padding: 12px 16px;
    font-size: 15px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-family: var(--para);
  }

  .dropdown-content a:hover {
    background-color: var(--white);
    color: var(--black);
  }

  .dropdown:hover .dropdown-content {
    display: block;
    background: var(--dark-grey);
  }
}

/* Shrink nav text for 768px – 1080px */
@media only screen and (min-width: 768px) and (max-width: 1080px) {
  .nav-links a,
  .dropdown .dropbtn {
    font-size: clamp(12px, 1.4vw, 15px); /* auto-scales with width */
    padding: 4px 6px; /* tighter padding so it fits */
  }
}

/* Shrink nav text between 1081px – 1215px */
@media only screen and (min-width: 1081px) and (max-width: 1215px) {
  .nav-links a,
  .dropdown .dropbtn {
    font-size: clamp(14px, 1.2vw, 18px);
    padding: 4px 10px;
  }

  .logo img {
    width: 120px;
    height: auto;
  }
}
/* Fix navbar + logo between 1081px and 1214px */
@media only screen and (min-width: 1081px) and (max-width: 1300px) {
  .navbar {
    height: 80px; /* a bit taller so logo doesn't cut */
  }

  .logo {
    height: 80px;
  }

  .logo img {
    height: 60px; /* slightly smaller logo */
    width: auto;
  }

  .nav-links {
    gap: 8px; /* reduce spacing between items */
    padding-right: 10px;
  }

  .nav-links a,
  .dropdown .dropbtn {
    font-size: 16px; /* smaller text so everything fits */
    padding: 6px 10px; /* less padding */
  }
}

/* ================== HOME SECTIONS – MOBILE FIRST ================== */

/* ---- Hero carousel section ---- */

.head {
  width: 100%;
  margin-top: 10vh; /* room for fixed navbar */
}

.carousel {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  background: #000;
}

.track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 700ms cubic-bezier(0.22, 0.9, 0.25, 1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Our Dedication ---- */

.dedi {
  width: 100%;
  background-image: url("img/bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 40px 16px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dedi_title {
  width: 100%;
  border-bottom: 3px solid var(--blue);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font-family: var(--heading);
  font-size: 24px;
  text-align: center;
  padding-bottom: 8px;
}

.dedi_para {
  width: 100%;
  text-align: center;
  font-family: var(--para);
  font-size: 14px;
}

.dedi_box {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}

.dedi_pts {
  width: 100%;
  border-radius: 10px;
  color: var(--white);
  font-family: var(--para);
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--blue);
  padding: 10px 12px;
}

/* ---- Precision / intro section ---- */

.precision {
  width: 100%;
  background-image: url("img/bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pre_img {
  width: 100%;
  display: flex;
  justify-content: center;
}

.pre_img img {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.pre_txt {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--para);
}

.pre_title {
  width: 100%;
  border-bottom: 3px solid var(--blue);
  padding-bottom: 8px;
  font-family: var(--heading);
  font-size: 20px;
}

.pre_para {
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
}

.pre_btn {
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

.pre_btn a {
  width: auto;
}

.pre_btn button {
  padding: 8px 18px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--heading);
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

/* ---- Sectors We Cover ---- */

.cover {
  width: 100%;
  background-image: url("img/bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 40px 16px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cover_title {
  width: 100%;
  border-bottom: 3px solid var(--blue);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font-family: var(--heading);
  font-size: 24px;
  text-align: center;
  padding-bottom: 6px;
}

.cover_para {
  width: 100%;
  text-align: center;
  font-family: var(--para);
  font-size: 14px;
}

.cover_box {
  width: 100%;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.cover_pts {
  width: 100%;
  min-height: 230px;
  border-radius: 10px;
  font-family: var(--para);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  background: var(--white);
  color: var(--blue);
  border: 3px solid var(--blue);
  padding: 12px;
  transition: transform 300ms ease-in-out, background 300ms ease-in-out,
    color 300ms ease-in-out;
}

.cover_pts img {
  width: 140px;
  height: 110px;
  object-fit: cover;
  margin-bottom: 8px;
}

.cover_pts:hover {
  transform: scale(1.03);
  background: var(--blue);
  color: var(--white);
}

/* ---- Expertise section ---- */

.expert {
  width: 100%;
  background-image: url("img/bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.expert_title {
  width: 100%;
  border-bottom: 3px solid var(--blue);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font-family: var(--heading);
  font-size: 24px;
  text-align: center;
  padding-bottom: 8px;
}

.expert_para {
  width: 100%;
  text-align: center;
  padding: 4px;
  font-family: var(--para);
  font-size: 14px;
}

.expert_box {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 10px;
}

.expert_part {
  width: 100%;
  background: var(--dark-grey);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  padding: 10px;
  transition: all 300ms ease-in-out;
}

.expert_part img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 8px;
}

.expert_part p {
  font-family: var(--para);
  color: var(--white);
  font-size: 14px;
}

/* ---- Why Choose section ---- */

.choose {
  width: 100%;
  background-image: url("img/bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 40px 16px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.choose_title {
  width: 100%;
  border-bottom: 3px solid var(--blue);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--heading);
  font-size: 24px;
  text-align: center;
  padding-bottom: 8px;
}

.choose_box {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 10px;
}

.choose_pts {
  width: 100%;
  background: var(--dark-grey);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 14px;
  gap: 10px;
}

.icon {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: var(--white);
  font-size: 32px;
}

.choose_pts b {
  font-size: 18px;
  font-family: var(--heading);
  color: var(--white);
}

.choose_pts p {
  font-size: 14px;
  font-family: var(--para);
  color: var(--white);
  line-height: 1.6;
}

/* ================== BREAKPOINTS ================== */

/* ≥ 600px: small tablets */
@media only screen and (min-width: 600px) {
  .carousel {
    height: 340px;
  }

  .dedi_box {
    grid-template-columns: repeat(2, 1fr);
  }

  .cover_box {
    grid-template-columns: repeat(2, 1fr);
  }

  .expert_box {
    grid-template-columns: repeat(2, 1fr);
  }

  .choose_box {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ≥ 900px: tablets / small laptops */
@media only screen and (min-width: 900px) {
  .carousel {
    height: 480px;
  }

  .precision {
    flex-direction: row;
    align-items: center;
  }

  .pre_img {
    width: 50%;
    justify-content: flex-end;
    padding-right: 2%;
  }

  .pre_txt {
    width: 50%;
    padding-left: 2%;
  }

  .pre_title {
    font-size: 24px;
  }

  .dedi_title,
  .cover_title,
  .expert_title,
  .choose_title {
    font-size: 30px;
  }
}

/* ≥ 1280px: large desktops – closer to your original layout */
@media only screen and (min-width: 1280px) {
  .head {
    height: 750px;
    padding-top: 3%;
  }

  .carousel {
    height: 700px;
  }

  .dedi {
    height: 300px;
  }

  .dedi_box {
    height: 120px;
    grid-template-columns: repeat(4, 1fr);
  }

  .precision {
    height: 500px;
  }

  .cover {
    height: 500px;
  }

  .cover_box {
    width: 70%;
    margin: 0 auto;
    grid-template-columns: repeat(5, 1fr);
  }

  .expert {
    height: 900px;
  }

  .expert_box {
    height: 600px;
    grid-template-columns: repeat(4, 1fr);
  }

  .choose {
    height: 900px;
    justify-content: space-evenly;
  }

  .choose_box {
    height: 600px;
    grid-template-columns: repeat(3, 1fr);
  }

  .dedi_pts,
  .cover_pts,
  .expert_part,
  .choose_pts {
    max-width: 100%;
  }
}

.footer-container {
  display: flex;
  flex-direction: column; /* stack sections */
  gap: 25px;
}

.footer-section {
  width: 100%; /* full width per section */
}

.footer-section h3 {
  font-size: 1.1rem;
  font-family: var(--heading);
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-section p,
.footer-section a {
  color: #dfdfdf;
  font-size: 0.9rem;
  line-height: 1.7;
  font-family: var(--para);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.footer-section a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-links a {
  display: inline-block;
  background: #333;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  color: #fff;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.social-links a:hover {
  background: #007bff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 15px;
  font-size: 0.8rem;
  color: var(--white);
}

/* 🔹 TABLET & DESKTOP (≥ 768px) */
@media only screen and (min-width: 768px) {
  footer {
    padding: 60px 80px;
  }

  .footer-container {
    flex-direction: row; /* side by side */
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
  }

  .footer-section {
    width: 22%; /* four columns */
  }

  .footer-bottom {
    font-size: 0.9rem;
  }
}

footer {
  background-color: var(--dark-grey);
  color: #dcdcdc;
  padding: 60px 100px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.footer-section {
  width: 22%;
}

.footer-section h3 {
  font-size: 1.2rem;
  font-family: var(--heading);
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-section p,
.footer-section a {
  color: #dfdfdf;
  font-size: 0.95rem;
  line-height: 1.8;
  font-family: var(--para);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.footer-section a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-links a {
  display: inline-block;
  background: #333;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  text-align: center;
  line-height: 35px;
  color: #fff;
  font-size: 1rem;
  transition: background 0.3s;
}

.social-links a:hover {
  background: #007bff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.9rem;
  color: var(--white);
}
/* ========== FOOTER (MOBILE FIRST) ========== */
footer {
  background-color: var(--dark-grey);
  color: #dcdcdc;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-direction: column; /* Default: 1 column below 375px */
  gap: 25px;
}

.footer-section {
  width: 100%;
}

.footer-section h3 {
  font-size: 1.1rem;
  font-family: var(--heading);
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-section p,
.footer-section a {
  color: #dfdfdf;
  font-size: 0.9rem;
  line-height: 1.7;
  font-family: var(--para);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.footer-section a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-links a {
  display: inline-block;
  background: #333;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  color: #fff;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.social-links a:hover {
  background: #007bff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 15px;
  font-size: 0.8rem;
  color: var(--white);
}

/* ========== 375px – 767px: TWO COLUMNS ========== */
@media only screen and (min-width: 375px) {
  .footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* ========== 768px AND ABOVE: DESKTOP FOOTER ========== */
@media only screen and (min-width: 768px) {
  footer {
    padding: 60px 80px;
  }

  .footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
  }

  .footer-section {
    width: 22%;
  }

  .footer-bottom {
    font-size: 0.9rem;
  }
}

/* Fix logo on small screens (≤ 650px) */
@media only screen and (max-width: 650px) {
  .navbar {
    height: auto; /* let it grow with content */
    padding: 6px 10px;
    align-items: center;
  }

  .logo {
    width: 65%;
    height: auto;
    justify-content: flex-start; /* keep it to the left */
    align-items: center;
    font-size: 18px;
  }

  .logo img {
    height: 48px; /* smaller than navbar */
    width: auto;
    margin-right: 6px;
  }

  .hamburger {
    width: auto;
    height: auto;
    font-size: 30px;
    padding-right: 4px;
  }
}
