/* Enhanced Header Styles for Transparent Navigation */

/* Override default header styles for transparent effect */
.header {
  background-color: transparent !important;
  transition: all 0.3s ease-in-out;
  padding: 20px 0;
}

/* Modern Services Section Styles */
@keyframes float {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

.services .service-card-modern {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services .service-card-modern:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Compact Services Layout */
.services .service-card-compact {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services .service-card-compact:hover {
  transform: translateY(-10px) scale(1.03);
}

/* Responsive Services Layout */
@media (max-width: 992px) {
  .services .service-card-compact {
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .services section {
    padding: 60px 0 !important;
  }
  
  .services h2 {
    font-size: 2.5rem !important;
  }
  
  .services .service-card-compact {
    padding: 30px 20px !important;
    margin: 0 !important;
  }
  
  .services .services-cta-modern {
    padding: 40px 30px !important;
    margin: 0 15px;
  }
  
  .services .services-cta-modern h3 {
    font-size: 2rem !important;
  }
}

@media (max-width: 576px) {
  .services h2 {
    font-size: 2rem !important;
  }
  
  .services .service-card-compact {
    padding: 25px 15px !important;
  }
  
  .services .service-card-compact h4 {
    font-size: 1.1rem !important;
  }
  
  .services .services-cta-modern {
    padding: 30px 20px !important;
  }
  
  .services .services-cta-modern div[style*="flex"] {
    flex-direction: column !important;
    gap: 15px !important;
  }
}

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

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #da0006;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b30005;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

/* Logo text shadow for better visibility on transparent background */
.header .logo h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.header.scrolled .logo h1 {
  text-shadow: none;
}

/* Navigation menu styles */
.navmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}

.navmenu li {
  margin: 0 5px;
}

.navmenu a {
  position: relative;
  overflow: hidden;
}

.navmenu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #da0006;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navmenu a:hover::after,
.navmenu a.active::after {
  width: 80%;
}

/* Mobile navigation enhancements */
.mobile-nav {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-toggle {
  transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
  transform: scale(1.1);
}

/* Enhanced button styles */
.btn-getstarted {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-getstarted::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
  z-index: -1;
}

.btn-getstarted:hover::before {
  left: 100%;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .header {
    padding: 15px 0;
  }
  
  .header .logo h1 {
    font-size: 1.5rem;
  }
  
  .btn-getstarted {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 767.98px) {
  .header .logo h1 {
    font-size: 1.3rem;
  }
  
  .btn-getstarted {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* Ensure proper z-index layering */
.header {
  z-index: 1030 !important;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Active navigation state */
.navmenu a.active {
  background-color: rgba(218, 0, 6, 0.1);
  color: #da0006 !important;
}

/* Better focus states for accessibility */
.navmenu a:focus,
.mobile-nav-toggle:focus,
.btn-getstarted:focus {
  outline: 2px solid #da0006;
  outline-offset: 2px;
}

/* Enhance mobile menu appearance */
.mobile-nav ul li a {
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
  border-left-color: #da0006;
  padding-left: 23px;
}