/* ============================================================
   Petar Dimic CV — Colors & Type
   Material Design 3 × Liquid Glass
   ============================================================ */

/* --- Fonts ------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

/* Brand display font — Turret Road (user-provided) */
@font-face {
  font-family: 'Turret Road';
  src: url('fonts/TurretRoad-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Material Symbols (rounded) — loaded via material-symbols-local.css --- */

:root {
  /* ============================================
     COLOR — Material 3 inspired, cool slate base
     with liquid-glass iridescent accent
     ============================================ */

  /* Brand / accent — iridescent blue→violet */
  --brand-500: #4F7CFF;      /* primary accent */
  --brand-400: #6E93FF;
  --brand-600: #3A62DB;
  --brand-300: #9BB4FF;
  --brand-100: #E3EBFF;

  --accent-violet: #8B6CFF;  /* liquid gradient partner */
  --accent-cyan:   #35C2E0;  /* tertiary highlight */

  /* Neutral / surface — deep slate (dark-first) */
  --slate-950: #0A0D14;
  --slate-900: #0F141E;
  --slate-800: #161C2B;
  --slate-700: #1F2738;
  --slate-600: #2B3548;
  --slate-500: #4A5468;
  --slate-400: #7B8498;
  --slate-300: #AEB5C5;
  --slate-200: #D4D9E2;
  --slate-100: #EAECF2;
  --slate-50:  #F5F6FA;

  /* Semantic — Material role mapping (dark theme) */
  --bg:           var(--slate-950);
  --bg-elevated:  var(--slate-900);
  --surface:      rgba(255, 255, 255, 0.06);
  --surface-hi:   rgba(255, 255, 255, 0.10);
  --surface-lo:   rgba(255, 255, 255, 0.03);
  --outline:      rgba(255, 255, 255, 0.10);
  --outline-hi:   rgba(255, 255, 255, 0.18);

  --fg:           #F1F3F8;     /* primary text */
  --fg-muted:     #AEB5C5;     /* secondary text */
  --fg-subtle:    #7B8498;     /* tertiary / timestamps */
  --fg-inverse:   #0F141E;

  --success:      #4FD69C;
  --warning:      #FFB547;
  --danger:       #FF6B6B;

  /* Liquid glass gradients */
  --glass-sheen: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.00) 60%,
    rgba(255, 255, 255, 0.08) 100%
  );
  --glass-bg: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  --brand-gradient: linear-gradient(
    135deg,
    #4F7CFF 0%,
    #8B6CFF 55%,
    #35C2E0 100%
  );
  --brand-gradient-soft: linear-gradient(
    135deg,
    rgba(79, 124, 255, 0.35),
    rgba(139, 108, 255, 0.25),
    rgba(53, 194, 224, 0.20)
  );

  /* Timeline accent — for work history flow */
  --timeline-line: linear-gradient(
    180deg,
    rgba(79, 124, 255, 0.0) 0%,
    rgba(79, 124, 255, 0.6) 10%,
    rgba(139, 108, 255, 0.6) 50%,
    rgba(53, 194, 224, 0.6) 90%,
    rgba(53, 194, 224, 0.0) 100%
  );

  /* ============================================
     TYPE — Manrope display, Inter body, Roboto Mono
     ============================================ */
  --font-display: 'Turret Road', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    'Roboto Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Type scale — Material 3 expressive */
  --text-display-lg: 72px;
  --text-display:    56px;
  --text-h1:         44px;
  --text-h2:         32px;
  --text-h3:         24px;
  --text-h4:         20px;
  --text-lg:         18px;
  --text-body:       16px;
  --text-sm:         14px;
  --text-xs:         12px;
  --text-overline:   11px;

  /* Line-heights */
  --lh-tight:  1.08;
  --lh-snug:   1.25;
  --lh-normal: 1.5;
  --lh-relax:  1.65;

  /* Tracking */
  --tr-tight:  -0.03em;
  --tr-snug:   -0.015em;
  --tr-normal: 0;
  --tr-wide:   0.04em;
  --tr-overline: 0.18em;

  /* ============================================
     SPACING / RADIUS / SHADOW (Material 3 + glass)
     ============================================ */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 44px;
  --radius-pill: 999px;

  /* Material elevations translated to glass */
  --elev-1: 0 1px 2px rgba(0,0,0,0.30), 0 1px 3px rgba(0,0,0,0.15);
  --elev-2: 0 4px 12px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.25);
  --elev-3: 0 10px 30px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.30);
  --elev-4: 0 24px 60px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.35);

  /* Glass-specific: outer glow + inner highlight */
  --glass-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;

  --glass-shadow-hi:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;

  /* Motion — Material expressive easing */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.3, 0, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur-base: 280ms;
  --dur-slow: 520ms;

  /* Blur scale */
  --blur-sm: 8px;
  --blur-md: 18px;
  --blur-lg: 32px;
  --blur-xl: 48px;
}

/* ============================================================
   Semantic type recipes
   ============================================================ */
.type-display-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display-lg);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
}
.type-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
}
.type-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-snug);
}
.type-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-snug);
}
.type-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  line-height: var(--lh-snug);
}
.type-h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h4);
  line-height: var(--lh-snug);
}
.type-body-lg {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-lg);
  line-height: var(--lh-relax);
}
.type-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: var(--lh-relax);
}
.type-sm {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  line-height: var(--lh-normal);
}
.type-xs {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  line-height: var(--lh-normal);
}
.type-overline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-overline);
  line-height: 1;
  letter-spacing: var(--tr-overline);
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.type-mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0;
}

/* ============================================================
   Base elements
   ============================================================ */
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1 { font: 700 var(--text-h1)/var(--lh-snug) var(--font-display); letter-spacing: var(--tr-snug); }
h2 { font: 600 var(--text-h2)/var(--lh-snug) var(--font-display); letter-spacing: var(--tr-snug); }
h3 { font: 600 var(--text-h3)/var(--lh-snug) var(--font-display); }
h4 { font: 600 var(--text-h4)/var(--lh-snug) var(--font-display); }

code, kbd, pre {
  font-family: var(--font-mono);
}

/* ============================================================
   Reusable primitives
   ============================================================ */

/* Liquid glass panel — the signature surface */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur-md)) saturate(140%);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--glass-sheen);
  mix-blend-mode: overlay;
  opacity: 0.9;
}

/* Material-style filled button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font: 600 var(--text-sm)/1 var(--font-body);
  letter-spacing: var(--tr-snug);
  border: 0;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard);
}
.btn-primary {
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 8px 24px rgba(79, 124, 255, 0.35),
              0 1px 0 rgba(255, 255, 255, 0.3) inset;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(79, 124, 255, 0.5), 0 1px 0 rgba(255, 255, 255, 0.35) inset; }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-glass {
  color: var(--fg);
  background: var(--surface);
  backdrop-filter: blur(var(--blur-sm));
  box-shadow: 0 0 0 1px var(--outline) inset;
}
.btn-glass:hover { background: var(--surface-hi); }
