/* ==========================================================================
   WebHub Service Landing CSS
   File: assets/css/service-landing.css
   For: single-service.php
   ========================================================================== */

:root {
  --wh-bg: #070A12;
  --wh-bg-2: #0D1220;
  --wh-bg-3: #111827;
  --wh-text: #F8FAFC;
  --wh-muted: #A7B0C4;
  --wh-line: rgba(255, 255, 255, 0.12);
  --wh-card: rgba(255, 255, 255, 0.065);
  --wh-card-2: rgba(255, 255, 255, 0.04);
  --wh-cyan: #00D4FF;
  --wh-violet: #7C3AED;
  --wh-green: #22C55E;
  --wh-radius: 28px;
  --wh-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.webhub-service {
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 212, 255, 0.15), transparent 32rem),
    radial-gradient(circle at 86% 18%, rgba(124, 58, 237, 0.22), transparent 32rem),
    var(--wh-bg);
  color: var(--wh-text);
  overflow: hidden;
}

.webhub-service *,
.webhub-service *::before,
.webhub-service *::after {
  box-sizing: border-box;
}

.webhub-service a {
  color: inherit;
  text-decoration: none;
}

.webhub-service img {
  max-width: 100%;
  height: auto;
      border: 1px solid #605df1;
}

.webhub-service .container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.section-padding {
  padding: 110px 0;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  border-top: 1px solid var(--wh-line);
  border-bottom: 1px solid var(--wh-line);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  color: var(--wh-cyan);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding: 120px 0 90px;
}

.service-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.55;
  transform: translateZ(0);
}

.orb--cyan {
  width: 320px;
  height: 320px;
  background: var(--wh-cyan);
  right: 16%;
  top: 16%;
  animation: wh-float 9s ease-in-out infinite;
}

.orb--violet {
  width: 260px;
  height: 260px;
  background: var(--wh-violet);
  right: 3%;
  bottom: 8%;
  animation: wh-float 11s ease-in-out infinite reverse;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 70% 45%, black, transparent 62%);
  opacity: 0.6;
}

.service-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 64px;
  align-items: center;
}


.hero-subtitle {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--wh-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--wh-cyan), var(--wh-violet));
  color: #fff;
  box-shadow: 0 18px 55px rgba(124, 58, 237, 0.32);
}

.btn--ghost {
  border: 1px solid var(--wh-line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--wh-text);
}

.service-hero__visual {
  perspective: 1100px;
}

.code-card {
  position: relative;
  min-height: 440px;
  padding: 28px;
  border: 1px solid var(--wh-line);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  box-shadow: var(--wh-shadow);
  backdrop-filter: blur(22px);
  transform: rotateX(8deg) rotateY(-12deg);
  animation: wh-card-float 7s ease-in-out infinite;
}

.code-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,212,255,.55), rgba(124,58,237,.38), transparent);
  filter: blur(22px);
  opacity: 0.75;
}

.code-card .dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}

.code-card pre {
  margin-top: 30px;
  padding: 0;
  overflow: auto;
  color: #D9F7FF;
  font-size: 14px;
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  padding: 30px;
  border: 1px solid var(--wh-line);
  border-radius: var(--wh-radius);
  background: var(--wh-card);
  box-shadow: var(--wh-shadow);
}

.stat-card strong {
  display: block;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.stat-card span {
  display: block;
  margin-top: 12px;
  color: var(--wh-muted);
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}



.section-head p {
  color: var(--wh-muted);
  font-size: 18px;
  line-height: 1.7;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cards-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.premium-card,
.case-card,
.scope-card {
  position: relative;
  min-height: 210px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--wh-line);
  border-radius: var(--wh-radius);
  background: linear-gradient(180deg, var(--wh-card), var(--wh-card-2));
  box-shadow: var(--wh-shadow);
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}

.premium-card::after,
.scope-card::after {
  content: "";
  position: absolute;
  right: -40%;
  bottom: -55%;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.18), transparent 68%);
  opacity: 0;
  transition: opacity .28s ease;
}

.premium-card:hover,
.case-card:hover,
.scope-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.38);
}

.premium-card:hover::after,
.scope-card:hover::after {
  opacity: 1;
}

.premium-card h3,
.case-card h3,
.scope-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.premium-card p,
.case-card p,
.scope-card li,
.rich-text {
  position: relative;
  color: var(--wh-muted);
  line-height: 1.72;
}

.premium-card--glow {
  min-height: 230px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 64px;
  align-items: start;
}

.benefit-list {
  display: grid;
  gap: 14px;
}

.benefit-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--wh-line);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
}

.benefit-item span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: var(--wh-green);
  font-weight: 900;
}

.benefit-item p {
  margin: 0;
  color: var(--wh-text);
  font-weight: 700;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.scope-card {
  min-height: auto;
}

.scope-card ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.scope-card li {
  padding-left: 28px;
  position: relative;
}

.scope-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--wh-cyan);
  font-weight: 900;
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--wh-line);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: var(--wh-text);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 16px;
  max-width: 920px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--wh-line);
  border-radius: 24px;
  background: rgba(255,255,255,.045);
}

.timeline-item span {
  color: var(--wh-cyan);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.timeline-item h3 {
  margin: 0 0 8px;
}

.timeline-item p {
  margin: 0;
  color: var(--wh-muted);
  line-height: 1.7;
}

.case-card {
  display: block;
  min-height: auto;
}

.case-card__image {
  display: block;
  margin: -16px -16px 22px;
  overflow: hidden;
  border-radius: 22px;
}

.case-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .34s ease;
}

.case-card:hover .case-card__image img {
  transform: scale(1.055);
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.faq-item {
  border: 1px solid var(--wh-line);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--wh-cyan);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item div {
  padding: 0 24px 22px;
  color: var(--wh-muted);
  line-height: 1.75;
}

.final-cta {
  text-align: center;
}

.final-cta__inner {
  padding: 64px 34px;
  border: 1px solid var(--wh-line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0,212,255,.18), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  box-shadow: var(--wh-shadow);
}

.final-cta h2 {
  max-width: 760px;
  margin: 0 auto 18px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.final-cta p {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--wh-muted);
  font-size: 19px;
  line-height: 1.7;
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .72s ease, transform .72s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Fallback if JS disabled */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Animations */
@keyframes wh-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -24px, 0); }
}

@keyframes wh-card-float {
  0%, 100% { transform: rotateX(8deg) rotateY(-12deg) translateY(0); }
  50% { transform: rotateX(6deg) rotateY(-9deg) translateY(-14px); }
}

/* Responsive */
@media (max-width: 1060px) {
  .service-hero__inner,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .service-hero__visual {
    max-width: 620px;
  }

  .cards-grid,
  .cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .section-padding {
    padding: 76px 0;
  }

  .service-hero {
    min-height: auto;
    padding: 86px 0 70px;
  }

  .service-hero h1 {
    font-size: 44px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cards-grid,
  .cards-grid--4,
  .stats-grid,
  .scope-grid {
    grid-template-columns: 1fr;
  }

  .code-card {
    min-height: 320px;
    transform: none;
    animation: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .final-cta__inner {
    padding: 42px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
