:root {
  --bg: #0B1220;
  --surface: #121A2C;
  --surface-alt: #0E1626;
  --border: #26324A;
  --text: #E8ECF3;
  --muted: #8996AD;
  --accent: #E8A33D;
  --accent-dim: #7A5C26;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

a { color: var(--accent); text-decoration: none; }

h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--font-mono); font-weight: 500; color: var(--accent); }
.navbar nav a { color: var(--muted); margin-left: 24px; font-size: 0.9rem; }
.navbar nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; border-bottom: 1px solid var(--border); }
.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-bottom: 24px; border: 2px solid var(--accent); }
.hero h1 { font-size: 2.75rem; margin-bottom: 8px; }
.hero .subtitle { font-family: var(--font-mono); color: var(--accent); font-size: 1rem; margin-bottom: 32px; }
.hero .subtitle::before { content: "> "; color: var(--muted); }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 24px; }
.social-links { display: flex; gap: 16px; justify-content: center; font-family: var(--font-mono); font-size: 0.85rem; }
.social-links a { color: var(--muted); }
.social-links a:hover { color: var(--accent); }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; font-size: 0.9rem; font-weight: 500; font-family: var(--font-mono); transition: all 0.15s ease; }
.btn-primary { background: var(--accent); color: #0B1220; }
.btn-primary:hover { background: #f4b555; }
.btn-outline { border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.section.alt { background: var(--surface-alt); }
.section h2 { font-size: 1.6rem; margin-bottom: 32px; }
.section h2::before { content: attr(data-cmd); display: block; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 400; color: var(--muted); margin-bottom: 6px; }
.section h2::after { content: ""; }
.section h2 { position: relative; }
.about-text { color: var(--muted); max-width: 640px; font-size: 1.05rem; }

/* Skills */
.skills-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-chip { font-family: var(--font-mono); font-size: 0.85rem; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text); }
.skill-chip .level { color: var(--accent); }

/* Timeline (experience/education) */
.timeline { display: flex; flex-direction: column; gap: 28px; }
.timeline-item { border-left: 2px solid var(--border); padding-left: 20px; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline-item h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 4px; }
.timeline-item .meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.timeline-item p { color: var(--muted); font-size: 0.95rem; }

/* Cards / Projects */
.projects-grid, .cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: transform 0.15s ease, border-color 0.15s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--accent-dim); }
.card img { width: 100%; height: 160px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.card-tags span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); background: rgba(232, 163, 61, 0.1); padding: 3px 8px; border-radius: 4px; }
.card-links a { font-family: var(--font-mono); font-size: 0.8rem; margin-right: 16px; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.contact-form input, .contact-form textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button { align-self: flex-start; border: none; cursor: pointer; }
#contact-status { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); }

/* Footer */
.footer { padding: 32px 0; text-align: center; color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; }

/* Empty state */
.empty-state { color: var(--muted); font-family: var(--font-mono); font-size: 0.9rem; }

@media (max-width: 640px) {
  .navbar nav { display: none; }
  .hero h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
