/* Hero Section Styling */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #a833b9 0%, #6a5b6e 100%);
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

/* Enhanced Hero Section with Floating Navigation */
.hero-section-with-nav {
  position: relative;
  background: linear-gradient(135deg, #a833b9 0%, #6a5b6e 100%);
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section-with-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

/* Floating Navigation */
.floating-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(168, 51, 185, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.floating-nav .navbar {
  background: transparent !important;
  padding: 15px 0;
}

.floating-nav .navbar-collapse {
  background: transparent !important;
}

/* Floating Navigation Links */
.floating-nav .nav-item .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 15px 20px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.floating-nav .nav-item .nav-link:after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.floating-nav .nav-item .nav-link:hover:after,
.floating-nav .nav-item .nav-link.active:after {
  width: 30px;
}

.floating-nav .nav-item .nav-link:hover,
.floating-nav .nav-item .nav-link.active {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Mobile Navigation Styles */
@media (max-width: 991.98px) {
  .floating-nav .navbar-collapse {
    background: rgba(168, 51, 185, 0.98) !important;
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  .floating-nav .nav-item .nav-link {
    color: #ffffff !important;
    text-align: center;
    padding: 12px 20px;
    border-radius: 5px;
    margin: 2px 0;
  }
  
  .floating-nav .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
  }
}

/* Navbar Styling */
.navbar-container {
  background: linear-gradient(135deg, #a833b9 0%, #6a5b6e 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(168, 51, 185, 0.2);
}

.navbar-container .navbar {
  background: transparent !important;
}

.navbar-container .navbar-collapse {
  background: transparent !important;
}

.navbar-container .nav-item .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 15px 20px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar-container .nav-item .nav-link:after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.navbar-container .nav-item .nav-link:hover:after,
.navbar-container .nav-item .nav-link.active:after {
  width: 30px;
}

.navbar-container .nav-item .nav-link:hover,
.navbar-container .nav-item .nav-link.active {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Modern Logo Styling */
.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.logo-text {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #ffffff !important;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-text::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -10px;
  right: -10px;
  bottom: -5px;
  background: linear-gradient(135deg, rgba(168, 51, 185, 0.1) 0%, rgba(106, 91, 110, 0.1) 100%);
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: all 0.3s ease;
}

.navbar-brand:hover .logo-text::before {
  opacity: 1;
}

.navbar-brand:hover .logo-text {
  background: linear-gradient(135deg, #a833b9 0%, #6a5b6e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.05);
}

/* Logo icon */
.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #a833b9 0%, #6a5b6e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  box-shadow: 0 4px 15px rgba(168, 51, 185, 0.3);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.logo-icon i {
  color: #ffffff;
  font-size: 1.3rem;
}

.navbar-brand:hover .logo-icon {
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(168, 51, 185, 0.5);
}

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
  .logo-text {
    font-size: 2.2rem;
  }
  
  .logo-icon {
    width: 50px;
    height: 50px;
    margin-right: 18px;
  }
  
  .logo-icon i {
    font-size: 1.5rem;
  }
}

/* Desktop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .logo-text {
    font-size: 1.9rem;
  }
  
  .logo-icon {
    width: 42px;
    height: 42px;
    margin-right: 14px;
  }
  
  .logo-icon i {
    font-size: 1.25rem;
  }
}

/* Tablet Landscape (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .logo-text {
    font-size: 1.7rem;
  }
  
  .logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }
  
  .logo-icon i {
    font-size: 1.2rem;
  }
}

/* Tablet Portrait (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .logo-text {
    font-size: 1.5rem;
  }
  
  .logo-icon {
    width: 38px;
    height: 38px;
    margin-right: 10px;
  }
  
  .logo-icon i {
    font-size: 1.1rem;
  }
}

/* Mobile Large (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .logo-text {
    font-size: 1.3rem;
  }
  
  .logo-icon {
    width: 35px;
    height: 35px;
    margin-right: 8px;
  }
  
  .logo-icon i {
    font-size: 1rem;
  }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
  .logo-text {
    font-size: 1.1rem;
    max-width: 150px;
  }
  
  .logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 6px;
  }
  
  .logo-icon i {
    font-size: 0.9rem;
  }
  
  .navbar-brand {
    max-width: 200px;
  }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
  .logo-text {
    font-size: 1rem;
    max-width: 120px;
  }
  
  .logo-icon {
    width: 28px;
    height: 28px;
    margin-right: 5px;
  }
  
  .logo-icon i {
    font-size: 0.8rem;
  }
  
  .navbar-brand {
    max-width: 160px;
  }
}

/* Ensure logo doesn't break on very small screens */
@media (max-width: 320px) {
  .logo-text {
    font-size: 0.9rem;
    max-width: 100px;
  }
  
  .logo-icon {
    width: 25px;
    height: 25px;
    margin-right: 4px;
  }
  
  .logo-icon i {
    font-size: 0.7rem;
  }
  
  .navbar-brand {
    max-width: 130px;
  }
}

.navbar-toggler {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
}

.navbar-container .btn-contact,
.floating-nav .btn-contact {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  color: #ffffff !important;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.navbar-container .btn-contact:hover,
.floating-nav .btn-contact:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

@media (max-width: 1199.98px) {
  .navbar-container .navbar-collapse {
    background: linear-gradient(135deg, #a833b9 0%, #6a5b6e 100%) !important;
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
  }
}

.hero-overlay {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(168, 51, 185, 0.95) 0%,
    rgba(106, 91, 110, 0.85) 50%,
    rgba(168, 51, 185, 0.7) 100%
  );
  z-index: 1;
  padding: 0;
}
.hero-overlay > .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 3rem !important;
  transition: all 0.3s ease;
}

.hero-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.15);
}

.hero-image-container {
  position: relative;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 3;
  transition: all 0.3s ease;
}

.hero-image-container:hover {
  transform: scale(1.02);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3);
}

.hero-image-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
  transition: all 0.3s ease;
}

.hero-image-container:hover .hero-image-frame {
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-badge {
  position: absolute;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #a833b9 0%, #6a5b6e 100%);
  border-radius: 50%;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(168, 51, 185, 0.4);
  animation: pulse-badge 3s infinite;
  z-index: 4;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.hero-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(168, 51, 185, 0.6);
}

.hero-badge-inner {
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-badge span {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a833b9 0%, #6a5b6e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  text-shadow: none;
}

.hero-badge small {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6a5b6e;
  line-height: 1.2;
  margin-top: 2px;
}

@keyframes pulse-badge {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(168, 51, 185, 0.4);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(168, 51, 185, 0.6);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(168, 51, 185, 0.4);
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }

  .hero-content {
    margin-bottom: 30px;
  }

  .hero-badge {
    width: 80px;
    height: 80px;
  }

  .hero-badge-inner {
    width: 70px;
    height: 70px;
  }

  .hero-badge span {
    font-size: 1.2rem;
  }

  .hero-badge small {
    font-size: 0.7rem;
  }
}

/* Service Item Styling */
.service-item {
  transition: all 0.35s ease;
  border-top: 4px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.shadow-hover {
  transition: all 0.35s ease;
}

.shadow-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
  border-top: 4px solid #a833b9;
}

.service-icon {
  transition: all 0.5s ease;
  overflow: hidden;
}

.service-item:hover .service-icon {
  transform: rotateY(360deg);
}

.service-features {
  position: relative;
  padding-left: 10px;
  border-left: 2px solid #a833b9;
}

.service-item .btn-outline-primary {
  transition: all 0.3s ease;
}

.service-item .btn-outline-primary:hover {
  background: #a833b9;
  color: white;
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }

  .hero-content {
    margin-bottom: 30px;
  }

  .hero-badge {
    width: 80px;
    height: 80px;
  }

  .hero-badge-inner {
    width: 70px;
    height: 70px;
  }

  .hero-badge span {
    font-size: 1.2rem;
  }

  .hero-badge small {
    font-size: 0.7rem;
  }
}

/* Contact Section Styling */
.contact-section {
  position: relative;
  background: linear-gradient(135deg, #a833b9 0%, #6a5b6e 100%);
  background-size: cover;
  position: relative;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 0;
}

.contact-section .container {
  position: relative;
  z-index: 1;
}

.contact-info-box {
  transition: all 0.3s ease;
  border-top: 4px solid #a833b9;
}

.contact-icon {
  width: 60px;
  height: 60px;
  transition: all 0.5s ease;
}

.contact-info-box:hover .contact-icon {
  transform: rotateY(360deg);
}

.contact-link a {
  transition: all 0.3s ease;
}

.contact-link a:hover {
  color: #a833b9 !important;
}

.map-responsive {
  overflow: hidden;
  position: relative;
  height: 400px;
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-area-badge {
  display: inline-block;
  padding: 5px 15px;
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: #a833b9;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.service-area-badge:hover {
  background: #a833b9;
  color: white;
  transform: translateY(-3px);
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }

  .hero-content {
    margin-bottom: 30px;
  }

  .hero-badge {
    width: 80px;
    height: 80px;
  }

  .hero-badge-inner {
    width: 70px;
    height: 70px;
  }

  .hero-badge span {
    font-size: 1.2rem;
  }

  .hero-badge small {
    font-size: 0.7rem;
  }
}

/* Topbar Emergency Icon Styling */
.topbar .top-info {
  position: relative;
  z-index: 2;
}

.emergency-icon {
  box-shadow: 0 0 15px rgba(168, 51, 185, 0.7) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  animation: pulse-icon 2s infinite !important;
}

.topbar .top-info .text-white {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

@keyframes pulse-icon {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(168, 51, 185, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(168, 51, 185, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(168, 51, 185, 0);
  }
}

/* Mobile Hero Badge */
.hero-badge-mobile {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #a833b9 0%, #6a5b6e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(168, 51, 185, 0.4);
  animation: pulse-badge 3s infinite;
  z-index: 4;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-badge-mobile .hero-badge-inner {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-badge-mobile .hero-badge-inner span {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a833b9 0%, #6a5b6e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  text-shadow: none;
}

.hero-badge-mobile .hero-badge-inner small {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6a5b6e;
  line-height: 1.2;
  margin-top: 2px;
}

/* Hero Content Enhancements */
.hero-content h1 {
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.hero-content .text-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.hero-content .btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-content .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-content .btn-primary {
  background: linear-gradient(135deg, #a833b9 0%, #6a5b6e 100%);
  border: none;
}

.hero-content .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-content .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.hero-section .hero-image-container img {
  width: auto !important;
  max-width: 100%;
  height: 500px;
  max-height: 80vh;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 991.98px) {
  .hero-section .hero-image-container img {
    height: 300px;
  }
}
