/* ============ Theme variables ============ */
:root,
[data-theme="light"] {
  --bg: #f6fbf9;
  --bg-soft: #ebf5f1;
  --text: #33474c;
  --text-soft: #647f86;
  --heading: #10333b;
  --primary: #0f8f84;
  --primary-strong: #0b6e66;
  --primary-soft: rgba(15, 143, 132, 0.12);
  --border: rgba(11, 110, 102, 0.16);
  --shadow: 0 8px 24px rgba(11, 80, 90, 0.1);
  --shadow-hover: 0 14px 32px rgba(11, 80, 90, 0.16);
  --sidebar-bg: linear-gradient(168deg, #12a89a 0%, #0f8f84 45%, #2563b8 100%);
  --sidebar-text: rgba(255, 255, 255, 0.85);
  --sidebar-active: #ffffff;
  --tag-bg: #d5efe9;
  --tag-text: #0b6e66;
  --quote-bg: #e2f3ea;
  --quote-border: #14a894;
  --quote-text: #14524a;
}

[data-theme="dark"] {
  --bg: #0e171a;
  --bg-soft: #142327;
  --text: #c5d6d8;
  --text-soft: #8aa4a9;
  --heading: #eef7f5;
  --primary: #2dd4bf;
  --primary-strong: #5eead4;
  --primary-soft: rgba(45, 212, 191, 0.14);
  --border: rgba(94, 234, 212, 0.14);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 14px 32px rgba(0, 0, 0, 0.6);
  --sidebar-bg: linear-gradient(168deg, #0c6e64 0%, #0b5a6e 55%, #1d4f8a 100%);
  --sidebar-text: rgba(255, 255, 255, 0.82);
  --sidebar-active: #ffffff;
  --tag-bg: rgba(45, 212, 191, 0.15);
  --tag-text: #8ee8dc;
  --quote-bg: #13292b;
  --quote-border: #2dd4bf;
  --quote-text: #c9ece3;
}

/* ============ Base ============ */
html {
  scroll-behavior: smooth;
}

@media (max-width: 991.98px) {
  html {
    scroll-padding-top: 100px;
  }
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Saira Extra Condensed", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--heading);
}

a {
  color: var(--primary-strong);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

::selection {
  background: var(--primary);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.text-primary {
  color: var(--primary) !important;
}

.lead {
  color: var(--text);
}

/* ============ Layout ============ */
.content {
  margin-left: 0;
  overflow-x: clip;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 72px;
  }
}

@media (min-width: 992px) {
  .content {
    margin-left: 18rem;
    max-width: calc(100% - 18rem);
  }
}

.resume-section {
  max-width: 80rem;
  padding: 5rem 1.5rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .resume-section {
    padding: 5rem 4rem;
  }
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--primary-strong);
  margin-bottom: 0.25rem;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
}

h1 .text-primary {
  color: var(--primary) !important;
}

/* ============ Hero ============ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 340px);
    gap: 4rem;
  }
}

.hero-photo {
  justify-self: center;
  width: 100%;
  max-width: 340px;
}

.hero-photo > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 1.4rem;
  box-shadow: var(--shadow-hover);
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  text-transform: uppercase;
  margin-bottom: 0;
}

h2::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 6px;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #2dd4bf, #0f8f84 45%, #2563b8);
}

.subheading {
  font-family: "Saira Extra Condensed", "Inter", sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.subheading a {
  color: var(--primary-strong);
  white-space: nowrap;
}

/* ============ Sidebar ============ */
.sidebar {
  background: var(--sidebar-bg) !important;
  transition: background-color 0.25s ease;
}

@media (max-width: 991.98px) {
  :root,
  [data-theme="light"] {
    --sidebar-bg: #0f8f84;
  }

  [data-theme="dark"] {
    --sidebar-bg: #0b5a6e;
  }
}

.sidebar .navbar-brand {
  padding: 0.5rem 0;
}

.img-profile {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
}

.img-profile:hover {
  transform: scale(1.06);
}

@media (min-width: 992px) {
  .img-profile {
    width: 11rem;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 30%;
  }
}

.sidebar .nav-link {
  color: var(--sidebar-text);
  font-family: "Saira Extra Condensed", "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  white-space: normal;
  word-break: break-word;
  transition: color 0.2s ease, background 0.2s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus-visible,
.sidebar .nav-link.active {
  color: var(--sidebar-active);
  background: rgba(255, 255, 255, 0.09);
  text-decoration: none;
}

.nav-link--cta {
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-top: 0.25rem;
}

@media (min-width: 992px) {
  .sidebar {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 18rem;
    height: 100vh;
    overflow-y: auto;
  }

  .sidebar .container-fluid {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
    padding-top: 1.5rem;
  }

  .sidebar .navbar-brand {
    display: block;
    margin: 0 auto;
  }

  .sidebar .navbar-collapse {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 2rem;
    flex-grow: 1;
  }

  .sidebar .navbar-nav {
    flex-direction: column !important;
    width: 100%;
    margin: 0 !important;
  }

  .sidebar .nav-link {
    padding: 0.6rem 0.85rem;
    font-size: 1.08rem;
    line-height: 1.25;
    letter-spacing: 0.035em;
    white-space: nowrap;
  }

  .sidebar .theme-toggle {
    margin: 1.5rem auto 0 !important;
  }

  .navbar-toggler {
    display: none;
  }
}

/* Theme toggle */
.theme-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(12deg);
}

[data-theme="light"] .theme-toggle__icon--light {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--dark {
  display: none;
}

/* ============ Hero badges ============ */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.badge-tech i {
  font-size: 1rem;
}

/* ============ Social icons ============ */
.list-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dd4bf, #0f8f84 55%, #2563b8);
  color: #fff;
  font-size: 1.35rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.list-social-icons a:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-4px);
  filter: brightness(1.08);
  box-shadow: var(--shadow-hover);
}

.list-social-icons .habr-icon {
  width: 22px;
  height: 22px;
}

/* ============ Resume items ============ */
.resume-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.resume-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

@media (min-width: 768px) {
  .resume-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
  }

  .resume-content {
    flex: 1 1 auto;
  }

  .resume-date {
    flex: 0 0 auto;
    text-align: right;
    padding-top: 0.35rem;
  }
}

