/* ==========================================================
   SERVICES PAGE
========================================================== */

/* ========= Root Variables ========= */

:root {
  --service-primary: #262871;
  --service-secondary: #6c385e;

  --service-accent: #2563eb;

  --service-bg: #ffffff;
  --service-bg-light: #f8fafc;

  --service-border: #e2e8f0;

  --service-text: #0f172a;
  --service-muted: #64748b;

  --service-radius: 20px;

  --service-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

/* ========= Page ========= */

body {
  background: var(--service-bg);
}

/* ========= Section ========= */

section {
  position: relative;

  overflow: hidden;
}

/* ========= Container ========= */

.max-w-7xl,
.max-w-6xl,
.max-w-5xl {
  position: relative;

  z-index: 2;
}

/* ========= Subtitle ========= */

.section-subtitle {
  display: inline-flex;

  align-items: center;

  gap: 0.6rem;

  font-size: 0.9rem;

  font-weight: 700;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: var(--service-secondary);
}

.section-subtitle::before {
  content: "";

  width: 42px;

  height: 2px;

  background: var(--service-secondary);
}

/* ========= Title ========= */

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);

  font-weight: 800;

  line-height: 1.2;

  color: var(--service-text);
}

/* ========= Text ========= */

.section-text {
  font-size: 1.05rem;

  line-height: 1.9;

  color: var(--service-muted);

  margin: 0;
}
/* ==========================================================
   COMPONENTS
========================================================== */

/* ========= Glass Card ========= */

.glass-card {
  background: rgba(255, 255, 255, 0.02);

  backdrop-filter: blur(14px);

  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.45);

  border-radius: var(--service-radius);

  box-shadow: var(--service-shadow);

  transition: all 0.35s ease;
}

.glass-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
}

/* ========= Showcase ========= */

.service-showcase {
  position: relative;
}

.service-showcase::before {
  content: "";

  position: absolute;

  inset: -10px;

  border-radius: calc(var(--service-radius) + 10px);

  background: linear-gradient(
    135deg,
    rgba(38, 40, 113, 0.08),
    rgba(108, 56, 94, 0.06)
  );

  z-index: -1;
}

/* ========= Feature Card ========= */

.feature-card {
  display: flex;

  flex-direction: column;

  justify-content: center;

  gap: 12px;

  padding: 24px;

  background: #fff;

  border: 1px solid var(--service-border);

  border-radius: 18px;

  transition: all 0.3s ease;

  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);

  min-height: 160px;
}

.feature-card:hover {
  transform: translateY(-6px);

  border-color: var(--service-primary);

  box-shadow: 0 18px 40px rgba(38, 40, 113, 0.12);
}

.feature-card i {
  font-size: 2rem;

  color: var(--service-primary);
}

.feature-card h3 {
  font-size: 1.15rem;

  font-weight: 700;

  color: var(--service-text);

  margin: 0;
}

.feature-card span {
  font-size: 1rem;

  font-weight: 600;

  color: var(--service-text);
}

.feature-card p {
  margin: 0;

  font-size: 0.96rem;

  line-height: 1.7;

  color: var(--service-muted);
}

/* ========= Service Icon ========= */

.service-icon {
  width: 80px;

  height: 80px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  font-size: 2rem;

  color: #fff;

  background: linear-gradient(
    135deg,
    var(--service-primary),
    var(--service-secondary)
  );

  box-shadow: 0 12px 30px rgba(38, 40, 113, 0.25);
}

/* ========= Buttons ========= */

.btn-zs {
  border: none;

  border-radius: 12px;

  padding: 14px 30px;

  font-weight: 700;

  transition: all 0.3s ease;
}

.btn-zs.btn-primary {
  background: linear-gradient(
    135deg,
    var(--service-primary),
    var(--service-secondary)
  );

  color: #fff;
}

.btn-zs.btn-primary:hover {
  transform: translateY(-3px);

  box-shadow: 0 16px 35px rgba(38, 40, 113, 0.25);
}

.btn-outline {
  border: 2px solid var(--service-primary);

  color: var(--service-primary);

  border-radius: 12px;

  padding: 14px 30px;

  font-weight: 700;

  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--service-primary);

  color: #fff;
}
/* ==========================================================
   HERO & PAGE SECTIONS
========================================================== */

/* ========= Hero ========= */

