/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
}

.services {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to bottom, #2c2c2c, #f7f7f7);
}

.services .title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.services .subtitle {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin-bottom: 50px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.8s forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }

.card img {
  width: 100%;
  height: 243px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #222;
  font-weight: 600;
}

.card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card .btn {
  display: inline-block;
  padding: 10px 25px;
  background: #ffcc00;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  color: #000;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(255, 204, 0, 0.4);
}

.card .btn:hover {
  background: #ffb300;
  box-shadow: 0 6px 18px rgba(255, 179, 0, 0.6);
  transform: translateY(-2px);
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
}

/* Animation keyframes */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Responsive Modern Look */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
    padding: 0 15px;
  }

  .card {
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card img {
    height: 200px;
    border-radius: 16px;
    margin-bottom: 15px;
  }

  .card h3 {
    font-size: 1.3rem;
    color: #111;
    margin-bottom: 8px;
  }

  .card p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 15px;
  }

  .card .btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 12px;
  }

  /* Tap effect */
  .card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

