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

:root {
  --bg: #0A0A0F;
  --surface: #111118;
  --border: #1E1E2E;
  --cyan: #00F5D4;
  --cyan-dim: rgba(0, 245, 212, 0.12);
  --grey: #8A8A9A;
  --text: #F0F0F8;
  --font: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Two-column layout ── */
.page {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
  max-width: 1140px;
  margin: 0 auto;
}

.left-col {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 64px 40px 64px 48px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.right-col {
  padding: 64px 56px 100px 56px;
  overflow-y: auto;
}

.right-col section { margin-bottom: 48px; }

/* ── Header ── */
.header { margin-bottom: 0; }

.name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.bio {
  color: var(--grey);
  font-size: 12px;
  line-height: 1.8;
}

.bio .highlight {
  color: var(--cyan);
  font-weight: 500;
}

/* ── Section label ── */
section { margin-bottom: 0; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Contact pills ── */
.contact-row { display: flex; flex-wrap: wrap; gap: 8px; }

.left-contact { flex-direction: column; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--grey);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  background: transparent;
}

.pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.pill svg { flex-shrink: 0; }

/* ── Project cards ── */
.project-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 10px;
  transition: border-color 0.2s, background 0.2s;
  background: var(--surface);
}

.project-card:hover { border-color: var(--cyan); background: var(--cyan-dim); }

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.project-desc {
  margin-top: 8px;
  font-size: 12px;
  color: var(--grey);
  line-height: 1.75;
}

/* ── Card meta (date + github btn) ── */
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.card-date {
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.gh-btn {
  color: var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.gh-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ── Coming soon card ── */
.coming-soon { opacity: 0.5; cursor: default; }
.coming-soon:hover { border-color: var(--border); background: var(--surface); }

.coming-soon-badge {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

/* ── Certifications ── */
.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cert-card {
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  gap: 12px;
  cursor: default;
}

.cert-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.cert-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-info .project-name { font-size: 12px; }

.cert-badge {
  font-size: 11px;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.05em;
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  transition: background 0.2s;
}

.cert-badge:hover { background: var(--cyan-dim); }

/* ── Decrypt Intro ── */
#intro {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 999;
  transition: opacity 0.5s ease;
}

#intro.fade-out { opacity: 0; pointer-events: none; }

.lock-wrap {
  position: relative;
  width: 52px;
  height: 52px;
}

.lock-icon {
  position: absolute;
  inset: 0;
  transition: opacity 0.3s ease;
}

.lock-icon svg {
  width: 52px;
  height: 52px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#lock-closed { opacity: 1; }
#lock-open   { opacity: 0; }

.decrypt-text {
  font-family: var(--font);
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.12em;
  min-width: 180px;
  text-align: center;
}

.decrypt-text span { color: var(--cyan); }

.decrypt-bar {
  width: 180px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.decrypt-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--cyan);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.main-content.visible { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .page {
    grid-template-columns: 1fr;
  }

  .left-col {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 48px 24px 40px;
  }

  .right-col {
    padding: 40px 24px 80px;
  }

  .left-contact { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; opacity: 1; }
}