/**
 * SERVICES PAGE STYLES
 * Premium layout, cards, and typography
 */

/* ========================================
   HERO SECTION
   ======================================== */
.hero-services {
  background: radial-gradient(circle at top right, rgba(44, 109, 242, 0.1), transparent 40%),
    radial-gradient(circle at bottom left, rgba(24, 164, 168, 0.05), transparent 40%);
}

/* ========================================
   SERVICE STACK & BLOCKS
   ======================================== */
.services-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  position: relative;
  padding: var(--space-xl) 0;
}

/* Connecting Line */
.services-stack::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(44, 109, 242, 0.2) 10%,
      rgba(44, 109, 242, 0.2) 90%,
      transparent);
  display: none;
}

@media (min-width: 1024px) {
  .services-stack::before {
    display: block;
  }
}

.service-block {
  position: relative;
  padding-left: 0;
}

@media (min-width: 1024px) {
  .service-block {
    padding-left: var(--space-2xl);
  }
}

/* Number Marker */
.service-marker {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  border: 2px solid var(--accent-main);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-main);
  z-index: 2;
  box-shadow: 0 0 0 8px var(--bg-soft);
}

@media (min-width: 1024px) {
  .service-marker {
    display: flex;
  }
}

/* Header */
.service-header {
  max-width: 800px;
  margin-bottom: var(--space-xl);
}

.service-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(44, 109, 242, 0.1);
  color: var(--accent-main);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ========================================
   SERVICE GRID & CARDS
   ======================================== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-soft);
  padding: var(--space-lg);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform var(--duration-normal) var(--ease-primary),
    box-shadow var(--duration-normal) var(--ease-primary);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.9);
}

/* Top colored line */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-main), var(--accent-hover));
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.service-card:hover::after {
  opacity: 1;
}

/* Card Content */
.service-card h4 {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.service-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.service-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(44, 109, 242, 0.1);
  color: var(--accent-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.service-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-family: var(--font-mono, monospace);
}

/* ========================================
   APPROACH SECTION
   ======================================== */
.approach-section {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

/* Abstract Background Shapes */
.approach-bg-shape {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(44, 109, 242, 0.03), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.shape-1 {
  top: -200px;
  right: -200px;
}

.shape-2 {
  bottom: -200px;
  left: -200px;
}

.approach-container {
  position: relative;
  z-index: 1;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .approach-grid {
    grid-template-columns: 1fr 1.5fr;
    align-items: flex-start;
  }
}

.approach-intro {
  position: sticky;
  top: 100px;
}

.steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.approach-card {
  background: var(--bg-white);
  padding: var(--space-lg);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration-normal) var(--ease-primary);
}

.approach-card:hover {
  transform: translateY(-4px);
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.05);
  line-height: 1;
  margin-bottom: -1rem;
  position: relative;
  z-index: 0;
}

.approach-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-sm);
}

.approach-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}