@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --purple: #4b0082;
  --purple-mid: #6a0dad;
  --purple-light: #e8d5f5;
  --accent: #9b59b6;
  --bg: #f8f5ff;
  --text: #1a1a2e;
  --muted: #6b6b8a;
  --border: #e2d9f3;
  --tag-bg: #f0e8fb;
  --shadow: 0 4px 24px rgba(75, 0, 130, 0.08);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(75, 0, 130, 0.06);
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--purple);
  text-decoration: none;
}

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--purple);
}

.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.hero-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--purple-light);
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.hero-text h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.hero-text p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 1.2rem;
}

.hero-btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--purple);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--purple-mid);
}

.btn-outline {
  color: var(--purple);
  border: 1.5px solid var(--border);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--tag-bg);
}

.section {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--purple-light);
}

.section p,
.section li {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.skill-card {
  background: var(--tag-bg);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.skill-card strong {
  display: block;
  font-size: 0.82rem;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.skill-card span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.proj-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.proj-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.proj-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.proj-item .tech {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.proj-item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.proj-item .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.proj-item .links a {
  font-size: 0.82rem;
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
}

.proj-item .links a:hover {
  text-decoration: underline;
}

.exp-item {
  padding: 0.8rem 0;
}

.exp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.exp-row strong {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 700;
}

.exp-row span {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.exp-item ul {
  padding-left: 1.2rem;
  margin-top: 0.3rem;
}

.exp-item ul li {
  margin-bottom: 0.2rem;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  nav {
    padding: 0 1rem;
  }

  .container {
    padding: 2rem 1rem 4rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-photo {
    width: 130px;
    height: 130px;
  }

  .nav-links {
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .nav-links {
    display: none;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .exp-row {
    flex-direction: column;
    align-items: flex-start;
  }
}