body {
  font-family: 'Spline Sans', Arial, sans-serif;
  font-weight: bold;
  margin: 0;
  padding: 0px;
  line-height: 1.6;
  min-height: 100vh; /* Ensures the body covers the full viewport */
  color: #333; /* Default text color */
  position: relative;
  overflow-x: hidden; /* Prevents horizontal scrolling */
}

:root {
  --primary: #013466;
  --primary-dark: #022950;
  --secondary: #333333;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

/* Index Page - CNC Background */
body#index {
 background-color: rgb(255, 255, 255);
 margin: 0px;
 padding: 0px;
}

/* Header */
header {
  background: rgba(0, 25, 75, 0.9);
  color: #fff;
  padding: 30px 20px; /* Adjust padding to create space */
  position: fixed; /* Keeps the header fixed at the top */
  top: 0; /* Positions the header at the top */
  left: 0; /* Aligns the header to the left */
  width: 100%; /* Ensures it spans the entire width */
  display: flex;
  justify-content: space-between; /* Ensures space between logo and nav */
  align-items: center; /* Vertically align items */
  text-align: center;
  border-radius: 0px;
  z-index: 1000; /* Ensures the header stays above other elements */
}
/* Logo */
.logo {
  position: absolute; /* Absolute positioning inside header */
  top: 50%; /* Center it vertically */
  right: 60px; /* Add space from the right */
  transform: translateY(-50%); /* Offset the logo to truly center vertically */
  width: 175px; /* Adjust logo width */
  height: auto; /* Maintain aspect ratio */
  display: block;
  border-radius: 15px; /* Round the corners of the logo */
}

/* Header Title */
header h1 {
  font-family: 'myriad', Arial, sans-serif;
  font-weight: Bolder;
  font-size: xx-large;
  color: rgb(192, 192, 192);
  text-shadow: #fffafa;
  margin: 0;
  left: 50%;
}

/* Navigation */
nav ul {
  list-style: none;
  padding: 0;
  font-size: 1.1em;
  font-family: 'Spline Sans';
  font-weight: bolder;
}

nav ul li {
  display: inline;
  margin-right: 20px;
}

nav ul li a {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Spline Sans';
  text-decoration: none;
  font-weight: bold;
}

