/* ================= SERVICES PAGE STYLES ================= */

.services-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  margin-bottom: 40px;
}

.services-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.services-hero p {
  font-size: 1.2rem;
  color: #aaa;
}


/* ================= SERVICES GRID ================= */

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}


/* ================= SERVICE CARD ================= */

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}


/* ================= SERVICE IMAGE BACKGROUND ================= */

.service-image {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
  z-index: 1;
}

.service-card:hover .service-image::before {
  background: rgba(0, 0, 0, 0.6);
}


/* ================= SERVICE OVERLAY ================= */

.service-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  z-index: 2;
  color: #fff;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.service-overlay h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

.service-overlay p {
  font-size: 0.95rem;
  color: #e0e0e0;
  margin-bottom: 25px;
  line-height: 1.5;
  max-width: 280px;
}

.service-overlay strong {
  color: #fff;
  font-weight: 700;
}


/* ================= GET DETAILS BUTTON ================= */

.get-details-btn {
  display: inline-block;
  padding: 12px 35px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.get-details-btn:hover {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}


/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .services-hero h1 {
    font-size: 2rem;
  }

  .services-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px 15px;
  }

  .service-overlay h3 {
    font-size: 1.4rem;
  }

  .service-overlay p {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .get-details-btn {
    padding: 10px 25px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .services-container {
    grid-template-columns: 1fr;
  }

  .services-hero h1 {
    font-size: 1.5rem;
  }

  .service-overlay h3 {
    font-size: 1.2rem;
  }
}
