:root {
  --primary-color: #FF6B35;
  --secondary-color: #004E89;
  --dark-color: #1A1A2E;
  --light-color: #F7F7F7;
  --text-dark: #2C3E50;
  --text-muted: #6C757D;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.navbar {
  background-color: rgba(26, 26, 46, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.fixed-top {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.brand-icon {
  font-size: 1.8rem;
  margin-right: 0.5rem;
}

.nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}
/* Large screens */
  @media (min-width: 992px) {
    .navbar-brand img {
      max-height: 100px;
    }
  }

  /* Medium screens (tablets) */
  @media (max-width: 991.98px) {
    .navbar-brand img {
      max-height: 80px;
    }
  }

  /* Small screens (phones) */
  @media (max-width: 575.98px) {
    .navbar-brand img {
      max-height: 80px;
    }
  }

  /* Extra small screens (320–375px) */
  @media (max-width: 400px) {
    .navbar-brand img {
      max-height: 75px;
    }
  }

#heroCarousel {
  margin-top: 70px;
}

.carousel {
  height: 65vh;
  min-height: 500px;
}

.carousel-item {
  height: 65vh;
  min-height: 500px;
}

.carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 78, 137, 0.8), rgba(255, 107, 53, 0.7));
}

.carousel-caption {
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-caption h1 {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption p {
  font-size: 1.3rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.carousel-item.active .animate-slide-up {
  animation: slideUp 1s ease-out;
}

.carousel-item.active .animate-fade-in {
  animation: fadeIn 1.5s ease-out;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.btn-primary:hover {
  background-color: #E65525;
  border-color: #E65525;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-outline-light {
  border-width: 2px;
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.btn-outline-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

.stat-card {
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.feature-list {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 350px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: white;
  padding: 2rem;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(255, 107, 53, 0.95), rgba(0, 78, 137, 0.85));
}

.project-overlay h4 {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

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

.stars {
  color: #FFB800;
  font-size: 1.2rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 1rem;
  flex-shrink: 0;
}

.cta-section {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.05);
  transform: rotate(45deg);
}

.page-header {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  padding: 8rem 0 4rem;
  margin-top: 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.05);
  transform: rotate(45deg);
}

.value-card,
.benefit-card {
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
}

.value-card:hover,
.benefit-card:hover {
  transform: translateY(-5px);
}

.value-icon,
.benefit-icon {
  font-size: 3rem;
  color: var(--primary-color);
}

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

.team-card:hover {
  transform: translateY(-10px);
}

.team-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.team-card:hover .team-image img {
  border-color: white;
}

.service-icon-large {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.3rem;
}

.process-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

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

.process-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #E65525);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto;
}

.project-card-detail {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.project-card-detail:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.project-card-detail img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card-detail:hover img {
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
}

.project-badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.project-details-list {
  margin: 1rem 0;
}

.detail-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.detail-item:last-child {
  border-bottom: none;
}

.btn-group .btn {
  margin-right: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 20px;
}

.contact-form .form-control,
.contact-form .form-select {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 2px solid #E0E0E0;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

.contact-info-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.emergency-card {
  background: linear-gradient(135deg, #DC3545, #C82333);
  padding: 2rem;
  border-radius: 15px;
  color: white;
}

.location-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

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

.accordion-button {
  font-weight: 600;
  background-color: white;
  color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: white;
}

.accordion-button:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

footer {
  background-color: var(--dark-color) !important;
}

footer a {
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--primary-color) !important;
  transform: translateX(3px);
}

.social-links a {
  display: inline-block;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}
@media (max-width: 1200px) {
  #heroCarousel {
    margin-top: 45px;
  }
}

@media (max-width: 768px) {
  #heroCarousel {
    margin-top: 45px;
  }

  .page-header {
    margin-top: 56px;
    padding: 5rem 0 3rem;
  }

  .carousel-caption h1 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .service-icon-large {
    font-size: 3rem;
  }

  .project-card {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .carousel-caption {
    padding: 0 1rem;
  }

  .btn-lg {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }
}