/* Uniform Blue Color - Set Bootstrap Primary to #1E77B7 */
:root {
  --bs-primary: #1E77B7;
  --bs-primary-rgb: 30, 119, 183;
}

/* Ensure all primary text and backgrounds use uniform blue */
.text-primary {
  color: #1E77B7 !important;
}

.bg-primary {
  background-color: #1E77B7 !important;
}

.btn-primary {
  background-color: #1E77B7 !important;
  border-color: #1E77B7 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1E77B7 !important;
  border-color: #1E77B7 !important;
}

.btn-outline-primary {
  color: #1E77B7 !important;
  border-color: #1E77B7 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #1E77B7 !important;
  border-color: #1E77B7 !important;
  color: #ffffff !important;
}

button, .btn {
  transition: all 0.3s ease-in-out; /* Smooth transitions for buttons */
}

button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Get in Touch Button - Blue and White Combination */
.get-in-touch-btn {
  background-color: #1E77B7 !important;
  border-color: #1E77B7 !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.75rem 2rem;
}

.get-in-touch-btn:hover,
.get-in-touch-btn:focus {
  background-color: #1E77B7 !important;
  border-color: #1E77B7 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 119, 183, 0.4);
}

.get-in-touch-btn:active {
  background-color: #1E77B7 !important;
  border-color: #1E77B7 !important;
  color: #ffffff !important;
}

.service-card, .card, .client-box {
  transition: all 0.3s ease-in-out; /* Smooth transitions for cards and client boxes */
  cursor: pointer;
}

.service-card:hover, .card:hover, .client-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Ensure hover effect works for cards with reveal class */
.card.reveal.active:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

html { scroll-behavior: smooth; } /* Smooth scrolling for anchor links */

