@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400;1,8..60,600&display=swap');

:root {
  color-scheme: light;
  
  /* Slate & Midnight Base */
  --midnight: #0f172a;
  --slate-navy: #1e293b;
  --slate-dark: #334155;
  --slate-muted: #64748b;
  --slate-light: #cbd5e1;
  --slate-border: #e2e8f0;
  
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-alt: #f1f5f9;
  
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --border: #e2e8f0;
  
  /* Portfolio Deep Contrast Accents */
  --cyan-primary: #0284c7;
  --cyan-hover: #0369a1;
  --cyan-bright: #38bdf8;
  --cyan-bg: #e0f2fe;
  --cyan-border: #bae6fd;
  
  --indigo-primary: #2563eb;
  --teal-primary: #0d9488;
  --emerald-primary: #059669;
  
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1140px;
  
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg-light);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
a,
input,
select,
textarea {
  font-family: var(--font-sans);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-top: 0;
}

p {
  margin-top: 0;
}

::selection {
  color: var(--bg-white);
  background: var(--cyan-primary);
}

:focus-visible {
  outline: 2px solid var(--cyan-primary);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* Background gradient blobs */
.blob-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 30%, rgba(224, 242, 254, 0.6), transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(224, 231, 255, 0.6), transparent 35%);
  filter: blur(50px);
}

/* Glassmorphic cards */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  transition: all 220ms ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--cyan-border);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 180ms ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.button--primary {
  color: var(--bg-white);
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border-color: #0284c7;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
}

.button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
  color: var(--bg-white);
}

.button--outline {
  color: var(--ink);
  background: var(--bg-white);
  border-color: var(--slate-light);
  box-shadow: var(--shadow-sm);
}

.button--outline:hover {
  background: var(--bg-alt);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
}

.button--dark {
  color: var(--bg-white);
  background: var(--midnight);
  border-color: var(--slate-navy);
  box-shadow: var(--shadow-sm);
}

.button--dark:hover {
  background: var(--slate-navy);
  color: var(--bg-white);
}

/* Badge styling */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-status--cyan {
  background: var(--cyan-bg);
  color: var(--cyan-hover);
  border: 1px solid var(--cyan-border);
}

.badge-status--emerald {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* Mobile Sticky Action Bar Clearance */
@media (max-width: 768px) {
  body {
    padding-bottom: 76px !important;
  }
}

/* Enhanced Mobile Tap & Touch Feedback */
.tap-card {
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease, border-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.tap-card:active {
  transform: scale(0.98);
}