/* Home sections: impact stats, services, recent experience and tech stack.
   Accent colors come from the theme palette and are set per item with --accent. */

.home-section {
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(212, 212, 255, 0.1);
}

/* Chips: size and style come from main.overrides.css */
.chips {
  margin: 0;
}

/* Impact stats */
#impact > .inner {
  padding-top: 3em;
  padding-bottom: 1em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin: 0;
  padding: 1.5em 1.25em;
  text-align: center;
  background: var(--card-bg);
  border-radius: 4px;
  border-top: solid 3px var(--accent);
}

.stat-value {
  font-size: 2.25em;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent);
}

.stat-label {
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.6;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
}

.service {
  padding: 2em;
  background: var(--card-bg);
  border-radius: 4px;
  border-top: solid 4px var(--accent);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75em;
  height: 2.75em;
  border-radius: 100%;
  border: solid 2px var(--accent);
  color: var(--accent);
  font-size: 1.1em;
}

.service h3 {
  margin: 0.9em 0 0.5em 0;
}

.service p {
  margin-bottom: 1.25em;
  font-size: 1em;
}

/* Recent experience */
.recent-company {
  margin-bottom: 1.5em;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
}

.recent {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  margin-bottom: 2em;
}

.recent-item {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  padding: 1.5em;
  color: inherit;
  background: var(--card-bg);
  border-bottom: 0;
  border-radius: 4px;
  border-top: solid 4px var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recent-item:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
}

.recent-date {
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.recent-name {
  font-size: 1.25em;
  color: #ffffff;
}

.recent-role {
  font-size: 0.9em;
  font-style: italic;
  opacity: 0.9;
}

/* Tech stack */
.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16em, 1fr));
  gap: 2em 2.5em;
}

.stack-group h4 {
  margin-bottom: 0.9em;
  font-size: 0.9em;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #9bf1ff;
}

/* Responsive */
@media screen and (max-width: 980px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .services,
  .recent {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .stats {
    gap: 1em;
  }

  .stat-value {
    font-size: 1.75em;
  }

  .service {
    padding: 1.5em;
  }
}
