@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #FAFAFA;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --accent: #0071e3;
  --accent-light: #e8f4fd;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.04), 0 12px 28px rgba(0,0,0,0.08);
  --radius: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.bento-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.bento-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.bento-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(120px, auto);
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.row-2 { grid-row: span 2; }
.row-3 { grid-row: span 3; }

@media (max-width: 768px) {
  .span-2, .span-3 { grid-column: span 2; }
  .row-2, .row-3 { grid-row: span 1; }
}

@media (max-width: 480px) {
  .span-2, .span-3 { grid-column: span 1; }
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover { background: #0077ED; transform: scale(1.02); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover { background: #f3f4f6; border-color: #d1d5db; }
.btn-secondary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.form-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input::placeholder { color: #9ca3af; }

.tag {
  background: var(--bg);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-thumb {
  background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
  border-radius: 0.75rem;
}

.skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1.25rem;
  bottom: -0.5rem;
  width: 2px;
  background: var(--border);
}
