:root {
  --neon-cyan: #00f3ff;
  --neon-blue: #0066ff;
  --neon-purple: #bc13fe;
  --neon-pink: #ff007f;
  --bg-color: #050510;
  --card-bg: rgba(5, 10, 25, 0.7);
  --text-main: #b0c4de;
  --text-light: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'DotGothic16', monospace;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  max-width: 100vw;
  background-image: 
    linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

h1, h2, h3, h4 {
  font-family: 'DotGothic16', monospace;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 243, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--text-light);
  text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-blue);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* HERO SECTION - PARALLAX */
.hero-wrapper {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--bg-color) 100%);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-color: #000;
  z-index: 0;
}

.hero-bg canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: 'Press Start 2P', 'VT323', sans-serif;
  font-size: 4rem;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  margin-bottom: 2rem;
  text-transform: none;
}

.hero-content p {
  font-family: 'DotGothic16', monospace;
  font-size: 1.1rem;
  white-space: nowrap;
  margin: 0 auto;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  font-weight: 500;
  letter-spacing: 2px;
}

/* SCROLL DOWN INDICATOR */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  z-index: 10;
  text-decoration: none;
}

.scroll-down span {
  position: absolute;
  top: 25px;
  left: 23px;
  width: 4px;
  height: 4px;
  background-color: #ffffff;
  border: none;
  margin: 0;
  box-shadow: 
    -4px -4px 0 #ffffff, 4px -4px 0 #ffffff,
    -8px -8px 0 #ffffff, 8px -8px 0 #ffffff,
    -12px -12px 0 #ffffff, 12px -12px 0 #ffffff;
  transform: translateY(-30px) scale(0.5);
  opacity: 0;
}

