/* Hero Section */
.hero {
  background: linear-gradient(
      to right,
      rgba(26, 26, 46, 0.9),
      rgba(26, 26, 46, 0.8)
    ),
    url("/api/placeholder/1200/600") center/cover no-repeat;
  color: var(--light);
  padding: 180px 0 120px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Services Section */
.services {
  padding: 100px 0;
  background-color: var(--gray);
}

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

.service-card {
  background: var(--light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

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

.service-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
}

.service-content {
  padding: 30px;
}

.service-content h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--dark);
}

/* About Section */
.about {
  padding: 100px 0;
  overflow: hidden; /* Prevent any potential overflow issues */
}

/* We're going to remove the .about-image completely and just style the image directly */
.about-grid {
  display: table; /* Uses table layout which is very reliable */
  width: 100%;
  table-layout: fixed;
}

.about-grid img {
  display: table-cell;
  /* width: 40%; */
  max-width: 600px;
  height: auto;
  float: left;
  margin-right: 60px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.about-content {
  display: table-cell;
  vertical-align: middle;
  width: 40%;
}

.about-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--dark);
}

.about-content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
  clear: both; /* Ensure it appears below the floating image */
}

.stat-item h3 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-item p {
  margin-bottom: 0;
}

/* Testimonials */
.testimonials {
  padding: 100px 0;
  background-color: var(--gray);
}

.testimonial-item {
  background: var(--light);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-text {
  font-size: 20px;
  font-style: italic;
  margin-bottom: 30px;
}

.client-info {
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  background: url("/api/placeholder/60/60") center/cover;
}

.client-name {
  text-align: left;
}

.client-name h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.client-name p {
  color: #666;
}

/* Contact Section */
.contact {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form button {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}

.contact-form button:hover {
  opacity: 0.9;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-details p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.contact-details p i {
  margin-right: 10px;
  color: var(--primary);
}

/* Additional Responsive for Index Page */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .about-grid {
    display: block;
  }

  .about-grid img {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 40px;
  }

  .about-content {
    display: block;
    width: 100%;
  }

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