/* ============================================================
   IT Services page redesign (scoped)
   - Keeps all existing HTML content unchanged
   - Only overrides layout + visuals for it-services.html
   ============================================================ */

body.it-services-page #services.services.section {
  padding: 88px 0;
  background:
    radial-gradient(1100px 520px at 18% 8%, rgba(255, 0, 64, 0.08) 0%, rgba(255, 0, 64, 0) 55%),
    radial-gradient(900px 520px at 92% 16%, rgba(0, 64, 255, 0.08) 0%, rgba(0, 64, 255, 0) 58%),
    radial-gradient(800px 400px at 50% 50%, rgba(0, 255, 64, 0.08) 0%, rgba(0, 255, 64, 0) 50%),
    linear-gradient(180deg, #f7f8fb 0%, #ffffff 58%, #ffffff 100%);
  position: relative;
  animation: rgbPulse 8s ease-in-out infinite;
}

body.it-services-page #services .section-title {
  padding-bottom: 38px;
}

/* `service.css` hides this on some pages; show it here */
body.it-services-page #services .section-title h2 {
  display: block !important;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  margin-bottom: 10px;
}

body.it-services-page #services .section-title p {
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1.12;
  margin: 0;
  color: var(--heading-color);
}

body.it-services-page #services .row.gy-4 {
  --bs-gutter-y: 1.25rem;
  --bs-gutter-x: 1.25rem;
}

/* Modern card override with image layout */
body.it-services-page #services .service-item {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid;
  border-image: linear-gradient(135deg, rgba(255, 0, 64, 0.7), rgba(0, 64, 255, 0.7), rgba(0, 255, 64, 0.7)) 1;
  border-radius: 0;
  padding: 0;
  min-height: 600px;
  text-align: left;
  position: relative;
  overflow: visible;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 0 0 1px rgba(0, 64, 255, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  display: flex;
  flex-direction: column;
}

body.it-services-page #services .service-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rgb-red), var(--rgb-blue), var(--rgb-green));
  background-size: 200% 100%;
  animation: rgbShift 3s ease infinite;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 64, 255, 0.3), 
              0 -2px 10px rgba(255, 0, 64, 0.3);
}

@keyframes rgbShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes rgbPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

body.it-services-page #services .service-item:hover {
  transform: translateY(-10px);
  border-color: transparent;
  border-image: linear-gradient(135deg, var(--rgb-red), var(--rgb-blue), var(--rgb-green)) 1;
  box-shadow:
    0 16px 48px rgba(15, 23, 42, 0.14),
    0 1px 0 rgba(15, 23, 42, 0.06),
    0 0 30px rgba(0, 64, 255, 0.2),
    0 0 30px rgba(255, 0, 64, 0.2),
    0 0 30px rgba(0, 255, 64, 0.2);
}

body.it-services-page #services .service-item:hover::before {
  transform: scaleX(1);
}

/* Service Image Wrapper - Takes up first half of card */
body.it-services-page #services .service-item .service-image-wrapper {
  width: 100%;
  flex: 0 0 40%;
  min-height: 200px;
  max-height: 40%;
  overflow: hidden;
  position: relative;
  border-radius: 0;
  margin: 0;
  padding: 0;
  display: block;
  background-color: #f8f9fa;
  line-height: 0;
}

body.it-services-page #services .service-item .service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  transition: transform 0.4s ease;
}

body.it-services-page #services .service-item:hover .service-image {
  transform: scale(1.05);
}

/* Service Content Wrapper - Takes up second half of card */
body.it-services-page #services .service-item .service-content-wrapper {
  flex: 1;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  min-height: 0;
}

body.it-services-page #services .service-item h3 {
  font-size: 20px;
  margin: 0 0 15px 0;
  line-height: 1.25;
  color: var(--heading-color);
  text-align: center;
}

body.it-services-page #services .service-item p {
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 8%);
  text-align: left;
  overflow: visible;
  word-wrap: break-word;
}

/* Inline link styles in HTML force black; normalize on this page */
body.it-services-page #services a.stretched-link {
  color: inherit !important;
  text-decoration: none !important;
}

body.it-services-page #services a.stretched-link:hover {
  text-decoration: none !important;
}

/* Subtle focus ring for accessibility */
body.it-services-page #services .service-item:focus-within {
  outline: 3px solid rgba(255, 196, 81, 0.35);
  outline-offset: 3px;
}

@media (max-width: 992px) {
  body.it-services-page #services.services.section {
    padding: 76px 0;
  }

  body.it-services-page #services .service-item {
    min-height: 550px;
  }

  body.it-services-page #services .service-item .service-content-wrapper {
    padding: 25px 20px;
  }
  
  body.it-services-page #services .service-item .service-image-wrapper {
    min-height: 180px;
    flex: 0 0 40%;
    max-height: 40%;
  }
}

@media (max-width: 576px) {
  body.it-services-page #services.services.section {
    padding: 64px 0;
  }

  body.it-services-page #services .service-item {
    border-radius: 0;
    min-height: 500px;
  }

  body.it-services-page #services .service-item .service-content-wrapper {
    padding: 20px 15px;
  }
  
  body.it-services-page #services .service-item .service-image-wrapper {
    min-height: 150px;
    border-radius: 0;
    flex: 0 0 40%;
    max-height: 40%;
  }
}

