:root {
  --bg: #f7f8fb;
  --text: #0f172a;
  --muted: #475569;
  --accent: #2d6dfa;
  --border: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: none;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: #e8eefb;
}

.nav-link.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(45, 109, 250, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 5px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle:hover {
  background: #eef2ff;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 96px 0 64px;
  display: grid;
  gap: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.hero h2, .hero h3 {
  font-size: 1.3rem;
  color: var(--muted);
  font-weight: 500;
}

.hero p {
  max-width: 720px;
  color: var(--muted);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(45, 109, 250, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(45, 109, 250, 0.3);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.section {
  padding: 56px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.section p.lead {
  color: var(--muted);
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
}

.card .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
}

.inline-link:hover {
  text-decoration: underline;
}

.list {
  margin-top: 10px;
  color: var(--muted);
  padding-left: 18px;
}

.list li + li {
  margin-top: 6px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8eefb;
  color: #1d3c87;
  font-weight: 600;
  font-size: 0.9rem;
}

.ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 16px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 18px 18px 20px;
  box-shadow: var(--shadow);
}

.timeline-item h3 {
  margin-bottom: 6px;
}

.timeline-item .meta {
  font-weight: 600;
  margin-bottom: 8px;
}

.subtle {
  color: var(--muted);
}

.skills-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.skill-item {
  margin-top: 14px;
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.skill-name {
  font-weight: 700;
}

.skill-level {
  display: none;
}

.skill-bar {
  width: 100%;
  height: 14px;
  background: #e8ecf7;
  border: 1px solid #d6ddf0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
}

.skill-bar-fill {
  position: relative;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2d6dfa, #5a8bff);
  box-shadow: 0 8px 18px rgba(45, 109, 250, 0.28);
}

.skill-bar-fill::after {
  content: attr(data-label);
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.skill-20 { width: 20%; }
.skill-40 { width: 40%; }
.skill-50 { width: 50%; }
.skill-60 { width: 60%; }
.skill-70 { width: 70%; }
.skill-80 { width: 80%; }
.skill-90 { width: 90%; }
.skill-100 { width: 100%; }

.skill-section {
  display: grid;
  gap: 18px;
}

.footer {
  margin-top: 72px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer p {
  color: var(--muted);
  margin-top: 6px;
}

.hobby-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hobby-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hobby-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.hobby-card .emoji {
  font-size: 1.6rem;
}

.links-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.link-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.link-btn:hover {
  background: #eef2ff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.about-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  color: var(--muted);
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 76px;
    right: 4vw;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    min-width: 230px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar {
    padding: 12px 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 78px 0 52px;
  }

  .section {
    padding: 46px 0;
  }
}
