/* Basic reset */
* {
  box-sizing: border-box;
}

body, h1, h2, h3, p, ul, li {
  margin: 0;
  padding: 0;
}

body {
  background-color: #fff;
  color: #111;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.7;
}

p {
  margin-bottom: 16px;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Container: width + alignment only */
.container {
  width: 92%;
  max-width: 900px;
  margin: 0 auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #111;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  z-index: 9999;
}

.skip-link:focus {
  left: 10px;
}

/* Section spacing */
.section {
  padding: 34px 0;
}

.section--muted {
  background: #f1f1f1;
}

/* Headings */
h2 {
  font-size: 30px;
  text-align: center;
  margin-bottom: 22px;
}

h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

/* Header */
.site-header {
  background: #111;
  color: #fff;
  padding: 20px 0;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.site-title {
  font-size: 32px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-list a {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
}

.nav-list a:hover {
  text-decoration: underline;
}

/* About layout */
.about-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.about-content img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid #111;
}

.about-text {
  max-width: 70ch;
}

/* Skills */
.skill {
  padding: 16px 0;
  border-top: 1px solid #e0e0e0;
}

.skill:first-of-type {
  border-top: none;
}

.progress-bar {
  background-color: #ddd;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
}

.progress {
  background-color: #111;
  height: 100%;
  width: 0; /* set by JS from data-level */
  color: #fff;
  line-height: 20px;
  text-align: center;
  font-size: 13px;
  transition: width 0.6s ease;
}

/* Footer */
.site-footer {
  background: #111;
  color: #fff;
  padding: 22px 0;
}

.footer-inner {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.social-icons a {
  color: #fff;
  font-size: 24px;
  margin: 0 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .site-title {
    font-size: 26px;
  }

  .nav-list {
    flex-direction: column;
    gap: 10px;
  }

  h2 {
    font-size: 26px;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-content img {
    width: 110px;
    height: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress {
    transition: none;
  }
}
