/* ============================================
   Terminal Portfolio - Base Styles
   Global CSS (non-scoped)
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
  /* Color Palette - Tokyo Night inspired */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-elevated: #1f2428;

  --text-primary: #c9d1d9;
  --text-dim: #6e7681;
  --text-muted: #484f58;

  /* Terminal Colors */
  --terminal-green: #3fb950;
  --terminal-cyan: #58a6ff;
  --terminal-yellow: #d29922;
  --terminal-red: #f85149;
  --terminal-purple: #a371f7;
  --terminal-orange: #f0883e;

  /* Accent */
  --accent: var(--terminal-cyan);
  --accent-glow: rgba(88, 166, 255, 0.4);

  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Monaco', 'Consolas', monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;

  /* Borders */
  --border-muted: rgba(110, 118, 129, 0.3);
  --border-subtle: rgba(110, 118, 129, 0.15);

  /* Animations */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
}

/* ============================================
   CSS Reset - Minimalist
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* Selection */
::selection {
  background-color: rgba(63, 185, 80, 0.3);
  color: var(--terminal-green);
}

/* ============================================
   Keyframe Animations
   ============================================ */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* ============================================
   Scrollbar Styling (Global)
   ============================================ */
.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
}

.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: var(--text-muted);
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-dim);
}

/* ============================================
   Utility Classes
   ============================================ */

/* Text glow effect */
.glow {
  text-shadow: 0 0 2px currentColor;
}

/* Display flex utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
  :root {
    --font-size-sm: 0.8125rem;
    --space-8: 1.5rem;
  }
}
