@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Dark Theme (Default) */
  --bg-primary: #020204;
  --bg-secondary: #0a0a15;
  --bg-tertiary: #141420;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #666680;
  
  /* Neon Colors */
  --neon-cyan: #00ffff;
  --neon-pink: #ff00ff;
  --neon-yellow: #ffff00;
  --neon-green: #00ff88;
  --neon-red: #ff0066;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00ffff 0%, #ff00ff 100%);
  --gradient-secondary: linear-gradient(45deg, #ff00ff 0%, #ffff00 100%);
  
  /* Shadows */
  --shadow-glow-cyan: 0 0 40px rgba(0, 255, 255, 0.4);
  --shadow-glow-pink: 0 0 40px rgba(255, 0, 255, 0.4);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8e8ec;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5e;
  --text-muted: #8a8a9e;
  
  --shadow-glow-cyan: 0 0 30px rgba(0, 180, 200, 0.3);
  --shadow-glow-pink: 0 0 30px rgba(200, 0, 180, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Grid Layout */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Flexbox */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

/* Typography */
.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-cyan {
  color: var(--neon-cyan);
}

.text-pink {
  color: var(--neon-pink);
}

.text-yellow {
  color: var(--neon-yellow);
}

.text-muted {
  color: var(--text-muted);
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-cyan);
  border-color: rgba(0, 255, 255, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.5rem;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid var(--neon-cyan);
  background: transparent;
  color: var(--neon-cyan);
  cursor: pointer;
  transition: all var(--transition-fast);
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn:hover {
  background: rgba(0, 255, 255, 0.2);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
  letter-spacing: 3px;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--bg-primary);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow-pink);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(2, 2, 4, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.9);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
}

.nav-logo {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 900;
  text-decoration: none;
  color: var(--neon-cyan);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--neon-cyan);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Section */
.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-xs);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.4); }
  50% { box-shadow: 0 0 40px rgba(0, 255, 255, 0.8); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glitch {
  0%, 100% { transform: skew(0); }
  20% { transform: skew(-2deg); }
  40% { transform: skew(2deg); }
  60% { transform: skew(-1deg); }
  80% { transform: skew(1deg); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease infinite;
}

.animate-glow {
  animation: glow 2s ease infinite;
}

.animate-float {
  animation: float 3s ease infinite;
}

.animate-glitch {
  animation: glitch 4s infinite;
}

/* Delay utilities */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Hidden by default for animations */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.visible {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .navbar-content {
    padding: var(--space-sm);
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-pink);
}

/* Theme Toggle */
.theme-toggle {
  width: 48px;
  height: 24px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition-normal);
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.theme-toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--neon-cyan);
  border-radius: 50%;
  top: 1px;
  left: 2px;
  transition: transform var(--transition-normal);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

[data-theme="light"] .theme-toggle::after {
  transform: translateX(24px);
  background: var(--neon-pink);
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.lang-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: rgba(0, 255, 255, 0.1);
}

.lang-btn:hover {
  color: var(--neon-cyan);
}

/* Icons */
.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  font-family: 'Orbitron', monospace;
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
  margin: var(--space-xl) 0;
}
