/* =========================================
   SERVICE PAGE
   ========================================= */

.service-hero,
.service-lines,
.service-process,
.service-cta {
  text-align: left;
}

.service-hero {
  position: relative;
  overflow: hidden;
  padding: 170px 0 96px;
  background:
    linear-gradient(90deg, rgba(198, 40, 40, 0.08), rgba(198, 40, 40, 0) 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 64px;
  align-items: center;
}

.service-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.service-kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 999px;
}

.service-hero h1,
.service-section-head h2,
.service-process-copy h2,
.service-cta h2 {
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.service-hero h1 {
  font-size: 3.8rem;
  max-width: 720px;
}

.service-hero p {
  color: var(--color-text-muted);
  font-family: var(--font-primary);
  font-size: 1.16rem;
  line-height: 1.8;
  margin: 24px 0 0;
  max-width: 650px;
  text-align: left;
}

.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.service-primary-link,
.service-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.service-primary-link {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(198, 40, 40, 0.24);
}

.service-secondary-link {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.16);
  color: var(--color-text-main);
}

.service-primary-link:hover,
.service-secondary-link:hover {
  transform: translateY(-2px);
}

.service-primary-link:hover {
  color: #ffffff;
  background: var(--color-primary-dark);
  box-shadow: 0 18px 34px rgba(198, 40, 40, 0.3);
}

.service-secondary-link:hover {
  color: var(--color-primary);
  border-color: rgba(198, 40, 40, 0.28);
}

.service-hero-media {
  position: relative;
  min-height: 460px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.service-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.22));
  pointer-events: none;
}

.service-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
}

.service-lines {
  padding: 94px 0;
  background: #ffffff;
}

.service-section-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  gap: 52px;
  align-items: start;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.service-section-head h2,
.service-process-copy h2,
.service-cta h2 {
  font-size: 2.65rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
}

.service-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.service-item-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff5f5;
  color: var(--color-primary);
  border: 1px solid rgba(198, 40, 40, 0.18);
}

.service-item-icon i {
  font-size: 1.45rem;
}

.service-item h3,
.process-step h3 {
  color: var(--color-text-main);
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 10px;
}

.service-item p,
.service-process-copy p,
.process-step p {
  color: var(--color-text-muted);
  font-family: var(--font-primary);
  font-size: 1.04rem;
  line-height: 1.75;
  margin: 0;
  text-align: left;
}

.service-process {
  padding: 94px 0;
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.service-process-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: start;
}

.service-process-copy p {
  max-width: 520px;
  margin-top: 22px;
}

.service-process-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  border-left: 1px solid rgba(15, 23, 42, 0.12);
}

.process-step {
  min-height: 210px;
  padding: 30px;
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.12);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.process-step span {
  display: inline-block;
  color: var(--color-primary);
  font-family: var(--font-primary);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 22px;
}

.service-cta {
  padding: 72px 0;
  background: #ffffff;
}

.service-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

@media (max-width: 992px) {
  .service-hero {
    padding: 48px 0 72px;
  }

  .service-hero-grid,
  .service-section-head,
  .service-process-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .service-hero h1 {
    font-size: 3rem;
  }

  .service-hero-media,
  .service-hero-media img {
    min-height: 380px;
  }

  .service-list,
  .service-process-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .service-hero {
    padding: 32px 0 58px;
  }

  .service-hero h1 {
    font-size: 2.35rem;
  }

  .service-section-head h2,
  .service-process-copy h2,
  .service-cta h2 {
    font-size: 2rem;
  }

  .service-hero p {
    font-size: 1.04rem;
  }

  .service-hero-actions,
  .service-cta-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .service-primary-link,
  .service-secondary-link {
    width: 100%;
  }

  .service-hero-media,
  .service-hero-media img {
    min-height: 300px;
  }

  .service-lines,
  .service-process {
    padding: 62px 0;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-step {
    min-height: auto;
    padding: 26px 22px;
  }

  .service-cta {
    padding: 54px 0;
  }
}

/* =========================================
   SERVICE HERO — PREMIUM ENTERPRISE REDESIGN
   ========================================= */

.service-hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  min-height: 80svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background:
    radial-gradient(circle at 78% 22%, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at 16% 72%, rgba(198, 40, 40, 0.08), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.34) 72%, rgba(255, 255, 255, 0.18) 100%),
    url("./Images/Service_Img.png");
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, right center;
  background-repeat: no-repeat;
  margin-top: var(--header-offset);
  padding: 80px 0 100px;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  border-top: none;
  border-bottom: none;
}

