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

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --text: #e8e6e0;
  --text-2: #888780;
  --text-3: #555350;
  --accent: #c8ff80;
  --accent-dim: rgba(200,255,128,0.1);
  --accent-border: rgba(200,255,128,0.25);
  --mono: 'DM Mono', monospace;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#cursor {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}
#cursor.big {
  width: 32px; height: 32px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
}

.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }

nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-color: var(--border); }
nav .container { display: flex; justify-content: space-between; align-items: center; }

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links a:hover { color: var(--text); }

#hero {
  position: relative;           
  min-height: 100vh;            
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}
.hero-name {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}
.hero-name span { color: var(--accent); }

.hero-role {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 300;
  color: var(--text-2);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}
.hero-bio {
  font-size: 16px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.4s forwards;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s forwards;
}

.btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary {
  background: var(--accent);
  color: #0d0d0d;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: #d8ffaa; border-color: #d8ffaa; }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}
.hero-scroll span {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-3);
  letter-spacing: 0.1em;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

section { padding: 100px 0; }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 48px;
}

.projects-grid { display: flex; flex-direction: column; }

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover { border-color: var(--border-hover); background: var(--surface-2); }
.project-card:hover::before { opacity: 1; }

.project-card-flagship {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(200,255,128,0.05), var(--surface) 55%);
}
.project-card-flagship::before { opacity: 1; }
.project-badges { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.project-flag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #0d0d0d;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}
.project-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.project-status {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-live {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}
.project-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 10px;
}
.project-detail {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}
.project-detail code {
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
}
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  letter-spacing: 0.04em;
}
.project-links { display: flex; gap: 12px; }
.project-links a {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  display: flex; align-items: center; gap: 4px;
}
.project-links a:hover { color: var(--accent); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.skill-group {
  background: var(--surface);
  padding: 28px;
}
.skill-group-accent {
  background: var(--accent-dim);
}
.skill-group-accent .skill-item {
  background: rgba(200,255,128,0.08);
  border: 1px solid var(--accent-border);
  color: var(--text);
}
.skill-group-name {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.skill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-item {
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 4px;
  padding: 4px 10px;
}

#about .container { display: grid; grid-template-columns: 1fr; gap: 48px; }
.about-text { font-size: 15px; color: var(--text-2); line-height: 1.85; }
.about-text p { margin-bottom: 16px; }
.about-text a { color: var(--accent); text-decoration: none; }
.about-text a:hover { text-decoration: underline; }

.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.stat-number {
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

#contact { text-align: center; }
#contact .section-title { margin-bottom: 16px; }
.contact-sub {
  font-size: 15px;
  color: var(--text-2);
  max-width: 400px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.contact-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.contact-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.contact-link:hover { border-color: var(--accent-border); color: var(--accent); }

footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
footer p {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(70%, 280px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 16px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .project-header { flex-direction: column; }
  .hero-scroll { display: none; } 
}