/* ===================================
   SERVICES PAGE - COMPLETE CSS
   =================================== */

.services-main {
  margin-top: 100px; /* Space below fixed header */
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
}

/* Hero Section */
.services-hero {
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><path d="M0,100 C300,300 700,0 1000,100 L1000,300 L0,300 Z" fill="%2327aae1" opacity="0.08"/></svg>') center/cover no-repeat;
  z-index: 0;
}

.services-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(90deg, #262262 0%, #27aae1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
}

.services-hero .hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #555;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Services Section - Flip Cards */
.services-section {
  padding: 80px 0 100px;
  background: #f9fcff;
}

.services-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Flip Card Base */
.service-box {
  position: relative;
  height: 380px;
  perspective: 1000px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.service-box.flipped {
  transform: rotateY(180deg);
}

.service-box .front,
.service-box .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-box .front {
  background: #fff;
  transform: rotateY(0deg);
  z-index: 2;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-box .back {
  background: linear-gradient(135deg, #262262, #27aae1);
  color: #fff;
  transform: rotateY(180deg);
}

/* Front Content */
.service-box .icon {
  font-size: 60px;
  margin-bottom: 25px;
}

.service-box h3 {
  font-size: 26px;
  font-weight: 700;
  color: #262262;
  margin-bottom: 15px;
}

.service-box .front p {
  font-size: 18px;
  color: #27aae1;
  font-weight: 600;
}

/* Back Content */
.service-box .back p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 90%;
}

.learn-more {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #fff;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.learn-more:hover {
  letter-spacing: 1.2px;
  border-color: transparent;
}

/* CTA Button */
.services-cta {
  margin-top: 80px;
  text-align: center;
}

.services-cta .btn-primary {
  display: inline-block;
  background: #262262;
  color: #fff;
  padding: 18px 50px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(38, 34, 98, 0.25);
  transition: all 0.4s ease;
}

.services-cta .btn-primary:hover {
  background: #27aae1;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(39, 170, 225, 0.4);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
  .services-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}

@media (max-width: 992px) {
  .services-hero {
    padding: 70px 20px 50px;
  }

  .services-hero h1 {
    font-size: 48px;
  }

  .services-section {
    padding: 70px 0 90px;
  }
}

@media (max-width: 768px) {
  .services-wrapper {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 35px;
  }

  .service-box {
    height: 360px;
  }

  .service-box .icon {
    font-size: 55px;
  }

  .service-box h3 {
    font-size: 24px;
  }

  .service-box .back p {
    font-size: 15.5px;
  }
}

@media (max-width: 480px) {
  .services-hero {
    padding: 60px 15px 40px;
  }

  .services-hero h1 {
    font-size: 38px;
  }

  .services-hero .hero-subtitle {
    font-size: 17px;
  }

  .service-box {
    height: 340px;
    padding: 40px 20px;
  }

  .service-box .icon {
    font-size: 50px;
    margin-bottom: 20px;
  }

  .service-box h3 {
    font-size: 22px;
  }

  .service-box .front p {
    font-size: 17px;
  }

  .services-cta .btn-primary {
    padding: 16px 40px;
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .service-box {
    height: 320px;
  }

  .service-box .back p {
    font-size: 15px;
  }
}