/* =============================================
   Services Page — Dark Theme
   ============================================= */

.page-services {
  background: var(--color-surface);
  color: var(--color-white);
}

/* ---- Services Intro ---- */

.services-intro {
  padding: clamp(4rem, 7vw, 6rem) 0 2rem;
  background: var(--color-bg);
}

.services-intro-inner {
  max-width: 820px;
  margin: 0 auto;
}

.services-intro-title {
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin: 0 0 1.35rem;
}

.services-intro-desc {
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 1.15rem;
}

.services-intro-note {
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.services-intro-note strong {
  color: var(--color-accent);
  font-weight: 700;
}

/* ---- Accordion ---- */

.services-accordion {
  padding: 4rem 0 5rem;
  background: var(--color-bg);
}

.service-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.75rem 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-main);
  transition: padding-left 0.35s ease;
}

.service-trigger:hover {
  padding-left: 0.5rem;
}

.service-num {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  min-width: 3.5rem;
  transition: color 0.35s ease;
}

.service-name {
  flex: 1;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.35s ease;
}

.service-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease;
}

.service-item.is-open .service-num,
.service-item.is-open .service-name {
  color: var(--color-accent);
}

.service-item.is-open .service-toggle {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.08);
}

.service-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, padding 0.45s ease;
  padding: 0;
}

.service-item.is-open .service-panel {
  max-height: 4200px;
  opacity: 1;
  padding-bottom: 2.5rem;
}

.service-desc {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.75rem;
  max-width: 640px;
}

.service-offerings li {
  margin-bottom: 1.15rem;
}

.service-offerings li:last-child {
  margin-bottom: 0;
}

.service-offerings strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-white);
  margin-bottom: 0.35rem;
}

.service-offerings span {
  display: block;
  font-size: 0.84rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.58);
}

.service-offerings li {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid rgba(var(--color-accent-rgb), 0.35);
}

.service-bullets li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.5rem;
}

.service-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.service-panel-img {
  overflow: hidden;
}

.service-panel-img img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.service-item.is-open .service-panel-img img {
  transform: scale(1.02);
}

.service-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease, gap 0.3s ease;
}

.service-more-link:hover {
  color: var(--color-white);
  gap: 0.65rem;
}

.service-panel-img-link {
  display: block;
  text-decoration: none;
}

.service-panel-img-link:hover .service-panel-img img {
  transform: scale(1.04);
}

.service-offering-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.service-offering-link strong {
  display: block;
  transition: color 0.3s ease;
}

.service-offering-link:hover strong {
  color: var(--color-accent);
}

.service-offering-link:hover span {
  color: rgba(255, 255, 255, 0.72);
}

/* ---- Video CTA ---- */

.services-video {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5rem 0;
}

.services-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.services-video-marquee {
  position: absolute;
  top: 18%;
  left: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0.12;
  pointer-events: none;
}

.services-video-marquee-track {
  display: flex;
  width: max-content;
  animation: services-marquee 30s linear infinite;
}

.services-video-marquee-track span {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 3rem;
  color: var(--color-white);
}

@keyframes services-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.services-video-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.services-video-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-white);
  margin: 0 0 1.25rem;
}

.services-video-desc {
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}

.services-video-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.services-video-btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-white);
  background: var(--color-accent);
  transition: background 0.35s ease, transform 0.35s ease;
}

.services-video-btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
}

.services-video-play {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border: none;
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.35s ease;
}

.services-video-play:hover {
  color: var(--color-accent);
}

.services-video-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.2rem;
  padding-left: 3px;
  transition: transform 0.35s ease, background 0.35s ease;
}

.services-video-play:hover .services-video-play-icon {
  transform: scale(1.08);
  background: var(--color-accent-hover);
}

/* ---- Solutions ---- */

.services-solutions {
  padding: 6rem 0;
  background: var(--color-surface-elevated);
}

.services-collage {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.services-collage-main {
  max-width: 78%;
}

.services-collage-main img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1);
}

.services-collage-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  border: 4px solid var(--color-surface-elevated);
}

.services-collage-overlay img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.services-solutions-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  margin: 0 0 1.25rem;
}

.services-solutions-desc {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2rem;
  max-width: 520px;
}

.services-skills {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.services-skill-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
}

.services-skill-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.services-skill-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-accent);
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.services-skill-fill.animated {
  width: var(--fill-width);
}

.services-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-white);
  transition: color 0.35s ease;
}

.services-read-more:hover {
  color: var(--color-accent);
}

.services-read-line {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.4s ease, background 0.35s ease;
}

.services-read-more:hover .services-read-line {
  width: 72px;
  background: var(--color-accent);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .services-accordion {
    padding: 3rem 0 4rem;
  }

  .services-video {
    min-height: 460px;
    padding: 4rem 0;
  }

  .services-solutions {
    padding: 4.5rem 0;
  }

  .service-item.is-open .service-panel {
    max-height: 1200px;
  }
}

@media (max-width: 575.98px) {
  .service-trigger {
    padding: 1.35rem 0;
    gap: 0.75rem;
  }

  .service-num {
    min-width: 2.5rem;
    font-size: 1.25rem;
  }

  .service-toggle {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .services-video-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-video-marquee-track {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
