:root {
  --blue: #0081CC;
  --dark: #1e293b;
  --gray: #64748b;
}

body {
  font-family: 'Inter', sans-serif;
}

#services {
  background: #ffffff;
  padding: 80px 0;
}

.text_primary {
  color: var(--blue);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
}

.service-card {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-height: 360px;
  height: 100%;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  transition: transform 0.4s ease;
}

/* Gradient Overlay */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.75));
  transition: 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card .content {
  position: relative;
  z-index: 2;
  padding: 25px;
  color: white;
}

.service-icon {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 15px;
  color: #fff;
}

.service-card h4 {
  font-size: clamp(16px, 2.2vw, 22px);
  margin-bottom: 5px;
  font-weight: 600;
}

.service-card p {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  font-size: clamp(14px, 1.8vw, 16px);
  transition: 0.4s ease;
}

.service-card:hover p {
  opacity: 1;
  max-height: 200px;
}

/* Initial hidden state */
.animate-card {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 1.2s ease,
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-card.show {
  opacity: 1;
  transform: translateY(0);
}

.col-lg-4:nth-child(1) .animate-card { transition-delay: 0.1s; }
.col-lg-4:nth-child(2) .animate-card { transition-delay: 0.25s; }
.col-lg-4:nth-child(3) .animate-card { transition-delay: 0.4s; }
.col-lg-4:nth-child(4) .animate-card { transition-delay: 0.55s; }
.col-lg-4:nth-child(5) .animate-card { transition-delay: 0.7s; }
.col-lg-4:nth-child(6) .animate-card { transition-delay: 0.85s; }

@media (max-width: 768px) {
  .service-card {
    max-height: 300px;
    border-radius: 16px;
  }

  .service-card .content {
    padding: 20px;
  }
}

@media (max-width: 575px) {
  .service-card {
    width: 70%;
    margin: 0 auto;
    max-height: 260px;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .service-card {
    max-height: 260px;
    border-radius: 14px;
  }
}