:root{
      --primary:#0a2540;--accent:#2f80ed;--surface:#0f1b2d;--muted:#6b7a90;--ring:rgba(47,128,237,.25);

      --background: hsl(222.2 84% 4.9%);
      --foreground: hsl(210 40% 98%);
      --card: hsl(222.2 84% 4.9%);
      --card-foreground: hsl(210 40% 98%);
      --popover: hsl(222.2 84% 4.9%);
      --popover-foreground: hsl(210 40% 98%);
      --primary-dark: hsl(210 40% 98%);
      --primary-foreground: hsl(217.2 91.2% 59.8%);
      --secondary: hsl(217.2 32.6% 17.5%);
      --secondary-foreground: hsl(210 40% 98%);
      --muted-dark: hsl(217.2 32.6% 17.5%);
      --muted-foreground: hsl(215 20.2% 65.1%);
      --accent-dark: hsl(217.2 32.6% 17.5%);
      --accent-foreground: hsl(210 40% 98%);
      --destructive: hsl(0 62.8% 30.6%);
      --destructive-foreground: hsl(210 40% 98%);
      --border: hsl(217.2 32.6% 17.5%);
      --input: hsl(217.2 32.6% 17.5%);
      --ring-dark: hsl(217.2 32.6% 17.5%);

      --tech-blue: #1976D2;
      --accent-yellow: #ffc107;
      --text-highlight: hsl(0 0% 100%); /* Pure white for high contrast */
    }
    html{scroll-behavior:smooth; overflow-x: hidden;}
    body{
      font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji";
      background-color: var(--background);
      color: var(--foreground);
      overflow-x: hidden;
    }

    /* Enhanced section spacing utilities (consistent separation) */
    .py-6{padding-top:4rem!important;padding-bottom:4rem!important}
    .py-7{padding-top:5rem!important;padding-bottom:5rem!important}
    .section-divider{height:2px;background:linear-gradient(90deg,transparent,var(--tech-blue),transparent);opacity:0.7;transition:all 0.5s ease-out;}
    .anchor-offset{scroll-margin-top:90px}

    /* Hero */
    .hero{position:relative;min-height:82vh;background:radial-gradient(1200px 600px at 10% 10%, hsl(210 100% 50% / 0.1), transparent),linear-gradient(180deg, hsl(222.2 84% 4.9%), hsl(222.2 84% 2.9%));color:#eef3f9;overflow:hidden;display:grid;place-items:center}
    .hero .overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,15,28,.75),rgba(7,15,28,.35));pointer-events:none}
    .hero-video-wrap{position:absolute;inset:0;overflow:hidden;opacity:.45}
    .hero-video-wrap video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  border: 0;
}

    /* Particles.js styles removed */
    .hero-content{position:relative;z-index:2}

    .badge-soft{
      background: linear-gradient(180deg, hsl(210 100% 50% / 0.2), hsl(210 100% 50% / 0.1));
      color: hsl(210 100% 75%);
      border: 1px solid hsl(210 100% 50% / 0.3);
      box-shadow: 0 0 10px hsl(210 100% 50% / 0.2);
    }
    
    /* Cards */
    .card{
      border:1px solid var(--border);
      background:linear-gradient(180deg, var(--card), var(--card));
      backdrop-filter:blur(8px);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
      transition: border-color .2s ease;
    }
    .card.hover-rise{transition:transform .2s ease,box-shadow .2s ease}
    .card.hover-rise:hover{
      transform:translateY(-8px); /* Increased lift */
      box-shadow:0 15px 40px rgba(0,0,0,.4), 0 0 20px var(--tech-blue); /* Enhanced shadow and glow */
      border-color: var(--tech-blue); /* Highlight border */
      border-width: 2px;
    }

    /* Section headers */
    .section-title{color:var(--foreground);font-weight:800;letter-spacing:.2px}
    .section-sub{color:var(--muted-foreground)}
    section p { color: var(--foreground); }
    section#about p { color: var(--text-highlight) !important; }
    section#about { background-color: var(--background) !important; }
    section#services { background-color: var(--background) !important; }
    section#industries { background-color: var(--background) !important; }
    section#contact { background-color: var(--background) !important; }
    .card h3 { color: var(--foreground) !important; }
    .card h5 { color: var(--foreground) !important; }
    .card h6 { color: var(--foreground) !important; } /* Added for visibility */
    .card p { color: var(--foreground) !important; }
    .text-muted { color: var(--muted-foreground) !important; }
    .bg-surface{background:var(--background)}

    /* CTA Ribbon */
    .ribbon{background:linear-gradient(90deg, var(--background), var(--secondary) 60%, var(--tech-blue));color:var(--foreground)}

    /* Footer */
    footer{background:hsl(222.2 84% 2.9%);color:var(--muted-foreground)}
    footer a{color:var(--primary-dark)}

    /* Utilities */
    .btn-warning {
      background-color: var(--accent-yellow);
      border-color: var(--accent-yellow);
      color: #000;
    }
    .rounded-2xl{border-radius:1rem}
    .shadow-soft{box-shadow:0 10px 30px rgba(10,37,64,.15)}
    .ring{box-shadow:0 0 0 .25rem var(--ring)}

    /* Responsive tweaks */
    @media (max-width: 575.98px){
      .display-5{font-size:2rem}
      .lead{font-size:1rem}
      body { font-size: 1rem; line-height: 1.6; } /* Adjusted base font size and line-height for mobile */
      h1 { font-size: 2.5rem; } /* Adjusted h1 for mobile */
      h2 { font-size: 2rem; } /* Adjusted h2 for mobile */
      h3 { font-size: 1.75rem; } /* Adjusted h3 for mobile */

      /* Adjust spacing for hero content on mobile */
      .hero-content .display-5 { margin-bottom: 1rem !important; }
      .hero-content .lead { margin-bottom: 1.5rem !important; }
      .hero-content .d-flex { flex-direction: column; gap: 1rem !important; }
      .hero-content .btn { width: 100%; }

      /* Adjust spacing for section titles and subtitles on mobile */
      .section-title { font-size: 1.8rem; margin-bottom: 0.5rem !important; }
      .section-sub { font-size: 0.9rem; }

      /* Adjust padding for cards in about section */
      section#about .card { padding: 1rem !important; }

      /* Adjust padding for industry items */
      .industry-item { padding: 15px; }

      /* Adjust footer alignment */
      footer .row { text-align: center; }
      footer .col-lg-6:last-child { text-align: center !important; margin-top: 1rem; }
      footer .social-icons { justify-content: center; display: flex; }
    }

