:root {
  --primary: #013466;
  --primary-dark: #022950;
  --secondary: #333333;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

/* Global Styles (Common to All Pages) */
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 */
}

/* Index Page - CNC Background */
body#index {
 background-color: rgba(0, 23, 66, 0.8);
 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';
  align-items: flex-start;
  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;
}

/* ===== 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;
  }
}

/* Hero Section */
/* Add space between the header and the hero section */
.hero {
  background-image: url('images/cnc.jpeg');
  background-size: cover;
  background-position: center;
  height: 100vh; /* Adjust as needed */
  width: 100%;
}

hero h2 {
  font-family: 'Spline Sans', Arial, sans-serif;
  font-weight: 600;
  margin: 0;
  font-size: 2.2em;
}

.hero p {
  font-family: 'Spline Sans', Arial, sans-serif;
  font-weight: 400;
  font-size: 1.1em;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(0, 23, 66, 0.8);
  color: #007BFF;
  text-decoration: none;
  border-radius: 5px;
  font-family: 'Spline Sans', Arial, sans-serif;
  font-weight: 500;
}

/* Services Section */
.services {
  position: relative; /* This is required for ::before and ::after to show */
  z-index: 1; /* Keep this above the background */
  color: var(--primary);
  background: linear-gradient(135deg, var(--light), var(--light-gray));
  font-family: 'Roboto', Arial, sans-serif;
  padding: 50px 20px;
  text-align: center;
  margin-top: 80px;
  overflow: hidden; /* Ensure child elements don’t overflow */
}

.services::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(0, 0, 0, 0.025); /* white glow circle */
  border-radius: 50%;
  z-index: 0;
}

.services::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(0, 0, 0, 0.025); /* white glow circle */
  border-radius: 50%;
  z-index: 0;
}

