/* ===== Base ===== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  background: #0b0b0b;
  color: #f5f5f5;
  line-height: 1.6;
  font-weight: 400;
}

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

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

button {
  font: inherit;
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #f5f5f5;
  outline-offset: 4px;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ===== Header / Navbar ===== */

#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 11, 11, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;

  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.brand:hover .brand-logo {
  opacity: 1;
  transform: translateY(-1px);
  filter: drop-shadow(0 6px 14px rgba(255, 255, 255, 0.08));
}

.nav-links {
  list-style: none;

  display: flex;
  align-items: center;
  gap: 28px;

  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #c9c9c9;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #c9c9c9;
  padding: 6px 4px;
  transition: color 0.2s ease;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.language-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.language-toggle:hover {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  border: 1px solid #2d2d2d;
  background: transparent;
  color: #c9c9c9;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  color: #ffffff;
  background: #171717;
  border-color: #464646;
}

/* ===== Hero ===== */

.hero {
  min-height: calc(100vh - 76px);

  display: flex;
  align-items: center;

  padding: 72px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 72px;
}

.hero-text {
  max-width: 720px;
}

.hero-eyebrow {
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #8f8f8f;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero h2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
}

.hero h2 span {
  color: #a5a5a5;
  font-size: 0.95em;
  font-weight: 500;
}

.hero-description {
  max-width: 620px;
  margin-bottom: 32px;
  color: #b6b6b6;
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: #f1f1f1;
  color: #111111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 24px rgba(255, 255, 255, 0.06);
}

.btn-primary:hover {
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 28px rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  border: 1px solid #343434;
  color: #e7e7e7;
}

.btn-secondary:hover {
  border-color: #646464;
  background: #171717;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-socials a {
  color: #8f8f8f;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.hero-socials a:hover {
  color: #ffffff;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: min(100%, 380px);

  opacity: 0.9;
}

/* ===== Section Base ===== */

section {
  padding: 96px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-label {
  margin-bottom: 14px;
  color: #8f8f8f;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
}

/* ===== About ===== */

.about {
  border-top: 1px solid #1d1d1d;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 72px;
  align-items: start;
}

.about-text {
  max-width: 720px;
  display: grid;
  gap: 20px;
  color: #b9b9b9;
  font-size: 1.08rem;
  line-height: 1.75;
}

.about-meta {
  display: grid;
  gap: 12px;
}

.about-meta-item {
  padding: 18px 20px;
  border: 1px solid #242424;
  border-radius: 16px;
  background: #111111;
}

.meta-label {
  display: block;
  margin-bottom: 5px;
  color: #777777;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.about-meta-item strong {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ===== Experience ===== */

.experience {
  border-top: 1px solid #1d1d1d;
}

.experience-list {
  position: relative;

  display: grid;
  gap: 0;
}

.experience-list::before {
  content: "";

  position: absolute;
  top: 0;
  bottom: 0;
  left: 118px;

  width: 1px;

  background: #292929;
}

.experience-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 36px;

  position: relative;

  padding: 0 0 48px;
}

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

.experience-date {
  position: relative;
  padding-top: 4px;
  color: #777777;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.experience-date::after {
  content: "";

  position: absolute;
  top: 10px;
  right: -5px;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: #d7d7d7;
  box-shadow: 0 0 0 5px #0b0b0b;
}

.experience-content {
  padding: 0 0 8px;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;

  margin-bottom: 14px;
}

.experience-header h3 {
  margin-bottom: 4px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.experience-company {
  color: #8f8f8f;
  font-size: 0.92rem;
  font-weight: 500;
}

.experience-type {
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid #2c2c2c;
  border-radius: 999px;
  color: #999999;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.experience-description {
  max-width: 760px;
  color: #b5b5b5;
  font-size: 1rem;
  line-height: 1.75;
}

/* ===== Projects ===== */

.projects {
  border-top: 1px solid #1d1d1d;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 48px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid #222222;
  border-radius: 22px;
  background: #101010;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.project-visual {
  min-height: 480px;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-number {
  margin-bottom: 30px;
  color: #555555;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.project-category {
  margin-bottom: 10px;
  color: #8f8f8f;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.project-content h3 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.project-flow {
  margin-bottom: 22px;

  color: #d0d0d0;

  font-size: 1rem;
  line-height: 1.7;
}

.project-description {
  max-width: 560px;
  margin-bottom: 28px;
  color: #a9a9a9;
  font-size: 1rem;
  line-height: 1.75;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-bottom: 32px;
}

.project-tech span {
  padding: 7px 10px;
  border: 1px solid #292929;
  border-radius: 999px;
  color: #999999;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-tech span:hover {
  color: #d0d0d0;
  border-color: #3a3a3a;
  background: #161616;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-actions[hidden] {
  display: none;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #555555;
  color: #eeeeee;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.project-link:hover {
  gap: 12px;
  color: #ffffff;
  border-color: #ffffff;
}

.projects-footer {
  margin-top: 24px;
  color: #666666;
  font-size: 0.84rem;
  font-weight: 400;
  text-align: right;
}

/* ===== Project Gallery ===== */

.project-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  overflow: hidden;
  border-radius: 16px;
}

.project-image {
  width: 150%;
  max-width: none;
  height: auto;
  display: block;
  margin-inline: auto;
  object-fit: contain;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease;
}

.project-gallery:hover .project-image {
  transform: scale(1.04);
}

/* ==== Project Selector ==== */
.project-selector {
  margin-top: 24px;
}

.project-thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.project-thumbnail {
  flex: 0 1 calc((100% - 36px) / 4);
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  border: 1px solid #222222;
  border-radius: 12px;
  background: #101010;
  color: #8f8f8f;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.project-thumbnail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 7px;
}

.project-thumbnail span {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 10px 4px 4px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.project-thumbnail:hover {
  border-color: #3a3a3a;
  background: #141414;
  color: #d0d0d0;
}

.project-thumbnail.active {
  border-color: #555555;
  background: #161616;
  color: #ffffff;
}

.project-thumbnail:focus {
  outline: none;
}

.project-thumbnail:focus-visible {
  outline: 2px solid #777777;
  outline-offset: 2px;
}

/* ==== Project Pagination ==== */
.project-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.project-pagination[hidden] {
  display: none;
}

.project-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #292929;
  border-radius: 8px;
  background: #101010;
  color: #d0d0d0;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.project-page-button:hover:not(:disabled) {
  border-color: #3a3a3a;
  background: #161616;
  color: #ffffff;
}

.project-page-button:disabled {
  color: #555555;
  cursor: default;
  opacity: 0.5;
}

.project-page-status {
  min-width: 42px;
  color: #8f8f8f;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
}

/* ===== Skills ===== */

.skills {
  border-top: 1px solid #1d1d1d;
}

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

.skill-group {
  min-height: 220px;

  padding: 24px;

  border: 1px solid #242424;
  border-radius: 18px;

  background: #101010;
}

.skill-index {
  margin-bottom: 32px;
  color: #555555;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.skill-group h3 {
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 7px 10px;
  border: 1px solid #2b2b2b;
  border-radius: 999px;
  color: #a0a0a0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.skill-tags span:hover {
  color: #d0d0d0;
  border-color: #3a3a3a;
  background: #161616;
}

/* ===== Education ===== */
.education {
  padding: 120px 0;
  border-top: 1px solid #1d1d1d;
}

.education-card {
  margin-top: 48px;
  padding: 40px;

  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 40px;
  align-items: start;

  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-radius: 18px;
}

.education-year span,
.education-meta span {
  color: #8f8f8f;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.education-level {
  margin-bottom: 10px;
  color: #8f8f8f;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.education-content h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}

.education-school {
  margin-bottom: 22px;
  color: #aaa;
  font-size: 0.95rem;
  font-weight: 500;
}

.education-description {
  max-width: 650px;
  margin: 0;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.75;
}

/* ===== Certifications ===== */

.certificates {
  border-top: 1px solid #1d1d1d;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.certificate-card {
  overflow: hidden;

  display: flex;
  flex-direction: column;

  border: 1px solid #242424;
  border-radius: 18px;

  background: #101010;
}

.certificate-preview {
  height: 240px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;

  background: #0b0b0b;
  border-bottom: 1px solid #242424;
}

.certificate-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

.certificate-content {
  display: flex;
  flex-direction: column;

  flex: 1;

  padding: 22px;
}

.certificate-type {
  margin-bottom: 10px;
  color: #777777;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.certificate-content h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.certificate-issuer {
  margin-bottom: 18px;
  color: #999999;
  font-size: 0.86rem;
  font-weight: 500;
}

.certificate-year {
  margin-top: auto;
  color: #666666;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ===== Additional Credentials ===== */

.additional-credentials {
  margin-top: 42px;

  padding-top: 28px;

  border-top: 1px solid #202020;
}

.additional-heading {
  margin-bottom: 18px;
  color: #8f8f8f;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.credential-list {
  display: grid;
}

.credential-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;

  padding: 20px 0;

  border-bottom: 1px solid #1e1e1e;
}

.credential-item h4 {
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.credential-item p,
.credential-item > span {
  color: #777777;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
}

.credential-item > span {
  flex-shrink: 0;
  text-align: right;
}

/* ===== Contact ===== */

.contact {
  padding: 140px 0;

  border-top: 1px solid #1d1d1d;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: 80px;

  align-items: end;
}

.contact-heading h2 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.contact-description {
  max-width: 620px;
  color: #8f8f8f;
  font-size: 1rem;
  line-height: 1.75;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 24px;
}

.contact-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #303030;
  border-radius: 999px;
  color: #f2f2f2;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-primary:hover {
  transform: translateY(-2px);
  background: #171717;
  border-color: #4a4a4a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.18);
}

.contact-primary:active {
  transform: translateY(0);
}

.contact-primary span {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-links a {
  color: #777777;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: #f2f2f2;
}

/* ===== Footer ===== */

.footer {
  padding: 28px 0;

  border-top: 1px solid #1d1d1d;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 28px;
  height: 28px;

  object-fit: contain;
}

.footer-brand p,
.footer-copy,
.back-to-top {
  color: #6f6f6f;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

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

.back-to-top {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  transform: translateY(0);
}

.back-to-top:hover {
  color: #f2f2f2;
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
}

.nav-divider {
  margin-left: 0.5rem;
  padding-left: 2rem;
  border-left: 1px solid #2d2d2d;
}

/* ===== Responsive: Tablet & Mobile ===== */

@media (max-width: 900px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: rgba(18, 18, 18, 0.96);
    border: 1px solid #2b2b2b;
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .nav-links a:hover {
    background: #202020;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle[aria-expanded="true"] {
    color: #ffffff;
    background: #171717;
    border-color: #464646;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 40px;
  }

  .hero-content {
    position: relative;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-text {
    max-width: 100%;
    position: relative;
    z-index: 2;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.6rem);
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-visual {
    position: absolute;
    right: 0;
    bottom: 10px;

    width: min(36vw, 260px);

    pointer-events: none;
    z-index: 1;
  }

  .hero-logo {
    width: 100%;
    opacity: 0.12;
  }

  section {
    padding: 72px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .experience-list::before {
    left: 16px;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 10px;

    padding-left: 48px;
    padding-bottom: 42px;
  }

  .experience-date {
    padding-top: 0;
  }

  .experience-date::after {
    top: 7px;
    left: -36px;
    right: auto;
  }

  .experience-header {
    gap: 16px;
  }

  .featured-project {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 22px;
  }

  .project-visual {
    min-height: auto;
  }

  .project-gallery {
    min-height: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
  }

  .project-image {
    width: 150%;
    max-width: none;
    margin-inline: auto;
  }

  .project-content {
    padding: 8px;
  }

  .project-number {
    margin-bottom: 20px;
  }

  .projects-footer {
    text-align: left;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .skill-group {
    min-height: 200px;
    padding: 20px;
  }

  .education {
    padding: 96px 0;
  }

  .education-card {
    grid-template-columns: 100px 1fr;
  }

  .education-meta {
    grid-column: 2;
  }

  .certificates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .certificate-preview {
    height: 220px;
  }

  .certificate-content {
    padding: 20px;
  }

  .contact {
    padding: 110px 0;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-actions {
    max-width: 420px;
  }

  .nav-divider {
    margin-left: 0;
    margin-top: 0.5rem;

    padding-left: 0;
    padding-top: 0.5rem;

    border-left: 0;
    border-top: 1px solid #2d2d2d;
  }
}

/* ===== Responsive: Small Mobile ===== */

@media (max-width: 600px) {
  .navbar {
    min-height: 68px;
    gap: 16px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .nav-actions {
    gap: 8px;
  }

  .language-toggle {
    padding: 6px 4px;
    border-radius: 0;
  }

  .menu-toggle {
    padding: 7px 10px;
    border-radius: 999px;
  }

  .hero {
    padding: 42px 0 32px;
  }

  .hero-content {
    gap: 24px;
  }

  .hero-eyebrow {
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
    line-height: 0.95;
    margin-bottom: 20px;
  }

  .hero h2 {
    font-size: 1.08rem;
    margin-bottom: 20px;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 26px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }

  .btn {
    width: 100%;
  }

  .hero-socials {
    gap: 16px;
  }

  .hero-socials a {
    font-size: 0.86rem;
  }

  .hero-visual {
    right: -20px;
    bottom: 48px;
    width: 180px;
  }

  .hero-logo {
    opacity: 0.08;
  }

  section {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
  }

  .about-text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .about-meta {
    grid-template-columns: 1fr;
  }

  .about-meta-item {
    padding: 16px;
  }

  .experience-item {
    padding-left: 34px;
    padding-bottom: 36px;
  }

  .experience-list::before {
    left: 6px;
  }

  .experience-date::after {
    left: -32px;
  }

  .experience-header {
    flex-direction: column;
    gap: 10px;
  }

  .experience-type {
    align-self: flex-start;
  }

  .experience-header h3 {
    font-size: 1.15rem;
  }

  .experience-description {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .featured-project {
    padding: 14px;
  }

  .project-visual {
    min-height: auto;
  }

  .project-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .project-image {
    width: 150%;
    max-width: none;
    margin-inline: auto;
  }

  .project-content {
    padding: 8px 4px 4px;
  }

  .project-number {
    margin-bottom: 16px;
  }

  .project-content h3 {
    font-size: 1.8rem;
  }

  .project-flow {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .project-description {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .project-tech {
    gap: 6px;
    margin-bottom: 26px;
  }

  .project-tech span {
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .project-thumbnails {
    gap: 10px;
  }

  .project-thumbnail {
    flex: 0 1 calc((100% - 10px) / 2);
  }

  .projects-footer {
    margin-top: 18px;
    font-size: 0.8rem;
    text-align: left;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skill-group {
    min-height: auto;
    padding: 18px;
  }

  .skill-index {
    margin-bottom: 20px;
  }

  .skill-group h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
  }

  .skill-tags span {
    padding: 6px 9px;
    font-size: 0.74rem;
  }

  .education {
    padding: 80px 0;
  }

  .education-card {
    margin-top: 32px;
    padding: 28px 20px;

    grid-template-columns: 1fr;
    gap: 18px;
  }

  .education-meta {
    grid-column: auto;
  }

  .education-content h3 {
    font-size: 1.3rem;
  }

  .education-description {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .certificate-preview {
    height: 220px;
    padding: 14px;
  }

  .certificate-content {
    padding: 18px;
  }

  .certificate-content h3 {
    font-size: 1.1rem;
  }

  .additional-credentials {
    margin-top: 32px;
  }

  .credential-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 0;
  }

  .credential-item > span {
    text-align: left;
  }

  .contact {
    padding: 84px 0;
  }

  .contact-wrapper {
    gap: 36px;
  }

  .contact-heading h2 {
    margin-bottom: 20px;
    font-size: clamp(2.2rem, 11vw, 3.4rem);
    line-height: 1.03;
  }

  .contact-description {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .contact-actions {
    width: 100%;
    max-width: none;
    gap: 20px;
  }

  .contact-primary {
    padding: 16px 18px;
  }

  .contact-primary span {
    font-size: 0.95rem;
  }

  .contact-links {
    width: 100%;
    justify-content: space-between;
  }

  .contact-links a {
    font-size: 0.8rem;
  }

  .footer {
    padding: 24px 0 28px;
  }

  .footer-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
  }

  .footer-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
  }

  .back-to-top {
    justify-self: end;
  }

  .footer-brand {
    min-width: 0;
  }

  .footer-brand p {
    font-size: 0.74rem;
  }

  .nav-divider {
    margin-left: 0;
    margin-top: 0.5rem;

    padding-left: 0;
    padding-top: 0.5rem;

    border-left: 0;
    border-top: 1px solid #2d2d2d;
  }
}

/* ===== Reduced Motion ===== */

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
