/* Modern Effects and Animations */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* Ensure Font Awesome icons are loaded */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");

/* Icon fixes */
.fas,
.fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands";
  font-weight: 900;
  display: inline-block;
}

.contact-info a{
 text-decoration: none !important;
 color: white !important;
}

.contact-info a:hover{
  color: #f59e0b !important;
}

.footer-bottom p a{
  text-decoration: none !important;
  color:#9ca3af !important;
}

.footer-bottom p a:hover{
  color: #f59e0b !important;
}

.fab {
  font-weight: 400;
}



/* Smooth Transitions */
* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

/* Enhanced Button Effects */
.btn {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn::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;
}

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Ripple Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Card Hover Effects */
.service-card,
.value-card,
.team-member,
.testimonial-card,
.gallery-item,
.blog-post,
.emergency-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before,
.value-card::before,
.team-member::before,
.testimonial-card::before,
.emergency-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), rgba(59, 130, 246, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.service-card:hover::before,
.value-card:hover::before,
.team-member:hover::before,
.testimonial-card:hover::before,
.emergency-card:hover::before {
  opacity: 1;
}

.service-card:hover,
.value-card:hover,
.team-member:hover,
.testimonial-card:hover,
.emergency-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Icon Animations */
.service-icon,
.value-icon,
.emergency-icon,
.contact-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon,
.value-card:hover .value-icon,
.emergency-card:hover .emergency-icon,
.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Text Glow Effect */
.glow-text {
  text-shadow: 0 0 10px rgba(30, 64, 175, 0.3);
  transition: text-shadow 0.3s ease;
}

.glow-text:hover {
  text-shadow: 0 0 20px rgba(30, 64, 175, 0.6);
}

/* Floating Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* Gradient Text */


/* Enhanced Navigation */
.nav-menu a {
  position: relative;
  overflow: hidden;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1e40af, #f59e0b);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Form Input Effects */
.form-group input,
.form-group select,
.form-group textarea {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
  background: white;
}

/* Enhanced Emergency Phone */
.emergency-phone,
.emergency-phone-large a {
  position: relative;
  overflow: hidden;
}

.emergency-phone::before,
.emergency-phone-large a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.emergency-phone:hover::before,
.emergency-phone-large a:hover::before {
  width: 300px;
  height: 300px;
}

/* Gallery Image Effects */
.gallery-item img {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) saturate(1);
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1.1) saturate(1.2);
}

/* Blog Post Effects */
.blog-post {
  border: 1px solid transparent;
  background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #e5e7eb, #f3f4f6) border-box;
}

.blog-post:hover {
  background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #1e40af, #f59e0b) border-box;
}

/* Social Links Animation */
.social-links a {
  position: relative;
  overflow: hidden;
}

.social-links a::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;
}

.social-links a:hover::before {
  left: 100%;
}

/* Tab Button Effects */
.tab-btn,
.filter-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.tab-btn::before,
.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.tab-btn.active::before,
.tab-btn:hover::before,
.filter-btn.active::before,
.filter-btn:hover::before {
  opacity: 1;
}

.tab-btn.active,
.tab-btn:hover,
.filter-btn.active,
.filter-btn:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* Enhanced Testimonial Stars */
.stars i {
  transition: all 0.3s ease;
  cursor: pointer;
}

.testimonial-card:hover .stars i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 5px #f59e0b);
}

/* Enhanced Footer */
.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Particle Background Effect */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(30, 64, 175, 0.1);
  border-radius: 50%;
  animation: particle-float 6s infinite linear;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Header Styles - Fixed */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1e40af;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1e40af, #f59e0b);
  transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #1e40af;
  background-color: #eff6ff;
  transform: translateY(-2px);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.emergency-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 25px !important;
  font-weight: bold !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  animation: pulse 2s infinite;
}

.emergency-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  color: white !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  color: #1e40af;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: #1e40af;
  color: white;
}

.btn-primary:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f59e0b;
  color: white;
}

.btn-secondary:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* Services Overview */
.services-overview {
  padding: 80px 20px;
  background: #fff;
}

.services-overview h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  min-height: 400px; /* Prevent layout collapse */
}

