/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080808;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --border: #222222;
  --green: #39ff6a;
  --green-dim: #39ff6a22;
  --white: #f5f5f5;
  --gray: #888888;
  --gray-dim: #333333;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-display);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 2px; }

/* ===================== SIDEBAR ===================== */
.sidebar {
  width: 280px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--bg2);
  flex-shrink: 0;
  overflow-y: auto;
}

/* --- Profile Card --- */
.profile-card {
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.avatar-wrap {
  position: relative;
  margin-bottom: 6px;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--green);
  letter-spacing: 0.05em;
  object-fit: cover;
}

.status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
}

.profile-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #39ff6a33;
}

.profile-email {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.profile-email:hover { color: var(--white); border-color: var(--green); }

.profile-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  text-decoration: none;
  transition: all 0.2s;
}
.social-btn:hover {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
}

/* --- Nav --- */
.sidebar-nav {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--white);
  background: var(--bg3);
  border-color: var(--border);
}

.nav-link.active {
  color: var(--green);
  background: var(--green-dim);
  border-color: #39ff6a33;
}

.nav-link--me {
  margin-top: auto;
  border-style: dashed;
  border-color: var(--border);
}
.nav-link--me:hover {
  color: var(--green);
  background: var(--green-dim);
  border-color: var(--green);
}

.nav-ext-icon {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.5;
}

/* ===================== MAIN CONTENT ===================== */
.main-content {
  flex: 1;
  max-width: 860px;
  padding: 0 60px;
  align-items: center;
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type { border-bottom: none; }

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
}

.accent { color: var(--green); }

.section-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray);
  max-width: 540px;
  margin-bottom: 40px;
}

/* --- Skills Grid --- */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 52px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--gray);
  background: var(--bg2);
  transition: all 0.2s;
  cursor: default;
}
.skill-tag:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-dim);
}

/* --- Stats --- */
.stats-row {
  display: flex;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gray);
  text-transform: uppercase;
}

/* ===================== PROJECTS ===================== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
}

.project-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.2s;
}
.project-card:first-child { border-top: 1px solid var(--border); }
.project-card:hover { padding-left: 12px; padding-right: 12px; margin: 0 -12px; border-radius: 8px; border-color: transparent; background: var(--bg2); }

.project-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  padding-top: 4px;
  letter-spacing: 0.1em;
}

.project-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.project-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray);
  margin-bottom: 16px;
  max-width: 420px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--gray);
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  align-items: flex-end;
}

.project-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  white-space: nowrap;
}
.project-link:hover { color: var(--green); }

/* ===================== CONTACT ===================== */
.section--contact { text-align: left; }

.contact-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 20px);
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--green);
  padding-bottom: 4px;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--green); }

.contact-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 36px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 28px;
  background: var(--green);
  color: #080808;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.08em;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  padding: 14px 28px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ===================== FOOTER ===================== */
.footer {
  padding: 32px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  border-top: 1px solid var(--border);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  body { flex-direction: column; }

  .sidebar {
    width: 100%;
    min-height: auto;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 16px 16px;
  }

  .nav-link--me { margin-top: 0; }

  .main-content { padding: 0 24px; }

  .section { padding: 64px 0 48px; }

  .project-card {
    grid-template-columns: 1fr;
  }
  .project-links { align-items: flex-start; flex-direction: row; }

  .stats-row { gap: 28px; flex-wrap: wrap; }
}

/*-----------------------

.avatar-placeholder {
  width: 50%;
  height: 50%;
  object-fit: cover;
  border-radius: 50%;
}
*/
