:root {
  --obsidian: #1a1a2e;
  --obsidian-light: #22223a;
  --enchant: #6c3bb5;
  --enchant-dark: #4a2880;
  --ender: #00d4aa;
  --nether: #e74c3c;
  --nether-orange: #ff6b35;
  --gold: #f0c040;
  --stone: #4a4a5a;
}

/* Nether theme overrides */
body.nether-theme {
  --enchant: #e74c3c;
  --enchant-dark: #a83229;
  --ender: #ff6b35;
}

body.nether-theme .enchant-text { color: #e74c3c !important; }
body.nether-theme .ender-text { color: #ff6b35 !important; }
body.nether-theme .bg-enchant { background-color: #e74c3c !important; }
body.nether-theme .bg-ender { background-color: #ff6b35 !important; }
body.nether-theme .border-enchant { border-color: #e74c3c !important; }
body.nether-theme .border-ender { border-color: #ff6b35 !important; }
body.nether-theme .glow-title { text-shadow: 0 0 10px #e74c3c, 0 0 30px #e74c3c55, 0 0 60px #e74c3c33 !important; }
body.nether-theme .glow-ender { text-shadow: 0 0 10px #ff6b35, 0 0 20px #ff6b3555 !important; }
body.nether-theme .shadow-enchant\/30 { --tw-shadow-color: #e74c3c4d !important; }
body.nether-theme .hero-section { background: linear-gradient(180deg, #2a1010 0%, #1a1a2e 60%, #1a1a2e 100%) !important; }
body.nether-theme .nav-glow { box-shadow: 0 2px 20px #e74c3c33 !important; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb {
  background: var(--stone);
  border: 2px solid var(--obsidian);
  image-rendering: pixelated;
}
::-webkit-scrollbar-thumb:hover { background: var(--enchant); }

/* Pixel border pattern */
.pixel-border {
  border-image: repeating-linear-gradient(
    90deg,
    var(--enchant) 0px, var(--enchant) 4px,
    transparent 4px, transparent 8px
  ) 4;
  border-width: 4px;
  border-style: solid;
}

.pixel-border-top {
  border-top: 4px solid;
  border-image: repeating-linear-gradient(
    90deg,
    var(--enchant) 0px, var(--enchant) 8px,
    var(--stone) 8px, var(--stone) 16px
  ) 4;
}

/* Glow animations */
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 10px #6c3bb5, 0 0 30px #6c3bb555, 0 0 60px #6c3bb533; }
  50% { text-shadow: 0 0 15px #6c3bb5, 0 0 40px #6c3bb577, 0 0 80px #6c3bb544; }
}

.glow-title {
  animation: glowPulse 3s ease-in-out infinite;
  text-shadow: 0 0 10px #6c3bb5, 0 0 30px #6c3bb555, 0 0 60px #6c3bb533;
}

@keyframes glowEnder {
  0%, 100% { text-shadow: 0 0 10px #00d4aa, 0 0 20px #00d4aa55; }
  50% { text-shadow: 0 0 15px #00d4aa, 0 0 30px #00d4aa77; }
}

.glow-ender {
  animation: glowEnder 2s ease-in-out infinite;
}

/* Floating particles */
@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatUp linear infinite;
}

/* Splash text rotation */
@keyframes splashBounce {
  0%, 100% { transform: rotate(-15deg) scale(1); }
  50% { transform: rotate(-15deg) scale(1.1); }
}

.splash-text {
  animation: splashBounce 1.5s ease-in-out infinite;
  transform-origin: center center;
}

/* Button glow */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, var(--ender), var(--enchant), var(--ender));
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-glow:hover::before { opacity: 1; }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3); }

/* Card hover */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 59, 181, 0.2);
}

/* Accordion animation */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-content.open {
  max-height: 500px;
}

/* Fade in up animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Hamburger menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}

/* Creeper hover */
@keyframes creeperHiss {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1) rotate(-5deg); }
  50% { transform: scale(1.2); }
  75% { transform: scale(1.1) rotate(5deg); }
}
.creeper-hover:hover {
  animation: creeperHiss 0.5s ease-in-out;
}

/* Selection color */
::selection {
  background: #6c3bb577;
  color: #00d4aa;
}

/* Tab active indicator */
.tab-active {
  position: relative;
}
.tab-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ender);
  border-radius: 2px;
}

/* Pixelated image rendering */
.pixel-render {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Copy notification */
@keyframes copyFlash {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}
.copy-flash {
  animation: copyFlash 1.5s ease-out forwards;
}

html { scroll-behavior: smooth; }

/* Nav glow */
.nav-glow {
  box-shadow: 0 2px 20px #6c3bb533;
}