@media (min-width: 993px) {
  .service-hero {
    min-height: 82vh;
    min-height: 82svh;
  }
}

.service-hero .hero-overlay {
  display: none;
}

.service-hero .hero-grid-pattern {
  display: none;
}

.service-hero .hero-glow {
  position: absolute;
  width: 540px;
  height: 540px;
  top: -120px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 40, 40, 0.18) 0%, rgba(37, 99, 235, 0.1) 42%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.service-hero .relative-container {
  position: relative;
  z-index: 1;
}

.service-hero .hero-inner {
  max-width: 760px;
}

/* Title */
.service-hero .hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.25rem, 4.8vw, 4.25rem);
  font-weight: 600;
  color: #172033 !important;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin-bottom: 22px;
  text-wrap: balance;
}

.service-hero .hero-title-accent {
  background: linear-gradient(135deg, #c62828 0%, #9b1c1c 52%, #172033 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  display: inline-block;
}

/* Subtitle */
.service-hero .hero-subtitle {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 1.3vw, 1.175rem);
  color: #475569 !important;
  line-height: 1.7;
  font-weight: 400;
  max-width: 620px;
  margin-bottom: 38px;
}

/* CTAs */
.service-hero .hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.service-hero .btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.015em;
  border-radius: 11px;
  text-decoration: none;
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 10px 28px rgba(198, 40, 40, 0.4);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.service-hero .btn-hero-primary i {
  transition: transform 0.25s ease;
  font-size: 0.95rem;
}

.service-hero .btn-hero-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(198, 40, 40, 0.52);
}

.service-hero .btn-hero-primary:hover i {
  transform: translateX(3px);
}

.service-hero .btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: #172033;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.015em;
  border-radius: 11px;
  text-decoration: none;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.service-hero .btn-hero-secondary:hover {
  background: #ffffff;
  border-color: rgba(198, 40, 40, 0.28);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

/* =========================================
   MODERN SAAS SECTION (STRIPE-LIKE)
   ========================================= */

.services-saas-section {
  padding: 100px 0;
  background: #f8fbff;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.why-choose-saas {
  padding: 120px 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Vibrant Animated Backgrounds */
.saas-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.saas-background.inverted {
  background: #f8fbff;
}

.saas-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: floatSaaS 10s infinite alternate ease-in-out;
}

.saas-blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: rgba(198, 40, 40, 0.08); }
.saas-blob-2 { top: 20%; right: -5%; width: 600px; height: 600px; background: rgba(15, 23, 42, 0.05); animation-delay: -2s; }
.saas-blob-3 { bottom: -20%; left: 30%; width: 400px; height: 400px; background: rgba(198, 40, 40, 0.05); animation-delay: -5s; }
.saas-blob-4 { top: -10%; right: 10%; width: 550px; height: 550px; background: rgba(15, 23, 42, 0.05); }
.saas-blob-5 { bottom: -10%; left: -5%; width: 600px; height: 600px; background: rgba(198, 40, 40, 0.08); animation-delay: -3s; }

@keyframes floatSaaS {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.05); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Headers */
.services-saas-header, .why-choose-saas-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

.saas-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.15) 0%, rgba(198, 40, 40, 0.05) 100%);
  color: #c62828;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(198, 40, 40, 0.1);
}

