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

/* Hero */
.srv-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  overflow: hidden;
  background: #111114;
}

.srv-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Grid lines */
.srv-grid-line {
  position: absolute;
}

.srv-gl-h {
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
}

.srv-gl-h::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -200px;
  width: 200px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.5), transparent);
  animation: srvLineSweepH 8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.srv-gl-h:nth-child(1)::after { animation-delay: 0s; animation-duration: 6s; }
.srv-gl-h:nth-child(2)::after { animation-delay: 1.5s; animation-duration: 7s; }
.srv-gl-h:nth-child(3)::after { animation-delay: 3s; animation-duration: 5s; }
.srv-gl-h:nth-child(4)::after { animation-delay: 0.8s; animation-duration: 8s; }
.srv-gl-h:nth-child(5)::after { animation-delay: 2.5s; animation-duration: 6.5s; }

.srv-gl-v {
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.05), transparent);
}

.srv-gl-v::after {
  content: '';
  position: absolute;
  left: -1px;
  top: -100px;
  width: 3px;
  height: 100px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(230, 57, 70, 0.4), transparent);
  animation: srvLineSweepV 9s ease-in-out infinite;
}

.srv-gl-v:nth-child(6)::after { animation-delay: 0s; animation-duration: 7s; }
.srv-gl-v:nth-child(7)::after { animation-delay: 2s; animation-duration: 8s; }
.srv-gl-v:nth-child(8)::after { animation-delay: 1s; animation-duration: 6s; }
.srv-gl-v:nth-child(9)::after { animation-delay: 3.5s; animation-duration: 7.5s; }
.srv-gl-v:nth-child(10)::after { animation-delay: 0.5s; animation-duration: 9s; }

@keyframes srvLineSweepH {
  0% { left: -200px; }
  100% { left: calc(100% + 200px); }
}

@keyframes srvLineSweepV {
  0% { top: -100px; }
  100% { top: calc(100% + 100px); }
}

/* Floating orbs */
.srv-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.srv-orb-1 {
  width: 500px; height: 500px;
  background: #e63946;
  top: 10%; left: -10%;
  animation: srvOrbFloat 12s ease-in-out infinite alternate;
}

.srv-orb-2 {
  width: 400px; height: 400px;
  background: #42a5f5;
  bottom: 10%; right: -5%;
  animation: srvOrbFloat 15s ease-in-out 3s infinite alternate;
}

.srv-orb-3 {
  width: 300px; height: 300px;
  background: #66bb6a;
  top: 50%; left: 40%;
  animation: srvOrbFloat 10s ease-in-out 1s infinite alternate;
}

@keyframes srvOrbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.1); }
}

.srv-hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
}

/* Hero content */
.srv-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.srv-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.15);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  animation: srvFadeUp 0.8s ease both;
}

.srv-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.5);
  animation: srvPulse 2s ease-in-out infinite;
}

@keyframes srvPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.srv-hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  animation: srvFadeUp 0.8s 0.1s ease both;
}

.srv-highlight {
  font-weight: 700;
  font-style: italic;
  color: #e63946;
}

.srv-hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 48px;
  animation: srvFadeUp 0.8s 0.2s ease both;
}

/* Floating tags */
.srv-floating-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  animation: srvFadeUp 0.8s 0.3s ease both;
}

.srv-ftag {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-primary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  cursor: default;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: srvTagFloat 4s ease-in-out infinite alternate;
}

.srv-ftag:hover {
  background: rgba(230, 57, 70, 0.1);
  border-color: rgba(230, 57, 70, 0.3);
  color: #fff;
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.15);
}

.ftag-1 { animation-delay: 0s; }
.ftag-2 { animation-delay: 0.5s; }
.ftag-3 { animation-delay: 1s; }
.ftag-4 { animation-delay: 1.5s; }
.ftag-5 { animation-delay: 2s; }
.ftag-6 { animation-delay: 2.5s; }
.ftag-7 { animation-delay: 3s; }

@keyframes srvTagFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@keyframes srvFadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION STYLES ===== */
.srv-section {
  padding: 120px 0;
}

.srv-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 80px;
}

.srv-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  margin-bottom: 16px;
}

.srv-section-header h2 {
  font-family: var(--font-primary);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.srv-section-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== SERVICE CARDS GRID ===== */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.srv-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 36px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(40px);
}

.srv-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.srv-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.srv-card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
}

/* Card glow */
.srv-card-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.srv-card:hover .srv-card-glow {
  opacity: 0.08;
}

