/* ============================================================
   style.css  —  Minimalist Portfolio
   Design: Modern Minimalist Dark
   Fonts: Figtree (system fallback)
   ============================================================ */

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

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

:root {
  --bg:            #000000;
  --bg-offset:     #0a0a0a;
  --border:        #222222;
  --border-hover:  #444444;
  --text:          #ffffff;
  --text-muted:    #888888;
  --text-subtle:   #444444;
  --accent:        #ffffff;
  --radius:        4px;
  --transition:    0.2s ease-in-out;
  --font-body:     'Figtree', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; color: #fff; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.7; }
ul { list-style: none; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__link {
  font-size: .85rem;
  color: var(--text-muted);
}
.nav__link:hover,
.nav__link.active { color: var(--text); }

.nav__cta {
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.nav__cta:hover { border-color: var(--text); background: var(--text); color: var(--bg); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
}
.hero__eyebrow {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}
.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
}
.hero__title em {
  font-style: normal;
  color: var(--text-muted);
}
.hero__sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
}
.hero__meta {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}
.hero__stat-num {
  font-size: 1.5rem;
  font-weight: 600;
  display: block;
}
.hero__stat-label {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── FILTER BAR ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: .8rem;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--border-hover); color: var(--text); }
.filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ── SECTION HEADER ───────────────────────────────────────── */
.section-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.section-count { font-size: .7rem; color: var(--text-subtle); }

/* ── PROJECT GRID ─────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

/* ── PROJECT CARD ─────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}
.card__thumb {
  aspect-ratio: 16/10;
  background: var(--bg-offset);
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: var(--radius);
}
.card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity var(--transition);
}
.card:hover .card__thumb img { opacity: 0.8; }

.card__body { display: flex; flex-direction: column; gap: 8px; }
.card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.card__tag { font-size: .7rem; color: var(--text-muted); }
.card__title { font-size: 1.1rem; }
.card__desc { font-size: .9rem; color: var(--text-muted); line-height: 1.5; }

.card__tech { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.tech-badge {
  font-size: .65rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 2px;
}

.card__cta { display: none; } /* Hidden in minimal view, card itself is clickable */

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer__copy { font-size: .8rem; color: var(--text-muted); }
.footer__links { display: flex; gap: 24px; }
.footer__link { font-size: .8rem; color: var(--text-muted); }
.footer__link:hover { color: var(--text); }

/* ── DETAIL PAGE ──────────────────────────────────────────── */
.breadcrumb { padding: 40px 0 20px; font-size: .8rem; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb__sep { margin: 0 8px; color: var(--text-subtle); }

.detail-hero { margin-bottom: 40px; }
.detail-thumb-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-offset);
}
.detail-thumb-wrap img { width: 100%; display: block; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  margin-bottom: 80px;
}

.detail-title { font-size: 2.5rem; margin-bottom: 16px; }
.detail-short-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; }

.detail-actions { display: flex; gap: 12px; margin-bottom: 40px; }
.btn-action {
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.btn-action--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-action--primary:hover { opacity: 0.9; }

.detail-desc { font-size: 1rem; color: var(--text-muted); }
.detail-desc h3 { color: var(--text); font-size: 1.2rem; margin: 32px 0 12px; }
.detail-desc p { margin-bottom: 16px; }
.detail-desc ul { margin-bottom: 16px; padding-left: 20px; list-style: disc; }
.detail-desc li { margin-bottom: 8px; }

.gallery-section { margin-top: 60px; }
.gallery-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; display: block; transition: var(--transition); }
.gallery-item:hover img { opacity: 0.8; }

.sidebar-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.sidebar-card__title { font-size: .7rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.sidebar-info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.sidebar-info-row:last-child { border-bottom: none; }
.sidebar-info-label { color: var(--text-muted); }
.sidebar-tech { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── LIGHTBOX ────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.95);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox__content { position: relative; max-width: 100%; max-height: 100%; }
.lightbox__img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: -40px; right: 0; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ── PRIVACY PAGE ────────────────────────────────────────── */
.policy-hero { padding: 80px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.policy-layout { display: grid; grid-template-columns: 200px 1fr; gap: 60px; }
.policy-toc { position: sticky; top: 100px; }
.policy-toc__link { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; }
.policy-toc__link.active { color: var(--text); font-weight: 500; }
.policy-section { margin-bottom: 60px; }
.policy-section h2 { font-size: 1.5rem; margin-bottom: 16px; }
.policy-section p { color: var(--text-muted); margin-bottom: 16px; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 800px) {
  .detail-layout, .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { display: none; }
}
@media (max-width: 600px) {
  .hero__meta { flex-direction: column; gap: 20px; }
  .projects-grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
