 :root {
      --primary: #c5a059;
      --dark: #0a0a0a;
      --light: #ffffff;
      --gray: #1a1a1a;
      --header-top: 40px;
      --header-height: 80px;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html,
    body {
      max-width: 100%;
      overflow-x: hidden;
      /* Prevents unwanted horizontal scroll */
      background-color: var(--dark);
      color: var(--light);
    
    }

   

    h1,
    h2,
    h3,
    .logo {
      font-family: 'Playfair Display', serif;
    }

    .top-bar {
      position: fixed;
      top: 0;
      width: 100%;
      height: var(--header-top);
      background: #1a1a1a;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 5%;
      font-size: 0.75rem;
      z-index: 5001;
    }


    .top-bar ul li {
      position: relative;
      display: inline-block;
      float: left;
      padding-right: 16px;
      margin-right: 15px;
      color: #7c7e84;
      font-size: 15px;
      line-height: 30px;
    }

    .top-bar span,
    .top-bar a {
      color: #aaa;
      text-decoration: none;
      margin-right: 15px;
    }

    .top-bar a:hover {
      color: var(--primary);
    }

    /* --- HEADER --- */
    .header {
      position: fixed;
      top: 40px;
      width: 100%;
      height: var(--header-height);
      z-index: 3000;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 5%;
      background: rgba(10, 10, 10, 0.95);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .logo {
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: 2px;
      color: var(--primary);
    }

    .nav ul {
      display: flex;
      list-style: none;
      height: 100%;
    }

    .nav li {
      display: flex;
      align-items: center;
      height: var(--header-height);
    }

    .nav span,
    .nav a {
      cursor: pointer;
      text-decoration: none;
      color: white;
      padding: 0 20px;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      transition: 0.3s;
    }

    .nav span:hover {
      color: var(--primary);
    }

    /* --- MEGA MENU (HOVER BASED) --- */
    .mega-overlay {
      position: fixed;
      top: var(--header-height);
      left: 0;
      width: 100%;
      background: #111;
      z-index: 2500;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.4s ease;
      padding: 60px 10%;
      border-bottom: 3px solid var(--primary);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .mega-overlay.open {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .mega-content {
      display: none;
    }

    .mega-content.active {
      display: block;
    }

    .mega-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 40px;
    }

    .mega-grid h3 {
      color: var(--primary);
      margin-bottom: 20px;
      font-size: 1.2rem;
    }

    .mega-grid a {
      display: block;
      color: #888;
      text-decoration: none;
      margin-bottom: 10px;
      transition: 0.3s;
    }

    .mega-grid a:hover {
      color: white;
      padding-left: 5px;
    }

    /* --- HERO --- */
    .hero {
      height: 100vh;
      width: 100%;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      overflow: hidden;
    }

    .hero-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 1s ease;
    }

    .hero-bg.active {
      opacity: 1;
    }

    .hero-bg video,
    .hero-bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
    }

    .hero-content {
      position: relative;
      z-index: 10;
      padding: 0 20px;
    }

    .hero-content h1 {
      font-size: clamp(2.5rem, 6vw, 4.5rem);
      margin-bottom: 20px;
    }

    .hero-content button {
      padding: 15px 40px;
      background: var(--primary);
      border: none;
      color: white;
      font-weight: 600;
      cursor: pointer;
    }

    /* --- HORIZONTAL SHOWCASE --- */
    /* The container that GSAP will PIN */
    /* Container that holds the pinned section */
    .showcase-wrapper {
      width: 100%;
      overflow: hidden;
      background: var(--dark);
    }

    /* The long horizontal track */
    .services-showcase {
      display: flex;
      flex-wrap: nowrap;
      /* Forces items in a single line */
      padding: 100px 5vw;
      gap: 40px;
      width: max-content;
      /* Critical: allows width to exceed 100vw */
      will-change: transform;
    }

    /* Individual Card Styling */
    .item {
      position: relative;
      width: 450px;
      /* Adjust based on preference */
      height: 600px;
      flex-shrink: 0;
      /* STOP items from shrinking to 0 width */
      overflow: hidden;
      border-radius: 8px;
      background: #1a1a1a;
    }

    .item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.8s ease;
      opacity: 0.8;
    }

    .item-info {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      padding: 40px 30px;
      z-index: 5;
      background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 100%);
    }

    .item h3 {
      font-size: 1.8rem;
      color: var(--primary);
      margin-bottom: 5px;
    }

    .item p {
      font-size: 0.9rem;
      color: #fff;
      opacity: 0.7;
    }

    .item:hover img {
      transform: scale(1.05);
      opacity: 1;
    }

    /* Hover service overlay */
    .item-overlay {
      position: absolute;
      inset: 0;
      z-index: 4;
      background:linear-gradient(to top, rgb(0 0 0), rgb(0 0 0 / 69%));
      opacity: 0;
      transition: opacity 0.4s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      pointer-events: none;
    }

    /* Show overlay on hover */
    .item:hover .item-overlay {
      opacity: 1;
    }
      .item:hover .item-info {
      display: none;
    }

     
    /* Content animation */
    .overlay-content {
      color: #fff;
      transform: translateY(20px);
      transition: transform 0.4s ease;
    }

    .item:hover .overlay-content {
      transform: translateY(0);
    }

    .overlay-content h3 {
      font-size: 1.9rem;
      margin-bottom: 15px;
      color: var(--primary);
    }

    .overlay-content ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .overlay-content ul li {
      font-size: 0.95rem;
      opacity: 0.9;
      margin-bottom: 8px;
    }

    /* --- MOBILE RESPONSIVENESS --- */
    @media (max-width: 992px) {
      .nav {
        display: none;
      }

      .services-showcase {
        flex-direction: column;
        width: 100%;
        padding: 50px 20px;
      }

      .item {
        width: 100%;
        height: 400px;
      }
    }


    /* --- PROCESS ENHANCEMENT --- */
    .process {
      padding: 120px 5%;
      background: var(--dark);
      text-align: center;
    }

    .process h2 {
      margin-bottom: 80px;
      font-size: 2.5rem;
      letter-spacing: 2px;
    }

    .process-container {
      position: relative;
      max-width: 1200px;
      margin: 0 auto;
    }

    .process-line {
      position: absolute;
      top: 35px;
      left: 0;
      width: 100%;
      height: 1px;
      background: rgba(197, 160, 89, 0.3);
      z-index: 1;
    }

    .steps {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 20px;
      position: relative;
      z-index: 2;
    }

    .step-number {
      width: 70px;
      height: 70px;
      background: var(--gray);
      border: 1px solid var(--primary);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      font-weight: 700;
      color: var(--primary);
      transition: 0.4s;
    }

    .step:hover .step-number {
      background: var(--primary);
      color: white;
      transform: scale(1.1);
    }

    .step h3 {
      margin-bottom: 15px;
      font-size: 1.1rem;
    }

    .step p {
      font-size: 0.85rem;
      color: #888;
      line-height: 1.5;
    }

    /* --- GALLERY GRID --- */