/* --- Menu Enhancements --- */

/* Desktop Navbar */
.navbar.navbar-dark-theme {
  background-color: hsl(222.2 84% 4.9% / 0.8) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(210 100% 50% / 0.2) !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.navbar.navbar-dark-theme .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.navbar.navbar-dark-theme .navbar-brand {
  color: var(--primary-dark) !important;
}

.navbar.navbar-dark-theme .nav-link {
  color: var(--muted-foreground);
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.navbar.navbar-dark-theme .nav-link:hover {
  color: var(--primary-dark);
}

.navbar.navbar-dark-theme .nav-link.active {
  color: var(--primary-dark) !important;
  font-weight: 600;
}

.navbar.navbar-dark-theme .navbar-toggler {
  border-color: var(--border);
}

.navbar.navbar-dark-theme .navbar-toggler-icon {
  filter: invert(1);
}

.navbar.navbar-dark-theme {
  --bs-offcanvas-bg: var(--background);
  --bs-offcanvas-color: var(--foreground);
  --bs-offcanvas-border-color: var(--border);
  --bs-offcanvas-header-color: var(--foreground);
  --bs-offcanvas-link-color: var(--muted-foreground);
  --bs-offcanvas-link-hover-color: var(--primary-dark);
  --bs-offcanvas-link-active-bg: var(--accent-dark);
  --bs-offcanvas-link-active-color: var(--primary-dark);
}

.navbar.navbar-dark-theme .btn-close {
  filter: invert(1);
}

 

/* Accordion Dark Theme */
.accordion-item {
  background-color: var(--background);
  border: 1px solid var(--border);
  color: var(--foreground);
}

.accordion-header {
  background-color: var(--background);
}

.accordion-button {
  background-color: var(--background);
  color: var(--foreground);
  border: none;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-dark); /* Active state text color */
  background-color: var(--background); /* Active state background */
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button:focus {
  border-color: var(--ring-dark);
  box-shadow: 0 0 0 .25rem var(--ring);
}

.accordion-button::after {
  filter: invert(1); /* Invert arrow color for dark background */
}

.accordion-body {
  color: var(--muted-foreground);
  background-color: var(--background);
  border-top: 1px solid var(--border);
}


.offcanvas-title {
  color: var(--bs-offcanvas-header-color);
  font-weight: 600;
}

.offcanvas-body .navbar-nav {
  width: 100%;
}

.offcanvas-body .nav-item {
  width: 100%;
}

.offcanvas-body .nav-link {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  padding: 0.9rem 1.25rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  margin-bottom: 0.25rem;
  color: var(--bs-offcanvas-link-color);
}

.offcanvas-body .nav-link:hover {
  background-color: var(--bs-offcanvas-link-active-bg);
  color: var(--bs-offcanvas-link-hover-color);
}

.offcanvas-body .nav-link.active {
  background-color: var(--bs-offcanvas-link-active-bg);
  color: var(--bs-offcanvas-link-active-color) !important;
  font-weight: 500;
}

.offcanvas-body .nav-link .bi {
  font-size: 1.2rem;
  line-height: 1;
}

/* Scroll-triggered animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form Control Dark Theme */
.form-control {
  background-color: var(--input);
  color: var(--foreground);
  border-color: var(--border);
}

.form-control:focus {
  background-color: var(--input);
  color: var(--foreground);
  border-color: var(--tech-blue);
  box-shadow: 0 0 0 .25rem var(--ring);
}

.form-control::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

.form-label {
  color: var(--foreground);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #0D6EFD; /* Custom blue */
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  line-height: 50px; /* Added to vertically center the icon */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white; /* Ensure icon stays white on hover */
}

/* Industry Item Hover Effect */
.industry-item {
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  border: 1px solid transparent; /* Initial transparent border */
}

.industry-item:hover {
  transform: translateY(-5px) scale(1.02);
  background-color: var(--secondary); /* Subtle background change */
  border-color: var(--tech-blue); /* Highlight border */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.industry-item i {
  transition: color 0.3s ease-in-out;
}

.industry-item:hover i {
  color: var(--primary-foreground) !important; /* Brighter icon on hover */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background); /* Dark background for the track */
}

::-webkit-scrollbar-thumb {
  background: var(--tech-blue); /* Tech blue for the thumb */
  border-radius: 5px;
  border: 2px solid var(--background); /* Border to match track background */
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-foreground); /* Lighter blue on hover */
}

/* Dropdown Menu Dark Theme */
.dropdown-menu {
  background-color: var(--background);
  border: 1px solid var(--border);
}

.dropdown-item {
  color: var(--foreground);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--secondary);
  color: var(--primary-dark);
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  background-color: var(--tech-blue);
  color: var(--foreground);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  background-color: var(--primary-foreground); /* Lighter blue on hover */
  color: var(--background); /* Darker text on hover */
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%; /* Initial width */
  height: 4px; /* Thickness of the bar */
  background-color: var(--tech-blue); /* Color of the bar */
  z-index: 10000; /* Ensure it's above everything */
  transition: width 0.1s linear; /* Smooth transition for width change */
}

