:root {
  --bg: #0a0e14;
  --bg-alt: #0d1420;
  --surface: #111826;
  --border: #1e2937;
  --text: #cbd5e1;
  --text-bright: #f1f5f9;
  --text-dim: #64748b;
  --accent: #00ff9d;
  --accent-dim: #00c97e;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 255, 157, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 157, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { color: var(--text-bright); font-family: var(--font-mono); margin: 0; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 20, 0.8);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-bright);
}
.logo-bracket { color: var(--text-dim); }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.nav a { color: var(--text); transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-bright);
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-small { padding: 8px 16px; font-size: 0.8rem; }
.btn-large { padding: 16px 36px; font-size: 1rem; }
.btn-primary {
  background: var(--accent);
  color: #06120c;
  font-weight: 700;
}
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-2px); }
.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: rgba(0, 255, 157, 0.1); transform: translateY(-2px); }

/* Hero */
.hero { padding: 120px 0 100px; }
.hero-inner { text-align: left; }
.hero-kicker {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--text-bright);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  min-height: 2em;
}
.cursor { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc {
  max-width: 640px;
  color: var(--text);
  margin: 20px 0 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-social {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.hero-social a { color: var(--text-dim); border-bottom: 1px solid transparent; }
.hero-social a:hover { color: var(--accent); border-color: var(--accent); }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title {
  font-size: 1.6rem;
  margin-bottom: 48px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.section-num { color: var(--accent); font-size: 1.1rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: start;
}
.about-avatar {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
}
.about-text p { margin: 0 0 16px; }
.about-facts { margin-top: 24px; display: grid; gap: 10px; font-family: var(--font-mono); font-size: 0.9rem; }
.about-facts li { display: flex; gap: 10px; }
.about-facts span { color: var(--text-dim); min-width: 90px; }
.about-facts a:hover { color: var(--accent); }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.skill-card h3 { font-size: 1rem; margin-bottom: 14px; }
.skill-card li {
  color: var(--text);
  font-size: 0.9rem;
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
}
.skill-card li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.folder-icon { font-size: 1.8rem; }
.project-links { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 0.8rem; }
.project-links a { color: var(--text-dim); }
.project-links a:hover { color: var(--accent); }
.project-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.project-card p { flex: 1; font-size: 0.92rem; color: var(--text); margin: 0 0 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; }
.tags li { color: var(--accent); background: rgba(0, 255, 157, 0.08); padding: 4px 10px; border-radius: 20px; }

/* Certifications */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 22px;
}
.cert-card h3 { font-size: 1rem; margin-bottom: 6px; }
.cert-card p { margin: 0; color: var(--text-dim); font-size: 0.85rem; font-family: var(--font-mono); }

/* Contact */
.contact-inner { text-align: center; }
.contact-text { max-width: 520px; margin: 0 auto 32px; color: var(--text); }
.contact-social { justify-content: center; margin-top: 32px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-sub { margin-top: 6px; opacity: 0.7; }

/* Responsive */
@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .about-avatar { width: 120px; height: 120px; font-size: 2rem; }
}
