/* ============================================================
   Monochrome / Editorial / Modern
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg:           #FFFFFF;
  --bg-card:      #FFFFFF;
  --text:         #111111;
  --text-muted:   #666666;
  --border:       #E5E5E5;
  --nav-blur:     rgba(255, 255, 255, 0.9);
  --accent:       #000000;
  
  --gap:          clamp(1.5rem, 3vw, 3rem);
  --radius:       0px;
  --transition:   0.3s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0A0A0A;
    --bg-card:    #0A0A0A;
    --text:       #EFEFEF;
    --text-muted: #888888;
    --border:     #222222;
    --nav-blur:   rgba(10, 10, 10, 0.9);
    --accent:     #FFFFFF;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Nav ───────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  background: var(--nav-blur);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
#nav-logo {
  display: flex;
  align-items: center;
}
.logo-placeholder {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text);
}
#nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
#nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color var(--transition);
}
#nav-links a:hover, #nav-links a.active { color: var(--text); }

#nav-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#nav-social a {
  display: flex;
  color: var(--text-muted);
  transition: color var(--transition);
}
#nav-social a:hover { color: var(--text); }

/* ── Hero ──────────────────────────────────────────────────── */
#hero {
  padding: clamp(8rem, 15vh, 12rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vh, 5rem);
}
#hero h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  max-width: 45ch;
  margin: 0 auto;
}

/* ── Section wrapper ───────────────────────────────────────── */
.section {
  padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 5vw, 4rem);
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.section-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Works Filter & Search ─────────────────────────────────── */
.works-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .works-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}
#filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
#filter-row-1, #filter-row-2 {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--text);
  color: var(--text);
}
.filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.filter-btn-sm {
  font-size: 0.7rem;
  text-transform: lowercase;
}
#search-container {
  max-width: 300px;
  width: 100%;
}
#search-input {
  width: 100%;
  padding: 0.5rem 0.8rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}
#search-input:focus {
  outline: none;
  border-color: var(--text);
}

/* ── Works Grid ────────────────────────────────────────────── */
#works-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}
@media (max-width: 1600px) {
  #works-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1200px) {
  #works-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  #works-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 480px) {
  #works-grid { grid-template-columns: 1fr; }
}

.work-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.work-card.hidden { display: none; }

.work-card-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--border);
  margin-bottom: 1rem;
}
.work-card-thumb img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-card-thumb img {
  transform: scale(1.04);
}
.placeholder-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #333333, #111111);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  .placeholder-gradient { background: linear-gradient(135deg, #222, #000); }
}
.work-card:hover .placeholder-gradient { transform: scale(1.04); }

.work-card-body {
  display: flex;
  flex-direction: column;
}
.work-card-cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  order: 2;
  margin-top: 0.2rem;
  margin-bottom: 0.25rem;
}
.work-card-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  order: 1;
}
.work-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  order: 3;
}

/* ── About ─────────────────────────────────────────────────── */
#about-content {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) {
  #about-content { grid-template-columns: 1fr; gap: 2rem; }
  #about-portrait { grid-row: 1; max-width: 150px; justify-self: center; }
}
#about-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 60ch;
}
.about-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.linkedin-link {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color var(--transition);
}
.linkedin-link:hover { border-color: var(--text); }

#about-portrait {
  aspect-ratio: 3/4;
  background: var(--border);
  overflow: hidden;
  margin-top: 0;
}
#about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About page additions */
.about-sections {
  margin-top: 5rem;
}
.about-sec-title {
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: 4rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--text);
  letter-spacing: 0.02em;
}
.skills-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 1024px) {
  .skills-grid-new { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .skills-grid-new { grid-template-columns: 1fr; }
}
.skill-cat-block {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.skill-cat-name {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text);
}
.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.skill-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.skill-tool-tag {
  font-size: 0.7rem;
  background: var(--border);
  color: var(--text);
  padding: 1px 5px;
  border-radius: 2px;
  font-family: var(--font-mono);
  display: inline-block;
  white-space: nowrap;
}

/* Hobbies and Gear */
.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}
@media (max-width: 768px) {
  .two-col-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.hobbies-list, .gear-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hobbies-list li, .gear-list li {
  margin-bottom: 1.8rem;
}
.hobbies-list h4, .gear-list h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.hobbies-list p, .gear-list p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Timeline */
.timeline-new {
  position: relative;
  border-left: 1px solid var(--border);
  padding-left: 2rem;
  margin-left: 0.5rem;
}
.timeline-item-new {
  position: relative;
  margin-bottom: 3rem;
}
.timeline-item-new:last-child {
  margin-bottom: 1rem;
}
.timeline-dot {
  position: absolute;
  left: -2.35rem;
  top: 0.3rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
}
.timeline-year {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}
.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 65ch;
  margin: 0;
}

