  /* Reset */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
  }

  /* Navbar/Header */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    /* lock height */
    background: #ffffff;
    display: flex;
    align-items: center;
    /* 🔑 vertical alignment */
    justify-content: space-between;
    padding: 0 10%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    z-index: 1000;
  }

  .logo {
    display: flex;
    align-items: center;
    /* 🔑 */
  }

  .logo img {
    height: 44px;
    /* 🔑 SAME on all pages */
    width: auto;
    display: block;
  }



  /* Nav menu */
  .nav-menu {
    display: flex;
    position: relative;
  }

  .nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
  }

  .nav-menu ul li a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s ease;
  }

  .nav-menu ul li a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .nav-menu ul li a:hover,
  .nav-menu ul li a.active {
    color: #2563eb;
  }

  .nav-menu ul li a:hover::after,
  .nav-menu ul li a.active::after {
    width: 100%;
  }


  /* Hamburger icon */
  .hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    z-index: 1001;
  }

  /* Spacer to prevent content overlap */
  .spacer {
    height: 72px;
  }

  /* =========================
    HERO SECTION (VIDEO)
    ========================= */

  .hero {
    position: relative;
    padding: 100px 10% 120px;
    text-align: center;
    color: white;
    overflow: hidden;
    background: none;
    /* image removed */
  }

  /* Video background */
  .hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
  }

  /* Dark overlay */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
  }

  /* Content above video */
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
  }

  /* Heading */
  .hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .hero h1 span {
    color: #3ba5d9;
  }

  /* Paragraph */
  .hero p {
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
    color: white;
  }

  /* Buttons (UNCHANGED) */
  .btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin: 8px;
    transition: all 0.3s;
    font-size: 1rem;
  }

  .btn-primary {
    background: #2563eb;
    color: white;
  }

  .btn-primary:hover {
    background: #1d4ed8;
  }

  .btn-outline {
    border: 2px solid white;
    color: white;
    background: transparent;
  }

  .btn-outline:hover {
    background: white;
    color: #2563eb;
  }

  /* =========================
    HERO RESPONSIVE
    ========================= */

  @media (max-width: 768px) {
    .hero {
      padding: 80px 6% 100px;
    }

    .hero h1 {
      font-size: 2.2rem;
    }

    .hero p {
      font-size: 1.05rem;
    }
  }

  /* Pesudo */
  .service-highlight h3 {
  position: relative;
  display: inline-block;
  font-size: 1.9rem;
  margin-bottom: 24px;
  color: #1f2937;
  cursor: default;
}
.service-highlight h3 {
  position: relative;
  display: inline-block;
  font-size: 1.9rem;
  margin-bottom: 24px;
  color: #1f2937;
  cursor: default;
}
.service-highlight:hover h3::after {
  width: 100%;
}

/* =========================
   REUSABLE UNDERLINE TITLE
   ========================= */

.underline-title {
  position: relative;
  display: inline-block;        /* important for underline width */
  padding-bottom: 10px;
}

/* underline */
.underline-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;                  /* default underline length */
  height: 3px;
  background: #2563eb;
  border-radius: 3px;
  transition: width 0.35s ease;
}

/* hover effect */
.underline-title:hover::after {
  width: 100%;
}
/* Center aligned underline */
.underline-center {
  text-align: center;
}

.underline-center::after {
  left: 50%;
  transform: translateX(-50%);
}


  /* =========================
   HERO HARD FIX (CSS ONLY)
   ========================= */

  /* lock hero to viewport minus header */
  .hero {
    height: calc(100vh - 80px);
    padding: 0;
    /* neutralize padding issue */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* keep original spacing via content instead */
  .hero-content {
    padding: 100px 10% 120px;
  }

  /* force video to follow hero, not viewport */
  .hero-bg-video {
    width: 100%;
    height: 100%;
  }

  /* buttons must behave as buttons, not text */
  .hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    text-decoration: none;
    line-height: normal;
  }

  /* fix weird inline merging */
  .hero .btn+.btn {
    margin-left: 16px;
  }

  /* mobile correction */
  @media (max-width: 768px) {
    .hero {
      height: calc(100vh - 70px);
    }

    .hero-content {
      padding: 80px 6% 100px;
    }

    .hero .btn+.btn {
      margin-left: 0;
      margin-top: 12px;
    }
  }


/* =========================
   LEADING ENGINEERING SERVICES
   ========================= */

.leading-services {
  background: #f8fafc;
  padding: 90px clamp(16px, 5vw, 48px);
}

.leading-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 38px;
  margin-top: 50px;
}

.service-highlight {
  background: #ffffff;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
  border-top: 6px solid;
}

.service-highlight h3 {
  font-size: 1.9rem;
  margin-bottom: 20px;
  color: #1f2937;
}

.service-highlight p {
  font-size: 1rem;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 16px;
}

/* Color themes */
.service-highlight.data {
  border-color: #0ea5e9;
}

.service-highlight.fpga {
  border-color: #8e44ad;
}

