/* ============================================================
   DColt.org — Main Stylesheet
   Dark theme · Modern · Professional
   ============================================================ */

/* ----- Design Tokens ----- */
:root {
  /* Backgrounds */
  --bg-primary: #0b1120;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2332;
  --bg-card: #1a2332;
  --bg-card-hover: #1f2a3d;
  --bg-tag: #1e293b;
  --bg-tag-hover: #334155;
  --bg-overlay: rgba(11, 17, 32, 0.85);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  /* Accent */
  --accent: #38bdf8;
  --accent-dim: #0ea5e9;
  --accent-deep: #0284c7;
  --accent-glow: rgba(56, 189, 248, 0.12);
  --accent-glow-strong: rgba(56, 189, 248, 0.25);

  /* Status */
  --success: #4ade80;
  --success-dim: #22c55e;
  --warning: #fbbf24;
  --warning-dim: #f59e0b;
  --danger: #f87171;
  --danger-dim: #ef4444;
  --info: #38bdf8;

  /* Borders */
  --border: #1e293b;
  --border-light: #334155;
  --border-accent: rgba(56, 189, 248, 0.3);

  /* Sizing */
  --max-width: 1000px;
  --nav-height: 3.75rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----- Skip to content (accessibility) ----- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 0;
}

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

a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

/* ----- Focus ----- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ----- Selection ----- */
::selection {
  background: var(--accent-glow-strong);
  color: var(--text-primary);
}

/* ----- Container ----- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  flex: 1;
}

/* ----- Typography ----- */
.title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.title.is-2 {
  font-size: 1.75rem;
}

.title.is-3 {
  font-size: 1.35rem;
}

.title.is-4 {
  font-size: 1.15rem;
}

.title.is-5 {
  font-size: 1rem;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.subtitle.is-6 {
  font-size: 0.9rem;
}

.content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.content p {
  margin-bottom: 0.85rem;
}

.content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.content ul li {
  margin-bottom: 0.3rem;
}

.has-text-centered {
  text-align: center;
}

.has-text-weight-semibold {
  font-weight: 600;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), #a78bfa, var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.text-muted {
  color: var(--text-muted);
}

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

/* ----- Navbar ----- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  padding: 0 1.5rem;
  min-height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(17, 24, 39, 0.92);
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-item:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
  text-decoration: none;
}

.navbar-item.is-selected {
  color: var(--accent);
  background: var(--accent-glow);
}

.navbar-item.is-selected::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.navbar-end {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.navbar-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.navbar-burger:hover {
  background: var(--bg-tertiary);
}

.navbar-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.navbar-burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-menu {
  display: flex;
  align-items: center;
}

/* ----- Footer ----- */
.footer {
  background: var(--bg-secondary);
  padding: 2.5rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.footer .content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

.footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.footer .footer-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}

.footer .footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ----- Section ----- */
.section {
  padding: 2.5rem 0;
}

.section:first-of-type {
  padding-top: 3rem;
}

/* ----- Hero ----- */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero .hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero .hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.hero .hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ----- Cards ----- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card .card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card .card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* ----- Buttons ----- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.4;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  background: transparent;
  color: var(--text-primary);
  white-space: nowrap;
}

.button:hover {
  text-decoration: none;
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button.is-small {
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
}

.button.is-link {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.button.is-link:hover {
  background: #7dd3fc;
  border-color: #7dd3fc;
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

.button.is-link.is-outlined {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-accent);
}

.button.is-link.is-outlined:hover {
  background: var(--accent-glow);
  color: #7dd3fc;
  border-color: var(--accent);
  box-shadow: none;
}

.button.is-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.button.is-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.button.is-success {
  background: var(--success-dim);
  color: var(--bg-primary);
  border-color: var(--success-dim);
}

.button.is-success:hover {
  background: var(--success);
  border-color: var(--success);
}

/* ----- Tabs ----- */
.tabs {
  margin-bottom: 1.5rem;
}

.tabs ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
  gap: 0;
}

.tabs li {
  margin: 0;
}

.tabs li a {
  display: block;
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.tabs li a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--border-light);
  text-decoration: none;
}

