@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Bungee+Shade&family=Press+Start+2P&family=Noto+Sans+SC:wght@400;700;900&display=swap');

:root {
  --hot-pink: #ff2d7b;
  --electric-blue: #00d4ff;
  --neon-green: #39ff14;
  --orange: #ff6b2b;
  --purple: #b44dff;
  --yellow: #ffe600;
  --dark: #1a1a2e;
  --darker: #0f0f1a;
  --light: #f5f5f5;
  --checker-size: 20px;
  --font-display: 'Bungee Shade', cursive;
  --font-heading: 'Bungee', cursive;
  --font-pixel: 'Press Start 2P', cursive;
  --font-body: 'Noto Sans SC', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--darker);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.7;
}

/* VHS Scanline Overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* Checkerboard Pattern */
.checker-bg {
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
  background-size: var(--checker-size) var(--checker-size);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--hot-pink);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--electric-blue);
  text-decoration: none;
  text-shadow: 0 0 10px var(--electric-blue);
  transition: all 0.3s;
}

.nav-logo:hover {
  color: var(--neon-green);
  text-shadow: 0 0 20px var(--neon-green);
}

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

.nav-links a {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  transition: all 0.3s;
  text-transform: uppercase;
}

.nav-links a:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 15px rgba(255, 230, 0, 0.3);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--hot-pink) 60deg,
    transparent 120deg,
    var(--electric-blue) 180deg,
    transparent 240deg,
    var(--neon-green) 300deg,
    transparent 360deg
  );
  opacity: 0.05;
  animation: rotate-bg 20s linear infinite;
}

@keyframes rotate-bg {
  to { transform: rotate(360deg); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  color: var(--hot-pink);
  text-shadow:
    4px 4px 0 var(--electric-blue),
    8px 8px 0 rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: glitch-text 3s infinite;
}

@keyframes glitch-text {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 2px); }
  94% { transform: translate(2px, -2px); }
  96% { transform: translate(-1px, -1px); }
  98% { transform: translate(1px, 1px); }
}

.hero-subtitle {
  font-family: var(--font-pixel);
  font-size: clamp(0.6rem, 2vw, 1rem);
  color: var(--neon-green);
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px var(--neon-green);
}

/* ===== CARD GRID ===== */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem;
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: block;
  border: 3px solid transparent;
}

.card:hover {
  transform: translateY(-10px) rotate(-1deg) scale(1.03);
  border-color: var(--yellow);
  box-shadow:
    0 20px 60px rgba(255, 45, 123, 0.3),
    0 0 30px rgba(255, 230, 0, 0.2);
}

.card-inner {
  padding: 3rem 2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.card-skating .card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.card-skateboard .card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #4a1942 100%);
}

.card-bmx .card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #1b3a2e 50%, #0f4a2e 100%);
}

.card-bmx .card-title {
  color: var(--neon-green);
}

.card-bmx .card-badge {
  background: var(--neon-green);
  color: var(--dark);
}

.card-icon {
  font-size: 5rem;
  position: absolute;
  top: 2rem;
  right: 2rem;
  opacity: 0.3;
  transition: all 0.4s;
}

.card:hover .card-icon {
  opacity: 0.7;
  transform: rotate(15deg) scale(1.2);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--electric-blue);
  margin-bottom: 0.5rem;
}

.card-skateboard .card-title {
  color: var(--purple);
}

.card-desc {
  font-size: 0.9rem;
  color: rgba(245, 245, 245, 0.7);
  line-height: 1.6;
}

.card-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.card-skating .card-badge {
  background: var(--electric-blue);
  color: var(--dark);
}

.card-skateboard .card-badge {
  background: var(--purple);
  color: var(--light);
}

/* ===== PAGE SECTIONS ===== */
.page-header {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 3rem;
  position: relative;
}

.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin-bottom: 1rem;
}

.page-header-title.skating {
  color: var(--electric-blue);
  text-shadow: 3px 3px 0 var(--hot-pink);
}

.page-header-title.skateboard {
  color: var(--purple);
  text-shadow: 3px 3px 0 var(--orange);
}

.page-header-title.bmx {
  color: var(--neon-green);
  text-shadow: 3px 3px 0 var(--electric-blue);
}

