/* ============ TOKENS ============ */
:root {
  --bg: #16131f;
  --surface: #1e1a2b;
  --border: #2a2439;
  --text: #ddd6f0;
  --muted: #716b8a;
  --accent: #a78bfa;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;

  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 80% 0%, rgba(167, 139, 250, 0.07) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      rgba(167, 139, 250, 0.03) 0px,
      rgba(167, 139, 250, 0.03) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(167, 139, 250, 0.03) 0px,
      rgba(167, 139, 250, 0.03) 1px,
      transparent 1px,
      transparent 40px
    );
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

/* ============ CONTAINER ============ */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 80px 32px 40px;
}

/* ============ HERO ============ */
.hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #a78bfa, #7c5ce0);
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.15);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text { flex: 1; min-width: 0; }

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
}

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

/* ============ SECTION LABEL ============ */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

/* ============ LAYOUT ============ */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 64px;
}

/* ============ LINKS ============ */
.col-links {
  position: sticky;
  top: 40px;
}

.links {
  display: flex;
  flex-direction: column;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  transition: padding 0.2s ease, color 0.2s ease;
}

.links a:first-child { border-top: 1px solid var(--border); }
.links a:hover { padding-left: 8px; color: var(--accent); }

.link-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.link-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.links a:hover .link-hint { color: var(--accent); }

.link-arrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.links a:hover .link-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

/* ============ SUPPORT ============ */
.support { margin-top: 40px; }

.support-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.support-text + .support-text { margin-top: 6px; }

.support-text a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.support-text a:hover { border-bottom-color: var(--accent); }

/* ============ PROJECTS ============ */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(167, 139, 250, 0.12);
}

.project-preview {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1e1a2b 0%, #2a2439 100%);
  overflow: hidden;
  position: relative;
}

.project-preview::before {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.75rem;
  color: rgba(221, 214, 240, 0.12);
  font-family: var(--font-mono);
  pointer-events: none;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.project:hover .project-preview img { transform: scale(1.04); }

.project-body { padding: 16px 18px 18px; }

.project-name {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
  transition: color 0.2s ease;
  line-height: 1.35;
}

.project:hover .project-name { color: var(--accent); }

.project-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.project-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-left: 4px;
  vertical-align: middle;
  transition: color 0.2s ease;
}

.project:hover .project-hint { color: var(--accent); }

/* ============ ABOUT ============ */
.about {
  padding-top: 64px;
  border-top: 1px solid var(--border);
  padding-bottom: 40px;
}

.about-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 16px;
}

.about-text:last-of-type { margin-bottom: 0; }

.about-label { margin-top: 48px; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
  margin-top: 8px;
  max-width: 720px;
}

.about-item-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}

.about-item-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============ FACTS ============ */
.facts {
  margin-top: 28px;
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.fact {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  font-size: 0.9rem;
  line-height: 1.5;
}

.fact-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.fact-value { color: var(--text); }

/* ============ FOOTER ============ */
.footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ ADAPTIVE ============ */
@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .col-links { position: static; }
}

@media (max-width: 600px) {
  .container { padding: 56px 20px 32px; }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .avatar { width: 72px; height: 72px; }

  .projects { grid-template-columns: 1fr; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about { padding-top: 48px; }
  .about-label { margin-top: 36px; }

  .fact {
    grid-template-columns: 100px 1fr;
  }
}