.saas-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 600;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.saas-title span {
  background: linear-gradient(135deg, #c62828 0%, #8b1c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.saas-subtitle {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  color: #64748b;
  line-height: 1.6;
}

/* Grids */
.services-saas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.why-choose-saas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

/* Floating SaaS Cards */
.service-saas-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
  position: relative;
  z-index: 2;
}

.service-saas-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.9);
}

.service-saas-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.service-saas-icon.color-1 { background: linear-gradient(135deg, #c62828 0%, #9b1919 100%); }
.service-saas-icon.color-2 { background: linear-gradient(135deg, #e53935 0%, #c62828 100%); }
.service-saas-icon.color-3 { background: linear-gradient(135deg, #f44336 0%, #b71c1c 100%); }

.service-saas-card:hover .service-saas-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-saas-card h3 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.service-saas-card p {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 24px;
}

.saas-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  color: #c62828;
  text-decoration: none;
  transition: all 0.3s ease;
}

.saas-link:hover {
  gap: 12px;
  color: #8b1c1c;
}

/* Why Choose SaaS Items */
.why-saas-item {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  gap: 20px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.6);
  z-index: 2;
  position: relative;
}

.why-saas-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(198, 40, 40, 0.3);
}

.why-saas-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(198, 40, 40, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #c62828;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.why-saas-item:hover .why-saas-icon {
  background: var(--color-primary);
  color: #ffffff;
}

.why-saas-content h3 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.why-saas-content p {
  font-family: var(--font-primary);
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Service Implementation Section */
.service-implementation {
  padding: 120px 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.implementation-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.benefit-item {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.6);
  z-index: 2;
  position: relative;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(198, 40, 40, 0.3);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(198, 40, 40, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #c62828;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.benefit-item:hover .benefit-icon {
  background: var(--color-primary);
  color: #ffffff;
}

.benefit-content h3 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  margin: 0 0 10px 0;
}

.benefit-content p {
  font-family: var(--font-primary);
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 991px) {
  .service-hero {
    min-height: 78vh;
    min-height: 78svh;
    padding: 64px 0 90px;
  }

  .service-hero .hero-title {
    font-size: clamp(2.1rem, 4.8vw, 3rem);
  }

  .service-hero .hero-glow {
    width: 380px;
    height: 380px;
    top: -80px;
    right: -100px;
  }
}

@media (max-width: 768px) {
  .service-hero {
    margin-top: var(--header-offset-mobile);
    min-height: 84vh;
    min-height: 84svh;
    padding: 56px 0 90px;
    background-position: 62% center;
  }

  .service-hero .hero-inner {
    max-width: 100%;
  }

  .service-hero .hero-title {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
    margin-bottom: 18px;
    line-height: 1.06;
  }

  .service-hero .hero-subtitle {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin-bottom: 30px;
  }

  .service-hero .hero-cta-group {
    flex-direction: column;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
  }

  .service-hero .btn-hero-primary,
  .service-hero .btn-hero-secondary {
    width: min(220px, 100%);
    min-height: 52px;
    text-align: center;
    padding: 0 22px;
  }

  .services-saas-section { padding: 100px 0 80px; }
  .why-choose-saas { padding: 80px 0; }
  .service-implementation { padding: 80px 0; }
  .saas-title { font-size: 2.2rem; }
  .why-saas-item { flex-direction: column; gap: 16px; }
  .benefit-item { flex-direction: column; gap: 16px; }
}

@media (max-width: 768px) {
  .services-premium-section,
  .why-choose-premium {
    padding: 80px 0;
  }
  
  .premium-title {
    font-size: 2.2rem;
  }
  
  .why-feature-item {
    flex-direction: column;
    gap: 16px;
  }
}

/* =========================================
   HIDE DECORATIVE SHAPES ON MOBILE
   Prevents off-canvas overflow and content overlap on small viewports.
   ========================================= */
@media (max-width: 768px) {
  .saas-blob,
  .saas-blob-1,
  .saas-blob-2,
  .saas-blob-3,
  .saas-blob-4,
  .saas-blob-5 {
    display: none !important;
  }
}

