* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    color: white;
    background-color: #000;
  }
  header nav a {
    font-size: 18px; /* Increased font size */
    color: white; /* Changed font color to white */
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s ease;
  }
  
  header nav a:last-child {
    margin-right: 0;
  }
  header nav a.active {
    text-decoration: underline;
  }
    
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 1000;
  }
  
  header.scrolled {
    background-color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  /* Mobile Navigation Toggle */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    padding: 15px 20px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 10px;
    background-color: #000; /* for dark bg on toggle */
    padding: 10px 0;
  }

  nav a {
    margin: 10px 20px;
    display: block;
    color: white;
  }

  nav.active {
    display: flex;
  }
}

  
  
  
  .hero,
  .video-section {
    padding-top: 100px; /* Adjust if header height changes */
  }
    
  
  
  
  .logo img {
    height: 60px;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
  }
  
  nav ul li a {
    color: #d2ccca;
    text-decoration: none;
    font-size: 18px;
  }
  
  .hero {
    height: 100vh;
    background: url('background.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
  }
  
  .tagline {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .hero-content h1 {
    font-size: 60px;
    line-height: 1.2;
    font-weight: bold;
  }
  
  .highlight {
    display: block;
    margin-top: 10px;
  }
  
  .expertise {
    font-size: 20px;
    margin-top: 20px;
  }
  .hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
  }
  
  .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2); /* for dark overlay */
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
  }
  .video-section {
    position: relative;
    height: auto;
    overflow: hidden;
    padding-top: 100px;
  }
  
  .background-video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  
  .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* optional dark overlay */
    z-index: 1;
  }
  
  .video-content {
    position: relative;
    z-index: 2;
  }
  .video-section {
    position: relative;
    padding: 60px 20px;
    background-color: #000;
    color: white;
    overflow: hidden;
  }
  
  .background-video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  
  .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for readability */
    z-index: 1;
  }
  
  .video-content {
    position: relative;
    z-index: 2;
  }
  @keyframes slideTestimonials {
    0% { transform: translateX(0); }
    45% { transform: translateX(0); }
    50% { transform: translateX(-100%); }
    95% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
  }
  
  /* css for services page*/
  /* Video background styling */
.bg-video-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
  }
  
  .bg-video-container video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }
  
  /* Dark overlay */
  .overlay-dark {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
  }
  
  /* Foreground content */
  .content-wrapper {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
  }
  
  .content-wrapper h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
  }
  
  .content-wrapper p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
  }
  
  /* Card container */
  /* Card Container */
.service-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
  }
  
  /* Individual Card */
  .service-box {
    background-color: #fff;
    color: #000;
    border-radius: 16px;
    overflow: hidden;
    width: 360px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }
  
  /* Card Image */
  .service-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
  }
  
  /* Card Content */
  .service-content {
    padding: 24px 24px 28px 24px; /* top, right, bottom, left */
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  
  .service-content h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #222;
  }
  
  .service-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
  }
  /* services page css for 2nd section*/
  .custom-applications {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
  }
  
  .custom-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .custom-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .custom-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
  }
  
  .custom-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }
  
  .custom-card {
    background-color: #f9f9f9;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensures all cards are uniform height */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
  }
  
  .custom-card:hover {
    transform: translateY(-5px);
  }
  
  .custom-image {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
  }
  
  .custom-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
  }
  
  .custom-card p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 40px;
  }
  
  .arrow-icon {
    font-size: 1.5rem;
    color: #000;
    align-self: flex-end;
    margin-top: auto;
  }


  /* css for solution page*/
/* Gauge Management System Section */
.gms-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
}

.gms-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.gms-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.gms-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  z-index: 2;
}

.gms-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.gms-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.gms-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.gms-left, .gms-right {
  flex: 1;
  min-width: 300px;
}

.gms-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    padding: 0;
    margin: 0;
  }
  

.gms-heading {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.gms-description {
  font-size: 1rem;
  color: #ddd;
  line-height: 1.6;
}
.modal {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center;
    z-index: 1000;
  }
  .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 320px;
    position: relative;
    color: black;
  }
  
  .modal-content input {
    width: 100%; margin: 5px 0; padding: 8px;
  }
  .close {
    float: right; font-size: 24px; 
  }
  #formModal label,
#formModal input,
#formModal button,
#formModal h2,
#formModal p {
  color: black;
}

#formModal input {
  background-color: white; /* optional: for contrast */
  border: 1px solid #ccc;
  padding: 5px;
}

#formModal button {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 6px 12px;
  
}

#formModal button:hover {
  background-color: #ddd;
}
.form-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
  }
  .form-modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
  }
  .close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  .close-btn:hover,
  .close-btn:focus {
    color: black;
    text-decoration: none;
  
  }
  .form-message {
    margin-top: 10px;
    color: green;
  }
  .gms-image {
    cursor: default;
  }
/* css for the second section*/
/* DQMS Section with Background Video */
/* DQMS Section - Desktop & Mobile Optimized */
.dqms-section {
  position: relative;
  width: 100%;
  min-height: 100vh; /* Always take full screen height */
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden;
}