.tabs li.is-active a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Toggle style tabs */
.tabs.is-toggle ul {
  border-bottom: none;
  gap: 0.25rem;
}

.tabs.is-toggle li a {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.tabs.is-toggle li a:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-light);
}

.tabs.is-toggle li.is-active a {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.tabs.is-fullwidth ul {
  display: flex;
}

.tabs.is-fullwidth li {
  flex: 1;
  text-align: center;
}

/* ----- Tables ----- */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.table thead th {
  padding: 0.7rem 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  text-align: left;
  background: var(--bg-tertiary);
}

.table tbody td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover td {
  background: var(--bg-tertiary);
}

.table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.table tbody tr:nth-child(even):hover td {
  background: var(--bg-tertiary);
}

.table .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  background: var(--bg-tag);
  color: var(--text-secondary);
}

.table .badge.is-success {
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
}

.table .badge.is-warning {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
}

.table .badge.is-danger {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
}

.table .badge.is-info {
  background: var(--accent-glow);
  color: var(--accent);
}

/* ----- Stats Cards ----- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 0.25rem;
}

.stat-card .stat-icon {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.stat-card.is-accent .stat-value { color: var(--accent); }
.stat-card.is-success .stat-value { color: var(--success); }
.stat-card.is-warning .stat-value { color: var(--warning); }
.stat-card.is-danger .stat-value { color: var(--danger); }

/* ----- Tags ----- */
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tag);
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--bg-tag-hover);
  color: var(--text-primary);
}

.tag.is-primary {
  background: var(--accent-glow);
  color: var(--accent);
}

.tag.is-primary:hover {
  background: rgba(56, 189, 248, 0.2);
}

.tag.is-success {
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
}

.tag.is-warning {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
}

.tag.is-medium {
  font-size: 0.82rem;
  padding: 0.25rem 0.7rem;
}

.tag.is-large {
  font-size: 0.88rem;
  padding: 0.3rem 0.85rem;
}

/* ----- Progress Bars ----- */
.progress {
  display: block;
  width: 100%;
  height: 0.6rem;
  border: none;
  border-radius: 100px;
  background: var(--bg-tag);
  overflow: hidden;
}

.progress::-webkit-progress-bar {
  background: var(--bg-tag);
  border-radius: 100px;
}

.progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 100px;
  transition: width 0.5s ease;
}

.progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 100px;
}

/* ============================================================
   Resume / CV — Page-Specific Styles
   ============================================================ */

/* ----- Summary / Header ----- */
.resume-header {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  position: relative;
}

.resume-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.resume-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.resume-header .subtitle {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.resume-meta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.resume-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.resume-meta .meta-employment {
  color: var(--success);
  font-weight: 600;
}

.resume-actions {
  margin-top: 1rem;
}

/* ----- Section Navigation ----- */
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  padding: 0.75rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-height);
  background: var(--bg-overlay);
  backdrop-filter: blur(12px);
  z-index: 50;
}

.section-nav a {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.section-nav a:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  text-decoration: none;
}

/* ----- Resume Sections ----- */
.resume-section {
  margin-bottom: 2.5rem;
}

.resume-section:last-child {
  margin-bottom: 0;
}

.resume-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-dim);
  display: inline-block;
}

/* ----- Experience / Education Entries ----- */
.resume-entry {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.resume-entry:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.resume-entry:last-child {
  margin-bottom: 0;
}

.resume-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.resume-entry-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.resume-entry-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding: 0.1rem 0.5rem;
  background: var(--accent-glow);
  border-radius: 100px;
}

.resume-entry-role {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.resume-entry-role em {
  font-style: normal;
  color: var(--text-muted);
}

.resume-entry-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.resume-entry-body ul {
  margin: 0.4rem 0 0.75rem;
  padding-left: 0;
  list-style: none;
}

.resume-entry-body ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
}

.resume-entry-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-dim);
  opacity: 0.6;
}

.resume-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
  align-items: center;
}

