/* =========================
   GLOBAL SCROLL
========================= */
html {
  scroll-behavior: smooth;
}

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

main {
  font-family: 'Inter', sans-serif;
  color: #222;
  line-height: 1.6;
  background: url("../imgs/index_bg.png") center / cover no-repeat fixed;
}

main::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(120, 120, 120, 0.35); /* grey tint */
  z-index: -1;
}

/* =========================
   BACK BUTTON
========================= */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 20px;
  margin-left:40px;

  padding: 8px 16px;

  background: rgba(0, 0, 0, 0.5);
  color: white;

  border: none;
  border-radius: 6px;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transition: background 0.25s ease, transform 0.2s ease;
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-1px);
}

/* =========================
   MAIN SERVICES SECTION
========================= */

/* ===== OUR SERVICES ===== */

.services-section {
  padding: 150px 60px;
  font-family: 'Segoe UI', sans-serif;
  background:rgba(0,0,0,.55);
}

.services-container {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.services-title {
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
}

.services-description {
  max-width: 850px;
  margin: 0 auto 70px auto;
  font-size: 16px;
  line-height: 1.7;
  color: #ebebeb;
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* CARD */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  height: 280px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* Overlay */
.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.2)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.service-overlay h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Hover Effect */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-card:hover img {
  transform: scale(1.08);
}

.service-detail {
  padding: 80px 20px;
  background:rgba(0,0,0,.55);
}

.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}

.detail-image {
  flex: 1;
}

.detail-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.detail-text {
  flex: 1;
}

.detail-text h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color:white;
}

.detail-text p {
  font-size: 16px;
  line-height: 1.7;
  color:white;
}

/* Reverse layout for variety */
.service-detail.reverse .detail-container {
  flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 900px) {
  .detail-container {
    flex-direction: column;
    text-align: center;
  }

  .service-detail.reverse .detail-container {
    flex-direction: column;
  }

  .detail-text {
    margin-top: 20px;
  }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .services-section {
    padding: 130px 25px;
  }

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

  .service-card {
    height: 240px;
  }
}