.hero {
  position: relative;

  overflow: hidden;

  min-height: 680px;

  display: flex;

  align-items: center;

  background: linear-gradient(
    135deg,
    rgba(38, 40, 113, 0.95),
    rgba(108, 56, 94, 0.9)
  );

  color: #fff;
}
/* ==========================================================
   HERO CONTENT
========================================================== */

.hero-subtitle {
  color: #262871;

  font-size: 1rem;

  font-weight: 700;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.6rem);

  line-height: 1.15;

  font-weight: 800;

  color: #ffffff;
}

.hero-title span {
  display: block;

  color: #9ecbff;
}

.hero-text {
  color: #262871;

  font-size: 1.08rem;

  line-height: 1.9;

  max-width: 700px;
}
.btn-light {
  background: #ffffff;

  color: #262871;

  border: none;
}

.btn-light:hover {
  background: #f8fafc;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.45);

  color: #ffffff;

  background: transparent;
}

.btn-outline-light:hover {
  background: #ffffff;

  color: #262871;
}
.floating-card {
  background: rgba(255, 255, 255, 0.1);

  border: 1px solid rgba(255, 255, 255, 0.2);

  backdrop-filter: blur(18px);

  -webkit-backdrop-filter: blur(18px);
}

.hero::before {
  content: "";

  position: absolute;

  inset: 0;

  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.12),
    transparent 45%
  );

  pointer-events: none;
}

.hero .section-subtitle {
  color: #fff;
}

.hero .section-subtitle::before {
  background: #fff;
}

.hero .section-title {
  color: #fff;
}

.hero .section-text {
  color: rgba(255, 255, 255, 0.85);
}