.services h2 {
  font-weight: 600;
  font-size: 2.5em;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 1600px;
  margin: 0 auto;
}
@media (max-width: 1200px) {
  .service-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Fixing Image Sizes for Consistent Service Boxes */
.service-item {
  background: rgba(199, 199, 199, 0.3);
  color: rgba(255, 255, 255, 0.075);
  padding: 20px;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.1);
  width: 200px;
  height: 200px; /* Adjusted to make box more square */
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-img {
  width: 100%;
  height: 100px; /* Reduced to fit square box */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* Image Hover Effect - Enlarge on Hover */
.service-item:hover {
  transform: translateY(-20px); /* Slight lift on hover */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.service-item h3 {
  font-family: 'Roboto', Arial, sans-serif;
  color: rgba(0, 23, 66, 1);
  font-weight: 600; /* Semi-bold for titles */
  font-size: 1.1rem; /* Slightly smaller for square box */
  margin: 0 0 5px; /* Adjust spacing */
}

.service-item p {
  font-family: 'Spline Sans', Arial, sans-serif;
  color: rgba(0, 23, 66, 1);
  font-weight: 400; /* Regular weight for paragraphs */
  font-size: 0.85rem; /* Smaller for square box */
  line-height: 1.4; /* Slightly tighter line spacing */
  margin: 0; /* Remove default margins */
}

/* Responsive Design */
@media (max-width: 1200px) {
  .service-list {
    gap: 15px;
  }

  .service-item {
    width: 180px; /* Slightly smaller for medium screens */
    height: 220px; /* Maintain square proportion */
  }

  .service-img {
    height: 90px; /* Adjust image height */
  }

  .service-item h3 {
    font-size: 1rem;
  }

  .service-item p {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .service-item {
    width: 160px; /* Smaller for tablets */
    height: 200px; /* Maintain square proportion */
  }

  .hero {
  background-image: url('images/cnc.jpeg');
  background-size: cover;
  background-position: center;
  height: 100vh; /* Adjust as needed */
  width: 100%;
}

  .service-img {
    height: 80px; /* Adjust image height */
  }

  .service-item h3 {
    font-size: 0.95rem;
  }

  .service-item p {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .service-item {
    width: 100%; /* Full width for mobile */
    height: 250px; /* Slightly taller to accommodate content */
  }

  .service-img {
    height: 100px; /* Restore image height for mobile */
  }

  .service-item h3 {
    font-size: 1rem;
  }

  .service-item p {
    font-size: 0.85rem;
  }
}
/* Footer */
footer {
  background: rgba(0, 23, 66, 0.8);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 80px;
}

footer p {
  font-family: 'Spline Sans', Arial, sans-serif;
  font-weight: 400;
}

/* Contact Page - Specific Hero Styling */
body#contact .hero {
  padding: 0px 0; /* Reduced padding for the contact page */
}

/* Contact Form Section */
.contact-form {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  margin-top: 50px;
}

.contact-form .container {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 500px; /* Adjust the width of the form container */
  width: 100%;
  text-align: center;
}

/* Contact Form - Centering Fields */
.contact-form form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Styling Input Fields */
.contact-form form input,
.contact-form form textarea {
  font-family: 'Spline Sans', Arial, sans-serif;
  font-weight: 400;
  width: 100%; /* Full width of the form */
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box; /* Prevents overflow */
}

/* Contact Form Button */
.contact-form form button {
  font-family: 'Spline Sans', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 20px;
  background: #007BFF;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

/* Ensuring Form Fields are Combined into One Box */
.contact-form .container form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

  /* 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;
   }

/* Hero Section 
/* Hero Container */
.hero-container {
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
}

/* Button */
.btn {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #45a049;
}

/* About Us Section */
.about-us {
  background: var(--light);
  color: rgba(0, 23, 66, 0.8);
  font-family: 'Roboto';
  padding: 30px 0;
  border-radius: 0px;
  text-align: center;
  margin-top: 80PX;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.about-us::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(26, 26, 26, 0.025);
  border-radius: 50%;
  z-index: 0;
}

.about-us::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(0, 0, 0, 0.025);
  border-radius: 50%;
  z-index: 0;
}

.about-us .container {
  max-width: 800px;
  margin: 0 auto;
}

.about-us h2 {
  font-size: 3em;
  font-weight: 600;
  color: #001742;
}

.about-us h3 {
  font-size: 2em;
  font-weight: 300;
  color: #001742;
}
.about-us p {
  font-size: 1.25em;
  line-height: 1.6;
  font-weight: 100;
  margin-bottom: 20px;
}

.about-list {
  list-style: none;
  font-weight: 100;
  font-size: 1em;
  padding: 0;
  text-align: center;
}

.about-list li {
  margin: 5px 0;
  font-weight: 100;
  font-size: 18px;
  line-height: 1.5em;
}

.learn-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007BFF; /* Blue color, you can change it */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.learn-more-btn:hover {
  background-color: #0056b3; /* Darker shade of blue on hover */
}

/* Map Container */
.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: 600px; /* 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);;
}

/* Style for the iframe (map) */
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* Video Section */
.video-section {
  flex: 1; /* Take up available space */
  margin-left: 20px; /* Space between hero and video */
  background-color: rgba(255, 255, 255, 0);
  padding: 20px;
  text-align: center;
  border-radius: 20px;
}

.cnc-video {
  width: 100%; /* Make the video fill the container */
  max-width: 900px; /* Max width of the video */
  height: auto; /* Maintain aspect ratio */
  border-radius: 10px; /* Rounded corners */
  display: block;
  margin: 0 auto; /* Center the video horizontally */
}

.dmg-logo {
  display: block;
  width: 300px; /* Adjust size as needed */
  height: auto; /* Maintain aspect ratio */
  margin: 20px auto 0; /* Center the logo horizontally and add space above */
  border-radius: 10px; /* Optional: Rounded corners */
}
body#index .hero, body#index .video-section {
  margin: 0;
  padding: 0;
}

/* Ensuring there's no extra space */
body {
  margin: 0;
  padding: 0;
  height: 100%; /* Full height */
  overflow-x: hidden;
}

/* Hero and Video Container */
/* Add space between the header and the hero-video container */
.hero-video-container {
    background: url('images/cnc.jpeg') no-repeat center center;
    background-size: cover;
    position: relative; /* Allows absolute positioning inside */
    height: 100vh; /* Full height of viewport */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
  flex: 1; /* Take up available space */
  margin-right: 20px; /* Space between hero and video */
  background-image: url('path-to-your-image.jpg');
  background-size: cover;
  background-position: center;
  height: auto; /* Adjust height as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px; /* Optional: Add rounded corners */
}

.hero-container {
  text-align: center;
  color: rgb(36, 2, 128);
  background: rgba(255, 255, 255, 0.9); /* Semi-transparent black background */
  padding: 20px;
  border-radius: 10px;
  width: 60%;
  height: 40%;
}

/* Video Section */
.video-section {
  display: flex;
  align-items: center;
  flex-direction: column; /* Take up available space */
  margin-left: 20px; /* Space between hero and video */
  background-color: rgba(255, 255, 255, 0);
  padding: 20px;
  text-align: center;
  border-radius: 20px;
}

   /* Bold */
   @font-face {
    font-family: 'Roboto';
    src: url('fonts/RobotoCondensed-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
   }

   .service-item {
    display: block;
    text-decoration: none;
    color: rgb(255, 255, 255);
    transition: transform 0.2s ease-in-out;
}

.service-item:hover {
    transform: scale(1.05);
}

.video-logo {
    display: block;
    width: 150px; /* Adjust size as needed */
    height: auto;
    margin: 20px auto 0; /* Adds space between video and logo */
    border-radius: 10px; /* Optional: Adds rounded corners */
}

.video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.video-logo {
  margin-top: 20px; /* Adjust spacing */
  max-width: 200px; /* Adjust size as needed */
  height: auto;
}

/* Logo below Video */
.logo-section {
    display: flex;
    justify-content: center; /* Center the logo horizontally */
    margin-top: 20px; /* Add some space between the video and logo */
}

.logo-below-video {
    width: 150px; /* Adjust logo width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 0px; /* Optional: Adjust corner roundness */
}

.dmg-logo {
  display: block;
  width: 150px; /* Adjust size as needed */
  height: auto; /* Maintain aspect ratio */
  margin: 20px auto 0; /* Center the logo horizontally and add space above */
  border-radius: 5px; /* Optional: Rounded corners */
}

/* Our Expertise Section */
.our-expertise {
  background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
  color: #ffffff; /* Dark text for contrast */
  padding: 50px 0; /* Add padding for spacing */
  text-align: center; /* Center-align text */
}

.our-expertise h2 {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600; /* Semi-bold for emphasis */
  font-size: 2rem; /* Match the Services section heading size */
  color: #ffffff; /* Navy blue for branding */
  margin-bottom: 20px; /* Add space below the heading */
}

.expertise-item {
  background: rgba(0, 0, 0, 0.8); /* Dark background for contrast */
  color: #ffffff; /* White text for readability */
  padding: 20px; /* Add padding inside each item */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  width: calc(33.333% - 40px); /* Three items per row with spacing */
  min-height: 250px; /* Set a minimum height for consistency */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space out content */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.expertise-item:hover {
  transform: translateY(-10px); /* Lift on hover */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.expertise-img {
  width: 100%; /* Make images fill the container */
  height: 150px; /* Set a fixed height for images */
  object-fit: cover; /* Ensure images scale correctly */
  border-radius: 10px; /* Rounded corners for images */
  margin-bottom: 15px; /* Add space below the image */
}

.expertise-item h3 {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600; /* Semi-bold for titles */
  font-size: 1.2rem; /* Match the Services section title size */
  margin: 0 0 10px; /* Add space below the title */
}

/* Responsive Design */
@media (max-width: 768px) {
  .expertise-item {
      width: calc(50% - 20px); /* Two items per row on tablets */
  }
}

@media (max-width: 480px) {
  .expertise-item {
      width: 100%; /* One item per row on mobile */
  }
}

/* Our Expertise Section */
.our-expertise {
  background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
  color: #ffffff; /* Dark text for contrast */
  padding: 50px 0; /* Add padding for spacing */
  text-align: center; /* Center-align text */
}

.our-expertise h2 {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600; /* Semi-bold for emphasis */
  font-size: 2rem; /* Match the Services section heading size */
  color: #ffffff; /* Navy blue for branding */
  margin-bottom: 20px; /* Add space below the heading */
}

.our-expertise p {
  font-family: 'Spline Sans', Arial, sans-serif;
  font-weight: 400; /* Regular weight for paragraphs */
  font-size: 1rem; /* Adjust paragraph size */
  line-height: 1.6; /* Slightly tighter line spacing */
  max-width: 800px; /* Limit paragraph width for readability */
  margin: 0 auto 20px; /* Center the paragraph and add space below */
}

.content-column .learn-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1eff00; /* Blue color, you can change it */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: 0.3s ease;
  margin-left: auto; /* Move the button to the right */
  display: block; /* Ensure it behaves as a block element */
  width: fit-content; /* Adjust width to fit content */
}

.content-column .learn-more-btn:hover {
  background-color: #0056b3; /* Darker shade of blue on hover */
}

/* CNC Capabilities Section */
.cnc-capabilities {
  position: relative; /* Required for pseudo-elements */
  overflow: hidden;   /* Prevent overflow from circles */
  z-index: 1;
  background: var(--light);
  margin-top: 80px;
  padding-bottom: 50px;
  padding-top: 50px;
  /* your existing styles stay untouched */
}

.cnc-capabilities::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(0, 0, 0, 0.025); /* White glow */
  border-radius: 50%;
  z-index: 0;
}

.cnc-capabilities::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(0, 0, 0, 0.025); /* Soft white glow */
  border-radius: 50%;
  z-index: 0;
}

.cnc-capabilities .container {
  color: rgba(0, 23, 66, 0.8);
  display: flex; /* Create a flexbox container */
  gap: 40px; /* Add space between columns */
  max-width: 1200px; /* Limit container width */
  margin: 0 auto; /* Center the container */
  padding: 0 20px; /* Add padding to prevent overflow */
}

/* Left Column for Images */
.image-column {
  width: 40%; /* Adjust width as needed */
}

.machine-image {
  margin-bottom: 30px; /* Add space between images */
}

.machine-image img {
  width: 100%; /* Make images fill the container */
  height: auto; /* Maintain aspect ratio */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Add shadow */
}

.machine-image p {
  font-family: 'Spline Sans', Arial, sans-serif;
  font-weight: 400; /* Regular weight for text */
  font-size: 0.9rem; /* Adjust text size */
  margin-top: 10px; /* Add space above the text */
  text-align: center; /* Center-align text */
}

/* Right Column for Text Content */
.content-column {
  width: 60%; /* Adjust width as needed */
}

.content-column h2 {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600; /* Semi-bold for emphasis */
  font-size: 2.5rem; /* Match the Services section heading size */
  margin-bottom: 20px; /* Add space below the heading */
}

.content-column h3 {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600; /* Semi-bold for emphasis */
  font-size: 1.5rem; /* Smaller than h2 */
  margin-top: 30px; /* Add space above the heading */
  margin-bottom: 15px; /* Add space below the heading */
}

.content-column p {
  font-family: 'Spline Sans', Arial, sans-serif;
  color: rgba(0, 23, 66, 0.8);
  font-weight: 400; /* Regular weight for paragraphs */
  font-size: 1rem; /* Adjust paragraph size */
  line-height: 1.6; /* Slightly tighter line spacing */
  margin-bottom: 20px; /* Add space below the paragraph */
}

.content-column ul {
  list-style-type: disc; /* Add bullet points */
  margin-left: 20px; /* Indent the list */
  margin-bottom: 20px; /* Add space below the list */
}

.content-column ul li {
  font-family: 'Spline Sans', Arial, sans-serif;
  font-weight: 400; /* Regular weight for list items */
  font-size: 1rem; /* Match paragraph size */
  line-height: 1.6; /* Slightly tighter line spacing */
  margin-bottom: 10px; /* Add space between list items */
}

.content-column .learn-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007BFF; /* Blue color, you can change it */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.content-column .learn-more-btn:hover {
  background-color: #0056b3; /* Darker shade of blue on hover */
}

/* Left Column for Images */
.image-column {
  width: 40%; /* Adjust width as needed */
}

.machine-image {
  margin-bottom: 30px; /* Add space between images */
  text-align: center; /* Center-align images and text */
}

.machine-image img {
  width: 70%; /* Make images smaller (adjust as needed) */
  height: auto; /* Maintain aspect ratio */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Add shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

/* Hover Effect for Images */
.machine-image img:hover {
  transform: scale(1.05); /* Slightly enlarge the image */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

.machine-image p {
  font-family: 'Spline Sans', Arial, sans-serif;
  font-weight: 400; /* Regular weight for text */
  font-size: 0.9rem; /* Adjust text size */
  margin-top: 10px; /* Add space above the text */
  text-align: center; /* Center-align text */
}

   /* Bold */
   @font-face {
    font-family: 'myriad';
    src: url('fonts/myriad.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
   }

   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 */
}

/* Add this to your existing services section styles */
/* Section Header Underline */
/* Section Header Underline */
.services h2,
.cnc-capabilities h2,
.about-us h2 {
  position: relative;
  display: inline-block; /* Ensures the underline matches the text width */
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: linear-gradient(to right, #383838, #747474);
}

.services h2::after,
.cnc-capabilities h2::after,
.about-us h2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 60px;
  height: 4px;
  background-color: var(--primary); /* You can change this color if you want */
  border-radius: 2px;
}

/* Scroll Animation Styles */
[data-animate] {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate="fade-up"] {
  transform: translateY(30px);
}

[data-animate="fade-down"] {
  transform: translateY(-30px);
}

[data-animate="fade-left"] {
  transform: translateX(-30px);
}

[data-animate="fade-right"] {
  transform: translateX(30px);
}

[data-animate].animated {
  opacity: 1;
  transform: translate(0, 0);
}

/* Delay classes for staggered animations */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }
.delay-5 { transition-delay: 1s; }

/* Add these at the end of your existing CSS file */

/* 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;
  }
  
  .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-top: 65px;
    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;
  }

  /* 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;
  }

  html, body {
  max-width: 100vw;
  overflow-x: hidden;
}
  
  .mobile-nav {
      display: flex;
  }
}