/* --- GALLERY GRID --- */
.gallery-grid {
  padding: 100px 5%;
  background: #050505;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.view-all {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
}

/* GRID FIX */
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 20px;

  /* THIS IS THE KEY */
  grid-auto-flow: dense;
}

.grid-item {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.grid-item img,
.grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.grid-item:hover img,
.grid-item:hover video {
  transform: scale(1.05);
  opacity: 1;
}

/* SPANS */
.grid-item.tall {
  grid-row: span 2;
}

.grid-item.wide {
  grid-column: span 2;
}

    /* --- FOOTER & CTA --- */
    .footer {
      padding: 100px 5% 40px;
      background: var(--gray);
      border-top: 1px solid #333;
    }

    .cta-section {
      text-align: center;
      margin-bottom: 100px;
    }

    .cta-section h2 {
      font-size: 3rem;
      margin-bottom: 20px;
    }

    .cta-btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 18px 45px;
      font-weight: 700;
      cursor: pointer;
      margin-top: 30px;
      letter-spacing: 1px;
    }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding-top: 50px;
      border-top: 1px solid #333;
    }

    .f-col h4 {
      margin-bottom: 20px;
      color: var(--primary);
    }

    .f-col p {
      color: #888;
      margin-bottom: 5px;
    }

    /* --- RESPONSIVE PROCESS --- */
    @media (max-width: 992px) {
      .process-line {
        display: none;
      }

      .steps {
        grid-template-columns: 1fr;
        gap: 50px;
      }

      .grid-container {
        grid-template-columns: repeat(2, 1fr);
      }

      .footer-bottom {
        flex-direction: column;
        gap: 40px;
      }
    }

    /* --- MOBILE MENU TOGGLE --- */
    .menu-toggle {
      display: none;
      /* Hidden on desktop */
      flex-direction: column;
      gap: 6px;
      cursor: pointer;
      z-index: 4000;
    }

    .menu-toggle span {
      width: 30px;
      height: 2px;
      background-color: var(--primary);
      transition: 0.3s;
    }

    /* Hamburger to 'X' animation */
    .menu-toggle.active span:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
      opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }

    /* --- RESPONSIVE FIXES --- */
    @media (max-width: 992px) {
      .menu-toggle {
        display: flex;
      }

      .nav {
        display: none;
      }

      /* Keeps desktop nav hidden */

      .mega-overlay {
        top: 0;
        height: 100vh;
        overflow-y: auto;
        padding-top: 100px;
        /* Space for the logo/X */
      }

      .mega-grid {
        grid-template-columns: 1fr;
        /* Stack columns on mobile */
        gap: 30px;
      }

      .mega-content {
        display: block !important;
        /* Show all categories on mobile for easier browsing */
        margin-bottom: 40px;
      }
    }

    /* ================= PREMIUM FOOTER ================= */

    .premium-footer {
      background: #050505;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      padding: 100px 5% 40px;
    }

    .footer-container {
      display: grid;
      grid-template-columns: 2fr 1.2fr 1.2fr 1.3fr;
      gap: 60px;
      max-width: 1400px;
      margin: 0 auto;
    }

    /* BRAND COLUMN */
    .footer-logo {
      font-family: 'Playfair Display', serif;
      font-size: 2rem;
      letter-spacing: 3px;
      color: var(--primary);
      margin-bottom: 20px;
    }

    .brand-tagline {
      font-size: 0.95rem;
      color: #bbb;
      margin-bottom: 25px;
    }

    .footer-col address {
      font-style: normal;
      font-size: 0.85rem;
      line-height: 1.7;
      color: #888;
      margin-bottom: 20px;
    }

    .factory-note {
      font-size: 0.8rem;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* COLUMNS */
    .footer-col h4 {
      font-size: 1rem;
      color: var(--primary);
      margin-bottom: 25px;
      letter-spacing: 1px;
    }

    .footer-col ul {
      list-style: none;
    }

    .footer-col ul li {
      margin-bottom: 12px;
    }

    .footer-col ul a {
      font-size: 0.85rem;
      color: #888;
      text-decoration: none;
      transition: 0.3s;
    }

    .footer-col ul a:hover {
      color: white;
      padding-left: 5px;
    }

    /* CONTACT */
    .footer-col.contact p {
      font-size: 0.85rem;
      color: #888;
      margin-bottom: 20px;
    }

    .footer-col.contact strong {
      color: #bbb;
      font-weight: 500;
    }

    .footer-cta {
      display: inline-block;
      margin: 20px 0 30px;
      padding: 14px 35px;
      background: var(--primary);
      color: #000;
      font-weight: 700;
      letter-spacing: 1px;
      text-decoration: none;
      transition: 0.3s;
    }

    .footer-cta:hover {
      transform: translateY(-3px);
    }

    /* SOCIAL */
    .footer-social {
      display: flex;
      gap: 20px;
    }

    .footer-social a {
      font-size: 0.8rem;
      color: #888;
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: 0.3s;
    }

    .footer-social a:hover {
      color: white;
      border-color: var(--primary);
    }

    /* BOTTOM BAR */
    .footer-bottom {
      margin-top: 80px;
      padding-top: 30px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      justify-content: space-between;
      font-size: 0.75rem;
      color: #666;
    }

    /* RESPONSIVE */
    @media (max-width: 992px) {
      .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
      }

      .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
      }
    }



    /* SECTION */