.scroll-down span:nth-child(1) {
  animation: arrow-leader 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.scroll-down span:nth-child(2) {
  animation: arrow-follower 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes arrow-leader {
  0%, 5% {
    opacity: 0;
    transform: translateY(-30px) scale(0.5);
  }
  25%, 60% {
    opacity: 0.6;
    transform: translateY(0) scale(1);
  }
  80%, 100% {
    opacity: 0;
    transform: translateY(30px) scale(0.5);
  }
}

@keyframes arrow-follower {
  0%, 15% {
    opacity: 0;
    transform: translateY(-30px) scale(0.5);
  }
  35%, 70% {
    opacity: 0.8;
    transform: translateY(0) scale(1);
  }
  90%, 100% {
    opacity: 0;
    transform: translateY(30px) scale(0.5);
  }
}

/* ROSTER SECTION */
.roster-section {
  position: relative;
  z-index: 10;
  padding: 6rem 2rem;
  max-width: 95%;
  margin: 0 auto;
}

.section-title {
  font-family: 'Press Start 2P', 'DotGothic16', monospace !important;
  text-align: center;
  font-size: 4rem;
  margin-bottom: 2.5rem;
  position: relative;
  font-weight: normal;
  letter-spacing: 6px;
  -webkit-font-smoothing: antialiased;
  font-style: italic;
  transform: skewX(-8deg);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem;
}

/* TEAM MEMBER CARD - CYBERPUNK */
.member-card {
  background: var(--card-bg);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

/* TIKTOK GLITCH HOVER EFFECT */
.member-card:hover {
  animation: tiktok-card-glitch 2s forwards step-end;
  box-shadow: 3px 3px 0 rgba(0, 243, 255, 0.8), -3px -3px 0 rgba(255, 0, 80, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes tiktok-card-glitch {
  0% { transform: translate(0); box-shadow: 3px 3px 0 rgba(0, 243, 255, 0.8), -3px -3px 0 rgba(255, 0, 80, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5); }
  
  /* BURST 1 (Fast) */
  2% { transform: translate(-6px, 8px); box-shadow: 12px -5px 0 rgba(0, 243, 255, 0.9), -12px 5px 0 rgba(255, 0, 80, 0.9), 0 10px 30px rgba(0, 0, 0, 0.5); }
  4% { transform: translate(8px, -4px); box-shadow: -5px 12px 0 rgba(0, 243, 255, 0.9), 5px -12px 0 rgba(255, 0, 80, 0.9), 0 10px 30px rgba(0, 0, 0, 0.5); }
  6% { transform: translate(-4px, -8px); box-shadow: 10px 12px 0 rgba(0, 243, 255, 0.9), -10px -12px 0 rgba(255, 0, 80, 0.9), 0 10px 30px rgba(0, 0, 0, 0.5); }
  8%, 100% { transform: translate(0); box-shadow: 3px 3px 0 rgba(0, 243, 255, 0.8), -3px -3px 0 rgba(255, 0, 80, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5); }
}

.member-card:hover img {
  animation: tiktok-img-glitch 2s forwards step-end;
}

@keyframes tiktok-img-glitch {
  0% { filter: contrast(120%) saturate(150%); transform: scale(1.02) translate(0); }
  
  2% { filter: contrast(160%) saturate(220%) hue-rotate(25deg); transform: scale(1.05) translate(-6px, 3px); }
  4% { filter: contrast(90%) saturate(120%) hue-rotate(-25deg); transform: scale(1.05) translate(8px, -5px); }
  6% { filter: contrast(150%) saturate(200%); transform: scale(1.05) translate(-4px, 6px); }
  8%, 100% { filter: contrast(120%) saturate(150%); transform: scale(1.02) translate(0); }
}

.member-card:hover .card-content h3, 
.member-card:hover .role, 
.member-card:hover .detail-value {
  animation: tiktok-text-glitch 2s forwards step-end;
}

@keyframes tiktok-text-glitch {
  0% { text-shadow: 2px 1px 0 rgba(0,243,255,0.6), -2px -1px 0 rgba(255,0,80,0.6), 2px 2px 8px rgba(0,0,0,0.8) !important; }

  2% { text-shadow: 4px -1px 0 rgba(0,243,255,0.8), -4px 1px 0 rgba(255,0,80,0.8), 2px 2px 8px rgba(0,0,0,0.8) !important; }
  4% { text-shadow: -2px 4px 0 rgba(0,243,255,0.8), 2px -4px 0 rgba(255,0,80,0.8), 2px 2px 8px rgba(0,0,0,0.8) !important; }
  6% { text-shadow: 3px 3px 0 rgba(0,243,255,0.8), -3px -3px 0 rgba(255,0,80,0.8), 2px 2px 8px rgba(0,0,0,0.8) !important; }
  8%, 100% { text-shadow: 2px 1px 0 rgba(0,243,255,0.6), -2px -1px 0 rgba(255,0,80,0.6), 2px 2px 8px rgba(0,0,0,0.8) !important; }
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 0;
  padding: 2px;
  background: linear-gradient(45deg, var(--neon-cyan), transparent, var(--neon-blue));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 10;
}

.member-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 243, 255, 0.3);
  border-color: transparent;
}

.member-card:hover::before {
  opacity: 1;
}

.card-image-wrapper {
  height: 500px;
  overflow: hidden;
  position: relative;
}

/* Add a scanline effect to images */
.card-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 3px 100%;
  z-index: 1;
  pointer-events: none;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: contrast(1.1) saturate(1.2);
}

.member-card:hover .card-image-wrapper img {
  transform: scale(1.1);
  filter: contrast(1.2) saturate(1.4);
}

.card-content {
  padding: 1.8rem;
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(5, 5, 16, 1) 50%, rgba(5, 5, 16, 0));
  margin-top: -100px;
}

.card-content h3 {
  font-family: 'Press Start 2P', 'DotGothic16', monospace !important;
  font-size: 1.6rem;
  margin: 0.5rem 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.9);
}

.role {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  border-radius: 0;
  font-size: 0.8rem;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  margin-bottom: 0.5rem;
}

.card-details {
  border-top: 1px solid rgba(0, 243, 255, 0.2);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.75rem;
  color: #ffffff;
  opacity: 0.7;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.detail-value {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid rgba(0, 243, 255, 0.2);
  background: rgba(5, 5, 16, 0.9);
  position: relative;
  z-index: 10;
}

/* SCROLL-DRIVEN ANIMATIONS */
@supports (animation-timeline: view()) and (animation-range: entry) {
  @keyframes parallax-bg {
    to {
      transform: translateY(20%);
    }
  }

  .hero-bg {
    animation: parallax-bg linear both;
    animation-timeline: scroll(root);
  }

  @keyframes parallax-text {
    to {
      transform: translateY(150px);
      opacity: 0;
    }
  }

  .hero-content {
    animation: parallax-text linear both;
    animation-timeline: scroll(root);
    animation-range: 0 80vh;
  }

  @keyframes reveal-card {
    from {
      opacity: 0;
      transform: translateY(100px) scale(0.9);
      filter: blur(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }

  .member-card {
    animation: reveal-card linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-card, .hero-bg, .hero-content {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .roster-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 0.9rem;
    white-space: normal;
    padding: 0 1rem;
  }
  .navbar {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  .logo {
    font-size: 1.5rem;
  }
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .section-title {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }
  .roster-section {
    padding: 3rem 1rem;
  }
  .roster-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .card-image-wrapper {
    height: 380px;
  }
}
