.services-hero {
  position: relative;
  min-height: 100vh;
  background-image: url("../img/services-top.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  user-select: none;
  padding-top: 140px; 
}
.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.services-hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 100px;
  padding: 0px 400px;
  text-align: center;
  gap: 50px;
  z-index: 2756;
}

.services-hero-content p {
  font-size: 1.05rem;
  color: white;
  line-height: 1.6;
  font-family: "Playfair Display", serif;
  font-weight: 400;
}

.services-hero-content h1{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}
.view-more-btn{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.66);
}

.view-more-btn:hover{
  color: white;
  cursor: pointer;
}

.services-section {
  padding: 4rem 2rem;
  /* background: #ffffff; */
  background-color: rgba(0, 0, 0, 0.216);
}

.services-container {
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 2rem;
}
.services-grid-inner{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  border-radius: 8px;
  background: #fff;
  gap: 50px;
  border: 1px solid black;
  margin-top: 50px;
}
.services-grid-inner img{
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 8px;
}

.service-card {
  position: absolute;
  bottom: -60px;
  padding: 20px 10px;
  font-weight: 500;
  border-radius: 10px;
  background-color: #ffffff25;
  backdrop-filter: blur(10px);
}
.service-box {
  transition: all 0.3s ease;
  will-change: auto;
}

.service-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.services-cta {
  background: #111827;
  color: #ffffff;
  text-align: center;
  padding: 3.5rem 2rem;
}

.services-cta h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.services-cta p {
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

.services-cta .btn {
  background: #e63946;
  color: #ffffff;
}

.line3{
  width: 100%;
  height: 3px;
  background-color: red;
}

.services-inner-title{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px 300px;
  margin-top: 50px;
}
.services-inner-title-p1{
  font-size: 3rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 0.5rem;
  text-align: center;
}
.services-inner-title-p2{
  font-size: 1.2rem;
  color: #111827;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* ================= MOBILE OPTIMIZATION ================= */
@media (max-width: 768px) {

  /* SAFETY NET */
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  /* ================= HERO ================= */
  .services-hero {
    position: relative;
    min-height: 100vh;
    background-image: url("../img/services-top.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    user-select: none;
    padding-top: 140px; 
  }
  .services-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }

  .services-hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 150px;
    padding: 0px;
    text-align: center;
    gap: 50px;
    z-index: 2756;
  }

  .services-hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .services-hero p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* ================= SECTION ================= */

  .services-section {
    padding: 3rem 1.2rem;
  }

  /* ================= TITLE ================= */

  .services-inner-title {
    padding: 0;
    margin-top: 30px;
  }

  .services-inner-title-p1 {
    font-size: 2rem;
  }

  .services-inner-title-p2 {
    font-size: 1rem;
  }

  /* ================= GRID ================= */

  .services-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .services-grid-inner {
    margin-top: 0;
    gap: 25px;
    padding: 1.2rem;
  }

  .services-grid-inner img {
    height: 200px;
  }

  /* ================= CARD ================= */

  .service-card {
    position: static;
    margin-top: 10px;
    padding: 14px;
    text-align: center;
    background-color: #ffffff;
    backdrop-filter: none;
    border: 1px solid rgba(0,0,0,0.08);
  }

  /* ================= CTA ================= */

  .services-cta {
    padding: 3rem 1.2rem;
  }

  .services-cta h2 {
    font-size: 1.7rem;
  }

  .services-cta p {
    font-size: 0.95rem;
  }

}