/* Skip to main content link for accessibility */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden-focusable:focus {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Scroll Reveal Animations */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease-in-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure reveal cards maintain hover transition after animation */
.card.reveal.active {
  transition: opacity 0.6s ease-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Staggered animation for cards in Why Choose Us and About sections */
.row .col-md-4:nth-child(1) .card.reveal {
  transition-delay: 0s;
}

.row .col-md-4:nth-child(2) .card.reveal {
  transition-delay: 0.1s;
}

.row .col-md-4:nth-child(3) .card.reveal {
  transition-delay: 0.2s;
}

body {
  font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; /* Use bold weight for headings */
}

.logo{
  width:42px; 
  height:42px; 
  object-fit:contain;
  transition: transform 0.3s ease;
  aspect-ratio: 1 / 1;
}

/* Company name styling - increased font size */
.company-name {
  font-size: 2rem;
  transform: perspective(500px) rotateX(5deg);
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 15px; /* Added spacing to avoid overlap with logo */
  letter-spacing: 0.5px;
  white-space: normal; /* Allow wrapping */
  word-wrap: break-word; /* Break long words if needed */
  max-width: 100%; /* Ensure it doesn't overflow */
}

/* Medium-large screens (992px - 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
  .company-name {
    font-size: 1.75rem;
  }
}

/* Responsive company name - ensure wrapping on smaller devices */
@media (max-width: 991px) {
  .navbar-brand {
    flex-wrap: wrap !important;
    max-width: calc(100% - 60px); /* Leave space for toggle button */
    margin-right: 10px;
  }
  
  .company-name {
    font-size: 1.25rem;
    margin-left: 10px;
    transform: none; /* Remove 3D effect on mobile for better readability */
    white-space: normal !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    line-height: 1.3;
    display: block; /* Make it block so it wraps */
    margin-top: 5px;
  }
  
  .logo-wrapper {
    flex-shrink: 0; /* Prevent logo from shrinking */
  }
}

/* Tablets (768px - 991px) */
@media (max-width: 768px) {
  .company-name {
    font-size: 1rem;
    margin-left: 8px;
    transform: none; /* Remove 3D effect on mobile for better readability */
  }
}

/* Small devices (576px - 767px) */
@media (max-width: 576px) {
  .company-name {
    font-size: 0.85rem;
    margin-left: 5px;
    line-height: 1.2;
  }
  
  .navbar-brand {
    flex-wrap: wrap !important;
    max-width: calc(100% - 50px); /* Leave space for toggle button */
  }
  
  .logo {
    margin-bottom: 5px;
  }
}

/* Extra small devices (< 400px) */
@media (max-width: 400px) {
  .company-name {
    font-size: 0.75rem;
    margin-left: 3px;
    line-height: 1.15;
  }
}

.company-name:hover {
  transform: perspective(500px) rotateX(0deg) scale(1.05);
}

/* Additional responsive adjustments for company name hover */
@media (max-width: 991px) {
  .company-name:hover {
    transform: none;
  }
}

/* Logo wrapper for hover zoom preview */
.logo-wrapper {
  position: relative;
  display: inline-block;
}

.logo-wrapper:hover .logo {
  transform: scale(1.1);
  cursor: pointer;
}

/* Large preview on hover */
.logo-preview {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 15px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(-10px);
  z-index: 1000;
  pointer-events: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.logo-preview::before {
  display: none;
}

.logo-preview img {
  width: 200px;
  height: 200px;
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  display: block;
  aspect-ratio: 1 / 1;
}

.logo-wrapper:hover .logo-preview {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Custom: Darker text for muted paragraphs on light backgrounds */
p.text-muted {
  color: #343a40 !important; /* Dark charcoal grey for better readability */
}

/* Custom: Lighter text for muted content in the footer on dark backgrounds */
footer .text-muted {
  color: #ced4da !important; /* Light grey for contrast on dark footer */
}

.hero{
  background: transparent;
  min-height: 400px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Responsive hero background for different screen sizes */
@media (max-width: 576px) {
  .hero {
    min-height: 250px;
    background-attachment: scroll;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .hero {
    min-height: 300px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    min-height: 450px;
  }
}

@media (min-width: 1025px) {
  .hero {
    min-height: 500px;
  }
}

/* Removed redundant text color styling for elements within .hero as content is moved out */

/* Stylish Arrow Buttons for Mobile */
.hero-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 60px;
  border: none;
  background: linear-gradient(135deg, rgba(30, 119, 183, 0.9), rgba(111, 177, 45, 0.9));
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.8rem;
  color: white;
  border-radius: 0 8px 8px 0;
}

.hero-arrow-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-arrow-btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, rgba(30, 119, 183, 1), rgba(111, 177, 45, 1));
}

.hero-arrow-left {
  left: 0;
  border-radius: 0 8px 8px 0;
}

.hero-arrow-right {
  right: 0;
  border-radius: 8px 0 0 8px;
}

/* Panel Overlay */
.panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Close Panel Button */
.close-panel-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
}

.close-panel-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

/* Hero center: sliding images in the gap between left and right panels (behind panels) */
.hero-center {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 240px;
  right: 240px;
  z-index: 0;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
.hero-center-track {
  display: flex;
  width: 300%;
  height: 100%;
  animation: hero-slide 22s ease-in-out infinite;
}
.hero-center--js .hero-center-track {
  animation: none;
}
.hero-center-slide {
  flex: 0 0 33.333%;
  height: 100%;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}
/* Arrows on left and right of wallpaper */
.hero-center-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 60px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-center-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) scale(1.05);
}
.hero-center-arrow:active {
  transform: translateY(-50%) scale(0.98);
}
.hero-center-arrow-left {
  left: 8px;
}
.hero-center-arrow-right {
  right: 8px;
}
@keyframes hero-slide {
  0% { transform: translateX(0); }
  27% { transform: translateX(0); }
  36% { transform: translateX(-33.333%); }
  63% { transform: translateX(-33.333%); }
  72% { transform: translateX(-66.666%); }
  99% { transform: translateX(-66.666%); }
  100% { transform: translateX(0); }
}
/* When panels are narrower (1025px–1200px), gap is 20+180+180+20 */
@media (min-width: 1025px) and (max-width: 1200px) {
  .hero-center {
    left: 200px;
    right: 200px;
  }
}
/* When panels overlay (tablet/mobile), center fills the hero */
@media (max-width: 1024px) {
  .hero-center {
    left: 0;
    right: 0;
  }
}

/* Gallery slider: 400×300 per image, 2 images on small / 3 on large, continuous chain, no arrows. No border/shadow – empty space until images load. */
.gallery-slider-wrap {
  position: relative;
  width: 800px;
  max-width: 100%;
  height: 300px;
  margin-top: 1rem;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}
@media (min-width: 992px) {
  .gallery-slider-wrap {
    width: 1200px;
  }
}
.gallery-slider-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.gallery-slider-track {
  display: flex;
  height: 100%;
  gap: 12px;
  transition: transform 0.5s ease-in-out;
}
.gallery-slider-slide {
  flex: 0 0 400px;
  width: 400px;
  height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero Stats and Highlights Widgets */
.hero-stats-left {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: block;
  visibility: visible;
  width: 220px;
  height: auto;
  max-width: 220px;
  min-width: 220px;
}

.hero-highlights-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: block;
  visibility: visible;
  width: 220px;
  height: auto;
  max-width: 220px;
  min-width: 220px;
}

.stats-widget, .highlights-widget {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 15px 25px 15px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  visibility: visible;
  opacity: 1;
  position: relative;
  width: 100%;
  max-width: 220px;
  min-width: 220px;
  min-height: 480px; /* Ensure both panels have same minimum height - adjusted for 7 items */
}

.stat-item {
  text-align: center;
  margin-bottom: 20px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  width: 100%;
  box-sizing: border-box;
}

.stat-item:last-child {
  margin-bottom: 0;
}

/* Match right panel styling */
.stats-widget {
  justify-content: flex-start;
}

/* Stats panel: Quote and Vision content - aligned to panel height */
.stats-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
  width: 100%;
  flex: 1;
  min-height: 0;
  padding: 0.5rem 0;
  overflow-y: auto;
}

