/* ==========================================================================
   VirtualFactory — Retro Minecraft Theme
   Font: Press Start 2P | Palette: dark industrial + orange/copper + cyan glow
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  /* Background tones */
  --bg-darkest: #0d0d1a;
  --bg-dark: #1a1a2e;
  --bg-mid: #232340;
  --bg-card: #16213e;
  --bg-card-hover: #1c2a4a;

  /* Accent: orange / copper (from logo gear) */
  --accent-orange: #e87f24;
  --accent-copper: #c96a1a;
  --accent-copper-dim: #8b4513;

  /* Accent: cyan glow (from logo data particles) */
  --accent-cyan: #00e5ff;
  --accent-cyan-dim: #007a8a;
  --accent-cyan-glow: rgba(0, 229, 255, 0.3);

  /* Text */
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a82;

  /* Borders */
  --border-color: #2a2a4a;
  --border-glow: rgba(0, 229, 255, 0.15);

  /* Misc */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 20px rgba(0, 229, 255, 0.2), 0 0 40px rgba(0, 229, 255, 0.1);
  --shadow-glow-orange: 0 0 20px rgba(232, 127, 36, 0.2), 0 0 40px rgba(232, 127, 36, 0.1);

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Font */
  --font-pixel: 'Press Start 2P', monospace;
  --font-mono: 'Courier New', Courier, monospace;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-pixel);
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Pixelated background noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0, 229, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(232, 127, 36, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(0, 229, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-pixel);
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.1rem;
}

h3 {
  font-size: 0.85rem;
}

h4 {
  font-size: 0.75rem;
}

p {
  font-size: 0.65rem;
  line-height: 2;
  color: var(--text-secondary);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover {
  color: var(--accent-orange);
  text-shadow: 0 0 8px rgba(232, 127, 36, 0.4);
}

/* --- Utility Classes --- */
.text-orange {
  color: var(--accent-orange);
}

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

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

.glow-cyan {
  text-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-cyan-dim);
}

.glow-orange {
  text-shadow: 0 0 10px var(--accent-orange), 0 0 20px var(--accent-copper);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  padding: 12px 24px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--accent-orange);
  color: var(--bg-darkest);
  border-color: var(--accent-orange);
}

.btn-primary:hover {
  background: var(--accent-copper);
  border-color: var(--accent-copper);
  box-shadow: var(--shadow-glow-orange);
  color: var(--bg-darkest);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: var(--shadow-glow-cyan);
  color: var(--accent-cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.btn-ghost:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan-dim);
  box-shadow: var(--shadow-card), var(--shadow-glow-cyan);
  transform: translateY(-2px);
}

/* --- Tags / Badges --- */
.tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-mid);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-orange {
  border-color: var(--accent-copper-dim);
  color: var(--accent-orange);
  background: rgba(232, 127, 36, 0.1);
}

.tag-cyan {
  border-color: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan-dim);
}

/* --- Selection --- */
::selection {
  background: var(--accent-cyan-dim);
  color: var(--text-primary);
}

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

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 5px var(--accent-cyan-glow);
  }
  50% {
    box-shadow: 0 0 20px var(--accent-cyan-glow), 0 0 40px rgba(0, 229, 255, 0.1);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

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

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

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* --- Code / Mono blocks --- */
code, .mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--bg-mid);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
}

/* --- Dividers --- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-cyan-dim) 20%,
    var(--accent-cyan) 50%,
    var(--accent-cyan-dim) 80%,
    transparent
  );
  margin: var(--space-xl) 0;
  opacity: 0.4;
}

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

/* --- Section --- */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
  z-index: 1;
}

/* --- Image pixelation (for textures displayed as images) --- */
.pixelated {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}
