:root {
  --bg: #f5f7fa;
  --bg-elevated: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #111827;
  --accent-soft: rgba(17, 24, 39, 0.06);
  --border-subtle: rgba(17, 24, 39, 0.08);
  --radius-xl: 18px;
  --radius-full: 999px;
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.09);
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, -system-ui,
    sans-serif;
  --transition-fast: 0.18s ease-out;
  --max-width: 1120px;
}

/* --------------------
   Base / reset
-------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

main {
  display: block;
}

/* --------------------
   Layout helpers
-------------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 20px;
  margin: 0 auto;
}

.section {
  padding: 48px 0;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 1.45rem;
  margin: 0 0 6px;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.mt-l {
  margin-top: 32px;
}

/* --------------------
   Skip link
-------------------- */

.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -40px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.875rem;
  text-decoration: none;
  z-index: 999;
  transition: top var(--transition-fast);
}

.skip-link:focus-visible {
  top: 12px;
}

/* --------------------
   Header + nav
-------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 250, 0.9);
  border-bottom: 1px solid rgba(148, 163, 253, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 24px;
}

.brand-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav {
  position: relative;
}

.nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  font-size: 0.98rem;
  font-weight: 400;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #000;
  border-color: var(--accent-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-link--active {
  font-weight: 500;
  border-color: var(--accent);
}

/* Hamburger (base: hidden on desktop) */

.nav-toggle {
  display: none;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
  border-radius: 999px;
  margin: 4px 0;
}

/* --------------------
   Hero
-------------------- */

.hero {
  padding: 36px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.6fr);
  gap: 32px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 36rem;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: rgba(17, 24, 39, 0.2);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--accent-soft);
}

/* Hero thumbnails */

.hero-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}

.hero-thumb {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------
   Cards & grids
-------------------- */

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-link {
  text-decoration: none;
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 16px 16px 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 26px rgba(148, 163, 253, 0.04);
  transition: all var(--transition-fast);
}

.card h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.card-link:hover .card,
.card-link:focus-visible .card {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(17, 24, 39, 0.12);
}

/* --------------------
   Gallery pages
-------------------- */

.gallery-intro {
  max-width: 38rem;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* Art cards */

.art-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 24px;
  padding: 1.25rem;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.art-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 0.75rem;
}

.art-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.8rem;
}

.art-title {
  font-weight: 500;
}

.art-year,
.art-medium {
  color: var(--muted);
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

/* --------------------
   Professional / Resume
-------------------- */

.resume-page {
  padding: 36px 0 40px;
}

.resume-header {
  margin-bottom: 18px;
  max-width: 960px;
}

.resume-name {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
  color: #111827;
}

.resume-certs-inline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.resume-contact {
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin-top: 4px;
}

.resume-contact a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.resume-contact a:hover,
.resume-contact a:focus-visible {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-color: #93c5fd;
}

.resume-tagline {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 960px;
}

.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 24px;
  margin-top: 22px;
}

.resume-section {
  max-width: 960px;
  margin-top: 22px;
}

.resume-section h2 {
  font-size: 1rem;
  margin: 0 0 6px;
  font-weight: 600;
}
/* Keep name + certifications on the same line */
.resume-topline {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: nowrap;
}

/* Prevent breaking unless absolutely needed */
.resume-name,
.resume-core-certs {
  white-space: nowrap;
}

/* Style tuning for certs */
.resume-core-certs {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
}

/* On small screens, allow stacking */
@media (max-width: 480px) {
  .resume-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .resume-name,
  .resume-core-certs {
    white-space: normal;
  }
}



/* Bullets / timeline */

.bullets {
  list-style: disc;
  padding-left: 20px;
  margin: 4px 0 10px;
  font-size: 0.9rem;
  color: #111827;
}

.bullets li {
  margin-bottom: 4px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Chips */

.chip-row,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 500;
  background: #f3f4f6;
  color: var(--text);
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: all 0.2s ease;
}

.chip:hover,
.chip:focus-visible {
  color: #2563eb;
  background: #e0f2fe;
  border-color: #93c5fd;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
}

/* --------------------
   Footer / counter
-------------------- */

.site-footer {
  padding: 18px 0 24px;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  justify-content: flex-start;
  font-size: 0.8rem;
  color: var(--muted);
}

