/* --- PAGE HEADER --- */
.page-header {
  padding: 120px 0;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(rgba(26, 29, 36, 0.7), rgba(26, 29, 36, 0.7)),
    url("https://placehold.co/1920x500/2c3e50/ffffff?text=Services+Banner")
      no-repeat center center;
  background-size: cover;
  background-attachment: fixed; /* Parallax effect */
  margin-top: -95px; /* Pulls it up behind the floating header */
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
}

.page-header .subtitle {
  font-size: 1.2rem;
  margin-top: 10px;
  opacity: 0.9;
}

/* --- SERVICES GRID SECTION --- */
.services-grid-section {
  padding: 80px 0;
  background-color: #f0f2f5;
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch; /* FIX: Changed from 'center' to 'stretch' to make columns equal height */
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 50px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.service-card.layout-reverse {
  direction: rtl; /* Reverses the order of grid items */
}
.service-card.layout-reverse > * {
  direction: ltr; /* Resets text direction for content */
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This makes the image fill the container without distortion */
  display: block;
}

.service-description {
  padding: 40px;
  /* FIX: Added flex properties to vertically center the text content */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-description h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 15px;
}

.service-description p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

/* --- SCAN TYPES SECTION --- */
.scan-types-section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 50px;
  position: relative;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
  width: 60px;
  height: 4px;
  background-color: #91c63c;
  border-radius: 2px;
}

.scan-types-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.scan-column {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid #e9ecef;
}

.scan-column-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.scan-column-header i {
  font-size: 1.8rem;
  color: #91c63c;
}

.scan-column-header h3 {
  font-size: 1.5rem;
  color: #333;
  margin: 0;
}

.scan-column ul {
  list-style: none;
  padding-left: 0;
}

.scan-column li {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 15px;
  color: #555;
  line-height: 1.6;
}

.scan-column li i {
  color: #91c63c;
  margin-top: 5px;
}

/* --- OUR PEOPLE SECTION --- */
.our-people-section {
  padding: 80px 0;
  background-color: #f0f2f5;
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.people-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.people-description .section-title {
  text-align: left;
}
.people-description .section-title::after {
  left: 0;
  transform: none;
}

.people-description h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
}
.people-description p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.btn-secondary {
  background: #1a1d24;
  color: #ffffff;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s ease;
  display: inline-block;
}
.btn-secondary:hover {
  background: #333;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- REVEAL ON SCROLL ANIMATION --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .service-card,
  .service-card.layout-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .service-description {
    padding: 40px 30px;
  }
  .scan-types-columns {
    grid-template-columns: 1fr;
  }
  .people-grid {
    grid-template-columns: 1fr;
  }
  .people-image {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2.2rem;
  }
}
