/* ============================================================
   VALEZART — Design System
   Static Portfolio | JetBrains Mono | Dark Cinematic Theme
   ============================================================ */

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

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-bg: #0a0a0a;
  --color-bg-elevated: #111111;
  --color-bg-card: #141414;
  --color-bg-header: rgba(10, 10, 10, 0.85);
  --color-text: #d4d4d4;
  --color-text-muted: #888888;
  --color-text-bright: #ffffff;
  --color-accent: #a78bfa;
  --color-accent-2: #60a5fa;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  /* Gradient — matches original VALEZART gradient */
  --gradient-text: linear-gradient(90deg, #bf52ff, #47ebff);
  --gradient-subtle: linear-gradient(90deg, rgba(191, 82, 255, 0.1), rgba(71, 235, 255, 0.1));

  /* Typography */
  --font-mono: 'JetBrains Mono', monospace;
  --fs-xs: clamp(0.7rem, 1vw, 0.8rem);
  --fs-sm: clamp(0.8rem, 1.2vw, 0.9rem);
  --fs-base: clamp(0.9rem, 1.4vw, 1rem);
  --fs-md: clamp(1rem, 1.6vw, 1.15rem);
  --fs-lg: clamp(1.2rem, 2vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 3vw, 2.25rem);
  --fs-2xl: clamp(2rem, 4vw, 3rem);
  --fs-3xl: clamp(2.5rem, 6vw, 4.5rem);
  --fs-hero: clamp(3.5rem, 10vw, 8rem);

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

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --header-height: 120px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-base: 0.4s;
  --duration-slow: 0.8s;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(167, 139, 250, 0.15);
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  color: var(--color-text-bright);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-hero); font-weight: 800; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--color-text);
  max-width: 75ch;
}

a {
  color: var(--color-text-bright);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

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

strong, b {
  font-weight: 600;
  color: var(--color-text-bright);
}

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

/* --- Gradient Text --- */
.gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--hero {
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- Section Headings --- */
.section__title {
  font-size: var(--fs-xl);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  text-align: center;
}

/* --- Visually Hidden (Accessibility) --- */
.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;
}

/* --- Selection --- */
::selection {
  background: rgba(167, 139, 250, 0.3);
  color: var(--color-text-bright);
}

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

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --header-height: 80px;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
  }

  .section {
    padding: var(--space-xl) 0;
  }
  
  /* Global mobile text reduction for all content paragraphs */
  p, .bio p, .project-description p, .custom-heading {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1rem;
  }
}
