/* ============================================
   Portfolio Base CSS
   Dark professional creative theme with purple accents
   ============================================ */

/* ============================================
   CSS Custom Properties (OKLCH Colors)
   ============================================ */
:root {
  /* Background Colors - Deep Indigo Space */
  --bg-primary: oklch(13% 0.02 285);
  --bg-secondary: oklch(17% 0.03 285);
  --bg-tertiary: oklch(21% 0.04 285);

  /* Text Colors */
  --text-primary: oklch(98% 0.01 285);
  --text-secondary: oklch(75% 0.03 285);
  --text-muted: oklch(55% 0.04 285);

  /* Accent Colors (Unusual Electric Violet-Magenta) */
  --accent: oklch(72% 0.28 320);
  --accent-dim: oklch(45% 0.18 320);
  --accent-glow: oklch(72% 0.28 320 / 0.3);

  /* Border Colors */
  --border: oklch(25% 0.04 285);

/* Typography Variables - DISTINCTIVE FONTS (not from reject list) */
--font-display: 'Syne', 'TASA Orbiter', system-ui, sans-serif;
--font-body: 'TASA Orbiter', 'Familjen Grotesk', system-ui, sans-serif;

/* Text Scale - BOLD fluid scale */
--text-hero: clamp(2.5rem, 7vw, 4.5rem);
--text-h1: clamp(2rem, 5vw, 3.5rem);
--text-h2: clamp(1.5rem, 3vw, 2.5rem);
--text-h3: clamp(1.25rem, 2vw, 1.5rem);
--text-body: clamp(0.9375rem, 1vw, 1.0625rem);
--text-small: 0.875rem;
--text-tiny: 0.75rem;

  /* Spacing Variables - REFINED */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Other Variables */
  --container-max: 1200px;
  --container-padding: clamp(1.5rem, 5vw, 3rem);

  /* Transitions - SMOOTH */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border radius - SMALLER for modern tech feel */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 10px;
}

/* ============================================
   CSS Reset
   ============================================ */

/* Box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Reset margins and padding */
* {
  margin: 0;
  padding: 0;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Body base styles */
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove default margins from last children */
body > *:last-child {
  margin-bottom: 0;
}

/* Heading font override */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Buttons */
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Form elements */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

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

/* Accent text */
.text-accent {
  color: var(--accent);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
