/*
============================================================
* NexRise - Premium Services Sub-page Styles (Redesign)
* Integrates with the main workspace design system variables
============================================================
*/

:root {
  --color-accent-gradient: linear-gradient(135deg, var(--brand-blue, #2563eb) 0%, var(--brand-cyan, #06b6d4) 100%);
  --color-accent-gradient-hover: linear-gradient(135deg, var(--brand-blue-light, #3b82f6) 0%, var(--brand-cyan, #06b6d4) 100%);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.05);
  --card-glow-color: rgba(37, 99, 235, 0.15);
  --glow-circle-1: rgba(37, 99, 235, 0.08);
  --glow-circle-2: rgba(6, 182, 212, 0.08);
  --glow-circle-3: rgba(147, 51, 234, 0.05);
}

[data-theme="dark"] {
  --glass-bg: rgba(30, 41, 59, 0.45);
  --glass-border: rgba(255, 255, 255, 0.06);
  --card-glow-color: rgba(6, 182, 212, 0.25);
  --glow-circle-1: rgba(6, 182, 212, 0.15);
  --glow-circle-2: rgba(37, 99, 235, 0.12);
  --glow-circle-3: rgba(168, 85, 247, 0.1);
}

/* --- Global Layout Override --- */
body {
  overflow-x: hidden !important;
}

.services-main-container {
  position: relative;
  width: 100%;
  background: var(--bg);
  transition: background-color var(--dur-base) var(--ease);
}

/* --- Premium Background Effects --- */
.premium-bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.8;
  mix-blend-mode: screen;
}

.bg-glow-1 {
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--glow-circle-1) 0%, transparent 70%);
  animation: moveBlob1 25s infinite alternate ease-in-out;
}

.bg-glow-2 {
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--glow-circle-2) 0%, transparent 70%);
  animation: moveBlob2 30s infinite alternate ease-in-out;
}

.bg-glow-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--glow-circle-3) 0%, transparent 70%);
}

.bg-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(245, 244, 240, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 244, 240, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}

[data-theme="dark"] .bg-grid-overlay {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

.bg-noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
  opacity: 0.6;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bg-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: var(--fg);
  border-radius: 50%;
  opacity: 0.15;
}

/* --- Scroll Progress Bar --- */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.05);
}

.scroll-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--color-accent-gradient);
  box-shadow: 0 0 10px var(--brand-cyan, #06b6d4);
  transition: width 0.1s ease-out;
}

/* --- Animations Keyframes --- */
@keyframes moveBlob1 {
  0% { transform: translate(0px, 0px) scale(1); }
  50% { transform: translate(80px, -50px) scale(1.1); }
  100% { transform: translate(-40px, 60px) scale(0.9); }
}

@keyframes moveBlob2 {
  0% { transform: translate(0px, 0px) scale(1.1); }
  50% { transform: translate(-60px, 40px) scale(0.95); }
  100% { transform: translate(50px, -80px) scale(1.05); }
}

/* --- Services Hero Section --- */
.services-hero {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 5rem;
}

.min-vh-80 {
  min-height: 75vh;
}

.services-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.services-badge-pill {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-cyan, #06b6d4);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  padding: 0.4rem 1.1rem;
  border-radius: 2rem;
  font-weight: 500;
}

.services-badge-glowing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-cyan, #06b6d4);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-cyan, #06b6d4);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.reveal-text {
  overflow: hidden;
}

.reveal-text .char {
  display: inline-block;
  transform: translateY(100%);
}

.services-hero-subtitle {
  font-size: var(--fs-md);
  max-width: 620px;
  line-height: 1.65;
  opacity: 0.85;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.indicator-mouse {
  width: 22px;
  height: 38px;
  border: 2px solid var(--fg-muted);
  border-radius: 12px;
  position: relative;
}

.indicator-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--fg);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelScroll 1.8s infinite ease-in-out;
}

@keyframes wheelScroll {
  0% { top: 6px; opacity: 1; }
  80% { top: 22px; opacity: 0; }
  100% { top: 6px; opacity: 0; }
}

