/* ===== Reset & Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden; /* prevent horizontal scroll flash */
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #000;
  color: white;
  display: flex;
  flex-direction: column;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #000;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.navbar .logo a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
}

.navbar .nav-links {
  margin-left: auto;
}

.navbar .nav-links a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  margin-left: 20px;
}

.navbar .nav-links a:hover {
  text-decoration: underline;
}

/* ===== Main Content ===== */
.main-content {
  flex: 1 0 auto; /* grow, allow scroll if content overflows */
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(270deg, #aa0000, #cc6600, #cccc00, #66cc66, #66cccc, #6666cc, #cc66cc, #aa0000);
  background-size: 2000% 2000%;
  animation: gradientCycle 60s linear infinite;
  color: white;
  padding: 100px 20px 60px;
  text-align: center;
}

/* Hero Title */
.hero h1 {
  font-size: 72px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.8);
  animation: titlePop 1.5s ease-out forwards;
  margin-bottom: 16px;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 28px;
  font-weight: 500;
  color: #fafafa;
  opacity: 0;
  transform: scale(0.8);
  animation: titlePop 1.5s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes titlePop {
  0% { opacity: 0; transform: scale(0.8); }
  60% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes gradientCycle {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px auto 80px;
  max-width: 1200px;
  padding: 0 20px;
}

/* Individual Cards */
.person-card {
  background-color: #111;
  color: white;
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 140, 255, 0.35), 0 0 40px rgba(0, 140, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.person-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(0, 140, 255, 0.55), 0 0 60px rgba(0, 140, 255, 0.25);
}

.card-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.5;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 0 15px rgba(80, 150, 255, 0.4);
}

/* ===== Sections ===== */
section {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

p {
  font-size: 16px;
  line-height: 1.6;
  color: #ddd;
}

a {
  color: #00bfff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
.site-footer {
  flex-shrink: 0;
  background-color: #111;
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  border-top: 1px solid #333;
  text-shadow: 0 0 8px rgba(80, 150, 255, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 42px;
  }
  .hero-subtitle {
    font-size: 20px;
  }
  .card-grid {
    gap: 20px;
  }
}

.hero {
  position: relative;
  width: 100%;
  height: 500px; /* adjust as needed */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

#hyperspeed-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* behind text */
}

.hero h1,
.hero-subtitle {
  position: relative;
  z-index: 1; /* above canvas */
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}
