/* ==============================
   Services Section
   ============================== */
.services-section {
  background: var(--fernntac-light);
  position: relative;
  overflow: hidden;
}

.services-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--fernntac-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.services-section h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: var(--fernntac-accent);
  margin: 0.75rem auto 0;
  border-radius: 3px;
  box-shadow: 0 0 10px var(--fernntac-accent);
}

/* Service Cards */
.service-card {
  border: none;
  border-radius: var(--fernntac-radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  overflow: hidden;
  transform: translateY(50px);
  opacity: 0;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
}

/* Card Images */
.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img {
  transform: scale(1.1);
}

/* Text */
.service-card .card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fernntac-navy);
}

.service-card .card-text {
  font-size: 0.95rem;
  color: var(--fernntac-muted);
  line-height: 1.6;
}

/* Buttons */
.btn-service {
  background: var(--fernntac-accent);
  color: #fff !important;
  padding: 0.6rem 1.3rem;
  border-radius: var(--fernntac-radius);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-service:hover {
  background: #d9761f;
  text-decoration: none;
  transform: scale(1.05);
}

/* ==============================
   Service Modals
   ============================== */
.fernntac-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  animation: fadeIn 0.3s ease;
}

.fernntac-modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: var(--fernntac-radius);
  width: 90%;
  max-width: 700px;
  position: relative;
  animation: slideIn 0.4s ease;
}

.fernntac-modal h3 {
  margin-bottom: 1rem;
  color: var(--fernntac-navy);
  font-weight: 700;
}

.fernntac-modal p {
  color: var(--fernntac-dark);
  line-height: 1.7;
}

.fernntac-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--fernntac-dark);
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes slideIn {
  from {transform: translateY(-30px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}


/* Responsive Adjustments */
@media (max-width: 768px) {
  .services-section h2 {
    font-size: 1.8rem;
  }
  .service-img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .services-section h2 {
    font-size: 1.6rem;
  }
  .service-img {
    height: 160px;
  }
}
@media (max-width: 360px) {
  .services-section h2 {
    font-size: 1.4rem;
  }
  .service-img {
    height: 140px;
  }
}