.category-section {
  padding: 100px 0;
  background: #0b0b0b;
  color: #ffffff;
}

/* CATEGORY TABS */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 50px;
}

.category-tabs .tab {
  background: none;
  border: none;
  color: #9a9a9a;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  padding-bottom: 6px;
}

.category-tabs .tab.active {
  color: #ffffff;
}

.category-tabs .tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
}

/* GRID */
.category-grid {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 20px;
}

/* GRID ITEM – SAME SIZE ALWAYS */
/* CATEGORY GRID ITEM – ISOLATED */
.category-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  aspect-ratio: 4 / 3;
}

/* IMAGE */
.category-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.category-item:hover img {
  transform: scale(1.05);
}


/* TABLET */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE */
@media (max-width: 640px) {
  .category-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 20px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
  
}


@media (max-width: 768px) {
  .top-bar {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
  }
  .header{
    top:0px;
  }
}



.service-hero {
  height: 85vh;
  background: url("images/cnc-hero.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: var(--header-height);
}

.service-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.service-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.service-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  margin-bottom: 20px;
}

.service-hero p {
  font-size: 1rem;
  color: #ccc;
  max-width: 600px;
  line-height: 1.7;
}

/* ---------- OVERVIEW ---------- */
.overview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.overview h2 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.overview p {
  color: #aaa;
  line-height: 1.8;
}

.overview img {
  width: 100%;
  border-radius: 8px;
}

/* ---------- CAPABILITIES ---------- */
.capabilities {
  background: #050505;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.cap-box {
  background: var(--gray);
  padding: 40px 30px;
  border-left: 3px solid var(--primary);
}

.cap-box h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.cap-box p {
  font-size: 0.85rem;
  color: #bbb;
  line-height: 1.6;
}

/* ---------- MATERIALS ---------- */
.materials ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.materials li {
  list-style: none;
  padding: 20px;
  background: var(--gray);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

/* ---------- APPLICATIONS ---------- */
.apps {
  background: #050505;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.app-card {
  background: var(--gray);
  padding: 30px;
}

.app-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

/* ---------- PROCESS ---------- */
.process {
  text-align: center;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 80px;
}

.step span {
  display: inline-flex;
  width: 60px;
  height: 60px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--gray);
  text-align: center;
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.cta button {
  margin-top: 30px;
  padding: 18px 45px;
  background: var(--primary);
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .overview,
  .cap-grid,
  .apps-grid,
  .materials ul,
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.products {
  padding: 100px 5%;
  text-align: center;
}

.products h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
}





