/* General Styles */
body {
  background-color: #fff;
  color: #000;
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
}

/* Navigation Bar - Enhanced for Mobile Stability */
.navbar {
  letter-spacing: normal;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  left: 0;
  top: 0;
  z-index: 1000;
  position: fixed !important;
  transform: translateZ(0); /* Force hardware acceleration */
  backface-visibility: hidden; /* Prevent flickering */
  will-change: transform; /* Optimize for animations */
}

.navbar-brand {
  padding-left: 1rem;
}

.nav-item {
  margin-right: 1rem;
}

.navbar-brand, .nav-link, .dropdown-item {
  color: #000;
}

.nav-link:hover, .dropdown-item:hover {
  color: #2196F3;
}

.nav-item.active .nav-link {
  background-color: #E6ECEA;
}

.navbar-collapse.show .contact-us {
  color: #2196F3;
  border: 1px solid #2196F3;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Dropdown Menu */
.dropdown-menu {
  background-color: #fff;
  border: 1px solid #E6ECEA;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
}

.dropdown-item:hover {
  background-color: #E6ECEA;
}

/* Custom Hamburger Menu - Enhanced Stability */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  background: transparent !important;
  position: relative;
  z-index: 1100;
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler-icon {
  display: none !important;
}

.custom-toggler {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  position: relative;
  background: transparent !important;
}

.custom-toggler .line {
  background-color: #000;
  height: 3px;
  border-radius: 2px;
  position: absolute;
  width: 100%;
  transition: all 0.3s ease;
  visibility: visible;
}

.custom-toggler .line1 {
  top: 0;
}

.custom-toggler .line2 {
  top: 8px;
}

.custom-toggler .line3 {
  top: 16px;
}

.navbar-toggler[aria-expanded="true"] .custom-toggler .line1 {
  transform: rotate(45deg);
  top: 8px;
  background-color: #2196F3;
  visibility: visible;
}

.navbar-toggler[aria-expanded="true"] .custom-toggler .line2 {
  visibility: hidden;
  opacity: 0;
  width: 0;
}

.navbar-toggler[aria-expanded="true"] .custom-toggler .line3 {
  transform: rotate(-45deg);
  top: 8px;
  background-color: #2196F3;
  visibility: visible;
}

.navbar-toggler[aria-expanded="false"] .custom-toggler .line1 {
  top: 0;
  transform: none;
  background-color: #000;
  visibility: visible;
}

.navbar-toggler[aria-expanded="false"] .custom-toggler .line2 {
  top: 8px;
  transform: none;
  background-color: #000;
  visibility: visible;
  opacity: 1;
  width: 100%;
}

.navbar-toggler[aria-expanded="false"] .custom-toggler .line3 {
  top: 16px;
  transform: none;
  background-color: #000;
  visibility: visible;
}

/* Ensure hamburger lines are visible during transitions */
.navbar-toggler .custom-toggler .line {
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease, background-color 0.3s ease;
}

/* Hero Section (Watercolor Style) */
.hero {
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: #000;
  padding-top: 120px;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, #A7FFEB 0%, #A7FFEB 15%, transparent 15%),
    radial-gradient(circle at 75% 75%, #00C853 0%, #00C853 10%, transparent 10%),
    radial-gradient(circle at 50% 50%, #00BCD4 0%, #00BCD4 20%, transparent 20%),
    linear-gradient(to bottom, #E0F7FA, #B2EBF2, #80DEEA, #4FC3F7, #29B6F6);
  filter: blur(15px);
  z-index: -1;
}

/* Buttons */
.btn-primary {
  background-color: #2196F3;
  border-color: #2196F3;
}

.btn-primary:hover {
  background-color: #1976D2;
  border-color: #1976D2;
}

.btn-success {
  background-color: #228B22;
  border-color: #228B22;
}

.btn-success:hover {
  background-color: #1B5E20;
  border-color: #1B5E20;
}

/* Sections */
section {
  padding: 60px 0;
  padding-top: 120px;
}

section.career-form, section.contact-form, section.connect-form {
  padding-top: 120px;
}

.section-heading {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.section-subheading {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

/* Form Styles */
.contact-form form, .connect-form form, .career-form form {
  padding: 1.5rem;
  border: 1px solid #2196F3;
  border-radius: 8px;
  background-color: #fff;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  margin: 0 auto;
  max-width: 100%;
  padding: 0 20px;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}

.service-box {
  display: inline-block;
  width: 300px;
  flex-shrink: 0;
}

.carousel-image-container {
  text-align: center;
  margin-top: 1rem;
}

.carousel-image-box {
  position: relative;
  width: 300px;
  height: 200px;
  margin: 0 auto;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  display: none;
}

.carousel-image[data-service="1"] {
  display: block;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: #2196F3;
}

/* Solutions Section */
.solution-item {
  position: relative;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.solution-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: #2196F3;
  border-radius: 4px 0 0 4px;
}

.solution-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Partner Logos */
.partner-logo {
  max-height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: #0D47A1;
  color: #fff;
  padding: 1rem 0;
}

footer .social-icons a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  font-size: 1.2rem;
}

footer .social-icons a:hover {
  color: #2196F3;
}

/* Connect Form Specific Styles */
.connect-form .form-check {
  margin-bottom: 0.5rem;
}

.connect-form .form-label {
  font-weight: 500;
}

.connect-form .form-control, .connect-form .form-select {
  border-color: #E6ECEA;
}

.connect-form .form-control:focus, .connect-form .form-select:focus {
  border-color: #2196F3;
  box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Trusted Categories */
#trusted-categories .card {
  border: none;
  background-color: #E6ECEA;
}

/* Enhanced Mobile Support */
@media (max-width: 768px) {
  /* Enhanced Navbar Stability for Mobile */
  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden !important;
    perspective: 1000px !important;
  }
  
  /* Prevent body scrolling issues */
  body {
    padding-top: 0 !important;
    margin-top: 0 !important;
    position: relative;
  }
  
  /* Enhanced Contact Us Button Styling for Mobile Hamburger Menu - Outline Only */
  .navbar-collapse.show .nav-item:last-child {
    width: 100% !important;
    margin: 0.5rem 0 !important;
    padding: 0 1rem !important;
  }
  
  .navbar-collapse.show .contact-us {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background-color: transparent !important;
    color: #2196F3 !important;
    border: 2px solid #2196F3 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
    margin: 0 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.1) !important;
  }
  
  .navbar-collapse.show .contact-us:hover {
    background-color: rgba(33, 150, 243, 0.05) !important;
    border-color: #1976D2 !important;
    color: #1976D2 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.2) !important;
  }
  
  /* Ensure other nav items maintain normal spacing */
  .navbar-collapse.show .nav-item:not(:last-child) {
    margin-bottom: 0.25rem;
  }
  
  /* Prevent Contact Us styling from affecting hamburger menu */
  .nav-item .contact-us {
    text-decoration: none !important;
  }
  
  /* Force hamburger menu to stay visible */
  .navbar-toggler {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1100 !important;
  }
  
  .custom-toggler {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .custom-toggler .line {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
  }
  
  /* Ensure navbar collapse doesn't hide hamburger */
  .navbar-collapse.show {
    position: relative;
    z-index: 1050;
    padding-bottom: 1rem;
  }
  
  .navbar-collapse.show ~ .navbar-toggler {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
  }
  
  footer .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  footer .social-icons {
    margin-top: 0.5rem;
  }
  
  .hero {
    padding: 50px 0;
    padding-top: 80px;
  }
  
  section {
    padding: 40px 0;
    padding-top: 80px;
  }
  
  section.career-form, section.contact-form, section.connect-form {
    padding-top: 80px;
  }
  
  .contact-form form, .connect-form form, .career-form form {
    padding: 1rem;
  }
  
  .section-heading {
    font-size: 2rem;
  }
  
  .section-subheading {
    font-size: 1.5rem;
  }
  
  .carousel-container {
    padding: 0 10px;
  }
  
  .service-box {
    width: 250px;
  }
  
  .carousel-image-box {
    width: 250px;
    height: 167px;
  }
  
  .carousel-image {
    max-width: 250px;
    height: 167px;
  }
  
  .solution-title {
    font-size: 1.3rem;
  }
  
  .dropdown-menu {
    background-color: #fff;
    border: none;
    box-shadow: none;
  }
  
  .dropdown-item {
    color: #000;
    padding: 0.5rem 1.5rem;
  }
}

/* Card styles for featured content */
.card {
  background-color: #fff;
  color: #000;
  min-height: 150px;
  padding: 1rem;
  white-space: normal;
  word-wrap: break-word;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card h5 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
