:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --border: #222;
  --text: #e8e8e8;
  --muted: #888;
  --accent: #00d4aa;
  --accent2: #7c6fe0;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
}

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

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 56px;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
.nav-links a.nav-resume {
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 3px 10px;
}
.nav-links a.nav-resume:hover { background: var(--accent); color: var(--bg); }

/* SECTIONS */
section {
  max-width: 780px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

section:first-of-type { padding-top: 8rem; }

/* AVATAR */
.avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.1) brightness(0.85);
  transition: filter 0.3s;
}

.avatar-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 212, 170, 0.18);
  mix-blend-mode: screen;
  border-radius: 50%;
}

.avatar-wrap:hover img {
  filter: grayscale(60%) contrast(1.1) brightness(0.9);
}

/* HERO */
.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

h1 span { color: var(--accent); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { background: #00f0c0; text-decoration: none; }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* SECTION HEADERS */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* EXPERIENCE */
.exp-item {
  margin-bottom: 2.8rem;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--border);
}
.exp-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.exp-company {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.exp-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(0,212,170,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,212,170,0.25);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.exp-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
}

.exp-bullets li::before {
  content: '→';
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
}

.exp-bullets li strong {
  color: #e5e5e5;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 12px;
  color: #bbb;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ACCOMPLISHMENTS */
.accolade-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accolade {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  align-items: flex-start;
}

.accolade-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.accolade-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.accolade-desc {
  font-size: 13px;
  color: var(--muted);
}

/* CONTACT */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.contact-link svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}

/* PROJECTS PLACEHOLDER */
.projects-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
}

/* SCROLL FADE-IN */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
