/* Remove rounded corners from service card buttons */
.service-card .btn {
  border-radius: 0 !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hero Section Overlay Gradient */
.overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  z-index: 1;
  pointer-events: none;
}

/* Ensure text and arrows stay above video/image */
.carousel-caption {
  z-index: 3;
  padding: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 4;
  width: 5%;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Smooth fade fix for carousel */
.carousel-item {
  transition: opacity 1s ease-in-out !important;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  z-index: 2;
}

/* Why Choose Us Section Styling */
.why-choose-us {
  position: relative;
  padding: 4rem 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.why-choose-us .container {
  position: relative;
  z-index: 2;
}

.feature-card {
  background: rgba(255, 255, 255, 0.97);
  border: none;
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.feature-card i {
  font-size: 2.25rem;
  color: #dc3545;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.feature-card h4 {
  color: #2d3436;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.feature-card p {
  color: #495057;
  margin-bottom: 0;
  line-height: 1.7;
  font-size: 0.95rem;
}

.feature-item {
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.transition-all {
  transition: all 0.3s ease;
}

/* Services Section Styling */
.service-card {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.service-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
}

.service-card .card-body p {
  flex-grow: 1;
}

.service-card .card-body .d-flex {
  margin-top: auto;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
}

.object-fit-cover {
  object-fit: cover;
}

.service-badge {
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.service-container .card-body {
  padding: 1.75rem;
  background: white;
}

.service-container h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #2d3436;
}

.service-container .card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: #6c757d !important;
}

.card-img-top {
  transition: transform 0.5s ease;
  object-fit: cover;
  height: 240px;
}

.service-card:hover .card-img-top {
  transform: scale(1.08);
}

.filter-container {
  margin: 0 auto;
  max-width: 900px;
}

/* Filter Button Styling */
.filter-btn {
  white-space: nowrap;
  margin: 0.2rem;
  transition: all 0.3s ease;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  border-width: 2px;
  padding: 0.5rem 1.25rem;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: #dc3545 !important;
  color: white !important;
  border-color: #dc3545 !important;
  transform: translateY(-2px);
}

/* Splash Screen Styling */
.splash-screen {
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 9999;
  background: #fff;
}

.splash-screen.hide {
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
}