.resume-item h3 {
  font-size: 1.9rem;
  color: var(--heading);
}

.resume-item .subheading {
  color: var(--primary-strong);
}

.resume-item p {
  margin-bottom: 0;
  color: var(--text);
}

.resume-date span {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ============ Hero showcase ============ */
.showcase {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 1rem;
  text-align: left;
  transition: border-color 0.25s ease;
}

.showcase:hover {
  border-color: var(--primary);
}

.showcase__kicker {
  margin-bottom: 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.showcase__slides {
  display: grid;
}

.showcase__slide {
  grid-area: 1 / 1;
  display: block;
  color: inherit;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}

.showcase__slide:hover,
.showcase__slide:focus {
  color: inherit;
  text-decoration: none;
}

.showcase__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.showcase__shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.6rem;
  margin-bottom: 0.7rem;
  background: var(--bg);
}

.showcase__title {
  display: block;
  font-family: "Saira Extra Condensed", "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--heading);
}

.showcase__text {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.showcase__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-strong);
}

.showcase__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.showcase__dots {
  display: flex;
}

.showcase__dot {
  position: relative;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
}

.showcase__dot::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s ease;
}

.showcase__dot.is-active::after {
  background: var(--primary);
}

.showcase__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.showcase__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.showcase__pause:hover {
  color: var(--primary);
}

.showcase__all {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
}

.showcase__all:hover {
  color: var(--primary);
}

@media (max-width: 991.98px) {
  .hero-photo {
    display: flex;
    flex-direction: column;
  }

  .showcase {
    order: -1;
    margin-top: 0;
    margin-bottom: 1.25rem;
  }
}