.indicator-text {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Showcase alternating sections --- */
.showcase-container-wrapper {
  position: relative;
  z-index: 2;
}

.showcase-section {
  position: relative;
  padding: 8rem 0;
  display: flex;
  align-items: center;
  min-height: 95vh;
}

/* Image Column styles */
.premium-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.5s var(--ease-out);
  perspective: 1000px;
}

.image-glow-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 30px;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
}

.clip-reveal-box {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 19px;
  overflow: hidden;
  clip-path: inset(0px 0px 0px 0px round 19px);
  transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-image-wrapper:hover .showcase-image {
  transform: scale(1.05);
}

.premium-image-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.image-float-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 54px;
  height: 54px;
  background: rgba(10, 10, 8, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan, #06b6d4);
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 3;
  transition: transform 0.4s var(--ease-out);
}

.premium-image-wrapper:hover .image-float-badge {
  transform: scale(1.1) rotate(15deg);
}

/* Service Card Styles */
.service-details-card {
  position: relative;
  padding: 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: all 0.5s var(--ease-out);
  overflow: hidden;
}

.service-details-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, var(--card-glow-color) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.service-details-card:hover::before {
  opacity: 0.6;
}

.service-details-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
}

.service-card-num {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--fg-subtle);
  opacity: 0.4;
}

.showcase-badge {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  color: var(--brand-cyan, #06b6d4);
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 1rem;
}

.showcase-card-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--fg);
}

