/* ==============================
   SERVICES – PRO VERSION
================================ */

.services {
  background: #f4f6f8;
  padding: clamp(4rem, 8vw, 8rem) 1.25rem;
}

/* container */
.services-container {
  max-width: 1240px;
  margin: 0 auto;
}

/* header */
.services-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4.5rem;
  animation: fadeUp 0.8s ease forwards;
}

.services-badge {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.services-header h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.services-header p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
}

/* grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* card */
.service-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 2.6rem 2.3rem;
  border: 1px solid #eceef1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeUp 0.8s ease forwards;
}

/* glow effect */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 50%),
    rgba(220, 38, 38, 0.12),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* hover */
.service-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(220, 38, 38, 0.4);
}

.service-card:hover::before {
  opacity: 1;
}

/* icon */
.service-card .icon {
  width: 54px;
  height: 54px;
  background: #b1122a;
  color: #dc2626;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.6rem;
  transition: transform 0.4s ease, background 0.4s ease;
}

.service-card:hover .icon {
  transform: rotate(-6deg) scale(1.1);
  background: #dc2626;
  color: #ffffff;
}

/* title */
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

/* text */
.service-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

/* link */
.service-link {
  color: #dc2626;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-link {
  gap: 0.75rem;
  color: #b91c1c;
}

/* ==============================
   ANIMATIONS
================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services {
    padding: 3.5rem 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
