* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #0f172a;
  background: #ffffff;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #f1f5f9;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.icon-button {
  border: 0;
  background: transparent;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  cursor: pointer;
}

.header-title {
  flex: 1;
  text-align: center;
}

.header-title h1 {
  margin: 0;
  font-size: 1rem;
}

.header-title p {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.display-name {
  display: none;
  font-weight: 600;
}

.mobile-menu {
  display: none;
  border-top: 1px solid #f1f5f9;
  padding: 0.7rem 1.2rem 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mobile-menu a {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
}

.section {
  min-height: 100vh;
  padding: 3.5rem 1.2rem;
  display: flex;
  align-items: center;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.4rem;
}

.hero h2 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.9rem);
  line-height: 1.1;
}

.accent-text {
  color: #2254f4;
}

.resume-button {
  margin-top: 2rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 0.8rem;
  background: #2254f4;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.social-links {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links a {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
}

.hero-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.profile-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arrow-nav {
  display: flex;
  gap: 0.8rem;
}

.arrow-button {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.about {
  background: #f8fafc;
}

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: #2254f4;
  border-bottom: 2px solid #2254f4;
  padding-bottom: 0.15rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: center;
  max-width: 730px;
}

.portrait-card {
  width: min(340px, 100%);
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
}

.portrait-card img {
  width: 100%;
  display: block;
}

.about-grid h4 {
  margin: 0 0 0.7rem;
  font-size: 1.8rem;
}

.about-grid p {
  margin: 0;
  line-height: 1.7;
  color: #334155;
}

#skills h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.skills-subtitle {
  margin: 0.8rem 0 2.2rem;
  color: #334155;
}

.skill-list {
  display: grid;
  gap: 1.1rem;
}

.skill-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.skill-track {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: #2254f4;
}

.coding-image {
  margin-top: 2.2rem;
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
}

.coding-image img {
  width: 100%;
  display: block;
}

.not-found-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  padding: 1.2rem;
}

.not-found-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.not-found-card h1 {
  margin: 0;
  font-size: 3rem;
}

.not-found-card p {
  margin: 0.7rem 0 1.2rem;
  color: #334155;
}

.not-found-card a {
  color: #2254f4;
  font-weight: 600;
}

@media (min-width: 640px) {
  .display-name {
    display: inline;
  }

  .hero-footer {
    flex-direction: row;
    justify-content: center;
    gap: 1.4rem;
  }

  .about-grid {
    grid-template-columns: auto 1fr;
    gap: 2rem;
  }
}
