/* General */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Image Optimization for Faster Loading */
img {
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  /* Enable hardware acceleration for smoother image rendering */
  transform: translateZ(0);
  /* Optimize image rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Prevent layout shift */
  vertical-align: middle;
  /* Optimize image decoding for faster rendering */
  decoding: async;
}

/* Critical image optimization - load immediately */
img[fetchpriority="high"] {
  /* Force immediate loading of critical images */
  content-visibility: visible;
  contain-intrinsic-size: none;
}

/* Reduce image loading priority for non-critical images */
img[loading="lazy"] {
  /* Lower priority for images that aren't immediately visible */
  importance: low;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Feature Image Styling - Ensure service images are visible */
.feature-image {
  transition: opacity 0.3s ease;
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0;
  opacity: 1; /* Default visible state */
}

/* Ensure feature icons show images properly */
.feature-icon {
  width: 100%;
  height: 150px;
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1; /* Ensure images are visible by default */
}

a { color: #0a174e; text-decoration: none; font-weight: bold; }

/* Header styles - only for header content */
header {
  position: relative;
  color: white;
  padding: 60px 20px;
  text-align: center;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(10, 23, 78, 0.85), rgba(10, 23, 78, 0.9)), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2073&q=80') center center;
  background-size: cover;
}

.hero-container {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

header .logo {
  width: 300px;  /* Restored to original width */
  height: 251px;  /* Restored to original height */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

header h1 { 
  margin: 0; 
  font-size: 2.5rem; 
  color: white;
}
header p { 
  font-size: 1.1rem; 
  margin: 10px 0; 
  color: white;
}

.btn {
  background: #ff7700;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  display: inline-block;
  margin-top: 20px;
  transition: transform 0.3s;
}
.btn:hover { transform: scale(1.05); }

/* Sections */
.section { 
  padding: 60px 20px; 
  max-width: 1000px; 
  margin: auto; 
  color: #333; /* Ensure text is dark in sections */
}
.section-alt { background: #f0f4ff; }

/* Features */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.feature {
  flex: 1 1 280px;
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: transform 0.5s, box-shadow 0.5s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.feature:hover { transform: translateY(-10px); box-shadow: 0 6px 12px rgba(0,0,0,.2); }

.feature-icon {
  width: 100%;
  height: 150px;
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact {
  position: relative;
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  color: #333; /* Ensure text is dark in contact section */
}

.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.contact-content {
  position: relative;
  z-index: 1;
  color: #333; /* Ensure text is dark in contact content */
}

.contact form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 20px auto;
}
.contact input, .contact textarea {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.contact button { cursor: pointer; }

/* Footer */
footer {
  position: relative;
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: .9rem;
  background: #0a174e;
}

.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.footer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.footer-content {
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 { font-size: 2rem; }
  .features { flex-direction: column; align-items: center; }
}

/* Social Proof Section */
.social-proof {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edff 100%);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.social-proof::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0a174e, #ff7700, #0a174e);
}

.social-proof h2 {
  color: #0a174e;
  margin-bottom: 40px;
  font-size: 2.2rem;
  position: relative;
  z-index: 1;
}

.trustpilot-container {
  max-width: 500px;
  margin: 0 auto 30px;
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.trustpilot-rating-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.rating-stars {
  display: flex;
  gap: 5px;
}

.star {
  color: #ffc107;
  font-size: 2rem;
  margin: 0 2px;
}

.rating-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #0a174e;
  margin: 10px 0;
}

.rating-count {
  color: #666;
  font-size: 1rem;
}

.trustpilot-placeholder {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 15px 0;
}

.customer-testimonials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.testimonial-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  flex: 1 1 300px;
  max-width: 350px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-text {
  font-style: italic;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0a174e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: bold;
  color: #0a174e;
  margin: 0;
}

.author-role {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* Animations */
.fade-in { 
  opacity: 0; 
  animation: fadeIn 1s forwards; 
}
.fade-in.delay-1 { animation-delay: 0.5s; }
.fade-in.delay-2 { animation-delay: 1s; }
.fade-in.delay-3 { animation-delay: 1.5s; }
.slide-up { 
  opacity: 0; 
  transform: translateY(30px); 
  animation: slideUp 1s forwards; 
}
.slide-up.delay-1 { animation-delay: 0.3s; }
.slide-up.delay-2 { animation-delay: 0.6s; }
.slide-up.delay-3 { animation-delay: 0.9s; }
.slide-up.delay-4 { animation-delay: 1.2s; }
.slide-up.delay-5 { animation-delay: 1.5s; }

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



/* Service Categories */
.service-category {
  margin: 40px 0;
  padding: 20px 0;
}

.category-title {
  color: #0a174e;
  font-size: 1.8rem;
  text-align: center;
  margin: 30px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff7700;
  position: relative;
}

.category-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: #0a174e;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 20px 0;
}

.feature {
  flex: 1 1 280px;
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: transform 0.5s, box-shadow 0.5s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0,0,0,.2);
}

.feature h4 {
  color: #0a174e;
  margin: 10px 0;
  font-size: 1.3rem;
}

.feature p {
  color: #666;
  line-height: 1.6;
  margin: 10px 0;
}

/* Contact Icons */
.contact-icon {
  display: inline-block;
  font-size: 1.2rem;
  margin: 0 5px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-icon:hover {
  transform: scale(1.2);
  color: #ff7700;
}