:root {
  --bg: #000000;
  --fg: #ffffff;
  --primary: #ff5c00;
  --muted: #888888;
  --border: #333333;
  --card: #0a0a0a;
  --font-sans: 'Anuphan', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  background-image:
    linear-gradient(rgba(255, 92, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 92, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 92, 0, 0.6) rgba(0, 0, 0, 0.6);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 92, 0, 0.8), rgba(255, 92, 0, 0.4));
  border: 1px solid rgba(255, 92, 0, 0.6);
  box-shadow: inset 0 0 6px rgba(255, 92, 0, 0.35);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 92, 0, 0.95), rgba(255, 92, 0, 0.6));
}

.font-mono {
  font-family: var(--font-mono);
}

.tech-card {
  background: var(--card);
  border: 1px solid var(--border);
  position: relative;
}

.tech-card.glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 92, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 92, 0, 0.12);
  pointer-events: none;
}

.tech-button {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: rgba(255, 92, 0, 0.08);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tech-button:hover {
  background: var(--primary);
  color: #fff;
}

.tech-input {
  background: #0a0a0a;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-mono);
}

.tech-input:focus {
  border-color: var(--primary);
  outline: none;
}

.scanline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

.float {
  animation: float 4s ease-in-out infinite;
}

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

@keyframes glowPulse {
  0% { box-shadow: 0 0 12px rgba(255, 92, 0, 0.15); }
  50% { box-shadow: 0 0 28px rgba(255, 92, 0, 0.35); }
  100% { box-shadow: 0 0 12px rgba(255, 92, 0, 0.15); }
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes scan {
  0% { left: -20%; }
  100% { left: 120%; }
}
