html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  color: #111827;
  background: #ffffff;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 0.9rem;
  background: #ffffff;
  color: #111827;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.12);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.container {
  width: min(calc(100% - 2rem), 72rem);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section--hero {
  background: linear-gradient(135deg, #eff6ff, #ffffff 45%, #f5f3ff);
}

.section--surface {
  background: #ffffff;
}

.section--muted {
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.section-heading {
  margin: 0 auto 3.5rem;
  max-width: 42rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.section-heading p {
  margin-top: 1.2rem;
  color: #4b5563;
  font-size: 1.05rem;
}

.section-heading__rule {
  width: 5rem;
  height: 0.35rem;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.nav-links {
  align-items: center;
  gap: 1.5rem;
}

.nav-links--desktop {
  display: none;
}

.nav-links--mobile {
  display: grid;
  gap: 1rem;
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.96);
}

.nav-links--mobile[hidden] {
  display: none;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__grid,
.about-grid,
.contact-grid {
  display: grid;
  gap: 3rem;
}

.skills-grid,
.projects-grid,
.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}

.hero__media,
.about-grid__media {
  position: relative;
}

.feature-list,
.contact-list {
  display: grid;
  gap: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.site-footer {
  padding: 4rem 0 2rem;
  background: #0f172a;
  color: #e2e8f0;
}

.site-footer__links {
  display: grid;
  gap: 0.75rem;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}

.brand {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.menu-toggle__line {
  width: 1.15rem;
  height: 0.12rem;
  margin: 0 auto;
  border-radius: 999px;
  background: #111827;
}

.nav-links a {
  color: #4b5563;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #2563eb;
}

.hero__content {
  display: grid;
  gap: 1.5rem;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero__title span {
  display: block;
  margin-top: 0.35rem;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin-top: 1rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: #4b5563;
}

.hero__description,
.about-grid__content p,
.contact-grid__intro,
.project-card p,
.skill-card p,
.site-footer p {
  color: #4b5563;
}

.hero__actions,
.hero__social,
.project-card__actions,
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(148, 163, 184, 0.38);
}

.button--full {
  width: 100%;
}

.hero__social a,
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.hero__image-wrap,
.about-grid__image,
.project-card,
.skill-card,
.contact-form-card,
.contact-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.hero__image-wrap,
.about-grid__image {
  overflow: hidden;
}

.hero__image,
.about-grid__image,
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__glow {
  position: absolute;
  z-index: -1;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.25;
}

.hero__glow--primary {
  right: -2rem;
  bottom: -2rem;
  background: #2563eb;
}

.hero__glow--secondary {
  top: -2rem;
  left: -2rem;
  background: #7c3aed;
}

.about-grid__content {
  display: grid;
  gap: 1.4rem;
}

.feature-card,
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-card__badge,
.contact-card__icon,
.skill-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.feature-card h3,
.project-card h3,
.skill-card h3,
.contact-grid h3,
.site-footer h3,
.site-footer h4 {
  margin-bottom: 0.35rem;
}

.skill-card,
.contact-form-card,
.project-card__body {
  padding: 1.5rem;
}

.skill-card {
  display: grid;
  gap: 1rem;
}

#skill-HTML .skill-card__icon, #skill-HTML .skill-bar__fill {
  background-image: linear-gradient(oklch(70.5% 0.213 47.604), oklch(63.7% 0.237 25.331))
}

#skill-CSS .skill-card__icon, #skill-CSS .skill-bar__fill {
  background-image: linear-gradient(oklch(62.3% 0.214 259.815), oklch(71.5% 0.143 215.221))
}

#skill-JavaScript .skill-card__icon, #skill-JavaScript .skill-bar__fill {
  background-image: linear-gradient(oklch(79.5% 0.184 86.047), oklch(76.9% 0.188 70.08))
}

.skill-meter {
  display: grid;
  gap: 0.65rem;
}

.skill-meter__label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #4b5563;
  font-size: 0.92rem;
}

.skill-bar {
  height: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.skill-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.tag {
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  background: #f1f5f9;
}

.tag--accent {
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
}

.project-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-0.45rem);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.project-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card:hover .project-card__media img,
.project-card:focus-within .project-card__media img {
  transform: scale(1.04);
}

.project-card__media img {
  transition: transform 320ms ease;
}

.project-card__body {
  display: grid;
  gap: 1rem;
}

.contact-grid__info {
  display: grid;
  gap: 1.25rem;
}

.contact-card {
  align-items: center;
}

.contact-card span {
  display: block;
  color: #4b5563;
  font-size: 0.88rem;
}

.contact-form {
  display: grid;
  gap: 0.95rem;
}

.contact-form__honeypot {
  display: none;
}

.contact-form__status {
  min-height: 1.5rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.contact-form__status.is-success {
  color: #15803d;
}

.contact-form__status.is-error {
  color: #b91c1c;
}

.contact-form label {
  font-weight: 700;
}

.site-footer__social a {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(148, 163, 184, 0.12);
}

@media (min-width: 48rem) {
  .nav-links--desktop {
    display: flex;
  }

  .nav-links--mobile {
    display: none;
  }

  .hero__grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 64rem) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .menu-toggle {
    display: none;
  }
}
