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

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

:root {
  --bg:       #0a0a0a;
  --surface:  #141414;
  --surface2: #1c1c1c;
  --border:   #272727;
  --border2:  #333;
  --text:     #f0f0f0;
  --muted:    #888;
  --muted2:   #555;
  --accent:   #f59e0b;
  --accent-d: #b45309;
  --accent-s: rgba(245,158,11,0.12);
  --green:    #10b981;
  --blue:     #60a5fa;
  --radius:   8px;
  --radius-lg:14px;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 60px;
}
.nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 0.05em; color: var(--text); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  background: var(--accent); color: #000; padding: 6px 14px;
  border-radius: var(--radius); transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); font-size: 22px; }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center;
  padding: 5rem 2rem 4rem;
  max-width: 1100px; margin: 0 auto;
  gap: 4rem;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  background: var(--accent-s); color: var(--accent);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 5px 12px; border-radius: 99px; margin-bottom: 1.5rem;
}
.hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero-name { font-family: 'Bebas Neue', sans-serif; font-size: clamp(52px,7vw,88px); line-height: .95; letter-spacing: 0.02em; margin-bottom: .5rem; }
.hero-name span { color: var(--accent); }
.hero-title { font-size: 16px; color: var(--muted); font-weight: 500; margin-bottom: 1.5rem; }
.hero-title strong { color: var(--text); font-weight: 600; }
.hero-bio { color: var(--muted); font-size: 14px; max-width: 520px; margin-bottom: 2rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-link {
  display: flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); padding: 8px 16px; border-radius: var(--radius);
  transition: border-color .2s, color .2s;
}
.hero-link:hover { border-color: var(--border2); color: var(--text); }
.hero-link.primary { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.hero-link.primary:hover { opacity: .9; color: #000; }
.hero-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.hero-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  text-align: center;
}
.hero-stat-n { font-family: 'Bebas Neue', sans-serif; font-size: 40px; color: var(--accent); line-height: 1; }
.hero-stat-l { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }

/* ── SECTIONS ── */
.section { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.section-header h2 { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 0.05em; white-space: nowrap; }
.section-header .line { flex: 1; height: 1px; background: var(--border); }
.section-divider { border: none; border-top: 1px solid var(--border); }

/* ── FEATURED PROJECT ── */
.featured-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  transition: border-color .2s;
}
.featured-card:hover { border-color: var(--border2); }
.featured-thumb { position: relative; background: #000; min-height: 280px; overflow: hidden; }
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s, transform .4s; }
.featured-card:hover .featured-thumb img { opacity: 1; transform: scale(1.03); }
.featured-thumb .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #000; pointer-events: none;
}
.featured-thumb .play-btn::after { content: '▶'; margin-left: 4px; }
.feat-conf-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: .75rem; }
.conf-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500;
  background: var(--accent-s); color: var(--accent);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 3px 10px; border-radius: 99px;
}
.featured-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.feat-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }
.feat-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: .03em; line-height: 1.1; margin-bottom: .75rem; }
.feat-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.25rem; }
.tech-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  background: var(--surface2); color: var(--muted);
  border: 1px solid var(--border); padding: 3px 10px; border-radius: 99px;
}
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 10px 20px; border-radius: var(--radius); cursor: pointer; transition: .2s; border: none; }
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { opacity: .85; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-outline:hover { background: var(--surface2); }

/* ── PROJECT GRID ── */
.proj-filters { display: flex; gap: 8px; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-btn {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  padding: 6px 16px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  transition: .2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 16px; }
.proj-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.proj-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.proj-thumb { position: relative; height: 180px; background: #000; overflow: hidden; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s, transform .4s; }
.proj-card:hover .proj-thumb img { opacity: 1; transform: scale(1.04); }
.proj-thumb .engine-badge {
  position: absolute; top: 10px; right: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500;
  background: rgba(0,0,0,.75); color: var(--text);
  padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border2);
  backdrop-filter: blur(4px);
}
.proj-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.proj-title { font-size: 15px; font-weight: 600; margin-bottom: .35rem; }
.proj-desc { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.proj-footer { display: flex; align-items: center; justify-content: space-between; }
.proj-arrow { color: var(--accent); font-size: 18px; }

/* ── PAPERS ── */
.papers-list { display: flex; flex-direction: column; gap: 12px; }
.paper-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: border-color .2s;
}
.paper-card:hover { border-color: var(--border2); }
.paper-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--accent-s); border: 1px solid rgba(245,158,11,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.paper-conf { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; color: var(--accent); margin-bottom: 4px; letter-spacing: .06em; text-transform: uppercase; }
.paper-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.4; }
.paper-meta { font-size: 12px; color: var(--muted); }
.paper-link { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; }

/* ── SKILLS ── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; }
.skill-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.skill-cat-title { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; }
.skill-items { display: flex; flex-direction: column; gap: 5px; }
.skill-item { display: flex; align-items: center; justify-content: space-between; }
.skill-name { font-size: 13px; color: var(--text); }
.skill-level { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 2px 8px; border-radius: 99px; }
.skill-level.adv { background: rgba(16,185,129,.15); color: var(--green); }
.skill-level.mid { background: rgba(96,165,250,.15); color: var(--blue); }
.skill-level.bas { background: var(--surface2); color: var(--muted); }

/* ── PROJECT DETAIL PAGE ── */
.detail-hero { padding: 4rem 2rem 3rem; max-width: 900px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 2rem; transition: color .2s; }
.back-link:hover { color: var(--text); }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.detail-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(36px,5vw,64px); letter-spacing: .02em; line-height: 1.05; margin-bottom: 1rem; }
.detail-subtitle { font-size: 15px; color: var(--muted); max-width: 700px; margin-bottom: 2rem; }
.detail-links { display: flex; gap: 10px; flex-wrap: wrap; }
.video-wrapper { max-width: 900px; margin: 0 auto 3rem; padding: 0 2rem; }
.video-embed { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video-embed iframe { width: 100%; height: 100%; border: none; }
.detail-body { max-width: 900px; margin: 0 auto; padding: 0 2rem 5rem; display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
.detail-main h3 { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: .05em; margin-bottom: 1rem; color: var(--text); }
.detail-main p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }
.detail-main ul { list-style: none; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 8px; }
.detail-main li { font-size: 14px; color: var(--muted); padding-left: 1.25rem; position: relative; line-height: 1.6; }
.detail-main li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.detail-sidebar { position: sticky; top: 80px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 12px; }
.sidebar-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem; }
.sidebar-items { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 2rem; text-align: center; }
footer p { font-size: 12px; color: var(--muted2); }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { flex-direction: column; gap: 2.5rem; min-height: auto; padding: 3rem 1.5rem; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-thumb { min-height: 200px; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 3rem 1.5rem; }
}
