/* =========================================================
   ⚙️ SERVICES PAGE STYLING — Tech Zenith Labs
   Author: TechZenith UI Revamp
   Description: Animated, responsive, card-based layout for Services page
========================================================= */

/* ===============================
   🌟 Hero Section
=============================== */
.services-hero {
  position: relative;
  padding: 160px 20px 140px;
  text-align: center;
  background: linear-gradient(135deg, #15333a, #334146, #47606a);
  color: #fff;
  overflow: hidden;
  margin-top: 80px;
}

.services-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/services-hero.webp') center/cover no-repeat;
  opacity: 0.25;
  animation: slowZoom 15s ease-in-out infinite alternate;
}

.services-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  animation: fadeInDown 1s ease both;
}

.services-hero h1 span {
  color: #5ee7df;
}

.services-hero p {
  font-size: 1.1rem;
  color: #e0e0e0;
  max-width: 650px;
  margin: 0 auto 30px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1.2s ease both;
}

.services-hero .btn-service {
  animation: pulseBtn 2s infinite ease-in-out;
  z-index: 1;
  position: relative;
}

/* ===============================
   💼 Services Grid Section
=============================== */
.services-section {
  background: #f8fafb;
  padding: 100px 10%;
  text-align: center;
}

.services-section h2 {
  font-size: 2.2rem;
  color: #15333a;
  margin-bottom: 15px;
  animation: fadeInUp 1s ease both;
}

.services-section p.section-intro {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 50px;
  animation: fadeInUp 1.3s ease both;
}

/* ===============================
   🧱 Services Grid Layout
=============================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===============================
   🔹 Individual Service Card
=============================== */
.service-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1.2s ease both;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(71, 96, 106, 0.1), transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.service-card:hover::before {
  transform: scale(1);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.service-card i {
  font-size: 2.5rem;
  color: #47606a;
  margin-bottom: 15px;
  animation: floatUp 3s ease-in-out infinite;
}

.service-card h3 {
  font-size: 1.3rem;
  color: #15333a;
  margin-bottom: 10px;
  font-weight: 600;
}

.service-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ===============================
   🔗 Learn More Button
=============================== */
.learn-more {
  color: #47606a;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.learn-more i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.learn-more:hover {
  color: #15333a;
  transform: translateX(3px);
}

.learn-more:hover i {
  transform: translateX(5px);
}

/* ===============================
   ⚙️ Call-to-Action Section
=============================== */
.services-cta {
  background: linear-gradient(135deg, #15333a, #334146, #47606a);
  color: #fff;
  padding: 100px 10%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(94, 231, 223, 0.15), transparent 70%);
  animation: gradientShift 8s linear infinite alternate;
}

.services-cta h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.services-cta p {
  font-size: 1.05rem;
  color: #e0e0e0;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.services-cta .btn-service {
  position: relative;
  z-index: 2;
  animation: pulseBtn 2s infinite ease-in-out;
}

/* ===============================
   📱 Responsive Design
=============================== */
@media (max-width: 992px) {
  .services-grid {
    gap: 30px;
  }

  .service-card {
    padding: 35px 25px;
  }

  .services-section {
    padding: 80px 7%;
  }
}

@media (max-width: 768px) {
  .services-hero h1 {
    font-size: 2.2rem;
  }

  .services-hero p {
    font-size: 1rem;
  }

  .services-section {
    padding: 70px 7%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .services-hero {
    padding: 120px 20px 100px;
  }

  .services-hero h1 {
    font-size: 1.8rem;
  }

  .services-cta h2 {
    font-size: 1.8rem;
  }

  .services-cta p {
    font-size: 0.95rem;
  }
}

/* ===============================
   ✨ Animations
=============================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseBtn {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(94,231,223,0.6); }
  50% { transform: scale(1.08); box-shadow: 0 0 15px 5px rgba(94,231,223,0.4); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(94,231,223,0.6); }
}
