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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  background: #000;
  color: #fff;
  font-family: "Poppins", Arial, sans-serif;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  color: #080808;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid #ff4d83;
  outline-offset: 3px;
}

button,
input,
textarea {
  font-family: inherit;
}

#header {
  width: 100%;
  background: #000;
}

.container {
  padding: 10px 10%;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

nav ul {
  display: flex;
  align-items: center;
}

.logo {
  width: 140px;
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin: 10px 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

nav ul li a::after {
  content: "";
  width: 0;
  height: 3px;
  background: #ff004f;
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a[href="#contact"] {
  background-color: #fff;
  color: #080808;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

nav ul li a[href="#contact"]:hover {
  background-color: #ff004f;
  color: #fff;
}

.nav-toggle,
.nav-close-item {
  display: none;
}

.nav-toggle {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 7vw, 96px);
}

.hero-copy {
  max-width: 650px;
}

.hero-eyebrow {
  margin-bottom: 16px;
  color: #d5d5d5;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-eyebrow span {
  color: #ff004f;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-summary {
  max-width: 620px;
  margin-top: 24px;
  color: #ababab;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #ff004f;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero-button-primary,
.hero-button:hover {
  background: #ff004f;
}

.hero-button-secondary:hover {
  border-color: #fff;
  background: #fff;
  color: #080808;
}

.hero-linkedin {
  display: inline-block;
  margin-top: 22px;
  color: #d5d5d5;
  text-underline-offset: 4px;
}

.hero-linkedin:hover {
  color: #ff004f;
}

.hero-media {
  display: block;
  width: 100%;
  max-width: clamp(560px, 46vw, 820px);
  margin-left: auto;
  overflow: visible;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  margin: 0 auto;
  object-fit: cover;
  object-position: center center;
}

#about {
  padding: 80px 0;
  color: #ababab;
}

.sub-title {
  font-size: 60px;
  font-weight: 600;
  color: #fff;
}

.about-intro {
  max-width: 900px;
  margin: 24px auto 48px;
  color: #ababab;
  font-size: 18px;
  line-height: 1.75;
}

.education-block {
  max-width: 900px;
  margin: 0 auto;
  background: #262626;
  padding: 30px;
  border-radius: 10px;
}

.education-block h3 {
  margin-bottom: 22px;
  color: #ff004f;
  font-size: 24px;
}

.education-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.education-item {
  padding-left: 18px;
  border-left: 3px solid #ff004f;
}

.education-item h4 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
}

.education-item p {
  line-height: 1.55;
}

.education-detail {
  margin-top: 5px;
  color: #ababab;
  font-size: 14px;
}

#about .sub-title {
  text-align: center;
}

#experience {
  padding: 80px 0;
  background: #080808;
}

#experience .sub-title {
  text-align: center;
}

.experience-intro {
  max-width: 760px;
  margin: 20px auto 48px;
  color: #ababab;
  text-align: center;
  font-size: 16px;
  line-height: 1.7;
}

.experience-timeline {
  max-width: 960px;
  margin: 0 auto;
}

.experience-entry {
  position: relative;
  padding: 0 0 42px 36px;
  border-left: 2px solid #3a3a3a;
}

.experience-entry:last-child {
  padding-bottom: 0;
}

.experience-entry::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -7px;
  width: 12px;
  height: 12px;
  border: 2px solid #ff004f;
  border-radius: 50%;
  background: #080808;
}

.experience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #333;
}

.experience-heading h3 {
  color: #fff;
  font-size: 24px;
  line-height: 1.3;
}

.experience-organization {
  margin-top: 5px;
  color: #d5d5d5;
  font-size: 16px;
  font-weight: 600;
}

.experience-date {
  color: #ff004f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.experience-entry ul {
  margin-top: 16px;
  padding-left: 20px;
  color: #ababab;
}

.experience-entry li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.experience-entry li:last-child {
  margin-bottom: 0;
}

#credentials {
  padding: 80px 0;
  scroll-margin-top: 24px;
}

.credentials-heading {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.credentials-heading > p {
  margin-top: 18px;
  color: #ababab;
  font-size: 17px;
  line-height: 1.7;
}

.credential-group {
  max-width: 1180px;
  margin: 52px auto 0;
}

.credential-group + .credential-group {
  margin-top: 60px;
}

.credential-group-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid #3a3a3a;
}

.credential-group-heading h3 {
  font-size: 28px;
  line-height: 1.3;
}

.credential-group-heading p {
  margin-top: 8px;
  color: #ababab;
  line-height: 1.6;
}

