/* Essential styling ONLY - NO navbar modifications */

/* Hero stats hover effects - prevent overlap */
.stat-item {
  transition: all 0.3s ease !important;
  position: relative !important;
  z-index: 10 !important;
}

.stat-item:hover {
  transform: translateY(-2px) scale(1.02) !important;
  z-index: 20 !important;
}

/* Force stats to stay on one line */
.hero-stats {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
}

/* Service icons - only fix hover color */
#services .value-prop-box:hover i {
  color: #ffffff !important;
}

/* Clean Service Box Styling */
.value-prop-box {
  padding: 2rem 1.5rem !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Learn More Button Styling */
.service-learn-more-btn {
  background: transparent !important;
  border: 2px solid #27ae60 !important;
  color: #27ae60 !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 6px !important;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease !important;
  font-weight: 500 !important;
  will-change: transform !important;
}

.service-learn-more-btn:hover {
  background: #27ae60 !important;
  color: white !important;
  border-color: #27ae60 !important;
  transform: translateY(-2px) !important;
  will-change: transform !important;
}

/* Basic smooth scrolling with proper offset */
html {
  scroll-behavior: smooth !important;
  scroll-padding-top: 80px !important;
}

/* Fix scroll positioning for sections */
section[id] {
  scroll-margin-top: 80px !important;
}

/* Ensure navbar stays visible */
.navbar-custom {
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  position: fixed !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
}

/* Simple fade in animation for sections */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero section particle animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-10px) translateX(5px);
    opacity: 1;
  }
  50% {
    transform: translateY(-5px) translateX(-5px);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-15px) translateX(3px);
    opacity: 0.9;
  }
}

/* ===========================================
   MINIMAL TEAM PHOTO HOVER EFFECTS
   =========================================== */

.team-box {
  transition: all 0.3s ease !important;
  text-align: center !important;
  padding: 1.5rem !important;
  margin-bottom: 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.team-box:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 30px rgba(39, 174, 96, 0.15) !important;
}

.team-member {
  position: relative !important;
  margin-bottom: 1.5rem !important;
}

.team-profile-img {
  transition: all 0.3s ease !important;
  width: 100% !important;
  height: 500px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 8px !important;
}

.team-bio-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.9) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2rem !important;
  border-radius: 8px !important;
}

.team-box:hover .team-bio-overlay {
  opacity: 1 !important;
}

.team-bio-content {
  text-align: center !important;
  color: white !important;
}

.team-bio-content p {
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  font-weight: 400 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
}

.team-name {
  color: white !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  margin-top: 1rem !important;
  margin-bottom: 0.5rem !important;
  transition: all 0.3s ease !important;
  letter-spacing: 0.5px !important;
}

.team-box:hover .team-name {
  color: #27ae60 !important;
  transform: translateY(-2px) !important;
}

.team-designation {
  color: #B3B3B3 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  margin-bottom: 1rem !important;
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
}

.team-box:hover .team-designation {
  color: #27ae60 !important;
  transform: translateY(-2px) !important;
}

.social-icon {
  display: inline-block !important;
  color: #27ae60 !important;
  margin: 0 1rem !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  font-size: 2rem !important;
}

.social-icon i {
  font-size: 2rem !important;
}

.social-icon:hover {
  color: white !important;
  transform: translateY(-2px) scale(1.1) !important;
}

.outer-flex-div-team-box {
  margin-top: 1.2rem !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.inner-flex-div-team-box {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Contact Form Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.contact-status-message {
  position: relative !important;
  overflow: hidden !important;
}

.contact-status-message::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
  animation: shimmer 1.5s ease-out !important;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.calendar-widget {
  transition: all 0.3s ease !important;
}

.calendar-widget:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(39, 174, 96, 0.2) !important;
}

/* Form Loading State */
.form-loading-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.7) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 100 !important;
  border-radius: 8px !important;
}

.spinner-border {
  width: 3rem !important;
  height: 3rem !important;
  border-width: 0.3em !important;
}

/* Loading Skeleton Animation */
@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Lazy Image Loading */
.image-loading {
  filter: blur(5px);
}

.image-loaded {
  filter: blur(0);
}

/* Accessibility Improvements */
/* Focus Indicators */
*:focus {
  outline: 2px solid #27ae60 !important;
  outline-offset: 2px !important;
}

button:focus,
a:focus {
  outline: 2px solid #27ae60 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.3) !important;
}

/* Skip Link Focus */
.skip-nav:focus {
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  z-index: 10000 !important;
  padding: 12px 20px !important;
  background: #27ae60 !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Screen Reader Only Text */
.sr-only {
  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;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn-primary,
  .btn-success {
    border: 2px solid currentColor !important;
  }
  
  .text-white {
    color: #ffffff !important;
  }
}

/* Reduced Motion Support */
@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;
  }
}

/* Responsive team section and footer */
@media (max-width: 768px) {
  .hero-stats {
    gap: 1rem !important;
    flex-wrap: nowrap !important;
  }
  
  .stat-item {
    min-width: 120px !important;
    padding: 0.8rem 1rem !important;
    flex-shrink: 0 !important;
  }
  
  .stat-item div:first-child {
    font-size: 1.8rem !important;
  }
  
  .stat-item div:last-child {
    font-size: 0.8rem !important;
  }
  
  .team-profile-img {
    height: 300px !important;
  }
  
  .team-box {
    padding: 1.5rem !important;
    margin-bottom: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }
  
  /* Footer responsive styles */
  .footer-content-wrapper, .contact-info-wrapper {
    margin-bottom: 1.5rem !important;
    padding: 1.5rem !important;
  }
  
  .stats-bar {
    gap: 1rem !important;
    padding: 1rem 0 !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
  }
  
  .stats-bar .stat-item {
    min-width: 100px !important;
    padding: 0.8rem !important;
    flex-shrink: 0 !important;
  }
  
  .stats-bar .stat-number {
    font-size: 1.5rem !important;
  }
  
  .stats-bar .stat-label {
    font-size: 0.65rem !important;
  }
  
  .trusted-client-card {
    margin-bottom: 1rem !important;
    min-height: 160px !important;
  }
}