/* Regular */
@font-face {
  font-family: 'Spline Sans';
  src: url('fonts/SplineSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

   /* Regular */
@font-face {
  font-family: 'Fugaz';
  src: url('fonts/FugazOne-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
 
/* Bold */
@font-face {
  font-family: 'Spline Sans';
  src: url('fonts/SplineSans-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}
 
/* Light */
@font-face {
  font-family: 'Spline Sans';
  src: url('fonts/SplineSans-Light.ttf') format('truetype');
  font-weight: lighter;
  font-style: normal;
}
 
/* Medium */
@font-face {
  font-family: 'Spline Sans';
  src: url('fonts/SplineSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
 
/* SemiBold */
@font-face {
  font-family: 'Spline Sans';
  src: url('fonts/SplineSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

/* ===== Dropdown Menu ===== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 16px;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  font-family: 'Spline Sans', Arial, sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: color 0.3s ease, background 0.3s ease;
}

.dropbtn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

/* Add a polished arrow after "Services" text */
.dropbtn::after {
  content: '\25BC'; /* Unicode for a downward triangle */
  font-size: 0.8em;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn::after {
  transform: rotate(180deg); /* Rotate arrow on hover */
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  color: var(--primary);
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
  background: var(--light-gray);
  color: var(--primary-dark);
}

/* Responsive Dropdown Adjustments */
@media (max-width: 768px) {
  .dropbtn {
    padding: 10px 12px;
    font-size: 1em;
  }
  .dropdown-content {
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .dropbtn {
    padding: 8px 10px;
    font-size: 0.9em;
  }
  .dropdown-content {
    min-width: 140px;
  }
  .dropdown-content a {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* Responsive Dropdown Adjustments */
@media (max-width: 768px) {
  .dropbtn {
    padding: 10px 12px;
    font-size: 1em;
  }
  .dropdown-content {
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .dropbtn {
    padding: 8px 10px;
    font-size: 0.9em;
  }
  .dropdown-content {
    min-width: 140px;
  }
  .dropdown-content a {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

.hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 158px;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 6000px;
  grid-template-rows: 125px;
 /* Adjusts the space between h2 and p */
  justify-items: center;
  text-align: center;
  color: white;
  padding-top: 180px;
  height: 100%;
}

.hero-content h2 {
  grid-row: 1;
}

.hero-content p {
  grid-row: 2;
}

footer {
  text-align: center;
  background: #001742; /* Dark navy blue background */
  color: white;
  padding: 20px 0; /* Space inside the footer */
}

.footer-social-icons {
  margin-top: 10px; /* Space between text and icons */
}

.footer-social-icons a {
  color: white;
  font-size: 40px;
  margin: 0 10px; /* Space between icons */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-social-icons a:hover {
  color: #0077b5; /* Blue hover effect */
}

/* Container Styling */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: center;
}

/* CNC Milling Section Styling */
#cnc-milling.service-detail {
  padding: 60px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  margin: 50px 0;
  transition: transform 0.3s ease;
}

#cnc-milling.service-detail:hover {
  transform: translateY(-5px);
}

/* Headings */
#cnc-milling h3 {
  color: #1a3c6d;
  font-size: 2.2rem;
  margin-bottom: 25px;
  font-weight: 700;
  border-bottom: 3px solid #1a3c6d;
  padding-bottom: 12px;
  display: inline-block;
  letter-spacing: 0.5px;
  margin-top: 100PX;;
}

/* Paragraphs */
#cnc-milling p {
  font-size: 1.15rem;
  margin: 20px 0;
  color: #444;
  max-width: 800px;
}

/* Lists */
#cnc-milling ul {
  list-style-type: none;
  padding: 0;
  margin: 25px 0;
  background-color: #f1f3f5;
  border-radius: 8px;
  padding: 20px;
}

#cnc-milling ul li {
  font-size: 1.1rem;
  margin: 12px 0;
  padding-left: 30px;
  position: relative;
  color: #333;
  transition: color 0.3s ease;
}

#cnc-milling ul li:hover {
  color: #1a3c6d;
}

#cnc-milling ul li:before {
  content: '\2713';
  color: #1a3c6d;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.2rem;
}

/* Image Styling */
#cnc-milling .cnc-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cnc-milling .cnc-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Call-to-Action Button Styling */
#cnc-milling p:last-of-type a {
  display: inline-block;
  background-color: #1a3c6d;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#cnc-milling p:last-of-type a:hover {
  background-color: #2e5a9b;
  transform: translateY(-2px);
}

/* Section Dividers */
#cnc-milling .container > * + * {
  margin-top: 40px;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
  #cnc-milling h3 {
    font-size: 1.8rem;
    border-bottom-width: 2px;
  }

  #cnc-milling p,
  #cnc-milling ul li {
    font-size: 1.05rem;
  }

  #cnc-milling ul {
    padding: 15px;
  }

  #cnc-milling .cnc-image {
    margin: 20px 0;
  }

  #cnc-milling.service-detail {
    padding: 40px 20px;
    margin: 15px;
  }

  #cnc-milling p:last-of-type a {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #cnc-milling h3 {
    font-size: 1.5rem;
  }

  #cnc-milling p,
  #cnc-milling ul li {
    font-size: 0.95rem;
  }

  #cnc-milling .container {
    padding: 0 15px;
  }
}

