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

:root {
  --bg:      #111111;
  --surface: #1a1a1a;
  --border:  #2e2e2e;
  --text:    #f0f0f0;
  --muted:   #a0a0a0;
  --accent:  #6b9ef8;

}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 56px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

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

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* ── LAYOUT ── */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 96px 0 0; }
section:first-of-type { padding-top: 128px; }
section:last-of-type  { padding-bottom: 96px; }

/* ── SECTION TITLE ── */
h2.section-title {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

/* ── HERO ── */
#hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b5ce6 0%, #1ba8a0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

#hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

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

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-top: -0.35rem;
}

.hero-bio {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
}

.hero-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover {
  color: var(--text);
  border-color: rgba(91, 141, 238, 0.45);
}
.icon-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── TAGS ── */
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(107, 158, 248, 0.1);
  color: #93b8fb;
  border: 1px solid rgba(107, 158, 248, 0.22);
  letter-spacing: 0.01em;
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}


.project-body {
  padding: 1.25rem 1.25rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.project-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.project-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.project-link {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  transition: color 0.15s, border-color 0.15s;
}
.project-link:hover {
  color: var(--accent);
  border-color: rgba(91, 141, 238, 0.4);
}

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

.skill-group h3 {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.skill-group .tags { gap: 0.3rem; }

.skill-group .tag {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.skill-group .tag:hover {
  color: var(--text);
  border-color: rgba(91, 141, 238, 0.35);
}

/* ── CONTACT ── */
.contact-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-inner > p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 440px;
}

.contact-email {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.15s;
}
.contact-email:hover { opacity: 0.72; }

.contact-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
}
.contact-meta span { display: flex; align-items: center; gap: 0.35rem; }

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

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid   { grid-template-columns: repeat(2, 1fr); }
  .nav-links     { gap: 1.1rem; }
}

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