.resume-tag-group-label {
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.resume-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 100px;
  background: var(--bg-tag);
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.resume-tag:hover {
  background: var(--bg-tag-hover);
  color: var(--text-primary);
}

/* ----- Skills ----- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.skill-category {
  padding: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.skill-category:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.skill-category-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  border-radius: 100px;
  background: var(--bg-tag);
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: var(--bg-tag-hover);
  color: var(--text-primary);
}

/* ----- Languages ----- */
.language-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.85rem;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.language-item:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.language-name {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 85px;
  font-size: 0.9rem;
}

.language-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-tag);
  border-radius: 100px;
  overflow: hidden;
}

.language-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 100px;
  transition: width 0.6s ease;
}

.language-level-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 55px;
  text-align: right;
  font-weight: 500;
}

/* ----- Divider ----- */
.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* ----- Print Styles ----- */
@media print {
  .navbar,
  .footer,
  .section-nav,
  .resume-actions,
  .hero-actions,
  .skip-to-content {
    display: none !important;
  }

  :root {
    --bg-primary: #fff;
    --bg-secondary: #fff;
    --bg-tertiary: #f8f9fa;
    --bg-card: #fff;
    --bg-card-hover: #fff;
    --bg-tag: #f0f0f0;
    --bg-tag-hover: #e8e8e8;
    --text-primary: #1a1a2e;
    --text-secondary: #444;
    --text-muted: #777;
    --accent: #1a365d;
    --accent-dim: #2b6cb0;
    --accent-glow: transparent;
    --border: #ddd;
    --border-light: #ccc;
    --border-accent: #2b6cb0;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-glow: none;
  }

  body {
    font-size: 10pt;
    line-height: 1.45;
    background: white !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .resume-entry {
    border: 1px solid #ddd !important;
    break-inside: avoid;
    padding: 0.75rem 1rem !important;
    box-shadow: none !important;
    background: white !important;
  }

  .resume-entry:hover {
    border-color: #ddd !important;
    background: white !important;
  }

  .skill-category {
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }

  .language-item {
    border: 1px solid #ddd !important;
  }

  .language-bar-fill {
    background: #555 !important;
  }

  .resume-header::after {
    background: #1a365d !important;
  }

  .resume-section-title {
    color: #1a365d !important;
    border-bottom-color: #2b6cb0 !important;
  }

  a {
    color: #1a365d !important;
    text-decoration: none !important;
  }

  .resume-entry-date {
    background: transparent !important;
    color: #555 !important;
    padding: 0 !important;
  }

  .resume-entry-body ul li::before {
    background: #555 !important;
  }

  .resume-tag {
    border: 1px solid #ddd !important;
    background: #f5f5f5 !important;
  }

  .skill-tag {
    border: 1px solid #ddd !important;
    background: #f5f5f5 !important;
  }
}

/* ----- Responsive ----- */
@media screen and (max-width: 768px) {
  .navbar-burger {
    display: flex;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    z-index: 100;
  }

  .navbar-menu.is-active {
    display: flex;
  }

  .navbar {
    position: relative;
    flex-wrap: wrap;
  }

  .navbar-end {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
  }

  .navbar-item {
    padding: 0.6rem 1rem;
    width: 100%;
    border-radius: 0;
  }

  .navbar-item.is-selected::after {
    display: none;
  }

  .navbar-item.is-selected {
    border-left: 3px solid var(--accent);
  }

  .container {
    padding: 0 1rem;
  }

  .title {
    font-size: 1.5rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .hero-subtitle {
    font-size: 1rem;
  }

  .resume-header h1 {
    font-size: 1.5rem;
  }

  .resume-entry-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .skills-grid,
  .language-list {
    grid-template-columns: 1fr;
  }

  .resume-meta {
    gap: 0.5rem;
    font-size: 0.78rem;
    flex-direction: column;
    align-items: center;
  }

  .section-nav {
    gap: 0.25rem;
    top: 0;
  }

  .section-nav a {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
  }

  .tabs ul {
    flex-wrap: wrap;
  }

  .tabs li a {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .table {
    font-size: 0.8rem;
  }

  .table thead th {
    font-size: 0.68rem;
    padding: 0.5rem 0.75rem;
  }

  .table tbody td {
    padding: 0.45rem 0.75rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card .stat-value {
    font-size: 1.35rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .resume-entry {
    padding: 1rem;
  }
}