.hero {
  position: relative;
  height: 400px;
  padding: 100px 0 60px;
  margin-top: 143px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  border-radius: 15px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover; /* Ensures the background image covers the whole section */
  background-position: center; /* Keeps the image centered */
  background-repeat: no-repeat; /* Prevents repeating the image */
  background-image: url('path/to/your-image.jpg'); /* Correct image path */
  transition: background-image 1s ease-in-out;
  z-index: 0; /* Makes sure the background is behind the content */
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* ===== Mobile Navigation Styles ===== */
/* Mobile Optimization - Applies only to screens 768px and below */
@media (max-width: 768px) {
  /* Header adjustments */
  header {
    padding: 15px 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  
.hero {
  position: relative;
  height: 250px;
  padding: 100px 0 60px;
  margin-top: 143px;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  border-radius: 15px;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 325px;
  grid-template-rows: 125px;
 /* Adjusts the space between h2 and p */
  justify-items: center;
  text-align: center;
  color: white;
  padding-top: 100px;
  height: 100%;
}

  .logo {
    position: static;
    transform: none;
    width: 120px;
    margin-top: 10px;
    align-self: center;
  }
  
  header h1 {
    font-size: large;
    margin-bottom: 10px;
  }
  
  /* Navigation adjustments */
  nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin-right: 10px;
    margin-bottom: 5px;
  }
  
  /* Dropdown menu adjustments */
  .dropdown-content {
    min-width: 160px;
    position: fixed;
    left: 10px;
    right: 10px;
    width: auto;
  }
  
  /* Hero section adjustments */
  .hero-video-container {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
  }
  
  .hero-container {
    width: 90%;
    height: auto;
    margin-bottom: 20px;
  }
  
  .video-section {
    margin-left: 0;
    width: 90%;
  }
  
  /* Services section adjustments */
  .service-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .service-item {
    width: 100%;
    height: auto;
    padding: 0px;
  }
  
  /* About Us section adjustments */
  .about-us h2 {
    font-size: 2em;
  }
  
  .about-us h3 {
    font-size: 1.5em;
  }
  
  .about-us p {
    font-size: 1em;
  }
  
  /* CNC Capabilities section adjustments */
  .cnc-capabilities .container {
    flex-direction: column;
  }
  
  .image-column, 
  .content-column {
    width: 100%;
  }
  
  .machine-image img {
    width: 100%;
  }
  
  /* Map container adjustments */
  .map-container {
    height: 300px;
    width: 95%;
    margin-top: 40px;
  }
  
  /* Footer adjustments */
  .footer-social-icons a {
    font-size: 30px;
  }
}

/* Further adjustments for very small screens (480px and below) */
@media (max-width: 480px) {
  /* Single column layout for services */
  .service-list {
    grid-template-columns: 1fr;
  }
  
  /* Reduce padding/margins further */
  .services,
  .about-us,
  .cnc-capabilities {
    padding: 30px 15px;
  }
  
  /* Adjust font sizes */
  h2 {
    font-size: 1.8rem !important;
  }
  
  h3 {
    font-size: 1.3rem !important;
  }
  
  /* Contact form adjustments */
  .contact-form .container {
    padding: 20px;
  }
  
  /* Header title adjustments */
  header h1 {
    font-size: medium;
  }
  
  /* Navigation becomes vertical */
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    margin-bottom: 8px;
  }
}