.showcase-desc {
  color: var(--fg-muted);
  font-size: var(--fs-base);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.showcase-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.showcase-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

.showcase-features li i {
  color: var(--brand-blue, #2563eb);
}

.showcase-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.showcase-tech-tags span {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.8rem;
  border-radius: 0.5rem;
  color: var(--fg-muted);
}

[data-theme="dark"] .showcase-tech-tags span {
  background: rgba(0, 0, 0, 0.2);
}

/* Showcase Animations */
.showcase-section .showcase-image-col {
  opacity: 0;
  transform: translateY(50px);
}

.showcase-section .showcase-content-col {
  opacity: 0;
  transform: translateY(30px);
}

/* --- Why Choose Us Section --- */
.premium-why-choose-us {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
}

.why-premium-card {
  position: relative;
  padding: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}

.why-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.why-premium-card:hover .why-card-glow {
  opacity: 1;
}

.why-premium-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.why-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--color-accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.why-card-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.why-card-text {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* Statistics Counters styling */
.stats-counters-box {
  padding: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

.stats-counters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-counter-card {
  position: relative;
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  text-align: center;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.stat-counter-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.06) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.stat-counter-card:hover .stat-counter-glow {
  opacity: 1;
}

.stat-counter-card:hover {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.07);
}

.stat-number {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* --- Process Section (Timeline) --- */
.premium-process-section {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 5rem auto 0 auto;
}

.timeline-progress-line {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

[data-theme="light"] .timeline-progress-line {
  background: rgba(0, 0, 0, 0.05);
}

.timeline-progress-fill {
  width: 100%;
  height: 0%;
  background: var(--color-accent-gradient);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--brand-cyan, #06b6d4);
  transition: height 0.1s ease-out;
}

.timeline-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6rem;
  position: relative;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-content {
  width: 45%;
}

.timeline-content-left {
  text-align: right;
}

.timeline-content-right {
  text-align: left;
}

.timeline-spacer {
  width: 45%;
}

.timeline-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--fg-subtle);
  z-index: 5;
  transition: all 0.4s ease;
}

.node-dot {
  width: 8px;
  height: 8px;
  background-color: var(--fg);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.node-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline-step.active .timeline-node {
  border-color: var(--brand-cyan, #06b6d4);
  box-shadow: 0 0 15px var(--brand-cyan, #06b6d4);
}

.timeline-step.active .node-dot {
  background-color: var(--brand-cyan, #06b6d4);
}

.timeline-step.active .node-glow {
  opacity: 1;
}

.timeline-card {
  position: relative;
  padding: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.4s var(--ease-out);
  display: inline-block;
  width: 100%;
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.step-num {
  position: absolute;
  top: 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--brand-cyan, #06b6d4);
  opacity: 0.6;
}

.timeline-content-left .step-num {
  left: 2rem;
}

.timeline-content-right .step-num {
  right: 2rem;
}

.step-icon {
  font-size: 2.25rem;
  color: var(--brand-cyan, #06b6d4);
  margin-bottom: 1rem;
}

.step-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* --- CTA Section --- */
.premium-cta-section {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
}

.cta-card {
  position: relative;
  padding: 5rem 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.cta-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-glow-blob {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: moveBlob1 15s infinite alternate ease-in-out;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cta-desc {
  font-size: var(--fs-md);
  max-width: 580px;
  line-height: 1.65;
}

/* --- Responsive Layout adjustments --- */
@media (max-width: 1024px) {
  .timeline-progress-line {
    left: 20px;
    transform: none;
  }
  .timeline-step {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 4rem;
  }
  .timeline-content {
    width: 100%;
    padding-left: 45px;
  }
  .timeline-content-left {
    text-align: left;
  }
  .timeline-content-left .step-num {
    right: 2rem;
    left: auto;
  }
  .timeline-spacer {
    display: none;
  }
  .timeline-node {
    left: 20px;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .showcase-section {
    padding: 4rem 0;
    min-height: auto;
  }
  .service-details-card {
    padding: 2rem;
  }
  .premium-process-section,
  .premium-why-choose-us,
  .premium-cta-section {
    padding: 4rem 0;
  }
  .cta-card {
    padding: 3rem 1.5rem;
  }
  .stats-counters-grid {
    grid-template-columns: 1fr;
  }
}

/* GPU Hardware Acceleration for smooth elements */
.premium-image-wrapper, 
.premium-image-wrapper img, 
.showcase-image,
.service-details-card,
.why-premium-card,
.stat-counter-card,
.timeline-card,
.cta-card,
.bg-glow,
.timeline-node {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

/* --- Horizontal Timeline Styles --- */
.horizontal-timeline-container {
  position: relative;
  width: 100%;
  margin: 6rem auto 2rem auto;
  padding: 0;
}

.horizontal-timeline-container .timeline-step {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-bottom: 0;
  text-align: center;
  border-bottom: none !important; /* prevent line decoration from vertical steps if any */
}

.horizontal-timeline-line {
  position: absolute;
  top: 93px; /* Center height of the node circle (accounts for row padding and circle radius) */
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: rgba(10, 10, 8, 0.08); /* light mode default */
  z-index: 1;
}

[data-theme="dark"] .horizontal-timeline-line {
  background: rgba(255, 255, 255, 0.1);
}

.horizontal-timeline-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--brand-cyan, #06b6d4);
  box-shadow: 0 0 10px var(--brand-cyan, #06b6d4);
  transition: width 0.1s ease-out;
}

.timeline-node-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2.2rem;
  position: relative;
  z-index: 3;
}

.timeline-node {
  position: relative;
  left: auto !important;
  transform: none;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(10, 10, 8, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #0a0a08;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .timeline-node {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.timeline-step-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0a0a08;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

[data-theme="dark"] .timeline-step-badge {
  background: #ffffff;
  color: #0f172a;
  border-color: #1e293b;
}

.timeline-step.active .timeline-node {
  border-color: var(--brand-cyan, #06b6d4);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
  transform: scale(1.05) !important;
  color: var(--brand-cyan, #06b6d4);
}

.timeline-step.active .timeline-step-badge {
  background: var(--brand-cyan, #06b6d4);
  color: #ffffff;
  border-color: #ffffff;
}

[data-theme="dark"] .timeline-step.active .timeline-step-badge {
  border-color: #1e293b;
}

.timeline-step .step-title {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a0a08;
  margin-bottom: 0.75rem;
  transition: color 0.4s ease;
}

[data-theme="dark"] .timeline-step .step-title {
  color: #ffffff;
}

.timeline-step.active .step-title {
  color: var(--brand-cyan, #06b6d4);
}

.timeline-step .step-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* Responsive Stacking for Mobile Viewports */
@media (max-width: 991px) {
  .horizontal-timeline-line {
    display: none;
  }
  .timeline-node-wrapper {
    margin-bottom: 1.2rem;
  }
  .horizontal-timeline-container {
    margin-top: 3rem;
  }
  .horizontal-timeline-container .timeline-step {
    margin-bottom: 3.5rem !important;
  }
  .horizontal-timeline-container .timeline-step:last-child {
    margin-bottom: 0 !important;
  }
}
