/* ================== Services Section ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body.services-page {
  background: #123E2C;
  color: #333;
  font-family: "Times", "Times New Roman", serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  height: 100%;
}
.services {
  background: linear-gradient(135deg, rgba(18, 62, 44, 0.95), rgba(18, 62, 44, 0.95)),
    url("images/pattern.png") center/cover no-repeat;
  color: #FCFBC5;
  text-align: center;
  padding: 80px 10%;
  position: relative;
  overflow: hidden;
  font-family: "Times", "Times New Roman", serif;
}

.services h2 {
  font-size: 2.4rem;
  margin-bottom: 1px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  color:white;
}

.services-subtitle {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #FCFBC5;
  position: relative;
  z-index: 1;
}

.services .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.card {
  background: #295141;
  padding: 0;
  border-radius: 14px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.8s ease;
  opacity: 0;
  transform: translateY(40px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FCFBC5;
  overflow: hidden;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}


.service-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s, filter 0.3s;
}

.card:hover .service-image img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.card h3 {
  margin: 15px 0 10px 0;
  font-size: 1.3rem;
  color: #FCFBC5;
  padding: 0 15px;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #FCFBC5;
  padding: 0 15px 20px 15px;
}

.services.in-view .card {
  opacity: 1;
  transform: translateY(0);
}

.services.in-view .card:nth-child(1) { transition-delay: 0.2s; }
.services.in-view .card:nth-child(2) { transition-delay: 0.3s; }
.services.in-view .card:nth-child(3) { transition-delay: 0.4s; }
.services.in-view .card:nth-child(4) { transition-delay: 0.5s; }
.services.in-view .card:nth-child(5) { transition-delay: 0.6s; }
.services.in-view .card:nth-child(6) { transition-delay: 0.7s; }
.services.in-view .card:nth-child(7) { transition-delay: 0.8s; }
.services.in-view .card:nth-child(8) { transition-delay: 0.9s; }

/* ================== Hero Section ================== */
.services-hero {
    position: relative;
    height: 60vh; 
    background: url("images/services-hero.jpg") center/cover no-repeat; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #FCFBC5;
    overflow: hidden;
}

.services-hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}

.services-hero .hero-overlay {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.services-hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: white;
}

.services-hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #FCFBC5;
}

@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }

  section {
    padding: 50px 6%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.9rem;
  }

  section {
    padding: 250px 5%;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
