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

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface-hover: #1c1c26;
  --border: #1f1f2e;
  --text: #e8e8f0;
  --text-muted: #888899;
  --accent: #7c6af7;
  --accent-light: #9b8df9;
  --accent-glow: rgba(124, 106, 247, 0.15);
  --radius: 12px;
  --font: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── NAV ─────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  transform: rotate(-3deg);
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-cta:hover {
  color: var(--text);
}

/* ── HERO ────────────────────────────────────────────── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  max-width: 580px;
}

.greeting {
  font-size: 1rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 40%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title {
  font-size: 1.15rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 32px rgba(124, 106, 247, 0.35);
}

/* ── AVATAR ──────────────────────────────────────────── */
.hero-visual {
  flex-shrink: 0;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 60px rgba(124, 106, 247, 0.3);
  border: 3px solid var(--accent);
  transform: rotate(-3deg);
}

/* ── SECTIONS ────────────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 0.5rem;
}

/* ── ABOUT CARDS ─────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s, background 0.2s;
}

.about-card:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── SKILLS ──────────────────────────────────────────── */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-group {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.skill-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  min-width: 130px;
  padding-top: 0.3rem;
  flex-shrink: 0;
}

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

.tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
}

.tag-accent {
  color: var(--accent-light);
  border-color: rgba(124, 106, 247, 0.35);
  background: rgba(124, 106, 247, 0.08);
}

/* ── EXPERIENCE ──────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s;
}

.timeline-item:hover {
  border-color: var(--accent);
}

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

.company {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.role {
  font-size: 0.9rem;
  color: var(--accent-light);
  font-weight: 500;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

.location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dates {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

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

.timeline-bullets li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

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

/* ── PROJECTS ────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}

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

.project-header h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

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

.project-bullets li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

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

/* ── CONTACT ─────────────────────────────────────────── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 560px;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.contact-email {
  display: inline-block;
  color: var(--accent-light);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-email:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-linkedin {
  display: block;
  margin-top: 0.75rem;
  color: var(--accent-light);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-linkedin:hover {
  color: #fff;
  text-decoration: underline;
}

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

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

footer a:hover {
  color: var(--text);
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 700px) {
  .hero {
    flex-direction: column-reverse;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
  }

  .cta-group {
    justify-content: center;
  }

  .avatar {
    width: 130px;
    height: 130px;
    font-size: 2.2rem;
  }

  .section-title::after {
    margin: 0.5rem auto 0;
  }

  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .skill-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .skill-label {
    min-width: unset;
  }

  .timeline-meta {
    align-items: flex-start;
  }

  .project-header {
    flex-direction: column;
  }
}