.stats-quote-attribution {
  white-space: nowrap;
}

.stats-quote {
  font-size: 0.95rem;
  font-style: italic;
  font-weight: bold;
  color: #1E77B7;
  margin: 0;
  padding: 0 4px;
  border: none;
  line-height: 1.45;
  flex-shrink: 0;
}

.stats-vision-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  margin-top: 1.25rem;
}

.stats-vision-block .stats-vision-icon {
  margin-bottom: 0;
}

.stats-vision-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E77B7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 0 4px;
  flex-shrink: 0;
}

.stats-vision-text {
  font-size: 0.9rem;
  color: #000000;
  line-height: 1.45;
  margin: 0;
  padding: 0 4px;
  flex-shrink: 0;
}

.stat-number {
  font-size: 1rem;
  font-weight: 700;
  color: #1E77B7;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 4px;
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.highlights-widget h6 {
  color: #1E77B7;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 0;
  flex-shrink: 0;
  padding-left: 0;
  width: 100%;
}

.highlight-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  color: #343a40;
  font-size: 0.85rem;
  text-align: left;
  flex: 0 0 auto;
  width: 140px;
  padding-left: 12px; /* Align checkmark with the H in Highlights */
}

.highlight-item:last-child {
  margin-bottom: 0;
}

/* Ensure highlights widget content is evenly spaced */
.highlights-widget {
  justify-content: flex-start;
  align-items: center;
}