.service-card {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.service-card h3 {
  font-size: 1.5rem;
  color: #1e40af;
  margin-bottom: 1rem;
}

.service-card p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.service-link {
  color: #f59e0b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.service-link:hover {
  color: #d97706;
}

/* Why Choose Us */
.why-choose-us {
  padding: 80px 20px;
  background: #f8fafc;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.text-content h2 {
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 2rem;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.feature i {
  color: #f59e0b;
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.feature h4 {
  color: #1e40af;
  margin-bottom: 0.5rem;
}

.feature p {
  color: #64748b;
}

.image-content img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

/* Emergency Banner */
.emergency-banner {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.emergency-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.emergency-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.2);
  padding: 15px 30px;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.emergency-phone:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Page transition effect for navigation */
.page-transition {
  opacity: 0.8;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.page-transition.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Page Header with scroll effect */
.page-header {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  padding: 150px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::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.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  transform: translateY(20px);
  opacity: 0;
  animation: slideInUp 0.8s ease forwards 0.2s;
}

.page-header p {
  font-size: 1.25rem;
  opacity: 0.9;
  transform: translateY(20px);
  opacity: 0;
  animation: slideInUp 0.8s ease forwards 0.4s;
}

@keyframes slideInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Scroll-based header animation */
.page-header.scroll-animate h1,
.page-header.scroll-animate p {
  transform: translateY(-10px);
  transition: transform 0.6s ease;
}

/* About Page Styles */
.about-content {
  padding: 80px 20px;
  background: #fff;
}

.values-section {
  padding: 80px 20px;
  background: #f8fafc;
}

.values-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.value-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f59e0b, #eab308);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.value-card h3 {
  color: #1e40af;
  margin-bottom: 1rem;
}

.team-section {
  padding: 80px 20px;
  background: #fff;
}

.team-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.team-member {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

.team-member h3 {
  color: #1e40af;
  margin-bottom: 0.5rem;
}

.role {
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Services Page Styles */
.services-nav {
  background: #f8fafc;
  padding: 40px 20px;
}

.service-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: #1e40af;
  color: white;
  border-color: #1e40af;
}

.service-section {
  display: block;
  padding: 80px 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.service-section.active {
  display: block;
  opacity: 1;
}

.service-header {
  text-align: center;
  margin-bottom: 3rem;
}

.service-header h2 {
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 1rem;
}

.service-item {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.service-item ul {
  list-style: none;
  text-align: left;
}

.service-item ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  padding-left: 1.5rem;
}

.service-item ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* Contact Page Styles */
.contact-section {
  padding: 80px 20px;
  background: #f8fafc;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.contact-form-container {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-container h2 {
  color: #1e40af;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e40af;
}

.contact-info-container {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.contact-info-container h2 {
  color: #1e40af;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-text h4 {
  color: #1e40af;
  margin-bottom: 0.5rem;
}

.contact-text a {
  color: #374151;
  text-decoration: none;
}

.contact-text a:hover {
  color: #1e40af;
}

.contact-text small {
  color: #64748b;
  font-size: 0.875rem;
}

.emergency-contact {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 15px;
  color: white;
  text-align: center;
}

.emergency-contact h3 {
  margin-bottom: 1rem;
}

/* Map Container */
.map-container {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container h2 {
  color: #1e40af;
  margin-bottom: 2rem;
  font-size: 2rem;
  text-align: center;
}

.map-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Emergency Page Styles */
.emergency-hero {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 150px 20px 80px;
  text-align: center;
}

.emergency-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.emergency-phone-large {
  margin-top: 2rem;
}

.emergency-phone-large a {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.2);
  padding: 20px 40px;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: bold;
  transition: background 0.3s ease;
}

.emergency-phone-large a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.emergency-phone-large span {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  opacity: 0.9;
}

.emergency-services {
  padding: 80px 20px;
  background: #f8fafc;
}

.emergency-services h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #1e40af;
  margin-bottom: 3rem;
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.emergency-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.emergency-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.emergency-card h3 {
  color: #1e40af;
  margin-bottom: 1.5rem;
}

.emergency-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.emergency-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  padding-left: 1.5rem;
}

.emergency-card ul li:before {
  content: "⚡";
  position: absolute;
  left: 0;
  color: #ef4444;
}

.response-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fef2f2;
  color: #ef4444;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
}

/* Gallery Page Styles */
.gallery-filters {
  padding: 40px 20px;
  background: #f8fafc;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 25px;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #1e40af;
  color: white;
  border-color: #1e40af;
}

.gallery-section {
  padding: 80px 20px;
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-content {
  color: white;
}

.gallery-content h3 {
  margin-bottom: 0.5rem;
}

.gallery-category {
  background: #1e40af;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
}

/* Blog Page Styles */
.blog-categories {
  padding: 40px 20px;
  background: #f8fafc;
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-posts {
  padding: 80px 20px;
  background: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  min-height: 300px; /* Prevent layout collapse */
}

.blog-post {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.post-image {
  position: relative;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-post.featured .post-image img {
  height: 300px;
}

.post-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #1e40af;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.post-content {
  padding: 2rem;
}

.post-content h2,
.post-content h3 {
  color: #1e40af;
  margin-bottom: 1rem;
}

.post-content h2 a,
.post-content h3 a {
  color: inherit;
  text-decoration: none;
}

.post-content h2 a:hover,
.post-content h3 a:hover {
  color: #3b82f6;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #64748b;
  flex-wrap: wrap;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-more {
  color: #f59e0b;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 1rem;
}

.read-more:hover {
  color: #d97706;
}

/* Testimonials Page Styles */
.testimonials-section {
  padding: 80px 20px;
  background: #f8fafc;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

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

.testimonial-content {
  margin-bottom: 2rem;
}

.stars {
  display: flex;
  gap: 5px;
  margin-bottom: 1rem;
}

.stars i {
  color: #f59e0b;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  color: #1e40af;
  margin-bottom: 0.25rem;
}

.author-info span {
  color: #64748b;
  font-size: 0.875rem;
}

.author-info small {
  color: #f59e0b;
  font-weight: 600;
  font-size: 0.75rem;
  display: block;
  margin-top: 0.25rem;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 60px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #f59e0b;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #f59e0b;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: #374151;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: #f59e0b;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 20px 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .service-tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .blog-post.featured {
    grid-template-columns: 1fr;
  }

  .emergency-phone-large a {
    font-size: 1.5rem;
    padding: 15px 30px;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .services-grid,
  .values-grid,
  .team-grid,
  .blog-grid,
  .testimonials-grid,
  .gallery-grid,
  .emergency-grid {
    grid-template-columns: 1fr;
  }

  .emergency-phone-large a {
    font-size: 1.25rem;
    padding: 12px 25px;
  }

  .page-header {
    padding: 120px 20px 60px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .contact-form-container,
  .contact-info-container {
    padding: 2rem;
  }
}

/* Page transition effect for navigation */
.page-transition {
  opacity: 0.8;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.page-transition.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth filtering without layout shifts */
.filter-transition {
  transition: all 0.3s ease;
}

.filter-transition.hiding {
  opacity: 0;
  transform: scale(0.95);
}

.filter-transition.showing {
  opacity: 1;
  transform: scale(1);
}

/* Map Container */
.map-container {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container h2 {
  color: #1e40af;
  margin-bottom: 2rem;
  font-size: 2rem;
  text-align: center;
}

.map-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .services-grid,
  .values-grid,
  .team-grid,
  .emergency-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 15px 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .page-header {
    padding: 120px 15px 60px;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .services-overview,
  .why-choose-us,
  .about-content,
  .values-section,
  .team-section,
  .contact-section,
  .testimonials-section,
  .emergency-services,
  .gallery-section {
    padding: 60px 15px;
  }

  .service-item,
  .value-card,
  .team-member,
  .testimonial-card,
  .emergency-card,
  .contact-form-container,
  .contact-info-container,
  .map-container {
    padding: 2rem 1.5rem;
  }

  .emergency-phone-large a {
    font-size: 1.5rem;
    padding: 15px 30px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .service-icon,
  .value-icon,
  .emergency-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .emergency-phone-large a {
    font-size: 1.25rem;
    padding: 12px 25px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .map-container {
    padding: 2rem 1rem;
  }

  .map-wrapper iframe {
    height: 300px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* Additional Mobile Optimizations */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .service-item h3,
  .value-card h3,
  .emergency-card h3 {
    font-size: 1.25rem;
  }

  .emergency-phone-large a {
    font-size: 1.1rem;
    padding: 10px 20px;
  }
}
