/*
 * FILE: css/services-v2.css
 * SERVICES SECTION — Clean equal-column grid
 */

/* ============================================================
   SERVICES SECTION
   ============================================================ */

#services.services {
  background: rgba(15, 21, 35, 0.8) !important;
  padding: 100px 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Isolated per-section glows removed — ambient lighting comes from body background */
#services.services::before,
#services.services::after {
  display: none !important;
}

/* Container */
#services .services-container {
  position: relative;
  z-index: 2;
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 24px !important;
}

/* Section header */
#services .section-title {
  font-size: 2.8rem !important;
  letter-spacing: -1px !important;
  margin-bottom: 12px !important;
}

#services .section-description {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  color: #8899AA !important;
  max-width: 600px !important;
  margin: 0 auto 60px !important;
}

/* ============================================================
   SERVICES GRID — 3 equal columns
   ============================================================ */
#services .services-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  align-items: stretch !important;
  gap: 24px !important;
}

/* ============================================================
   SERVICE CARD
   ============================================================ */
#services .service-card {
  background: #0F1523 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 14px !important;
  padding: 24px !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  /* No fixed heights — content drives height */
  min-height: unset !important;
  grid-column: unset !important;
  grid-row: unset !important;
  transition: transform 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease !important;
}

/* Left accent bar (on hover) */
#services .service-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 3px !important;
  height: 0 !important;
  background: #8B0000 !important;
  border-radius: 0 0 2px 2px !important;
  transition: height 0.4s ease !important;
  z-index: 1 !important;
}

/* Corner glow (on hover) */
#services .service-card::after {
  content: '' !important;
  position: absolute !important;
  top: -60px !important;
  right: -60px !important;
  width: 160px !important;
  height: 160px !important;
  background: radial-gradient(circle, rgba(232,0,28,0.12) 0%, transparent 70%) !important;
  border-radius: 50% !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
}

#services .service-card:hover::before {
  height: 60% !important;
}

#services .service-card:hover::after {
  opacity: 1 !important;
}

#services .service-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(232,0,28,0.35) !important;
  box-shadow:
    0 12px 32px rgba(0,0,0,0.4),
    0 0 0 1px rgba(232,0,28,0.1) !important;
}

/* ============================================================
   SERVICE ICON — uniform size across all cards
   ============================================================ */
#services .service-icon {
  width: 48px !important;
  height: 48px !important;
  background: rgba(232,0,28,0.12) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 18px !important;
  font-size: 1.3rem !important;
  color: #8B0000 !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s ease, background 0.3s ease !important;
  position: relative !important;
  z-index: 2 !important;
}

#services .service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg) !important;
  background: rgba(232,0,28,0.2) !important;
}

/* ============================================================
   SERVICE TITLE — uniform across all cards
   ============================================================ */
#services .service-title {
  font-family: 'Orbitron', monospace !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  color: #FFFFFF !important;
  margin-bottom: 14px !important;
  position: relative !important;
  z-index: 2 !important;
  animation: none !important;
}

#services .service-title::before,
#services .service-title::after {
  display: none !important;
}

/* ============================================================
   SERVICE FEATURES LIST — uniform bullet size
   ============================================================ */
#services .service-features {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

#services .service-features li {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: #8899AA !important;
  line-height: 1.6 !important;
  margin-bottom: 8px !important;
  padding-left: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: color 0.2s ease !important;
}

#services .service-features li:last-child {
  margin-bottom: 0 !important;
}

#services .service-card:hover .service-features li {
  color: #C8D8E8 !important;
}

/* Bullet icon — uniform 8px across all cards */
#services .service-features li i {
  color: #8B0000 !important;
  font-size: 8px !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

/* ============================================================
   DECORATIVE ELEMENTS
   ============================================================ */

/* Large background number */
.service-num {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-family: 'Orbitron', monospace;
  font-size: 56px;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  transition: color 0.3s ease;
}

#services .service-card:hover .service-num {
  color: rgba(232,0,28,0.06);
}

/* Tag chips */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.service-tag {
  background: rgba(232,0,28,0.08);
  border: 1px solid rgba(232,0,28,0.2);
  color: rgba(232,0,28,0.8);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 2 columns (481px – 768px) */
@media (max-width: 768px) {
  #services.services {
    padding: 72px 0 !important;
  }

  #services .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  #services .service-title {
    font-size: 14px !important;
  }
}

/* Mobile: 1 column (≤ 480px) */
@media (max-width: 480px) {
  #services.services {
    padding: 52px 0 !important;
  }

  #services .services-container {
    padding: 0 14px !important;
  }

  #services .section-title {
    font-size: 1.5rem !important;
    letter-spacing: 0 !important;
  }

  #services .section-description {
    font-size: 13px !important;
    margin: 0 auto 28px !important;
  }

  #services .services-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  #services .service-card {
    padding: 18px !important;
    border-radius: 12px !important;
  }

  #services .service-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.2rem !important;
    margin-bottom: 14px !important;
  }

  #services .service-title {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  #services .service-features li {
    font-size: 12px !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
  }

  .service-num {
    font-size: 40px !important;
  }
}

/* Very small phones (≤ 360px) */
@media (max-width: 360px) {
  #services.services {
    padding: 44px 0 !important;
  }

  #services .services-container {
    padding: 0 12px !important;
  }

  #services .section-title {
    font-size: 1.3rem !important;
  }

  #services .section-description {
    font-size: 12px !important;
    margin: 0 auto 22px !important;
  }

  #services .service-card {
    padding: 16px !important;
  }

  #services .service-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
    border-radius: 10px !important;
  }

  #services .service-features li {
    font-size: 11.5px !important;
  }
}