/* Background Video */
.dqms-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Overlay for dark effect */
.dqms-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Main Content Container */
.dqms-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  z-index: 2;
}

/* Text Section */
.dqms-text {
  flex: 1;
  min-width: 300px;
}

.dqms-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.dqms-text p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Image Section */
.dqms-image img {
  width: 350px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

/* ========================
   Mobile & Tablet Responsive
   ======================== */
@media (max-width: 992px) {
  .dqms-container {
    padding: 40px 15px;
    gap: 20px;
  }

  .dqms-text h2 {
    font-size: 2rem;
  }

  .dqms-text p {
    font-size: 1rem;
  }

  .dqms-image img {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .dqms-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
  }

  .dqms-text {
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .dqms-text h2 {
    font-size: 1.8rem;
  }

  .dqms-text p {
    font-size: 0.95rem;
  }

  .dqms-image img {
    width: 80%;
    max-width: 260px;
  }
}

@media (max-width: 480px) {
  .dqms-text h2 {
    font-size: 1.5rem;
  }

  .dqms-text p {
    font-size: 0.9rem;
  }

  .dqms-image img {
    width: 90%;
    max-width: 220px;
  }
}



/*css for third section*/
.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background-color: #fff;
    color: #000;
  }
  
  /* Text block increased from 35% to 40% */
  .hero-text {
    flex: 0 0 40%;
    max-width: 40%;
    margin-right: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-text p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Image block reduced to 60% and image moved to the right */
  .hero-visual {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    justify-content: flex-end;  /* Aligns the image to the right within its container */
    align-items: center;
  }
  
  /* Decreased image size */
  .hero-visual img {
    width: 600px;      /* Adjusted width */
    height: 400px;      /* Maintain aspect ratio */
    border-radius: 8px;
  }
  
  /* Responsive styling for smaller screens */
  @media screen and (max-width: 768px) {
    .hero-container {
      flex-direction: column;
      padding: 1rem;
    }
  
    .hero-text,
    .hero-visual {
      flex: 0 0 100%;
      max-width: 100%;
      margin-right: 0;
    }
  
    .hero-text {
      margin-bottom: 1rem;
    }
  }
  /* contact page styling*/
  .contact-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .bg-video {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: -2;
  }
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
  }
  
  .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 50px;
    height: 100%;
  }
  
  
  .left {
    flex: 1;
    padding-right: 50px;
    margin-top: 140px; /* same as .right’s margin-top */
  }
  
  .left h2 {
    font-size: 48px;
    color: #3371ff;
    margin-bottom: 20px;
  }
  
  .left p {
    font-size: 18px;
    line-height: 1.6;
    color: #ccc;
  }
  
  .right {
    flex: 1;
    background-color: white;
    border-radius: 20px;
    padding: 25px 30px;
    max-width: 500px;
    color: black;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    margin-top: 40px; /* this moves the form downward */
  }
  
  
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    resize: vertical;
  }
  
  .form-group textarea {
    height: 120px;
  }
  
  .submit-btn {
    background-color: #0c123d;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
  }
  
  .submit-btn:hover {
    background-color: #1a1f5c;
  }
  
  @media screen and (max-width: 900px) {
    .container {
      flex-direction: column;
      padding: 30px;
      text-align: center;
    }
  
    .left, .right {
      width: 100%;
      padding: 0;
    }
  
    .right {
      margin-top: 30px;
    }
  }
  /* css for map section*/
  .contact-info-map {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 80px 60px;
    background-color: #fff;
    gap: 60px;
    flex-wrap: wrap;
  }
  
  .contact-left {
    flex: 1;
    min-width: 300px;
  }
  
  .contact-left h2 {
    font-size: 42px;
    color: #2e5ee2;
    margin-bottom: 20px;
  }
  
  .contact-left p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
  }
  
  .contact-left .info-block {
    margin-top: 30px;
  }
  
  .contact-left .info-block strong {
    display: block;
    font-weight: 600;
    color: #2e5ee2;
    margin-bottom: 5px;
  }
  
  .contact-right {
    flex: 1;
    min-width: 350px;
  }
  /* Make sure video background covers on all screens */
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* Contact Section Responsive Adjustments */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
  }

  .left {
    padding-right: 0;
    margin-top: 80px; /* reduce for mobile */
  }

  .left h2 {
    font-size: 32px;
  }

  .left p {
    font-size: 16px;
  }

  .right {
    margin-top: 20px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
  }

  .submit-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px;
  }
}

/* Map Section Responsive */
@media screen and (max-width: 768px) {
  .contact-info-map {
    flex-direction: column;
    padding: 40px 20px;
    gap: 30px;
  }

  .contact-left h2 {
    font-size: 28px;
  }

  .contact-left p {
    font-size: 16px;
  }

  .contact-left .info-block {
    margin-top: 20px;
  }

  .contact-right iframe {
    height: 250px;
  }
}
