/* Services Page Enhancements (visual only, no content changes) */

/* Base animations (pure CSS) */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: services-fade-in-up 0.7s ease forwards;
}
@keyframes services-fade-in-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero section styled like portfolio hero */
.services-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}
.services-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="svc-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.08"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.08"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.12"/><circle cx="20" cy="60" r="0.5" fill="white" opacity="0.12"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.12"/></pattern></defs><rect width="100" height="100" fill="url(%23svc-grain)"/></svg>');
  pointer-events: none;
  animation: svc-float 8s ease-in-out infinite;
}
@keyframes svc-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.services-hero .container { position: relative; z-index: 2; }
.services-hero h1 { color: #fff !important; }
.services-hero p { color: rgba(255,255,255,0.9) !important; }
.services-hero .g-bg-white p { color: #333 !important; }
.services-hero .g-bg-gray-light-v5 h5,
.services-hero .g-bg-gray-light-v5 p,
.services-hero .g-bg-gray-light-v5 li { color: #333 !important; }

/* Beautiful system type cards - replace ugly gray background */
.services-hero .g-bg-gray-light-v5 {
  background: #fff !important;
  border: 1px solid #a5c33c !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(102,126,234,0.15) !important;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}

.services-hero .g-bg-gray-light-v5:hover {
  transform: translateY(-2px);
  border-color: #29a4f0 !important;
  box-shadow: 0 8px 20px rgba(102,126,234,0.25) !important;
}

/* Style the list items with better bullets */
.services-hero .g-bg-gray-light-v5 ul {
  list-style: none;
  padding-left: 0;
}

.services-hero .g-bg-gray-light-v5 li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #5c6b7a !important;
  line-height: 1.4;
}

.services-hero .g-bg-gray-light-v5 li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #667eea;
  font-weight: bold;
  font-size: 16px;
  line-height: 1;
}

/* Feature cards (Why Choose Us) */
.feature-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 1px solid rgba(102,126,234,0.12);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102,126,234,0.08), transparent);
  transition: left .6s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(102,126,234,0.22); border-color: rgba(102,126,234,0.28); }
.feature-card:hover::before { left: 100%; }
.feature-card .g-bg-primary {
  box-shadow: 0 10px 22px rgba(102,126,234,0.35);
}

/* Services grid spacing & cards placeholder (when JS renders) */
#services-grid { row-gap: 30px; }

/* Modern Service Card - glassmorphism look (override any older rules) */
.service-card,
body[data-page="services"] .service-card,
body[data-page="services"] .container .service-card {
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-radius: 18px !important;
  border: 1px solid rgba(102,126,234,0.16) !important;
  box-shadow: 0 12px 32px rgba(102,126,234,0.12) !important;
  padding: 26px 24px !important;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.service-card::before {
  content: '' !important;
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at -10% -10%, rgba(255,255,255,0.55), transparent 60%),
              radial-gradient(60% 50% at 110% 110%, rgba(102,126,234,0.12), transparent 60%);
  pointer-events: none;
}
.service-card::after {
  content: '' ;
  position: absolute; inset: -1px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(102,126,234,0.25), rgba(118,75,162,0.2));
  opacity: 0; transition: opacity .28s ease;
  z-index: 0;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px;
}
.service-card:hover,
body[data-page="services"] .service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(102,126,234,0.35) !important;
  box-shadow: 0 18px 46px rgba(102,126,234,0.22) !important;
}
.service-card:hover::after { opacity: .8; }

.service-card .service-icon,
body[data-page="services"] .service-card .service-icon {
  width: 56px; height: 56px; line-height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff !important;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(102,126,234,0.35);
}

.service-card .service-title,
body[data-page="services"] .service-card .service-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #1f2d3d !important;
  margin-bottom: 10px !important;
}

.service-card .service-description,
body[data-page="services"] .service-card .service-description {
  color: #5c6b7a !important;
  line-height: 1.7 !important;
  margin-bottom: 14px !important;
}