/* Mobile Navigation Overhaul - Add this at the end of your CSS */
@media (max-width: 768px) {
  /* Header adjustments for hamburger menu */
  header {
    padding: 10px 15px;
    height: 60px; /* Fixed header height */
    justify-content: space-between;
  }

  .logo {
    position: static;
    transform: none;
    width: 100px;
    height: auto;
    margin: 0;
    order: 2; /* Logo comes after hamburger */
  }

  header h1 {
    display: none; /* Hide title on mobile */
  }

  /* Hide regular navigation */
  nav ul {
    display: none;
    align-items: flex-start;
  }

  /* Hamburger menu styles */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    order: 1; /* Hamburger first */
    z-index: 1001;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* Mobile sidebar navigation */
  .mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 60%;
    max-width: 200px;
    height: 100vh;
    background: rgba(0, 25, 75, 0.9);
    padding: 80px 20px 20px;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .mobile-nav.active {
    left: 0;
  }

  .mobile-nav ul {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .mobile-nav li {
    margin: 15px 0;
  }

  .mobile-nav a {
    color: white;
    font-size: 1.1em;
    padding: 10px;
    display: block;
    border-radius: 5px;
  }

  .mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Dropdown adjustments for mobile */
  .mobile-nav .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    border-radius: 5px;
    width: 100%;
  }

  .mobile-nav .dropdown.active .dropdown-content {
    display: block;
  }

  .mobile-nav .dropbtn::after {
    content: '+';
    float: right;
    transition: transform 0.3s;
  }

  .mobile-nav .dropdown.active .dropbtn::after {
    content: '-';
  }

  /* Overlay when menu is open */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Adjust content when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* Mobile Header Adjustments */
@media (max-width: 768px) {
  header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: rgba(0, 23, 66, 0.9); /* Match your header background color */
      z-index: 1000;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional shadow */
  }
  
  .hamburger {
    width: 36px; /* Increased from 30px */
    height: 26px; /* Increased from 21px */
    margin-right: 15px;
  }

  .hamburger span {
    height: 4px; /* Thicker bars */
    width: 100%;
    background: white;
    border-radius: 4px;
  }

 .logo {
    width: 120px; /* Slightly larger logo */
    position: absolute;
    right: 5%;
    transform: translateX(-35%);
    top: -15px;
  }


  /* Make hamburger more visible */
  .hamburger {
    background: transparent; /* Remove any background */
    border: none; /* Remove default button border */
    padding: 5px; /* Add some padding for better touch target */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1001;
    top: -20px;
    outline: none; /* Remove focus outline (add proper focus styles if needed) */
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white; /* White lines */
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* Hamburger animation when active */
  .hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .map-container {
    position: relative;
    background-color: rgba(0, 23, 66, 0.8);
    width: 90%; /* Adjust the container width to 90% of its parent */
    max-width: 2000px; /* Prevent the map from becoming too large */
    margin: 80px auto 0px; /* Center the container horizontally and add margin at the top */
    height: 300px; /* Set a fixed height for the container */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensure the iframe doesn't overflow the container */
    border: 20px solid rgba(255, 255, 255, 0.9);;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  header {
    height: 60px;
  }

  .hamburger {
    width: 32px;
    height: 24px;
  }

  .logo {
    width: 100px;
  }
}

/* Mobile Navigation Styles */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 15px;
  margin-left: 5px;
  z-index: 1001;
}

.close-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 1002;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 25, 75, 0.99);
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  padding-top: 40px; /* Reduce this value from whatever it was */
  justify-content: flex-start; /* Changed from 'center' to move content up */
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  width: 80%;
  max-width: 300px;
  margin-top: 0; /* Remove any top margin */
  padding-top: 10px; /* Adjust this as needed */
}

.mobile-nav li {
  margin: 15px 0;
  text-align: center;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  display: block;
  padding: 10px;
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: #ccc;
}

.mobile-dropdown-content {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  margin-top: 5px;
  overflow: hidden;
}

.mobile-dropdown-content a {
  padding: 10px 20px;
  font-size: 16px;
}

.mobile-dropdown-content.show {
  display: block;
}

.mobile-dropbtn i {
  margin-left: 5px;
  transition: transform 0.3s;
}

.mobile-dropdown-content.show ~ .mobile-dropbtn i {
  transform: rotate(180deg);
}

/* Responsive styles */
@media (max-width: 768px) {
  .hamburger-btn, .close-btn {
      display: block;
  }
  
  .desktop-nav {
      display: none;
  }
  
  .mobile-nav {
      display: flex;
  }
}

