/* ============================================
   ALIEN-OPERATIONS.AI — Services Section
   ============================================ */

.services-section {
  border-top: 1px solid rgba(57, 255, 20, 0.08);
}

.services-header {
  margin-bottom: 3.5rem;
}

.services-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--scan-teal);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.services-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: #fff;
}

.services-title em {
  font-style: normal;
  color: var(--alien-green);
  text-shadow: 0 0 10px var(--glow-green);
}

/* Desktop: 3x2 grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Mobile: horizontal scroll carousel */
@media (max-width: 767px) {
  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .services-grid::-webkit-scrollbar { display: none; }

  .services-grid .service-card {
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

/* Service card */
.service-card {
  background: var(--surface);
  border: 1px solid rgba(57, 255, 20, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

@media (min-width: 768px) {
  .service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(57, 255, 20, 0.35);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.08), 0 20px 40px rgba(0, 0, 0, 0.4);
  }
}

/* Card icon */
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(57, 255, 20, 0.25);
  background: rgba(57, 255, 20, 0.05);
  transition: all 0.4s ease;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--alien-green);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .service-icon {
  box-shadow: 0 0 20px var(--glow-green-mid), inset 0 0 10px var(--glow-green);
  transform: scale(1.1);
}

/* Icon colour variants */
.service-card[data-accent="teal"] .service-icon {
  border-color: rgba(0, 255, 208, 0.25);
  background: rgba(0, 255, 208, 0.05);
}
.service-card[data-accent="teal"] .service-icon svg { stroke: var(--scan-teal); }

.service-card[data-accent="amber"] .service-icon {
  border-color: rgba(255, 107, 0, 0.25);
  background: rgba(255, 107, 0, 0.05);
}
.service-card[data-accent="amber"] .service-icon svg { stroke: var(--hud-amber); }

/* Status badge */
.service-status {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--alien-green);
  border: 1px solid rgba(57, 255, 20, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  background: rgba(57, 255, 20, 0.05);
  opacity: 0.6;
}

/* Card content */
.service-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}

/* Expanded description (shown on hover desktop / tap mobile) */
.service-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
  opacity: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.service-card:hover .service-expand,
.service-card.expanded .service-expand {
  max-height: 100px;
  opacity: 1;
}

/* Card footer link — green glow pill style */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(57, 255, 20, 0.08);
  cursor: pointer;
}

.service-link-line {
  display: none;
}

.service-link-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--alien-green);
  border: 1px solid rgba(57, 255, 20, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: transparent;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.1);
}

.service-card:hover .service-link-text {
  background: rgba(57, 255, 20, 0.1);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
  color: #fff;
}

/* Mobile tap hint */
.services-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .services-scroll-hint { display: none; }
}