/* Section Background */
.section-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.section-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black overlay with 50% opacity */
    z-index: -1;
}

/* background images removed */

@media (max-width: 991.98px) {
    .hero {
        min-height: 60vh;
    }
    .display-5 {
        font-size: 2.5rem;
    }
}

#services.section-bg::before {
    background-color: rgba(0, 0, 0, 0.8); /* Even darker overlay */
}
.robot-arm-img {
  max-height: 300px;
  width: 100%;
  object-fit: cover;
  border: 1px solid #4d94ff;
  border-radius: 0.5rem;
  opacity: 0.8;
}

.image-wrapper {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
}

.image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  border-radius: 0.5rem;
}

#key-strengths .card .d-flex span {
  color: var(--text-highlight) !important;
}


/* ==== FIX: Mobile offcanvas clipping (Bootstrap 5) ==== */
@media (max-width: 991.98px) {
  .offcanvas {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    height: 100vh;
    max-height: 100vh;
    z-index: 1061; /* above headers/buttons */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .offcanvas .offcanvas-body {
    overflow-y: auto;
  }
}
/* Optional: safer default for .show (avoid overriding Bootstrap internals) */
#navCanvas {
  background-color: var(--background) !important;
  color: var(--foreground) !important;
}

.offcanvas-body .navbar-nav .nav-item {
  margin-bottom: 0.5rem; /* Add some vertical spacing between items */
}

.offcanvas-body .navbar-nav .nav-item:last-child {
  margin-bottom: 0; /* No margin for the last item */
}

.offcanvas-body .navbar-nav .nav-item .btn {
  width: 100%; /* Make buttons full width */
}
.offcanvas.show { opacity: 1; visibility: visible; }

.grecaptcha-badge {
  background-color: var(--background) !important; /* Dark background */
  color: var(--foreground) !important; /* Light text */
  border: 1px solid var(--border) !important; /* Subtle border */
}

.grecaptcha-badge a {
  color: var(--primary-dark) !important; /* Link color */
}

.modal-content {
  background-color: var(--background) !important;
  color: var(--foreground) !important;
  border: 1px solid var(--border) !important;
}

.modal-header {
  border-bottom: 1px solid var(--border) !important;
}

.modal-footer {
  border-top: 1px solid var(--border) !important;
}

.modal-title {
  color: var(--foreground) !important;
}

.modal-body {
  color: var(--muted-foreground) !important;
}

.modal-header .btn-close {
  filter: invert(1) !important; /* Invert close button color for dark background */
}