.srv-glow-red { background: #e63946; }
.srv-glow-orange { background: #ff9800; }
.srv-glow-blue { background: #42a5f5; }
.srv-glow-purple { background: #ab47bc; }
.srv-glow-green { background: #66bb6a; }
.srv-glow-cyan { background: #26c6da; }

/* Card number */
.srv-card-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  transition: color 0.3s ease;
}

.srv-card:hover .srv-card-num {
  color: rgba(255,255,255,0.06);
}

/* Card icon */
.srv-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.srv-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-red);
}

.srv-card:hover .srv-card-icon {
  background: rgba(230, 57, 70, 0.15);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.15);
}

.srv-card-content h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.srv-card-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Feature tags */
.srv-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.srv-card-features span {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-primary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.srv-card:hover .srv-card-features span {
  border-color: rgba(255,255,255,0.12);
  color: var(--text-secondary);
}

/* Card visual — Bar chart */
.srv-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  padding: 20px;
  background: rgba(0,0,0,0.2);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.04);
}

.srv-cbar {
  flex: 1;
  height: var(--h);
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: srvBarGrow 1.5s var(--d) cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.srv-cbar-accent {
  background: linear-gradient(to top, var(--accent-red-dark), var(--accent-red));
  box-shadow: 0 -4px 20px rgba(230, 57, 70, 0.25);
}

@keyframes srvBarGrow {
  0% { height: 0; }
}

/* Card visual — Code block */
.srv-code-block {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 24px 20px;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 2;
}

.srv-code-line {
  color: rgba(255,255,255,0.5);
  animation: srvTypeIn 0.6s ease both;
}

.srv-code-line:nth-child(1) { animation-delay: 0.3s; }
.srv-code-line:nth-child(2) { animation-delay: 0.6s; }
.srv-code-line:nth-child(3) { animation-delay: 0.9s; }
.srv-code-line:nth-child(4) { animation-delay: 1.2s; }

.srv-code-kw { color: #c678dd; }
.srv-code-fn { color: #61afef; }
.srv-code-num { color: #d19a66; }
.srv-code-str { color: #98c379; }

@keyframes srvTypeIn {
  0% { opacity: 0; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Card visual — Orbit */
.srv-orbit-visual {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.srv-orbit-ring {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  top: 50%; left: 50%;
}

.srv-or-1 {
  width: 200px; height: 200px;
  margin: -100px 0 0 -100px;
  animation: srvSpin 20s linear infinite;
}

.srv-or-1::before {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 12px rgba(230,57,70,0.5);
}

.srv-or-2 {
  width: 140px; height: 140px;
  margin: -70px 0 0 -70px;
  border-color: rgba(255,255,255,0.08);
  animation: srvSpin 14s linear infinite reverse;
}

.srv-or-2::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #42a5f5;
  box-shadow: 0 0 10px rgba(66,165,245,0.4);
}

.srv-or-3 {
  width: 80px; height: 80px;
  margin: -40px 0 0 -40px;
  border-color: rgba(255,255,255,0.1);
  animation: srvSpin 8s linear infinite;
}

.srv-or-3::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #66bb6a;
  box-shadow: 0 0 10px rgba(76,175,80,0.4);
}

.srv-orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
}

.srv-orbit-center img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

@keyframes srvSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Accent card */
.srv-card-accent {
  border-color: rgba(230, 57, 70, 0.15);
  background: linear-gradient(145deg, rgba(230,57,70,0.04), var(--bg-card));
}

/* ===== PROCESS TIMELINE ===== */
.srv-process {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.srv-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.srv-timeline-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.06);
}

.srv-timeline-glow {
  position: absolute;
  left: 27px;
  top: -30px;
  width: 4px;
  height: 60px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-red), transparent);
  animation: srvTimelineGlow 5s ease-in-out infinite;
}

@keyframes srvTimelineGlow {
  0% { top: -60px; }
  100% { top: calc(100% + 60px); }
}

.srv-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 0 0 48px 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.srv-step.revealed {
  opacity: 1;
  transform: translateX(0);
}

.srv-step:last-child {
  padding-bottom: 0;
}

.srv-step-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.srv-step-dot span {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-red);
}

.srv-step:hover .srv-step-dot {
  border-color: var(--accent-red);
  background: rgba(230, 57, 70, 0.1);
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(230, 57, 70, 0.2);
}

.srv-step-content {
  padding-top: 12px;
}

.srv-step-content h4 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.srv-step-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.srv-cta {
  padding: 120px 0;
}

.srv-cta-box {
  position: relative;
  text-align: center;
  padding: 80px 60px;
  border-radius: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.srv-cta-box.revealed {
  opacity: 1;
  transform: translateY(0);
}

.srv-cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(circle, rgba(230,57,70,0.12), transparent 70%);
  pointer-events: none;
}

.srv-cta-box h2 {
  font-family: var(--font-primary);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.srv-cta-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.srv-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .srv-card-wide {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
  .srv-card-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .srv-hero-title {
    font-size: 2.5rem;
  }
  .srv-grid {
    grid-template-columns: 1fr;
  }
  .srv-card-wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .srv-section-header h2,
  .srv-cta-box h2 {
    font-size: 2rem;
  }
  .srv-cta-box {
    padding: 50px 30px;
  }
  .srv-floating-tags {
    gap: 8px;
  }
  .srv-ftag {
    padding: 8px 16px;
    font-size: 0.72rem;
  }
}
