/* ===================================
   PICKLEBALL BUDDY - CSS DESIGN SYSTEM
   Retro-Futuristic Neon Theme
   =================================== */

/* === ROOT VARIABLES === */
:root {
  /* Colors - Dark Backgrounds */
  --color-bg-primary: #0a0a1a;
  --color-bg-secondary: #1a0a2e;
  --color-bg-card: rgba(20, 10, 40, 0.8);

  /* Neon Colors */
  --color-cyan: #00f0ff;
  --color-magenta: #ff00ff;
  --color-yellow: #ffff00;
  --color-green: #00ff00;
  --color-orange: #ff6b35;
  --color-purple: #a855f7;
  --color-pink: #ff1493;

  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-accent: var(--color-cyan);
  --color-text-secondary: #b8b8d4;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-cyan), var(--color-magenta));
  --gradient-secondary: linear-gradient(135deg, var(--color-purple), var(--color-pink));
  --gradient-accent: linear-gradient(135deg, var(--color-yellow), var(--color-orange));

  /* Shadows & Glows */
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 40px rgba(0, 240, 255, 0.4);
  --glow-magenta: 0 0 20px rgba(255, 0, 255, 0.6), 0 0 40px rgba(255, 0, 255, 0.4);
  --glow-yellow: 0 0 20px rgba(255, 255, 0, 0.6), 0 0 40px rgba(255, 255, 0, 0.4);
  --glow-green: 0 0 20px rgba(0, 255, 0, 0.6), 0 0 40px rgba(0, 255, 0, 0.4);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* === THREE.JS CANVAS === */
#threejs-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ensure content is above Three.js canvas */
.section,
.animated-background,
.footer {
  position: relative;
  z-index: 1;
}

/* === ANIMATED BACKGROUND === */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 10, 26, 0.3) 0%, rgba(26, 10, 46, 0.3) 50%, rgba(42, 26, 78, 0.3) 100%);
  pointer-events: none;
}

/* Grid Floor */
.grid-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(0, 240, 255, 0.3) 25%, rgba(0, 240, 255, 0.3) 26%, transparent 27%, transparent 74%, rgba(0, 240, 255, 0.3) 75%, rgba(0, 240, 255, 0.3) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(0, 240, 255, 0.3) 25%, rgba(0, 240, 255, 0.3) 26%, transparent 27%, transparent 74%, rgba(0, 240, 255, 0.3) 75%, rgba(0, 240, 255, 0.3) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  background-position: center bottom;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: bottom;
  opacity: 0.5;
}

/* Horizon Glow */
.horizon-glow {
  position: absolute;
  bottom: 30%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-magenta), transparent);
  box-shadow: 0 0 30px var(--color-magenta), 0 0 60px var(--color-magenta);
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Stars */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* === TYPOGRAPHY === */
h1,
h2,
h3 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--glow-yellow);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-cyan);
  text-shadow: var(--glow-cyan);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: transparent;
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  background: var(--color-cyan);
  color: var(--color-bg-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.8), 0 0 60px rgba(0, 240, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-magenta);
  color: var(--color-magenta);
  box-shadow: var(--glow-magenta);
}

.btn-secondary:hover {
  background: var(--color-magenta);
  color: var(--color-bg-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 60px rgba(255, 0, 255, 0.6);
}

.btn-accent {
  background: var(--gradient-accent);
  border-color: var(--color-yellow);
  color: var(--color-bg-primary);
  box-shadow: var(--glow-yellow);
}

.btn-accent:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 0, 0.8), 0 0 60px rgba(255, 255, 0, 0.6);
}

/* === FORM FIELDS === */
.form-field {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(10, 10, 26, 0.6);
  border: 2px solid var(--color-cyan);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 1rem;
  transition: all var(--transition-normal);
  outline: none;
}

.form-field:focus {
  border-color: var(--color-magenta);
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

.form-field::placeholder {
  color: var(--color-text-secondary);
}

textarea.form-field {
  min-height: 150px;
  resize: vertical;
}

/* === CARDS === */
.card {
  background: var(--color-bg-card);
  border: 2px solid var(--color-cyan);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 240, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all var(--transition-slow);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--color-magenta);
  box-shadow: 0 10px 40px rgba(255, 0, 255, 0.4);
}

.card:hover::before {
  left: 100%;
}

/* === ICONS === */
.icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-normal);
  border: 2px solid;
}

.icon-cyan {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: var(--glow-cyan);
}

.icon-magenta {
  border-color: var(--color-magenta);
  color: var(--color-magenta);
  box-shadow: var(--glow-magenta);
}

.icon-yellow {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
  box-shadow: var(--glow-yellow);
}

.icon:hover {
  transform: scale(1.2) rotate(10deg);
}

/* === LAYOUT === */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* === NAVIGATION === */
.nav {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.nav-link {
  color: var(--color-cyan);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-magenta);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-magenta);
  text-shadow: var(--glow-magenta);
}

.nav-link:hover::after {
  width: 100%;
}

/* === CHARACTER ANIMATIONS === */
.character {
  position: relative;
  transition: all var(--transition-slow);
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.6));
}

.character img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Float Animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.character-float {
  animation: float 3s ease-in-out infinite;
}

/* Bounce Animation */
@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}

.character-bounce {
  animation: bounce 1s ease-in-out;
}

/* Wiggle Animation */
@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-5deg);
  }

  75% {
    transform: rotate(5deg);
  }
}

.character-wiggle {
  animation: wiggle 0.5s ease-in-out;
}

/* Scale Pulse */
@keyframes scale-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.character-pulse {
  animation: scale-pulse 1s ease-in-out;
}

/* Spin */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.character-spin {
  animation: spin 1s ease-in-out;
}

/* Slide In */
@keyframes slide-in {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.character-slide {
  animation: slide-in 0.6s ease-out;
}

/* === HOVER EFFECTS FOR SECTIONS === */
.section-hover {
  transition: all var(--transition-normal);
}

.section-hover:hover .character {
  transform: scale(1.1);
  filter: drop-shadow(0 0 40px rgba(255, 0, 255, 0.8));
}

/* === SOCIAL ICONS === */
.social-icons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
}

.social-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  text-decoration: none;
  border: 3px solid;
  transition: all var(--transition-normal);
}

.social-instagram {
  border-color: var(--color-pink);
  color: var(--color-pink);
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
}

.social-tiktok {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.social-youtube {
  border-color: var(--color-orange);
  color: var(--color-orange);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.social-icon:hover {
  transform: scale(1.2) translateY(-5px);
  box-shadow: 0 0 40px currentColor;
}

/* === FOOTER === */
.footer {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(10, 10, 26, 0.8);
  border-top: 2px solid var(--color-cyan);
}

.footer-text {
  color: var(--color-cyan);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .section {
    min-height: auto;
    padding: var(--spacing-lg) 0;
  }

  .social-icons {
    gap: var(--spacing-sm);
  }

  .social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* === UTILITY CLASSES === */
.text-center {
  text-align: center;
}

.text-glow-cyan {
  text-shadow: var(--glow-cyan);
}

.text-glow-magenta {
  text-shadow: var(--glow-magenta);
}

.text-glow-yellow {
  text-shadow: var(--glow-yellow);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}
.myvideo{
  background-image: url('asd.mp4');
  height: 40vh;
  width: 100%;
  z-index: 100;
}