.visitor-counter {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
}

/* --------------------
   Responsive
-------------------- */

@media (max-width: 800px) {
  .header-inner {
    padding-inline: 16px;
  }

  /* show + style hamburger on mobile */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
  }

  .nav-toggle-bar {
    background: #111827;
    height: 3px;
    width: 24px;
    margin: 3px 0;
    border-radius: 4px;
  }

  /* mobile dropdown menu */
  .nav-list {
    position: absolute;
    right: 0;
    top: 40px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-elevated);
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    gap: 10px;
    min-width: 160px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all var(--transition-fast);
  }

  .nav-list--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 26px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------
   Dark mode
-------------------- */

@media (prefers-color-scheme: dark) {
  body {
    background-color: #0f172a;
    color: #e5e7eb;
  }

  .site-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(148, 163, 253, 0.15);
  }

  .brand-title,
  .nav-link {
    color: #e5e7eb;
  }

  .nav-link--active {
    border-color: #60a5fa;
    color: #ffffff;
  }

  .hero,
  .section,
  .resume-page {
    background-color: transparent;
    color: #e5e7eb;
  }

  .nav-list {
    background: #020617;
    border: 1px solid #1f2937;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  }

  .nav-link {
    color: #e5e7eb;
  }

  .nav-link--active {
    color: #ffffff;
    border-color: #60a5fa;
  }

  .resume-name {
    color: #f9fafb;
  }

  .resume-contact {
    color: #9ca3af;
  }

  .resume-contact a {
    color: #9ca3af;
  }

  .resume-contact a:hover,
  .resume-contact a:focus-visible {
    color: #60a5fa;
  }

  .resume-tagline {
    color: #9ca3af;
  }

  .resume-section h2,
  .section-header h1,
  .section-header h2 {
    color: #f9fafb;
  }

  .bullets,
  .timeline,
  .art-meta,
  .gallery-intro,
  p,
  li {
    color: #e5e7eb;
  }

  .card,
  .art-card {
    background: #111827;
    border-color: #1f2937;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.6);
  }

  .card p,
  .art-meta span {
    color: #9ca3af;
  }

  .chip {
    background: #111827;
    color: #e5e7eb;
    border-color: #374151;
  }

  .chip:hover,
  .chip:focus-visible {
    color: #60a5fa;
    background: #020817;
    border-color: #60a5fa;
    box-shadow: 0 2px 6px rgba(96, 165, 250, 0.25);
  }

  .visitor-counter {
    background: #111827;
    color: #9ca3af;
    border-color: #374151;
  }

  .site-footer {
    color: #9ca3af;
  }

  /* dark-mode hamburger colors on mobile */
  @media (max-width: 800px) {
    .nav-toggle {
      background: rgba(255, 255, 255, 0.18);
      border-color: rgba(255, 255, 255, 0.3);
    }

    .nav-toggle-bar {
      background: #ffffff;
    }
  }
}
    /* Buttons in dark mode */
  .btn {
    background: #e5e7eb;
    color: #111827;
    border-color: #e5e7eb;
  }

  .btn:hover,
  .btn:focus-visible {
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
    text-decoration: none;
  }

  .btn-ghost {
    background: transparent;
    color: #e5e7eb;        /* light text on dark background */
    border-color: #4b5563;
  }

  .btn-ghost:hover,
  .btn-ghost:focus-visible {
    background: #020617;
    border-color: #60a5fa;
    color: #ffffff;
  }
/* --- Hero buttons contrast fix --------------------------- */

/* Outline button: high contrast in light mode */
.btn-ghost {
  background: transparent;
  border: 1.5px solid #111827;   /* dark slate */
  color: #111827;
}

/* In dark mode, flip back to light outline/text */
@media (prefers-color-scheme: dark) {
  .btn-ghost {
    border-color: #e5e7eb;
    color: #e5e7eb;
  }
}
/* --------------------
   Lightbox
-------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;                /* hidden until .is-open is added */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.75rem;
  max-width: min(100vw - 2rem, 900px);
  max-height: min(100vh - 2rem, 700px);
  overflow: hidden;             /* keeps the image inside the rounded box */
  box-sizing: border-box;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.7rem;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

#lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 4rem);
  object-fit: contain;
  border-radius: 0.75rem;
  margin: 0 auto;
}
