/* ============================================
   SPYDEY OFFICIAL — Services Section
   services.css | Service Cards Grid
   ============================================ */

/* === SERVICES SECTION === */
.services {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Subtle top gradient separator */
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

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

/* === SERVICE CARD === */
.service-card {
  position: relative;
  padding: 48px 40px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition-smooth);
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: 0 0 30px var(--accent-red-glow),
              0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Red accent line on top */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-red-hover));
  transition: width var(--transition-slow);
}

.service-card:hover::before {
  width: 100%;
}

/* === NUMBER INDICATOR === */
.service-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0.04;
  line-height: 1;
  user-select: none;
  transition: opacity var(--transition-smooth);
}

.service-card:hover .service-number {
  opacity: 0.08;
}

[data-theme='light'] .service-number {
  opacity: 0.06;
}

[data-theme='light'] .service-card:hover .service-number {
  opacity: 0.1;
}

/* === SERVICE ICON === */
.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-red);
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  background: var(--accent-red-subtle);
  transition: all var(--transition-smooth);
  flex-shrink: 0;
}

.service-icon img,
.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  background: rgba(230, 57, 70, 0.15);
  box-shadow: 0 0 20px var(--accent-red-glow);
}

/* === SERVICE TEXT === */
.service-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.service-card:hover .service-title {
  color: var(--accent-red);
}

.service-description {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 360px;
}

/* === SERVICE ARROW / CTA === */
.service-arrow {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-smooth);
}

.service-arrow svg,
.service-arrow i {
  transition: transform var(--transition-smooth);
}

.service-card:hover .service-arrow {
  color: var(--accent-red);
}

.service-card:hover .service-arrow svg,
.service-card:hover .service-arrow i {
  transform: translateX(6px);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .service-card {
    padding: 36px 32px;
    min-height: 240px;
  }

  .service-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .service-title {
    font-size: 1.35rem;
  }

  .service-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 32px 28px;
    min-height: auto;
  }

  .service-number {
    font-size: 3rem;
  }

  .service-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  .service-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .service-card {
    padding: 28px 24px;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .service-title {
    font-size: 1.15rem;
  }

  .service-description {
    font-size: 0.88rem;
  }
}