/* ============ Skill cards ============ */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 1.35rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.skill-card:nth-child(6n + 1) .skill-card__icon { color: #0f8f84; background: rgba(15, 143, 132, 0.14); }
.skill-card:nth-child(6n + 2) .skill-card__icon { color: #2563b8; background: rgba(37, 99, 184, 0.13); }
.skill-card:nth-child(6n + 3) .skill-card__icon { color: #0e9f6e; background: rgba(14, 159, 110, 0.13); }
.skill-card:nth-child(6n + 4) .skill-card__icon { color: #0369a1; background: rgba(3, 105, 161, 0.12); }
.skill-card:nth-child(6n + 5) .skill-card__icon { color: #14a894; background: rgba(20, 168, 148, 0.13); }
.skill-card:nth-child(6n + 6) .skill-card__icon { color: #4f6bed; background: rgba(79, 107, 237, 0.12); }

[data-theme="dark"] .skill-card:nth-child(6n + 1) .skill-card__icon { color: #5eead4; background: rgba(45, 212, 191, 0.18); }
[data-theme="dark"] .skill-card:nth-child(6n + 2) .skill-card__icon { color: #93c5fd; background: rgba(37, 99, 184, 0.24); }
[data-theme="dark"] .skill-card:nth-child(6n + 3) .skill-card__icon { color: #6ee7b7; background: rgba(14, 159, 110, 0.2); }
[data-theme="dark"] .skill-card:nth-child(6n + 4) .skill-card__icon { color: #7dd3fc; background: rgba(3, 105, 161, 0.26); }
[data-theme="dark"] .skill-card:nth-child(6n + 5) .skill-card__icon { color: #5eead4; background: rgba(20, 168, 148, 0.2); }
[data-theme="dark"] .skill-card:nth-child(6n + 6) .skill-card__icon { color: #a5b4fc; background: rgba(79, 107, 237, 0.22); }

.skill-card--wide {
  grid-column: 1 / -1;
}

.skill-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 0.85rem;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.skill-card__title {
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
}

.skill-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 0;
}

.lab-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 1rem;
}

.lab-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lab-card:hover {
  color: inherit;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.lab-card__shot {
  flex: 0 0 30%;
  width: 30%;
  height: auto;
  max-width: 150px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.6rem;
  background: var(--bg);
}

.lab-card__body {
  min-width: 0;
}

.lab-card__title {
  font-size: 1.15rem;
  line-height: 1.15;
  margin-bottom: 0.15rem;
}

.lab-card__text {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

.lab-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-strong);
}

@media (max-width: 575.98px) {
  .lab-card__shot {
    flex-basis: 40%;
    width: 40%;
  }
}

/* ============ Quote ============ */
.quote {
  background: var(--quote-bg);
  border-left: 4px solid var(--quote-border);
  border-radius: 0 1rem 1rem 0;
  padding: 1.1rem 1.5rem;
  font-family: "Saira Extra Condensed", "Inter", sans-serif;
  font-size: 1.15rem;
  color: var(--quote-text);
  margin-top: 2rem;
}

.quote figcaption {
  font-size: 0.95rem;
  color: var(--text-soft);
}

#interests .quote {
  font-size: 1.45rem;
  padding: 1.5rem 1.75rem;
}

#interests .quote figcaption {
  font-size: 1.1rem;
}

/* ============ Floating quote bar ============ */
html.js section .quote {
  display: none;
}

.quote-bar {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(14px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--quote-bg);
  border: 1px solid var(--quote-border);
  box-shadow: var(--shadow-hover);
  color: var(--quote-text);
  font-family: "Saira Extra Condensed", "Inter", sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
  z-index: 1025;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.quote-bar > i {
  font-size: 1.7rem;
  color: var(--quote-border);
  flex: 0 0 auto;
}

.quote-bar.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.quote-bar__author {
  color: var(--text-soft);
  white-space: nowrap;
  margin-left: 0.75rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--border);
}

@media (min-width: 992px) {
  .quote-bar {
    left: calc(18rem + (100% - 18rem - 7rem) / 2);
    width: min(720px, calc(100% - 18rem - 8rem));
  }

  html.js .resume-section {
    padding-bottom: 7rem;
  }
}

@media (max-width: 991.98px) {
  .quote-bar {
    width: calc(100% - 2rem);
    border-radius: 1.25rem;
  }

  .quote-bar__author {
    white-space: normal;
  }

  html.js .resume-section {
    padding-bottom: 9rem;
  }

  html.js #contacts {
    padding-bottom: 9rem;
  }
}

/* ============ Check list ============ */
.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.check-list li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.check-list i {
  color: #d4a017;
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.check-list .years {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ============ CTA buttons ============ */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn-cta--primary {
  background: linear-gradient(135deg, #2dd4bf, #0f8f84 55%, #2563b8);
  color: #fff;
}

.btn-cta--primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: var(--shadow-hover);
}

.btn-cta--ghost {
  border-color: var(--primary);
  color: var(--primary-strong);
  background: transparent;
}

.btn-cta--ghost:hover {
  background: var(--primary-soft);
  color: var(--primary-strong);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ============ Contacts ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 1.35rem;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  color: var(--text);
  text-decoration: none;
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 0.85rem;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.contact-card__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.contact-card__value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
  word-break: break-word;
}

.contact-socials {
  margin-top: 2rem;
}

/* ============ Footer ============ */
.footer {
  padding: 2rem 6rem 2rem 1.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

@media (max-width: 767.98px) {
  .footer {
    padding: 2rem 1.5rem 6rem;
  }
}

.footer-link {
  color: var(--text-soft);
}

.footer-link:hover {
  color: var(--primary-strong);
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2dd4bf, #2563b8);
  border: none;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1030;
  box-shadow: var(--shadow-hover);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  filter: brightness(1.08);
}

@media (max-width: 991.98px) {
  .back-to-top {
    bottom: 11.5rem;
  }
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

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

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .quote-bar {
    transition: none;
  }

  .showcase__slide {
    transition: none;
  }

  .img-profile:hover,
  .skill-card:hover,
  .lab-card:hover,
  .resume-item:hover,
  .check-list li:hover,
  .list-social-icons a:hover {
    transform: none;
  }
}