.page-header-sub {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green);
}

/* ===== CONTENT SECTIONS ===== */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-number {
  font-family: var(--font-display);
  font-size: 4rem;
  opacity: 0.15;
  position: absolute;
  top: -1rem;
  left: -1rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.section-badge {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 5px currentColor; }
  50% { box-shadow: 0 0 20px currentColor; }
}

.badge-blue { background: var(--electric-blue); color: var(--dark); }
.badge-pink { background: var(--hot-pink); color: var(--light); }
.badge-green { background: var(--neon-green); color: var(--dark); }
.badge-orange { background: var(--orange); color: var(--dark); }
.badge-purple { background: var(--purple); color: var(--light); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--light);
}

.section-content {
  padding-left: 1rem;
  border-left: 3px solid rgba(255, 255, 255, 0.1);
}

.section-content p {
  margin-bottom: 1.2rem;
  color: rgba(245, 245, 245, 0.85);
  font-size: 1rem;
}

/* Skill Cards */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.skill-card {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.5s;
}

.skill-card:hover::before {
  left: 100%;
}

.skill-card:hover {
  border-color: var(--electric-blue);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.skill-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.6);
  line-height: 1.6;
}

.skill-level {
  display: flex;
  gap: 4px;
  margin-top: 0.8rem;
}

.skill-level span {
  width: 20px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.skill-level span.active {
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
}

/* Tip Box */
.tip-box {
  background: linear-gradient(135deg, rgba(255, 45, 123, 0.1), rgba(0, 212, 255, 0.1));
  border: 2px solid var(--hot-pink);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.tip-box::before {
  content: 'TIP';
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  position: absolute;
  top: -0.7rem;
  left: 1rem;
  background: var(--hot-pink);
  color: var(--light);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.tip-box p {
  color: rgba(245, 245, 245, 0.9);
  font-size: 0.9rem;
}

/* Training Schedule */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.85rem;
}

.schedule-table th {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  text-align: left;
  color: var(--electric-blue);
  border-bottom: 2px solid var(--electric-blue);
}

.schedule-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(245, 245, 245, 0.75);
}

.schedule-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--light);
}

/* ===== GEOMETRIC DECORATIONS ===== */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  border: 3px solid;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.geo-triangle {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 50px solid;
  opacity: 0.08;
  animation: float 8s ease-in-out infinite;
}

/* ===== DATA SECTION (Index) ===== */
.data-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.data-section-inner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.data-section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--electric-blue);
  margin-bottom: 0.5rem;
}

.data-section-desc {
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.5);
  margin-bottom: 1.5rem;
}

.data-section-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.data-section-btns .data-btn {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 245, 245, 0.7);
  cursor: pointer;
  transition: all 0.3s;
}

.data-section-btns .data-export:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.2);
}

.data-section-btns .data-import:hover {
  border-color: var(--electric-blue);
  color: var(--electric-blue);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 3px solid rgba(255, 255, 255, 0.05);
  margin-top: 4rem;
}

.footer-text {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: rgba(245, 245, 245, 0.4);
}

.footer-text span {
  color: var(--hot-pink);
}

/* ===== GLITCH EFFECT ===== */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--electric-blue);
  animation: glitch-1 2s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
  color: var(--hot-pink);
  animation: glitch-2 3s infinite linear alternate-reverse;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%, 95% { transform: translate(0); }
  96% { transform: translate(-3px, 0); }
  97% { transform: translate(3px, 0); }
  98% { transform: translate(-1px, 0); }
  99% { transform: translate(1px, 0); }
}

@keyframes glitch-2 {
  0%, 95% { transform: translate(0); }
  96% { transform: translate(3px, 0); }
  97% { transform: translate(-3px, 0); }
  98% { transform: translate(1px, 0); }
  99% { transform: translate(-1px, 0); }
}

/* ===== NOISE TEXTURE ===== */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav {
    padding: 0.8rem 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.5rem;
    padding: 0.4rem 0.6rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .schedule-table {
    font-size: 0.75rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.6rem;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--darker);
}

::-webkit-scrollbar-thumb {
  background: var(--hot-pink);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--electric-blue);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hot-pink), var(--electric-blue), var(--neon-green));
  z-index: 10000;
  transition: width 0.1s;
}