/* Responsive */
@media (max-width: 900px) {
  .leading-services-grid {
    grid-template-columns: 1fr;
  }
}


  /* Stats Section */
  .stats {
    text-align: center;
    padding: 80px 10%;
    background: #fff;
  }

  .stats h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
  }

  .stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }

  .stat-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    width: 250px;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  /* Projects – brown/orange */
  .stat-box.blue {
    border-color: rgba(180, 83, 9, 0.35);
  }

  /* Happy Clients – violet */
  .stat-box.purple {
    border-color: rgba(124, 58, 237, 0.35);
  }

  /* Engineers – indigo */
  .stat-box.green {
    border-color: rgba(79, 70, 229, 0.35);
  }


  .stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }

  .stat-box .icon {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .stat-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .stat-box p {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 5px;
  }

  .stat-box span {
    font-size: 0.9rem;
    color: #6b7280;
    display: block;
    margin-top: 5px;
  }

  /* =========================
    CLIENT CAROUSEL
    ========================= */

  .clients {
    padding: 60px 0;
    background: #ffffff;
    overflow: hidden;
    text-align: center;
  }

  .clients h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
  }


  .clients-wrapper {
    width: 100%;
    overflow: hidden;
  }

  .clients-track {
    display: flex;
    align-items: center;
    gap: 70px;
    animation: clientScroll 30s linear infinite;
  }

  .clients-track img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
  }

  .clients-track img:hover {
    transform: scale(1.2);
    filter: brightness(1.1);
  }

  .clients-track img {
    height: 60px;
    width: auto;
    object-fit: contain;

    /* IMPORTANT */
    flex-shrink: 0;

    transition: transform 0.35s ease, filter 0.35s ease;
  }

  .clients-track img:hover {
    transform: scale(1.35);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
  }


  .clients-track img:hover {
    z-index: 5;
  }

  /* pause animation on hover
  .clients-track:hover {
    animation-play-state: paused;
  } */

  @keyframes clientScroll {
    from {
      transform: translateX(0);
    }

    to {
      transform: translateX(-50%);
    }
  }

  /* Responsive */
  @media (max-width: 768px) {
    .clients-track {
      gap: 40px;
    }

    .clients-track img {
      height: 45px;
    }
  }


  /* =========================
   SERVICES SECTION (FINAL)
   ========================= */

  .services {
    text-align: center;
    padding: 80px 10%;
    background: #ffffff;
  }

  .services h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
  }

  .services .subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Grid layout */
  .services-container {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  /* If 4 or more → 2 columns */
  .services-container:has(.service-box:nth-child(4)) {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mobile → single column */
  @media (max-width: 768px) {
    .services-container {
      grid-template-columns: 1fr !important;
    }
  }

  /* Card base */
  .service-box {
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 32px;
    text-align: left;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }

  /* Hover */
  .service-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }

  /* Icon */
  .service-box .icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffffff;
  }

  /* ===== COLORED BORDERS (FAINT, PREMIUM) ===== */

  /* Electronics – Blue */
  .service-box.blue {
    border-color: rgba(59, 130, 246, 0.35);
  }

  .service-box.blue .icon {
    background: #3b82f6;
  }

  /* Mechanical – Violet */
  .service-box.purple {
    border-color: rgba(168, 85, 247, 0.35);
  }

  .service-box.purple .icon {
    background: #a855f7;
  }

  /* Electrical – Green */
  .service-box.green {
    border-color: rgba(34, 197, 94, 0.35);
  }

  .service-box.green .icon {
    background: #22c55e;
  }

  /* Software – Orange */
  .service-box.orange {
    border-color: rgba(249, 115, 22, 0.35);
  }

  .service-box.orange .icon {
    background: #f97316;
  }

  /* Text */
  .service-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .service-box p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
  }

  /* =========================
    CTA VIDEO BACKGROUND (VISIBILITY FIX)
    ========================= */

  .cta-video {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    overflow: hidden;
  }

  .cta-video .cta-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }

  /* STRONGER overlay */
  .cta-video::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(5, 10, 30, 0.85),
        rgba(5, 10, 30, 0.92));
    z-index: 1;
  }

  /* CTA content – clarity first */
  .cta-video .cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    /* keep original spacing */
    text-align: center;
  }

  /* stronger text contrast */
  .cta-video h2 {
    color: #ffffff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 1);
  }

  .cta-video p {
    color: #e5e7eb;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  }


  /* text clarity */
  .cta-video h2,
  .cta-video p {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  }



  /* Footer Section */
  footer {
    background: #0f172a;
    padding: 50px 80px 20px;
    color: #e2e8f0;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
  }

  .footer-logo h2 {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
  }

  .footer-logo h2 {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    /* optional – remove if you want sharp edges */
  }


  .footer-logo p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .social-icons a {
    display: inline-block;
    margin-right: 10px;
    background: #1e293b;
    padding: 10px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
  }

  .social-icons a:hover {
    background: #605656;
    color: aqua;
  }

  footer h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
  }

  footer ul {
    list-style: none;
  }

  footer ul li {
    margin-bottom: 10px;
  }

  footer ul li a {
    color: #cbd5e1;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
  }

  footer ul li a:hover {
    color: aqua;
  }

  .contact-info p {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
  }

  .contact-info p span {
    margin-right: 10px;
    color: #7d7f81;
    font-size: 16px;
  }

  #ml {
    text-decoration: none;
    color: white;
  }

  #ml:hover {
    color: rgb(207, 46, 196);
  }

  .footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 40px;
    padding-top: 15px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #94a3b8;
  }

  .footer-bottom span {
    color: #64748b;
  }

  /* ======================
  RESPONSIVE HEADER
  ====================== */
  @media (max-width: 992px) {
    .hamburger {
      display: block;
    }

    .nav-menu {
      position: absolute;
      top: 70px;
      left: 0;
      width: 100%;
      background: #fff;
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.5s ease;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    .nav-menu.show {
      max-height: 500px;
      /* Adjust if more menu items */
    }

    .nav-menu ul {
      flex-direction: column;
      align-items: flex-start;
      padding: 10px 20px;
    }

    .nav-menu ul li {
      padding: 10px 0;
      border-bottom: 1px solid #f0f0f0;
      width: 100%;
    }

    .nav-menu ul li a {
      display: block;
    }

    .nav-menu ul li a.active::after {
      display: none;
    }
  }

  /* Footer responsive adjustments */
  @media (max-width: 900px) {
    .footer-container {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 600px) {
    .footer-container {
      grid-template-columns: 1fr;
    }
  }