.hero .glass-card {
  background: rgba(255, 255, 255, 0.02);

  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero .feature-card {
  background: rgba(255, 255, 255, 0.08);

  border-color: rgba(255, 255, 255, 0.15);
}

.hero .feature-card span {
  color: #fff;
}

.hero .feature-card i {
  color: #fff;
}

/* ========= FAQ ========= */

.collapse {
  border-radius: 16px;

  transition: all 0.3s ease;
}

.collapse:hover {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.collapse-title {
  font-weight: 700;

  color: var(--service-text);
}

.collapse-content {
  color: var(--service-muted);

  line-height: 1.8;
}

/* ========= CTA ========= */

.glass-card.text-center {
  border-radius: 28px;

  padding: 4rem;
}

.glass-card.text-center .section-title {
  margin-bottom: 1rem;
}

/* ========= Footer ========= */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  line-height: 1.8;
}

.footer h3 {
  margin: 0;
}
/* ==========================================================
   RESPONSIVE DESIGN
========================================================== */

/* ---------- Large Devices ---------- */

@media (max-width: 1200px) {
  .hero {
    min-height: 620px;
  }

  .section-title {
    font-size: 2.6rem;
  }
}

/* ---------- Tablets ---------- */

@media (max-width: 992px) {
  section {
    padding-top: 5rem !important;

    padding-bottom: 5rem !important;
  }

  .hero {
    min-height: auto;

    padding: 7rem 0 5rem;

    text-align: center;
  }

  .hero .grid {
    gap: 3rem;
  }

  .section-subtitle {
    justify-content: center;
  }

  .section-title {
    font-size: 2.3rem;
  }

  .section-text {
    font-size: 1rem;
  }

  .feature-card {
    min-height: 140px;
  }

  .glass-card.text-center {
    padding: 3rem 2rem;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 4rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-text {
    font-size: 0.96rem;

    line-height: 1.8;
  }

  .feature-card {
    min-height: auto;

    padding: 20px;
  }

  .feature-card i {
    font-size: 1.75rem;
  }

  .service-icon {
    width: 64px;

    height: 64px;

    font-size: 1.6rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .glass-card.text-center {
    padding: 2.5rem 1.5rem;
  }

  .btn-zs,
  .btn-outline {
    width: 100%;

    justify-content: center;
  }
}

/* ---------- Small Mobile ---------- */

@media (max-width: 576px) {
  .hero {
    padding-top: 5.5rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-subtitle {
    font-size: 0.8rem;

    letter-spacing: 0.06em;
  }

  .section-subtitle::before {
    width: 28px;
  }

  .service-icon {
    width: 58px;

    height: 58px;

    font-size: 1.4rem;
  }

  .feature-card {
    padding: 18px;

    border-radius: 14px;
  }

  .collapse-title {
    font-size: 1rem;
  }

  .footer {
    padding: 3rem 1rem;
  }

  .footer h3 {
    font-size: 1.5rem;
  }

  .footer p {
    font-size: 0.9rem;
  }
}

/* ==========================================================
   ANIMATIONS
========================================================== */

.feature-card,
.glass-card,
.btn-zs,
.btn-outline {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.feature-card:hover,
.glass-card:hover {
  will-change: transform;
}

/* ==========================================================
   END
========================================================== */
/* Services Hero – Same Color Style as Project Page */
.services-page .hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #292c78 0%, #443276 48%, #6b3b61 100%);
  color: #ffffff;
}

/* Decorative circles */
.services-page .hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -220px;
  right: -100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.services-page .hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  bottom: -190px;
  left: -60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.services-page .hero > div {
  position: relative;
  z-index: 2;
}

/* Hero text */
.services-page .hero-subtitle,
.services-page .hero-title,
.services-page .hero-title span {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.services-page .hero-text {
  color: rgba(255, 255, 255, 0.88);
}

/* Glass cards */
.services-page .hero .glass-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 15px 35px rgba(16, 18, 60, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.services-page .hero .glass-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.32);
}

.services-page .hero .glass-card i,
.services-page .hero .glass-card h3 {
  color: #ffffff !important;
}

.services-page .hero .glass-card p {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* Hero buttons */
.services-page .hero .btn-light {
  background: #ffffff;
  color: #292c78;
  border-color: #ffffff;
}

.services-page .hero .btn-light:hover {
  background: #f1f1f7;
  color: #6b3b61;
}

.services-page .hero .btn-outline-light {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

.services-page .hero .btn-outline-light:hover {
  background: #ffffff;
  color: #292c78;
}

.services-page .hero {
  height: auto !important;
  min-height: calc(100vh - var(--navbar-height-desktop));
  padding: 72px 0;
}
/* Center icons in Service Delivery Process */
.feature-card.text-center {
  align-items: center;
}

.feature-card.text-center .service-icon {
  margin-left: auto;
  margin-right: auto;
}

.feature-card.text-center .service-icon i,
.feature-card.text-center .service-icon svg {
  color: #ffffff !important;
}

/* ==========================================================
   SERVICES PAGE RESPONSIVE SAFETY LAYER
========================================================== */

html {
  scroll-behavior: smooth;
}

body.services-page {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.services-page .navbar-spacer {
  height: var(--navbar-height-desktop);
}

.services-page main {
  display: block;
}

.services-page img,
.services-page svg {
  max-width: 100%;
}

.services-page #topBtn {
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.services-page #topBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.services-page footer a {
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.services-page footer a:hover {
  color: #ffffff;
}

@media (max-width: 1200px) {
  .services-page section.py-28 {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .services-page .hero {
    min-height: auto;
  }
}

@media (max-width: 992px) {
  .services-page .navbar-spacer {
    height: var(--navbar-height-tablet);
  }

  .services-page .navbar-mobile-menu.open {
    display: block;
    max-height: calc(100dvh - var(--navbar-height-tablet));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .services-page .hero {
    padding: 72px 0 !important;
  }

  .services-page .hero .grid > div:last-child {
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .services-page .navbar-spacer {
    height: var(--navbar-height-mobile);
  }

  .services-page .navbar-mobile-menu.open {
    max-height: calc(100dvh - var(--navbar-height-mobile));
  }

  .services-page section.py-28,
  .services-page section.py-24 {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .services-page .hero {
    padding: 56px 0 !important;
  }

  .services-page .hero-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
    overflow-wrap: anywhere;
  }

  .services-page .hero .grid.grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .services-page .hero .floating-card {
    margin-top: 0 !important;
  }

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

  .services-page .glass-card.text-center {
    padding: 2.25rem 1.25rem;
  }

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

  .services-page #topBtn {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 479px) {
  .services-page .hero {
    padding: 48px 0 !important;
  }

  .services-page .hero-title {
    font-size: clamp(1.95rem, 10vw, 2.5rem);
  }

  .services-page .hero-text,
  .services-page .section-text {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .services-page .hero .glass-card,
  .services-page .feature-card {
    padding: 1.15rem;
  }

  .services-page .collapse-title {
    padding-right: 3rem;
  }
}