.highlight-item i {
  font-size: 0.95rem;
  margin-right: 8px;
  flex-shrink: 0;
  width: 18px;
  min-width: 18px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.highlight-item span {
  flex: 0 0 auto;
}

/* Responsive adjustments for hero widgets - removed as covered by more specific media queries */

/* Medium viewport adjustments (1025px - 1200px) to prevent panel overlap with wallpaper */
@media (min-width: 1025px) and (max-width: 1200px) {
  .hero-stats-left {
    left: 15px !important;
    width: 180px !important;
    max-width: 180px !important;
    min-width: 180px !important;
  }
  
  .hero-highlights-right {
    right: 15px !important;
    width: 180px !important;
    max-width: 180px !important;
    min-width: 180px !important;
  }
  
  .stats-widget, .highlights-widget {
    padding: 15px 12px 20px 12px !important;
    width: 180px !important;
    max-width: 180px !important;
    min-width: 180px !important;
    height: 360px !important; /* Fixed height to prevent overlap */
    min-height: 360px !important;
    max-height: 360px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .stat-number {
    font-size: 0.95rem !important;
  }
  
  .stat-label {
    font-size: 0.8rem !important;
  }
  
  .highlights-widget h6 {
    font-size: 0.9rem !important;
    margin-bottom: 12px !important;
  }
  
  .highlight-item {
    font-size: 0.8rem !important;
    margin-bottom: 10px !important;
    justify-content: flex-start !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 120px !important;
  }
  
  .highlight-item i {
    font-size: 0.85rem !important;
    width: 18px !important;
    flex-shrink: 0 !important;
    margin-right: 8px !important;
    text-align: center !important;
  }
  
  .highlight-item span {
    flex: 0 0 auto !important;
  }
  
  /* Ensure panels stay above background but don't overlap content */
  .hero-stats-left, .hero-highlights-right {
    z-index: 10 !important;
  }
  
  .hero {
    position: relative;
    z-index: 1;
    min-height: 450px !important; /* Ensure enough space for panels */
  }
}

/* iPad/Tablet specific - Hide panels by default, show via arrows like mobile */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Override Bootstrap d-lg-none class to show arrows on iPad */
  .hero-arrow-btn.d-lg-none {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure arrow buttons are visible on iPad */
  .hero-arrow-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000 !important;
  }
  
  /* Ensure close buttons are visible on iPad */
  .close-panel-btn.d-lg-none {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure overlay is visible on iPad */
  .panel-overlay.d-lg-none {
    display: block !important;
  }
  
  /* Hide panels by default on iPad - same as mobile behavior */
  .hero-stats-left, .hero-highlights-right {
    position: fixed !important;
    top: 0 !important;
    height: 100vh !important;
    width: 0 !important;
    z-index: 999 !important;
    transition: width 0.3s ease !important;
    overflow: hidden !important;
    transform: none !important;
    visibility: hidden !important;
  }
  
  .hero-stats-left {
    left: 0 !important;
    right: auto !important;
  }
  
  .hero-highlights-right {
    right: 0 !important;
    left: auto !important;
  }
  
  .hero-stats-left.active {
    width: 70% !important;
    max-width: 400px !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    left: 0 !important;
    right: auto !important;
  }
  
  .hero-highlights-right.active {
    width: 70% !important;
    max-width: 400px !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    right: 0 !important;
    left: auto !important;
  }
  
  /* Ensure panels are hidden when not active */
  .hero-stats-left:not(.active), .hero-highlights-right:not(.active) {
    width: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }
  
  .stats-widget, .highlights-widget {
    position: absolute !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 50px 25px 25px !important;
    overflow-y: auto !important;
    overflow-x: visible !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  
  /* Left panel widget positioning */
  .hero-stats-left .stats-widget {
    left: 0 !important;
    right: auto !important;
  }
  
  /* Right panel widget positioning */
  .hero-highlights-right .highlights-widget {
    right: 0 !important;
    left: auto !important;
  }
  
  /* Panel background colors for iPad */
  .stats-widget {
    background: linear-gradient(135deg, #1E77B7 0%, #1E77B7 100%) !important;
    color: #ffffff !important;
  }
  
  .highlights-widget {
    background: linear-gradient(135deg, #6FB12D 0%, #4d7e1f 100%) !important;
    color: #ffffff !important;
  }
  
  /* Text styles for iPad panels */
  .hero-stats-left.active .stats-widget .stats-quote,
  .hero-stats-left.active .stats-widget .stats-vision-title,
  .hero-stats-left.active .stats-widget .stats-vision-text {
    color: rgba(255, 255, 255, 0.95) !important;
  }
  
  .hero-stats-left.active .stats-widget .stats-quote {
    font-size: 0.95rem !important;
  }
  
  .hero-stats-left.active .stats-widget .stats-vision-title {
    font-size: 1rem !important;
    color: #ffffff !important;
  }
  
  .hero-highlights-right.active .highlights-widget h6 {
    color: #ffffff !important;
    font-size: 1rem !important;
  }
  
  .hero-highlights-right.active .highlights-widget .highlight-item {
    color: #ffffff !important;
    font-size: 0.9rem !important;
    justify-content: flex-start !important;
  }
  
  .hero-highlights-right.active .highlights-widget .highlight-item i {
    color: #ffffff !important;
    width: 18px !important;
    min-width: 18px !important;
    flex-shrink: 0 !important;
    margin-right: 8px !important;
    text-align: center !important;
  }
  
  .hero-highlights-right.active .highlights-widget .highlight-item span {
    flex: 1 !important;
  }
  
  /* Ensure hero section looks good */
  .hero {
    min-height: 400px !important;
    position: relative;
  }
}

/* Desktop: Ensure panels are always visible (1025px and above, excluding iPad Pro) */
@media (min-width: 1025px) {
  .hero-stats-left, .hero-highlights-right {
    position: absolute !important;
    display: block !important;
    visibility: visible !important;
    width: 220px !important;
    height: auto !important;
    max-width: 220px !important;
    min-width: 220px !important;
    transform: translateY(-50%) !important;
    overflow: visible !important;
  }
  
  .hero-stats-left {
    left: 20px !important;
    top: 50% !important;
  }
  
  .hero-highlights-right {
    right: 20px !important;
    top: 50% !important;
  }
  
  .stats-widget, .highlights-widget {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 220px !important;
    max-width: 220px !important;
    min-width: 220px !important;
    min-height: 480px !important; /* Maintain same height on desktop - adjusted for 7 items */
  }
}

/* Mobile: Slide-in Panels */
@media (max-width: 991px) {
  /* Ensure arrow buttons are visible on mobile */
  .hero-arrow-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000 !important; /* Higher than panels to ensure visibility */
  }
  
  /* Reset desktop styles for mobile - Panels must be hidden by default */
  .hero-stats-left, .hero-highlights-right {
    position: fixed !important;
    top: 0 !important;
    height: 100vh !important;
    width: 0 !important;
    z-index: 999 !important;
    transition: width 0.3s ease !important;
    overflow: hidden !important;
    transform: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Ensure panels are definitely hidden when no active class */
  .hero-stats-left:not(.active), .hero-highlights-right:not(.active) {
    width: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  .hero-stats-left {
    left: 0 !important;
    right: auto !important;
  }
  
  .hero-highlights-right {
    right: 0 !important;
    left: auto !important;
  }
  
  .hero-stats-left.active {
    width: 85% !important;
    max-width: 320px !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    left: 0 !important;
    right: auto !important;
  }
  
  .hero-highlights-right.active {
    width: 85% !important;
    max-width: 320px !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    right: 0 !important;
    left: auto !important;
  }
  
  /* Ensure content is always rendered, even when panel is closed */
  .hero-stats-left .stats-widget,
  .hero-highlights-right .highlights-widget {
    min-width: 200px !important;
  }
  
  .stats-widget, .highlights-widget {
    position: absolute !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 50px 20px 20px !important;
    overflow-y: auto !important;
    overflow-x: visible !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
  
  /* Left panel widget positioning */
  .hero-stats-left .stats-widget {
    left: 0 !important;
    right: auto !important;
  }
  
  /* Right panel widget positioning */
  .hero-highlights-right .highlights-widget {
    right: 0 !important;
    left: auto !important;
  }
  
  /* When panel is active, ensure everything is visible */
  .hero-stats-left.active .stats-widget,
  .hero-highlights-right.active .highlights-widget {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  /* Force all child elements to be visible when panel is active */
  .hero-stats-left.active .stats-widget *,
  .hero-highlights-right.active .highlights-widget * {
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
  }
  
  .hero-stats-left.active .stats-widget .stats-content,
  .hero-stats-left.active .stats-widget .stats-quote,
  .hero-stats-left.active .stats-widget .stats-vision-title,
  .hero-stats-left.active .stats-widget .stats-vision-text {
    display: block !important;
  }
  
  .hero-highlights-right.active .highlights-widget .highlight-item {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 120px !important;
  }
  
  .hero-highlights-right.active .highlights-widget h6 {
    display: block !important;
  }
  
  .hero-highlights-right.active .highlights-widget .highlight-item span {
    display: inline-block !important;
    flex: 0 0 auto !important;
  }
  
  .hero-highlights-right.active .highlights-widget .highlight-item i {
    width: 18px !important;
    min-width: 18px !important;
    flex-shrink: 0 !important;
    margin-right: 8px !important;
  }
  
  /* Override desktop widget styles completely for mobile */
  .stats-widget {
    background: linear-gradient(135deg, #1E77B7 0%, #1E77B7 100%) !important;
    color: #ffffff !important;
    z-index: 1000 !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .highlights-widget {
    background: linear-gradient(135deg, #6FB12D 0%, #4d7e1f 100%) !important;
    color: #ffffff !important;
    z-index: 1000 !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  /* Override desktop stat styles for mobile */
  .hero-stats-left.active .stats-widget .stats-quote,
  .hero-stats-left.active .stats-widget .stats-vision-title,
  .hero-stats-left.active .stats-widget .stats-vision-text {
    color: rgba(255, 255, 255, 0.95) !important;
  }
  
  .hero-stats-left.active .stats-widget .stats-vision-title {
    color: #ffffff !important;
  }
  
  /* Override desktop highlight styles for mobile */
  .hero-highlights-right.active .highlights-widget h6 {
    color: #ffffff !important;
  }
  
  .hero-highlights-right.active .highlights-widget .highlight-item {
    color: #ffffff !important;
    justify-content: flex-start !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 120px !important;
  }
  
  .hero-highlights-right.active .highlights-widget .highlight-item i {
    width: 18px !important;
    min-width: 18px !important;
    flex-shrink: 0 !important;
    margin-right: 8px !important;
  }
  
  .hero-highlights-right.active .highlights-widget .highlight-item span {
    flex: 0 0 auto !important;
  }
  
  /* Ensure all text content is visible and white */
  .hero-stats-left.active .stats-widget,
  .hero-stats-left.active .stats-widget * {
    color: #ffffff !important;
  }
  
  .hero-highlights-right.active .highlights-widget,
  .hero-highlights-right.active .highlights-widget * {
    color: #ffffff !important;
  }
  
  /* Ensure all content is visible in mobile panels - More specific selectors */
  .hero-stats-left.active .stats-widget .stats-content,
  .hero-stats-left.active .stats-widget .stats-quote,
  .hero-stats-left.active .stats-widget .stats-vision-title,
  .hero-stats-left.active .stats-widget .stats-vision-text {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    color: #ffffff !important;
    text-align: center !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .hero-highlights-right.active .highlights-widget h6 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
    text-align: center !important;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: auto !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }
  
  .hero-highlights-right.active .highlights-widget .highlight-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    padding: 6px 0 !important;
    font-size: 0.75rem !important;
    font-family: 'Montserrat', sans-serif !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative !important;
    z-index: 1 !important;
    width: 120px !important;
    height: auto !important;
  }
  
  .hero-highlights-right.active .highlights-widget .highlight-item span {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    position: relative !important;
    z-index: 1 !important;
    flex: 0 0 auto !important;
    height: auto !important;
  }
  
  .hero-highlights-right.active .highlights-widget .highlight-item i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    margin-right: 8px !important;
    position: relative !important;
    z-index: 1 !important;
    width: 18px !important;
    min-width: 18px !important;
    height: auto !important;
    flex-shrink: 0 !important;
    text-align: center !important;
  }
  
  /* Override any text-success class */
  .hero-highlights-right.active .highlights-widget .highlight-item .text-success {
    color: #ffffff !important;
  }
  
  .highlights-widget h6 {
    color: white !important;
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
  }
  
  .highlight-item {
    color: white !important;
    padding: 6px 0;
    font-size: 0.75rem !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    width: 100% !important;
  }
  
  .highlight-item span {
    color: white !important;
    display: inline-block !important;
    flex: 1 !important;
  }
  
  .highlight-item i {
    color: white !important;
    font-size: 0.9rem !important;
    margin-right: 8px !important;
    width: 18px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
  }
  
  .highlight-item .text-success {
    color: white !important;
  }
  
  .stat-item {
    margin-bottom: 18px;
    text-align: center;
    display: block !important;
    visibility: visible !important;
  }
  
  .stat-number {
    font-size: 0.9rem !important;
    display: block !important;
    line-height: 1.2 !important;
  }
  
  .stat-label {
    font-size: 0.75rem !important;
    margin-top: 4px !important;
    display: block !important;
  }
  
  .close-panel-btn {
    position: absolute !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1002 !important;
    top: 15px !important;
    right: 15px !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.3s ease !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3) !important;
  }
  
  .close-panel-btn:active {
    background: rgba(255, 255, 255, 0.5) !important;
    transform: scale(0.95) !important;
  }
  
  .close-panel-btn:hover {
    background: rgba(255, 255, 255, 0.4) !important;
  }
  
  .hero-stats-left.active .close-panel-btn,
  .hero-highlights-right.active .close-panel-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1002 !important;
  }
  
  .close-panel-btn i {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    display: block !important;
    visibility: visible !important;
    pointer-events: none !important;
  }
  
  .close-panel-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg);
  }
  
  /* Ensure all content is visible when panel is active */
  /* Additional fallback to ensure content is visible */
  .hero-stats-left.active .stats-widget .stats-content,
  .hero-stats-left.active .stats-widget .stats-quote,
  .hero-stats-left.active .stats-widget .stats-vision-title,
  .hero-stats-left.active .stats-widget .stats-vision-text,
  .hero-highlights-right.active .highlights-widget .highlight-item,
  .hero-highlights-right.active .highlights-widget h6 {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    color: white !important;
  }
  
  .hero-highlights-right.active .highlights-widget .highlight-item {
    display: flex !important;
  }
}

.hero-content-section {
  background-color: #f8f9fa; /* Light background for readability */
  padding-top: 5rem;
  padding-bottom: 0; /* Remove bottom padding to reduce gap */
}

/* Remove bottom padding from container and button margin */
.hero-content-section .container {
  padding-bottom: 0 !important;
}

.hero-content-section .get-in-touch-btn {
  margin-bottom: 0 !important;
}

/* Responsive hero content section */
@media (max-width: 768px) {
  .hero-content-section {
    padding-top: 3rem;
    padding-bottom: 0;
  }
  
  .hero-content-section h1 {
    font-size: 1.75rem !important;
  }
  
  .hero-content-section .lead {
    font-size: 1rem;
  }
  
  .hero-content-section .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .hero-content-section {
    padding-top: 2rem;
    padding-bottom: 0;
  }
  
  .hero-content-section h1 {
    font-size: 1.5rem !important;
  }
}

#about {
  padding-top: 2cm !important; /* 2cm gap between Get in Touch button and About Us */
  padding-bottom: 6rem;
  margin-top: 0 !important; /* Remove any default margin */
}

#services, #expanded-services, #products, #clients, #careers, #contact {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.service-card, .card {
  padding: 2rem; /* Increased internal padding for cards */
}

.client-box {
  padding: 2rem; /* Increased internal padding for client boxes */
}

/* Responsive card padding */
@media (max-width: 768px) {
  .service-card, .card {
    padding: 1.5rem;
  }
  
  .client-box {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .service-card, .card {
    padding: 1rem;
  }
  
  .client-box {
    padding: 1rem;
    font-size: 0.9rem;
  }
}
.service-card{border:1px solid #eef2f7; border-radius:10px; background:white;}
.client-box{border:1px dashed #d1d5db; border-radius:6px; background:#fff;}

/* Light outline for Mission, Values, Team, and Why Choose Us panels */
.card.border-0 {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Chatbot Widget */
#chatbot-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

#chatbot-toggle {
  width: 50px;
  height: 50px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white !important;
  background-color: #1E77B7 !important;
}

#chatbot-window {
  display: none; /* Hidden by default */
  width: 350px;
  height: 450px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 60px; /* Position above the toggle button */
  right: 0;
  flex-direction: column;
  overflow: hidden;
}

#chatbot-window.open {
  display: flex;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-body {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: #f8f9fa;
}

.chatbot-message {
  padding: 8px 12px;
  border-radius: 15px;
  margin-bottom: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

.chatbot-message.bot {
  background-color: #e2e6ea;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chatbot-message.user {
  background-color: var(--bs-primary);
  color: white;
  align-self: flex-end;
  margin-left: auto;
  border-bottom-right-radius: 2px;
}

.chatbot-footer .input-group {
  display: flex;
}

.chatbot-footer .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.chatbot-footer .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6c757d;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Quick Action Buttons */
.chatbot-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.chatbot-quick-actions .btn {
  font-size: 0.85rem;
  padding: 4px 12px;
  white-space: nowrap;
}

/* Enhanced Bot Message Styling */
.chatbot-message.bot strong {
  color: #1E77B7;
  font-weight: 600;
}

.chatbot-message.bot em {
  font-style: italic;
  color: #495057;
}

/* Project Card Specific Styles */
.project-card .card-img-top {
  height: 200px; /* Fixed height for project images */
  object-fit: cover; /* Ensure images cover the area without distortion */
  border-bottom: 1px solid #eef2f7; /* Subtle separator */
}

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
  z-index: 1050; /* Ensure it's above other content but below modals */
  width: 100%;
  /* Bootstrap's fixed-bottom handles most positioning */
}

.cookie-consent-banner p {
  margin-bottom: 0; /* Remove default paragraph margin */
  font-size: 0.9rem; /* Slightly smaller text */
}

.cookie-consent-banner a {
  font-weight: 600; /* Make the "Learn more" link stand out */
}

/* Responsive adjustments for the banner content */
@media (max-width: 767.98px) { /* For small devices */
  .cookie-consent-banner .container {
    flex-direction: column; /* Stack elements vertically */
    text-align: center;
  }

  .cookie-consent-banner p {
    margin-bottom: 10px; /* Add space between text and button */
    font-size: 0.85rem;
  }
}

/* General mobile optimizations */
@media (max-width: 576px) {
  /* Reduce font sizes for better mobile readability */
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.25rem !important; }
  h4 { font-size: 1.1rem !important; }
  h5 { font-size: 1rem !important; }
  
  /* Improve spacing */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Chatbot widget adjustments */
  #chatbot-widget {
    bottom: 20px;
    right: 20px;
  }
  
  #chatbot-window {
    width: calc(100vw - 40px);
    max-width: 350px;
    height: 400px;
  }
  
  /* Logo preview adjustments */
  .logo-preview img {
    width: 150px;
    height: 150px;
  }
}

/* Desktop/Medium: Navigation on new line below company name */
@media (min-width: 992px) {
  .navbar .container > .w-100 {
    display: flex;
    flex-direction: column;
  }
  
  .navbar-nav {
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .navbar-brand {
    margin-bottom: 0;
  }
  
  .navbar-toggler {
    display: none !important;
  }
  
  .navbar-collapse {
    display: block !important;
  }
}

/* Mobile navigation improvements */
@media (max-width: 991px) {
  /* Ensure toggle button is always visible and accessible */
  .navbar-toggler {
    flex-shrink: 0 !important;
    z-index: 1020;
    position: relative;
  }
  
  /* Ensure the flex container allows wrapping */
  .navbar .d-flex.justify-content-between {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
    flex-direction: column !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .navbar-nav .btn {
    margin-top: 1rem;
    width: auto;
    display: inline-block;
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
}

/* Professional Services Dropdown Menu */
.dropdown-menu-mega {
  min-width: 320px;
  max-width: 100vw;
  max-height: 400px;
  padding: 1rem 0;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  margin-top: 0.5rem;
  overflow-y: auto;
  overflow-x: auto;
}

.dropdown-menu-mega .dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.dropdown-menu-mega .dropdown-item:hover {
  background-color: #f8f9fa;
  color: inherit;
}

.dropdown-menu-mega .dropdown-item:focus {
  background-color: #f8f9fa;
  color: inherit;
  outline: 2px solid #1E77B7;
  outline-offset: 2px;
}

.dropdown-menu-mega .fw-bold {
  color: #1E77B7;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.dropdown-menu-mega .dropdown-item small {
  color: #000000;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-top: 0.25rem;
}

.dropdown-menu-mega .dropdown-item:hover small {
  color: #000000;
}

.dropdown-menu-mega .dropdown-divider {
  margin: 0.5rem 1rem;
}

/* Show dropdown on hover for desktop */
@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 0;
    animation: fadeInDropdown 0.2s ease forwards;
  }
  
  .nav-item.dropdown .dropdown-menu {
    display: none;
  }
  
  @keyframes fadeInDropdown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
  }
  
  .nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
  }
  
  /* Prevent dropdown from closing when moving mouse to dropdown */
  .nav-item.dropdown .dropdown-menu {
    margin-top: 0;
  }
}

/* Mobile dropdown adjustments */
@media (max-width: 991px) {
  .dropdown-menu-mega {
    min-width: 100%;
    box-shadow: none;
    border: 1px solid #dee2e6;
    border-radius: 0;
    margin-top: 0;
  }
  
  .dropdown-menu-mega .dropdown-item {
    padding: 1rem 1.5rem;
  }
  
  .dropdown-menu-mega {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
}

/* Accessibility: Focus Indicators (WCAG 2.4.7) */
a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible,
#main-content:focus {
  outline: 2px solid #1E77B7;
  outline-offset: 2px;
}

.dropdown-menu-mega .dropdown-item:focus-visible {
  outline: 2px solid #1E77B7;
  outline-offset: 2px;
}

.skip-link:focus {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 1rem;
  background: #1E77B7;
  color: white;
  text-decoration: none;
}

/* Accessibility: Ensure interactive elements are keyboard accessible */
button:not(:disabled),
a[href],
input:not(:disabled),
textarea:not(:disabled),
select:not(:disabled) {
  cursor: pointer;
}

/* Accessibility: High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Accessibility: Reduced motion support (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  button:hover, .btn:hover, .service-card:hover, .card:hover, .client-box:hover,
  .get-in-touch-btn:hover, .close-service-panel-btn:hover {
    transform: none !important;
  }
  html {
    scroll-behavior: auto !important;
  }
}

/* Custom scrollbar styling for dropdown menu */
.dropdown-menu-mega::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dropdown-menu-mega::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.dropdown-menu-mega::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.dropdown-menu-mega::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Horizontal scrollbar styling for mobile devices */
@media (max-width: 991px) {
  .dropdown-menu-mega::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
}

/* Service Detail Side Panel */
.service-detail-panel {
  position: fixed;
  right: -400px;
  top: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  z-index: 1060;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.service-detail-panel.active {
  right: 0;
}

.service-detail-content {
  padding: 3rem 2rem 2rem;
  color: white;
}

.service-detail-title {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.service-detail-description {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
}

.close-service-panel-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1061;
}

.close-service-panel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.service-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1059;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile adjustments for service panel */
@media (max-width: 768px) {
  .service-detail-panel {
    width: 85vw;
    right: -85vw;
  }
  
  .service-detail-content {
    padding: 2.5rem 1.5rem 1.5rem;
  }
  
  .service-detail-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .service-detail-description {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .close-service-panel-btn {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    top: 15px;
    right: 15px;
  }
}

/* ============================================================================
   Floating Animated Badge Cards
   ============================================================================ */

.hero-badges {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.badge-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 120px;
  max-width: 150px;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  cursor: pointer;
}

.badge-card.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.badge-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 1);
}

.badge-card i {
  font-size: 2rem;
  color: #1E77B7;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.badge-card:hover i {
  color: #6FB12D;
  transform: scale(1.1) rotate(5deg);
}

.badge-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E77B7;
  margin-bottom: 4px;
  font-family: 'Montserrat', sans-serif;
}

.badge-subtitle {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 600;
}

/* Left Side Badges */
.badge-left {
  left: 20px;
}

.badge-left.badge-1 {
  top: 20%;
  animation-delay: 0.1s;
}

.badge-left.badge-2 {
  top: 45%;
  animation-delay: 0.2s;
}

.badge-left.badge-3 {
  top: 70%;
  animation-delay: 0.3s;
}

/* Right Side Badges */
.badge-right {
  right: 20px;
}

.badge-right.badge-4 {
  top: 25%;
  animation-delay: 0.4s;
}

.badge-right.badge-5 {
  top: 50%;
  animation-delay: 0.5s;
}

.badge-right.badge-6 {
  top: 75%;
  animation-delay: 0.6s;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .badge-card {
    padding: 12px 16px;
    min-width: 100px;
    max-width: 130px;
  }
  
  .badge-card i {
    font-size: 1.5rem;
  }
  
  .badge-title {
    font-size: 0.85rem;
  }
  
  .badge-subtitle {
    font-size: 0.7rem;
  }
  
  .badge-left, .badge-right {
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 991px) {
  .badge-card {
    padding: 10px 14px;
    min-width: 90px;
    max-width: 120px;
  }
  
  .badge-card i {
    font-size: 1.3rem;
    margin-bottom: 5px;
  }
  
  .badge-title {
    font-size: 0.75rem;
    margin-bottom: 2px;
  }
  
  .badge-subtitle {
    font-size: 0.65rem;
  }
  
  .badge-left {
    left: 5px;
  }
  
  .badge-right {
    right: 5px;
  }
}

@media (max-width: 768px) {
  .badge-card {
    padding: 8px 12px;
    min-width: 80px;
    max-width: 110px;
  }
  
  .badge-card i {
    font-size: 1.1rem;
  }
  
  .badge-title {
    font-size: 0.7rem;
  }
  
  .badge-subtitle {
    font-size: 0.6rem;
  }
  
  .badge-left.badge-1 {
    top: 15%;
  }
  
  .badge-left.badge-2 {
    top: 40%;
  }
  
  .badge-left.badge-3 {
    top: 65%;
  }
  
  .badge-right.badge-4 {
    top: 20%;
  }
  
  .badge-right.badge-5 {
    top: 45%;
  }
  
  .badge-right.badge-6 {
    top: 70%;
  }
}

@media (max-width: 576px) {
  .badge-card {
    display: none; /* Hide on very small screens to avoid clutter */
  }
}

/* ============================================================================
   Inline Styles - Converted to CSS Classes
   ============================================================================ */

/* Skip link z-index and positioning */
.skip-link-z-index {
  z-index: 1051;
}

.skip-link-z-index-alt {
  z-index: 9999;
  top: 10px;
  left: 10px;
}

/* Company name color spans */
.company-name-i {
  color: #6FB12D;
}

.company-name-ink {
  color: #1E77B7;
}

.company-name-text {
  color: #1E77B7;
}

/* Contact section background */
.contact-section-bg {
  background-color: #1E77B7;
}

/* Footer background */
.footer-bg {
  background-color: #1E77B7;
}

/* Send message button background */
.send-message-btn {
  background-color: white;
}
