/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: linear-gradient(145deg, #0b0b0b, #121212);
  color: #ffff;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Particle Background */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none; /* clicks pass through */
  background: transparent;
}

/* Header */
header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  user-select: none;
}

header h1 {
  font-size: 2rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: #fdfdfd;
  text-transform: uppercase;
}

/* Layout */
section ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 20px 1rem;
  max-width: 100%;
}

section li {
  background: linear-gradient(135deg, #00ff54, #15c6b1);
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(60px);
  opacity: 0;
  animation: slideUp 0.8s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  user-select: none;
  will-change: transform;
}

section li:hover,
section li:focus-visible {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 24px #0dc47b80;
  outline-offset: 3px;
  outline: 2px solid #0dc47b;
}

section li img {
  max-width: 60px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
  pointer-events: none;
  user-select: none;
}

section li:hover img,
section li:focus-visible img {
  transform: scale(1.1);
}

section figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

section li figcaption {
  font-size: 0.9rem;
  font-weight: 400;
  color: #fff;
}

/* Animation Delays */
section li:nth-child(1) { animation-delay: 0.2s; }
section li:nth-child(2) { animation-delay: 0.4s; }
section li:nth-child(3) { animation-delay: 0.6s; }
section li:nth-child(4) { animation-delay: 0.8s; }
section li:nth-child(5) { animation-delay: 1s; }
section li:nth-child(6) { animation-delay: 1.2s; }
section li:nth-child(7) { animation-delay: 1.4s; }

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  color: #aaa;
  font-size: 0.85rem;
  border-top: 1px solid #222;
  user-select: none;
}

/* Responsive */
@media (min-width: 600px) {
  header h1 {
    font-size: 2.5rem;
    letter-spacing: 4px;
  }

  section ul {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 960px;
    margin: 0 auto;
  }

  section li img {
    max-width: 80px;
  }

  section li figcaption {
    font-size: 1rem;
  }

  footer {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.25rem;
  }

  section ul {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  section li {
    padding: 12px;
  }

  section li img {
    max-width: 48px;
  }

  section li figcaption {
    font-size: 0.85rem;
  }

  footer {
    font-size: 0.7rem;
  }
}