.credential-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.credential-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #3b3b3b;
  border-radius: 10px;
  background: #171717;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.credential-card:hover {
  border-color: #666;
  transform: translateY(-3px);
}

.credential-card-applied {
  border-top: 3px solid #ff004f;
  background: linear-gradient(145deg, #23000d, #171717 48%);
  box-shadow: 0 12px 28px rgba(255, 0, 79, 0.08);
}

.credential-card-applied:hover {
  border-color: #ff4d83;
}

.credential-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 9px;
  border: 1px solid #ff4d83;
  border-radius: 999px;
  color: #ffd5e2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.credential-card h4 {
  margin-top: 18px;
  font-size: 22px;
  line-height: 1.35;
}

.credential-issuer {
  margin-top: 12px;
  color: #fff;
  font-weight: 600;
  line-height: 1.5;
}

.credential-date,
.credential-description,
.credential-skills,
.credential-id {
  color: #bdbdbd;
  line-height: 1.65;
}

.credential-date {
  margin-top: 5px;
  font-size: 14px;
}

.credential-description,
.credential-skills {
  margin-top: 16px;
}

.credential-skills strong {
  color: #fff;
}

.credential-id {
  margin-top: 10px;
  font-size: 13px;
}

.credential-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 42px;
  margin-top: 22px;
  padding: 9px 16px;
  border: 1px solid #ff004f;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.credential-link:hover {
  background: #ff004f;
}

.credential-link:focus-visible {
  outline: 3px solid #ff004f;
  outline-offset: 4px;
}

@media only screen and (min-width: 900px) {
  .credential-grid-applied {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

#technical-skills {
  padding: 80px 0;
  scroll-margin-top: 24px;
}

.technical-skills-heading {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.technical-skills-heading > p {
  margin-top: 18px;
  color: #ababab;
  font-size: 17px;
  line-height: 1.7;
}

.technical-skills-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 44px auto 0;
}

.technical-skill-category {
  min-width: 0;
  padding: 26px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #141414;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.technical-skill-category:hover {
  border-color: #555;
  transform: translateY(-2px);
}

.technical-skill-category-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 18px;
  border-bottom: 1px solid #333;
}

.technical-skill-category-heading i {
  color: #ff4d83;
  font-size: 21px;
}

.technical-skill-category h3 {
  font-size: 22px;
  line-height: 1.35;
}

.technical-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
  list-style: none;
}

.technical-skill-tags li {
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  background: #202020;
  color: #ededed;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.technical-skill-tags .technical-skill-qualified {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.technical-skill-qualified small {
  padding-left: 8px;
  border-left: 1px solid #666;
  color: #ff9abc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

#research {
  padding: 80px 0;
  background: #080808;
  scroll-margin-top: 24px;
}

.research-heading {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.research-heading > p {
  margin-top: 18px;
  color: #ababab;
  font-size: 17px;
  line-height: 1.7;
}

.publication-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin: 48px auto 0;
  overflow: hidden;
  border: 1px solid #3b3b3b;
  border-radius: 14px;
  background: #171717;
}

.publication-details {
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
}

.publication-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid #ff4d83;
  border-radius: 999px;
  color: #ffd5e2;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.publication-status i {
  flex: 0 0 auto;
}

.publication-details h3 {
  margin-top: 22px;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.publication-authors,
.publication-presentation,
.publication-summary {
  color: #d0d0d0;
  line-height: 1.75;
}

.publication-authors {
  margin-top: 18px;
}

.publication-authors strong,
.publication-findings strong {
  color: #fff;
}

.publication-presentation {
  margin-top: 10px;
  color: #ababab;
}

.publication-summary {
  margin-top: 22px;
  font-size: 17px;
}

.publication-findings {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.publication-findings p {
  padding: 14px 16px;
  border-left: 3px solid #ff004f;
  background: #222;
  color: #cfcfcf;
  line-height: 1.65;
}

.publication-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.publication-meta > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid #3d3d3d;
  border-radius: 8px;
  background: #1f1f1f;
}

.publication-meta dt {
  color: #ff7aa3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.publication-meta dd {
  margin-top: 5px;
  color: #f2f2f2;
  line-height: 1.5;
}

.publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.publication-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid #ff004f;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.publication-actions a:first-child,
.publication-actions a:hover {
  background: #ff004f;
}

.publication-actions a:first-child:hover {
  border-color: #fff;
  background: #fff;
  color: #080808;
}

.publication-actions a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.research-workflow {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 46px);
  border-top: 1px solid #3b3b3b;
  background: linear-gradient(145deg, #150009, #2f0012 55%, #080808);
}

.workflow-label {
  color: #ff8caf;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-workflow ol {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  list-style: none;
  counter-reset: workflow-step;
}

.research-workflow li {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  counter-increment: workflow-step;
}

.research-workflow li:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 36px;
  width: 2px;
  height: 16px;
  background: #ff4d83;
}