/* ── Get in Touch ──────────────────────────────────────────── */
#get-in-touch {
  padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  border-top: 1px solid var(--border);
}
#get-in-touch h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 1rem;
}
#get-in-touch p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
#get-in-touch a {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.2rem;
  transition: opacity var(--transition);
}
#get-in-touch a:hover {
  opacity: 0.6;
}

/* ── Footer ─────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-right {
  display: flex;
  gap: 1.5rem;
}
.footer-right a {
  transition: color var(--transition);
}
.footer-right a:hover { color: var(--text); }

@media (max-width: 640px) {
  footer { flex-direction: column; gap: 1rem; text-align: center; justify-content: center; align-items: center; }
  #nav { flex-wrap: wrap; }
  #nav-logo { order: 1; }
  #hamburger-btn { order: 2; margin-top: 0; }
  #nav-links { order: 3; display: flex; width: 100%; justify-content: center; margin-top: 1rem; }
}

/* ── Lightbox ──────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
#lightbox.open { display: flex; }
#lightbox-inner {
  max-width: 1000px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  #lightbox-inner { flex-direction: row; }
}
#lightbox-img-wrapper {
  flex: 1;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox-img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}
#lightbox-info {
  width: 100%;
  max-width: 350px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
#lightbox-title { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.5rem; }
#lightbox-cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
#lightbox-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; flex: 1; }
#lightbox-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.lb-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  color: var(--text-muted);
}
#lightbox-links {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.lb-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
#lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 201;
}
#lightbox-close:hover { background: var(--border); }

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Hamburger Menu ────────────────────────────────────────── */
#hamburger-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#hamburger-backdrop.open {
  opacity: 1;
  visibility: visible;
}
#hamburger-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: clamp(300px, 45vw, 420px);
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 4rem);
  box-sizing: border-box;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  visibility: hidden;
}
#hamburger-menu.open {
  transform: translateX(0);
  visibility: visible;
}
#hamburger-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}
#hamburger-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
.menu-section {
  text-align: left;
}
.menu-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  margin: 0;
}
.menu-links a {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color var(--transition);
  color: var(--text);
  text-decoration: none;
}
.menu-links a:hover {
  color: var(--text-muted);
}
#hamburger-social {
  display: flex;
  gap: 1.5rem;
  padding-bottom: clamp(1rem, 4vh, 2.5rem);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
#hamburger-social a {
  color: var(--text);
  transition: color var(--transition);
}
#hamburger-social a:hover {
  color: var(--text-muted);
}


/* ── Contact Section ───────────────────────────────────────── */
#contact {
  text-align: center;
  padding: clamp(6rem, 15vh, 10rem) var(--gap);
  border-top: 1px solid var(--border);
}
#contact .contact-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
#contact .email-link {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2rem;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color var(--transition), color var(--transition);
  letter-spacing: -0.02em;
}
#contact .email-link:hover {
  border-bottom-color: var(--text);
}
#contact .contact-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}
#contact .contact-social a {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
  padding-bottom: 2px;
}
#contact .contact-social a:hover {
  border-color: var(--text);
}


/* ── Hamburger Menu Accordion ──────────────────────────────── */
.menu-links li {
  display: flex;
  flex-direction: column;
}
.menu-parent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.menu-toggle-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.5rem;
  transition: color var(--transition);
}
.menu-toggle-btn:hover {
  color: var(--text);
}
.menu-submenu {
  list-style: none;
  padding-left: 1.2rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-left: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.menu-submenu.open {
  max-height: 400px;
  opacity: 1;
}
.menu-submenu a {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  font-weight: 400 !important;
}
.menu-submenu a:hover {
  color: var(--text) !important;
}


/* ── Language Switcher ─────────────────────────────────────── */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 6px;
  transition: color var(--transition);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
}
.lang-btn.active {
  color: var(--text);
  font-weight: 700;
}
.lang-btn:hover {
  color: var(--text);
}
.lang-divider {
  color: var(--border);
  user-select: none;
}
