/* ================= Services Section ================= */
.services-section {
  padding: 220px 40px;
  text-align: center;

  position: relative;
  padding: 160px 40px;
  text-align: center;
  overflow: hidden; /* keeps ellipse glow inside */
  max-width: 1280px;
  margin: 0 auto;
}

/* Section Heading */
.services-section h2 {
  font-family: "Inria Serif", serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 48px;
  letter-spacing: -0.02em;
  color: #e8e8e8;
  margin-bottom: 40px;
}

/* Grid Layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  margin: 0 auto;
  max-width: 1000px; /* also makes grid tighter */
}

/* Service Card */
.service-card {
  position: relative;

  width: 340px; /* increase width */
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.25);
}

/* Card Image */
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlays: Top & Bottom */
.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40%;
  z-index: 1;
}

/* .service-card::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}

.service-card::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
} */

/* ===== Text Blocks ===== */
.service-info-top,
.service-info-bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  color: #ffffff;
  z-index: 2; /* always above overlays */
}

/* Top text */
.service-info-top {
  top: 16px;
  text-align: left;
}

.service-info-top h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}

.service-info-top p {
  font-size: 13px;
  line-height: 1.3;
  margin: 0;
}

/* Bottom text */
.service-info-bottom {
  bottom: 16px;
  text-align: left;
}

.service-info-bottom h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.service-info-bottom p {
  font-size: 12px;
  margin: 0;
}

/* Card Text Overlay */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  z-index: 2;
  text-align: left;
}

.card-overlay h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #ffffff;
}

.card-overlay p {
  font-size: 13px;
  line-height: 1.3;
  margin: 0;
  font-weight: 400;
  color: #c6c6c6;
}

/* Fancy Button Wrapper */
.services-btn-wrapper {
  margin-top: 60px;
  position: relative;
  z-index: 3;
  text-align: center; /* centers the button */
}

/* Premium Glowing Button */
.services-btn {
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border: none;
  border-radius: 8px;
  color: #1d262b;
  background: linear-gradient(#ffffff);
  font-family: "Inria Serif", serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.services-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 35px rgba(156, 237, 255, 1);
}

/* Glowing Ellipse Background (centered in section) */

/* Glowing Ellipse Background (at the top of section) */
.services-section::before {
  content: "";
  position: absolute;
  top: 0; /* 👈 move to the top */
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(156, 237, 255, 0.5) 10%,
    rgba(255, 255, 255, 0.3) 30%,
    transparent 80%
  );

  /* background: radial-gradient(
    circle,
    rgba(33, 87, 84, 0.6) 10%,
    rgb(156, 237, 255, 0.5) 60%,
    rgba(255, 255, 255, 0.3) 30%,
    transparent 80%
  ); */
  filter: blur(33.6px);
  transform: translateX(-50%); /* only center horizontally */
  z-index: 0; /* keep behind heading + cards */
}

/* Responsive Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; /* tighter spacing */
  justify-items: center;
  margin: 0 auto;
  max-width: 1000px; /* keeps things neat on very large screens */
}

/* Service Card */
.service-card {
  width: 100%;
  max-width: 340px; /* keeps your design size on desktop */
  height: 340px;
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .service-card {
    height: 300px;
  }
  .services-section h2 {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .services-section {
    padding: 100px 20px;
  }

  .service-card {
    max-width: 100%;
    height: 260px;
  }

  .services-section h2 {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .services-btn {
    font-size: 14px;
    padding: 12px 28px;
  }
}