/* Price pill */
.service-card .service-price,
.service-pricing .service-price {
  display: inline-block;
  font-weight: 700;
  color: #1f2d3d;
  background: rgba(102,126,234,0.12);
  border: 1px solid rgba(102,126,234,0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
}

/* Bullet list polish */
.service-card .service-features ul,
body[data-page="services"] .service-card .service-features ul { margin: 0; padding-left: 0; list-style: none; }
.service-card .service-features li,
body[data-page="services"] .service-card .service-features li {
  display: flex; align-items: baseline;
  color: #44525f; font-size: 14px; padding: 4px 0;
}
.service-card .service-features li i,
body[data-page="services"] .service-card .service-features li i { color: #67c23a; margin-right: 8px; }

/* Tags/group badges */
.service-card .service-tags .badge,
body[data-page="services"] .service-card .service-tags .badge,
.service-card .badge {
  border-radius: 999px;
  background: #eff2ff; color: #4c5bd9;
  border: 1px solid rgba(102,126,234,0.25);
  font-weight: 600; font-size: 12px; padding: 6px 10px;
  margin-right: 6px; margin-bottom: 6px;
}

/* Full-card click affordance when wrapped by link or data-href */
.service-card .btn,
body[data-page="services"] .service-card .btn,
.service-card a,
body[data-page="services"] .service-card a { position: relative; z-index: 2; }
.service-card[data-href] { cursor: pointer; }
.service-card[data-href]::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
}

/* Subtle 3D tilt on hover (no layout shift) */
@media (hover:hover) {
  .service-card:hover { transform: translateY(-6px) perspective(700px) rotateX(1deg) rotateY(-1deg); }
}

/* Services CTA buttons unify */
.service-card .btn,
.g-brd-primary .btn,
.g-brd-around .btn {
  border-radius: 999px !important;
}

/* Detail pages - visual polish without changing content structure */
body[data-page="services"] .service-detail-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 18px;
  padding: 28px 24px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(102,126,234,0.18);
  margin-bottom: 30px;
}
body[data-page="services"] .service-detail-hero h1 { color: #fff !important; margin: 0; }
body[data-page="services"] .service-detail-hero p { color: rgba(255,255,255,0.9) !important; }

body[data-page="services"] .service-section-card {
  background: #fff; border-radius: 14px;
  border: 1px solid rgba(102,126,234,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  padding: 22px;
  margin-bottom: 26px;
}

body[data-page="services"] .sidebar-sticky-card {
  background: #fff; border-radius: 14px;
  border: 1px solid rgba(102,126,234,0.14);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

body[data-page="services"] .price-highlight {
  display: inline-block; border-radius: 10px;
  background: rgba(102,126,234,0.1);
  border: 1px solid rgba(102,126,234,0.25);
  padding: 4px 10px; font-weight: 700; color: #333;
}

/* Sidebar package cards polish (existing markup) */
body[data-page="services"] .g-bg-white.g-rounded-4 {
  border-radius: 14px !important;
  border: 1px solid rgba(102,126,234,0.16);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
body[data-page="services"] .g-bg-white.g-rounded-4.g-brd-around.g-brd-primary {
  box-shadow: 0 12px 30px rgba(102,126,234,0.12);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .service-card { padding: 20px 18px !important; }
}
 

/* Stacked layout refinement (detail pages top-bottom layout) */
body[data-page="services"] .services-hero .service-detail-hero { margin-bottom: 18px; }

body[data-page="services"] .service-section-card {
  margin-bottom: 22px;
  padding: 20px;
}
body[data-page="services"] .service-section-card:last-child { margin-bottom: 0; }

body[data-page="services"] .service-section-card h3 {
  margin-bottom: 18px !important;
}

body[data-page="services"] .service-section-card .row > [class*="col-"] {
  margin-bottom: 14px;
}
body[data-page="services"] .service-section-card .row > [class*="col-"]:last-child {
  margin-bottom: 0;
}

/* Compact list/badge spacing */
body[data-page="services"] .list-unstyled li { margin-bottom: 6px; }
body[data-page="services"] .badge.badge-pill { padding: 4px 10px; }

/* Pricing block when stacked at bottom */
body[data-page="services"] .sidebar-sticky-card {
  margin-top: 10px;
  padding: 22px 22px;
}
body[data-page="services"] .sidebar-sticky-card .g-bg-white.g-rounded-4.g-pa-20 { padding: 18px 18px; }

/* Responsive fine-tuning */
@media (max-width: 992px) {
  .feature-card { padding: 24px 18px; }
}
@media (max-width: 576px) {
  .services-hero { padding-top: 70px !important; padding-bottom: 70px !important; }
}

/* CodeJr Experience section styling */
.services-hero .g-bg-primary-opacity-0_1 {
  background: rgba(102,126,234,0.08) !important;
  border: 1px solid rgba(102,126,234,0.2) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(102,126,234,0.1) !important;
  position: relative;
  overflow: hidden;
}

.services-hero .g-bg-primary-opacity-0_1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(102,126,234,0.05) 100%);
  pointer-events: none;
}

/* Fix star icon alignment */
.services-hero .g-bg-primary-opacity-0_1 .d-flex.align-items-center {
  align-items: center !important;
  display: flex !important;
}

.services-hero .g-bg-primary-opacity-0_1 .fa-star {
  margin-right: 12px !important;
  flex-shrink: 0;
  line-height: 1.2 !important;
  vertical-align: middle !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 20px !important;
}

/* Fix text colors in CodeJr section - make darker */
.services-hero .g-bg-primary-opacity-0_1 h3 {
  color: #2c3e50 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  vertical-align: middle !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
}

.services-hero .g-bg-primary-opacity-0_1 p {
  color: #34495e !important;
  position: relative;
  z-index: 1;
  font-weight: 400 !important;
}


    .service-card {
      background: #ffffff;
      border-radius: 12px;
      padding: 2.5rem 2rem;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      height: 100%;
      display: flex;
      flex-direction: column;
      border: 1px solid #e9ecef;
    }

    .service-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    }

    .service-card .service-icon {
      font-size: 3rem;
      margin-bottom: 1.5rem;
      background: linear-gradient(45deg, #667eea, #764ba2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .service-card h4 {
      font-size: 1.3rem;
      font-weight: 600;
      color: #2c3e50;
      margin-bottom: 1rem;
    }

    .service-card p {
      font-size: 0.95rem;
      color: #7f8c8d;
      line-height: 1.6;
      flex-grow: 1;
      margin-bottom: 1.5rem;
    }

    .service-card .btn {
      border-radius: 50px;
      font-weight: 600;
      padding: 0.75rem 1.5rem;
      background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
      color: white;
      border: none;
    }

    .service-card .btn:hover {
      transform: scale(1.05);
    }

    /* --- Why Choose Us Section --- */
    .why-choose-us-section {
      background-color: #f8f9fa;
    }

    .feature-card {
      background: #ffffff;
      border-radius: 12px;
      padding: 2rem;
      text-align: center;
      transition: all 0.3s ease;
      height: 100%;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    }

    .feature-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    }

    .feature-card .feature-icon-wrapper {
      background: #a5c33c;
      color: white;
      width: 70px;
      height: 70px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.5rem auto;
      font-size: 2rem;
    }

    .feature-card h4 {
      font-weight: 600;
      color: #34495e;
    }

    .feature-card p {
      color: #95a5a6;
    }

    /* --- CTA Section --- */
    .cta-section {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      position: relative;
      overflow: hidden;
    }


    .cta-section h2 {
      font-weight: 700 !important;
      color: #ffffff !important;
    }

    .cta-section p {
      color: #ffffff !important;
    }

    .cta-section .btn {
      background: white;
      color: #667eea;
      border-radius: 50px;
      padding: 15px 40px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
    }

    .cta-section .btn:hover {
      transform: translateY(-5px) scale(1.05);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
      color: #764ba2;
    }