@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&family=Share+Tech+Mono&display=swap');

:root {
  --bg:          #0b130d;
  --bg-card:     #111c13;
  --bg-panel:    #0e1810;
  --accent:      #6db86d;
  --accent-dim:  rgba(109, 184, 109, 0.10);
  --text:        #cfe0c5;
  --muted:       #5e7e58;
  --border:      rgba(109, 184, 109, 0.20);
  --divider:     rgba(180, 230, 160, 0.09);
  --shadow:      0 3px 18px rgba(0, 0, 0, 0.30);
  --shadow-lift: 0 8px 28px rgba(0, 0, 0, 0.42);
  --radius:      3px;
  --font-head:   'Cormorant Garamond', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --font-mono:   'Share Tech Mono', 'Courier New', monospace;
  --width:       940px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 54px;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(109, 184, 109, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  min-height: 100vh;
}

/* ── scrollbar ─────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-panel); }
::-webkit-scrollbar-thumb { background: rgba(109, 184, 109, 0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── nav ───────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  background: rgba(11, 19, 13, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.nav-name {
  font-family: var(--font-head);
  font-size: 19px;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  margin-right: 28px;
  flex-shrink: 0;
  user-select: none;
  cursor: default;
}

nav a {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.6px;
  color: var(--muted);
  text-decoration: none;
  padding: 0 11px;
  height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── hero ──────────────────────────────────── */
header {
  text-align: center;
  padding: 96px 24px 72px;
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(44px, 9vw, 82px);
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  letter-spacing: 1px;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(14px);
  animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.15s;
}

.hero-rule {
  width: 44px;
  height: 1.5px;
  background: var(--accent);
  margin: 22px auto 18px;
  opacity: 0;
  animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.4s;
}

.header-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.6s;
}

.header-sub span { color: var(--text); }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── layout ────────────────────────────────── */
main {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 32px 120px;
}

section {
  padding: 56px 0;
  border-top: 1px solid var(--divider);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  letter-spacing: 0.3px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--divider);
}

h3 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 8px;
}

p { margin-bottom: 12px; }

ul { list-style: none; }

ul li {
  padding: 3px 0 3px 16px;
  position: relative;
  font-size: 14px;
}

ul li::before {
  content: '–';
  color: var(--accent);
  position: absolute;
  left: 0;
}

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

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

/* ── projects ──────────────────────────────── */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.project-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--text);
  margin: 0;
}

.project-card .note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1px;
  margin: 0;
  flex: none;
}

.project-card > p:not(.note) {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  flex: 1;
  line-height: 1.65;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 2px;
  background: var(--accent-dim);
}

.project-more {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ── competitions ───────────────────────────── */
.competitions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.competition-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.competition-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.competition-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.2px;
  color: var(--text);
  margin: 0 0 4px;
}

.competition-card > p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ── socials ───────────────────────────────── */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.social-links a {
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.social-links a:hover {
  background: var(--accent-dim);
  transform: translateX(3px);
}

.social-links .platform {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  width: 60px;
  flex-shrink: 0;
}

/* ── skills ────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 48px;
}

.skill-block h3 { margin-top: 0; }

/* ── characters / gallery ───────────────────── */
.characters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.character-card {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.character-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transform: translateY(-5px) rotate(-0.8deg);
}

.character-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: brightness(0.95) saturate(0.88);
  transition: filter 0.3s;
}

.character-card:hover img {
  filter: brightness(1.02) saturate(1.02);
}

.character-card figcaption {
  padding: 7px 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  background: var(--bg-card);
  border-top: 1px solid var(--divider);
}

/* ── blog ──────────────────────────────────── */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-posts article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
}

.blog-posts article h3 {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  letter-spacing: 0.2px;
  text-transform: none;
  margin-bottom: 12px;
}

.blog-posts article p,
.blog-posts article li {
  font-size: 14px;
  line-height: 1.78;
}

/* ── footer ────────────────────────────────── */
footer {
  max-width: var(--width);
  margin: 0 auto;
  padding: 20px 32px;
  border-top: 1px solid var(--divider);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* ── responsive ────────────────────────────── */
@media (max-width: 600px) {
  nav { padding: 0 16px; gap: 0; }
  nav a { padding: 0 7px; font-size: 10.5px; }
  .nav-name { margin-right: 14px; font-size: 16px; }
  main { padding: 0 18px 70px; }
  section { padding: 40px 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .competitions { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 4px; }
}