.research-workflow li i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #ff004f;
  color: #fff;
  font-size: 18px;
}

.research-workflow li span {
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
}

.workflow-note {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #d7d7d7;
  line-height: 1.65;
}

@media only screen and (min-width: 1000px) {
  .publication-card {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  }

  .research-workflow {
    border-top: 0;
    border-left: 1px solid #3b3b3b;
  }
}

#portfolio {
  padding: 80px 0;
  scroll-margin-top: 24px;
}

.projects-heading {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.projects-heading > p {
  margin-top: 18px;
  color: #ababab;
  font-size: 17px;
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  margin-top: 48px;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #383838;
  border-radius: 12px;
  background: #171717;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  border-color: #ff004f;
  box-shadow: 0 14px 32px rgba(255, 0, 79, 0.12);
  transform: translateY(-4px);
}

.project-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 150px;
  padding: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.project-visual i {
  color: #fff;
  font-size: 46px;
}

.project-visual span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.project-visual-clearpath {
  background: linear-gradient(135deg, #620026, #ff004f);
}

.project-visual-semantic {
  background: linear-gradient(135deg, #181818, #9e0036);
}

.project-visual-student {
  background: linear-gradient(135deg, #320013, #c80043);
}

.project-visual-housing {
  background: linear-gradient(135deg, #080808, #72002a);
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px;
}

.project-type {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid #ff4d83;
  border-radius: 999px;
  color: #ffd5e2;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.project-content h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.25;
}

.project-summary,
.project-contribution {
  color: #d0d0d0;
  line-height: 1.7;
}

.project-summary {
  margin-top: 16px;
}

.project-contribution {
  margin-top: 14px;
}

.project-contribution strong {
  color: #fff;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  list-style: none;
}

.project-tags li {
  padding: 6px 10px;
  border: 1px solid #464646;
  border-radius: 5px;
  background: #242424;
  color: #f2f2f2;
  font-size: 13px;
  line-height: 1.3;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
}

.project-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #ff004f;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.project-actions a:first-child,
.project-actions a:hover {
  background: #ff004f;
}

.project-actions a:first-child:hover {
  border-color: #fff;
  background: #fff;
  color: #080808;
}

.project-actions a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media only screen and (min-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#contact {
  padding: 80px 0;
  scroll-margin-top: 24px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 64px;
}

.contact-title {
  font-size: clamp(40px, 5vw, 60px);
}

.contact-intro {
  max-width: 620px;
  margin-top: 20px;
  color: #c8c8c8;
  font-size: 17px;
  line-height: 1.75;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a,
.contact-resume-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid #464646;
  border-radius: 6px;
  color: #f2f2f2;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.contact-links a:hover {
  border-color: #ff004f;
  color: #ff6c9a;
}

.contact-resume-link {
  margin-top: 28px;
  border-color: #ff004f;
  background: #ff004f;
  color: #fff;
}

.contact-resume-link:hover,
.contact-submit:hover {
  border-color: #fff;
  background: #fff;
  color: #080808;
}

.contact-links a:focus-visible,
.contact-resume-link:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-submit:focus-visible {
  outline: 3px solid #ff4d83;
  outline-offset: 3px;
}

.contact-form {
  width: 100%;
  padding: 30px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #141414;
}

.contact-field + .contact-field {
  margin-top: 20px;
}

.contact-field label {
  display: block;
  margin-bottom: 8px;
  color: #f2f2f2;
  font-size: 15px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  background: #242424;
  color: #fff;
  font: inherit;
  line-height: 1.5;
}

.contact-form textarea {
  resize: vertical;
}

.contact-submit {
  margin-top: 24px;
  padding: 13px 22px;
  border: 1px solid #ff004f;
  border-radius: 6px;
  background: #ff004f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.contact-privacy-note {
  margin-top: 16px;
  color: #a8a8a8;
  font-size: 13px;
  line-height: 1.6;
}

.copyright {
  width: 100%;
  margin-top: 20px;
  padding: 25px 0;
  background: #262626;
  text-align: center;
  font-weight: 300;
}

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 1000;
  display: none;
  padding: 10px 15px;
  background: #ff004f;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.back-to-top:hover {
  background: #e60045;
}

.hero-animate {
  animation: heroReveal 0.8s ease-out both;
}

.hero-media.hero-animate {
  animation-delay: 0.1s;
}

nav a:focus-visible,
.nav-toggle:focus-visible,
.hero-button:focus-visible,
.hero-linkedin:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media only screen and (max-width: 1100px) and (min-width: 769px) {
  #header .container {
    padding-right: 6%;
    padding-left: 6%;
  }

  nav {
    gap: 10px;
  }

  nav ul li {
    margin: 10px 6px;
  }

  nav ul li a {
    font-size: 14px;
  }

  .logo {
    width: 110px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 32px;
  }
}

@media only screen and (max-width: 768px) {
  #header {
    margin-bottom: 0;
  }

  #technical-skills {
    padding: 64px 0;
  }

  .technical-skills-heading > p {
    font-size: 16px;
  }

  .technical-skills-grid {
    gap: 16px;
    margin-top: 36px;
  }

  .technical-skill-category {
    padding: 22px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 12px 0 56px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .hero-summary {
    margin-right: auto;
    margin-left: auto;
  }

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

  .hero-media {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-media img {
    width: 90%;
    height: auto;
    max-height: 500px;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center bottom;
  }

  .js .nav-toggle {
    display: block;
    font-size: 25px;
  }

  .js .nav-toggle .fa-solid {
    display: block;
  }

  .js nav ul {
    display: block;
    position: fixed;
    top: 0;
    right: -200px;
    z-index: 2;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    background: #ff004f;
    transition: right 0.5s;
  }

  .js nav ul li {
    display: block;
    margin: 25px;
  }

  .js nav ul li.nav-close-item {
    display: block;
    margin: 0;
  }

  .js nav .nav-close {
    position: absolute;
    top: 25px;
    left: 25px;
  }

  html:not(.js) nav {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 20px;
  }

  html:not(.js) nav ul {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  html:not(.js) nav ul li {
    margin: 4px 10px 4px 0;
  }

  .sub-title {
    font-size: 40px;
  }

  #about {
    padding: 64px 0;
  }

  .about-intro {
    margin-bottom: 36px;
    font-size: 16px;
  }

  .education-block {
    padding: 22px;
  }

  .education-list {
    grid-template-columns: 1fr;
  }

  #experience {
    padding: 64px 0;
  }

  .experience-intro {
    margin-bottom: 36px;
  }

  .experience-entry {
    padding: 0 0 36px 26px;
  }

  .experience-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .experience-heading h3 {
    font-size: 21px;
  }

  .experience-date {
    white-space: normal;
  }

  #credentials {
    padding: 64px 0;
  }

  .credentials-heading > p {
    font-size: 16px;
  }

  .credential-group {
    margin-top: 40px;
  }

  .credential-group + .credential-group {
    margin-top: 48px;
  }

  .credential-card {
    padding: 22px;
  }

  #research {
    padding: 64px 0;
  }

  .research-heading > p {
    font-size: 16px;
  }

  .publication-card {
    margin-top: 36px;
  }

  .publication-details,
  .research-workflow {
    padding: 24px;
  }

  .publication-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  #portfolio {
    padding: 64px 0;
  }

  .projects-heading > p {
    font-size: 16px;
  }

  .project-grid {
    gap: 24px;
    margin-top: 36px;
  }

  .project-visual {
    min-height: 130px;
    padding: 24px;
  }

  .project-content {
    padding: 24px;
  }

  #contact {
    padding: 64px 0;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .contact-form {
    padding: 24px;
  }

  .copyright {
    font-size: 14px;
  }
}

@media only screen and (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-button {
    width: 100%;
  }

  .credential-label {
    border-radius: 10px;
  }

  .technical-skill-category {
    padding: 20px;
  }

  .credential-link {
    width: 100%;
  }

  .publication-status {
    border-radius: 10px;
  }

  .publication-actions {
    flex-direction: column;
  }

  .publication-actions a {
    width: 100%;
  }

  .research-workflow li {
    grid-template-columns: 42px minmax(0, 1fr);
    padding-right: 10px;
    padding-left: 10px;
  }

  .project-actions {
    flex-direction: column;
  }

  .project-actions a {
    width: 100%;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-links a,
  .contact-resume-link,
  .contact-submit {
    width: 100%;
  }

  .contact-form {
    padding: 20px;
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-animate {
    animation: none;
  }

  .js nav ul,
  nav ul li a::after,
  .skip-link,
  .hero-button,
  .hero-linkedin,
  .credential-card,
  .credential-link,
  .technical-skill-category,
  .project-card,
  .publication-actions a,
  .project-actions a,
  .contact-links a,
  .contact-resume-link,
  .contact-submit {
    transition: none;
  }
}
