/* Reset */
@import '/css/global.css';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f8faff;
  color: #222;
}

/* Section */
.services {
  width: 100%;
  text-align: center;
}

/* Grid Layout */
.service-grid {
  width: 100%;
  max-width: 1200px;
  /* Increased slightly to fit 3 columns comfortably */
  margin: 0 auto;
  padding: 20px;
  display: grid;
  /* Start with 3 columns for desktop */
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Tablet: Drop to 2 columns */
@media (max-width: 992px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: Drop to 1 column */
@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
    padding: 15px;
    /* Slightly tighter padding for small screens */
  }
}

/* Service Card */
.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 25px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  animation: fadeUp 0.8s ease forwards;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Icon */
.service-card .icon {
  margin-bottom: 20px;
  color: var(--accent-pink);
}

.service-card .icon i {
  width: 40px;
  height: 40px;
}

/* Title */
.service-card h3 {
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 10px;
}

/* Description */
.service-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Buttons */
.card-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1.5px solid transparent;
}

.btn.primary {
  background: var(--accent-pink);
  color: #fff;
}

.btn.primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.btn.pricing {
  background: transparent;
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

.btn.pricing:hover {
  background: var(--accent-pink);
  color: #fff;
  transform: translateY(-2px);
}

/* Animation */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .service-card {
    padding: 30px 20px;
  }

  .card-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}