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

:root {
  --bg: #0a0a0a;
  --card: #111111;
  --border: #222222;
  --text: #e8e8e8;
  --text-muted: #8e8e8e;
  --muted: #555555;
  --accent: #e8e8e8;
  --tag-bg: #1a1a1a;
  --hover: #1c1c1c;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
  padding: 24px;
  cursor: none;
}

.cursor {
  width: 6px; height: 6px;
  background: var(--text);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cursor-ring {
  width: 28px; height: 28px;
  border: 1px solid rgba(232, 232, 232, 0.3);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease, width 0.2s, height 0.2s, border-color 0.2s;
}

.cursor-ring.hovered {
  width: 44px; height: 44px;
  border-color: rgba(232, 232, 232, 0.6);
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.2s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: var(--card);
}

.nav-brand {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
  letter-spacing: 0.04em;
}

.nav-links a:hover { color: var(--text); }

.nav-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-icons a {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.nav-icons a:hover { color: var(--text); }

.row { display: grid; gap: 16px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (min-width: 769px) {
  .featured-project {
    grid-column: span 2;
  }
}

.card {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: #3f3f3f;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.card-label span.active {
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

.hero-card { padding: 48px 40px; }

.hero-greeting {
  font-family: 'DM Serif Display', serif;
  font-size: 52px;
  font-style: italic;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
  opacity: 0;
  animation: slideUp 0.6s ease 0.4s forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-name {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
  opacity: 0;
  animation: slideUp 0.6s ease 0.55s forwards;
}

.hero-name strong { color: var(--text); font-weight: 600; }

.hero-role {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0;
  animation: slideUp 0.6s ease 0.7s forwards;
}

.hero-role .tag-designer {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--text);
  font-size: 15px;
}

.hero-role .tag-dev {
  color: var(--text);
  font-size: 12px;
}

.hero-desc {
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.8;
  opacity: 0;
  animation: slideUp 0.6s ease 0.85s forwards;
}

.hero-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  opacity: 0;
  animation: slideUp 0.6s ease 1s forwards;
}

.btn {
  padding: 8px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: none;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.btn-primary:hover { background: transparent; color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover { color: var(--text); border-color: #444; }

.about-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-card .stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-style: italic;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.process-icons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.process-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.process-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s;
}

.process-item:hover .process-icon {
  border-color: #444;
  color: var(--text);
}

.process-name {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: none;
}

.tool-item:hover {
  border-color: #333;
  background: var(--hover);
  transform: translateY(-2px);
}

.tool-icon {
  font-size: 22px;
  color: var(--muted);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}

.tool-item:hover .tool-icon { color: var(--text); }

.tool-name {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-align: center;
}

.project-card { cursor: none; }

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
  background: var(--tag-bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  margin-bottom: 16px;
}

.project-title {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.project-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.stack-tag {
  font-size: 9px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 8px;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}

.project-card:hover .stack-tag {
  border-color: #333;
  color: #888;
}

.project-links { display: flex; gap: 10px; }

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-category-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-card {
  text-align: center;
  padding: 48px;
}

.contact-title {
  font-family: 'DM Serif Display', serif;
  font-size: 40px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 12px;
}

.contact-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.edu-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.edu-item:last-child { border-bottom: none; padding-bottom: 0; }
.edu-item:first-child { padding-top: 0; }

.edu-year {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}

.edu-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}

.edu-place {
  font-size: 11px;
  color: var(--text-muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse 2s infinite;
}

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

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.card::before {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 12px 12px 0;
  border-color: transparent var(--bg) transparent transparent;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before { opacity: 1; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); }

svg { display: block; }

@media (max-width: 768px) {
  body { padding: 12px; cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  .btn, .tool-item, .project-card { cursor: pointer; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-greeting { font-size: 36px; }
  .contact-card { padding: 32px 20px; }
  .footer { flex-direction: column; gap: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
