/*
 * Global styling for the 2103 Services landing page.
 *
 * A dark theme is used throughout the page with vibrant accent colours
 * inspired by the neon glow of the original service icons. The grid
 * layout scales gracefully across devices using CSS grid with
 * auto-fitting columns. Each service card features a subtle gradient
 * border and smooth hover animations to invite interaction.
 */

:root {
  /* Colour palette */
  --bg-color: #0e132a;
  --card-bg: #090038;
  --card-hover-bg: #09003880;
  --text-color: #e5e9f0;
  --subtext-color: #a0aec0;
  --accent-start: #38bdf8; /* blue */
  --accent-end: #7c3aed; /* violet */
  --border-radius: 1rem;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

/* Header styles */
.page-header {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.page-header h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
}

/* The highlight class applies a gradient to part of the heading text */
.highlight {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.subtitle {
  color: var(--subtext-color);
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

/* Services grid */
.services-grid {
  display: grid;
  gap: 1.5rem;
  padding: 0 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Service card anchor */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  text-decoration: none;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem 1.25rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  color: var(--text-color);
  overflow: hidden;
  isolation: isolate;
}

/* Gradient border using pseudo-element */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

/* Icon container */
.service-card .icon {
  width: 94px;
  height: 94px;
  margin-bottom: 1rem;
  color: var(--accent-start);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card .icon svg {
  width: 100%;
  height: 100%;
}

/* Ensure uploaded PNG icons scale nicely within their container */
.service-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Service name */
.service-card .name {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-color);
}

/* Hover effects */
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(124, 58, 237, 0.5);
  background: var(--card-hover-bg);
}

.service-card:hover .icon {
  color: var(--accent-end);
}

.service-card:hover .name {
  color: var(--text-color);
}

/* Footer */
.page-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--subtext-color);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}