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

:root {
  --bg: #070b12;
  --panel: #0a111b;
  --panel-2: #0d1420;
  --cyan: #6ff7ff;
  --cyan-strong: #d9fdff;
  --muted: #84c9d1;
  --line: #173845;
  --accent: #8c7bff;
  --text: #deeff8;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.about-page {
  min-height: 100vh;
  padding: 28px clamp(20px, 4vw, 60px) 54px;
  position: relative;
  background:
    radial-gradient(circle at 14% 14%, rgba(35,217,255,.09), transparent 26%),
    radial-gradient(circle at 84% 72%, rgba(140,123,255,.08), transparent 30%),
    linear-gradient(180deg,#0a0f18,#060a11);
}

.about-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.008) 0,
      rgba(255,255,255,.008) 1px,
      rgba(0,0,0,.022) 2px,
      rgba(0,0,0,.022) 4px
    );
  opacity: .17;
}

.about-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 16px;
  padding-right: 180px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--cyan-strong);
  outline: none;
}

.about-status {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: right;
}

.about-layout {
  position: relative;
  z-index: 1;
  width: min(1420px,100%);
  margin: 0 auto;
  padding-top: clamp(52px,7vw,96px);
  display: grid;
  grid-template-columns: minmax(320px,.78fr) minmax(0,1.22fr);
  gap: clamp(54px,7vw,112px);
}

.about-hero {
  position: sticky;
  top: 42px;
  align-self: start;
}

.eyebrow {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

h1 {
  margin: 0;
  font-family: "Orbitron","IBM Plex Mono",monospace;
  font-size: clamp(54px,6.4vw,102px);
  line-height: .9;
  color: var(--cyan-strong);
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.hero-role {
  margin-top: 22px;
  color: var(--cyan);
  font-size: clamp(13px,1.2vw,17px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 560px;
  margin: 24px 0 0;
  color: #c8dce1;
  font-size: clamp(14px,1.15vw,18px);
  line-height: 1.75;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.about-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: .16s ease;
}

.about-action:hover,
.about-action:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(111,247,255,.62);
  outline: none;
}

.about-action--primary {
  background:
    linear-gradient(135deg,rgba(35,217,255,.14),rgba(140,123,255,.10)),
    rgba(8,15,24,.75);
}

.about-content {
  display: grid;
  gap: 0;
}

.about-section {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  gap: 24px;
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
}

.about-section:last-child {
  border-bottom: 1px solid var(--line);
}

.section-index {
  color: #47747c;
  font-size: 10px;
  padding-top: 4px;
}

.section-label {
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h2 {
  max-width: 880px;
  margin: 0;
  color: var(--cyan-strong);
  font-size: clamp(24px,2.6vw,42px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -.025em;
}

.about-section p {
  max-width: 860px;
  margin: 18px 0 0;
  color: #b9cfd4;
  font-size: 14px;
  line-height: 1.8;
}

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

.skills-grid span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #bffbff;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(111,247,255,.025);
}

/* language + theme controls */
.language-switch {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 100;
  min-width: 74px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(111,247,255,.22);
  border-radius: 8px;
  background: rgba(7,11,18,.78);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lang-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.lang-button.is-active {
  color: var(--cyan);
}

.theme-switch {
  position: fixed;
  top: 18px;
  right: 112px;
  z-index: 100;
}

.theme-button {
  min-height: 32px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(111,247,255,.22);
  border-radius: 8px;
  background: rgba(7,11,18,.78);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.theme-icon {
  color: var(--cyan);
}

/* light mode */
html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="light"] body,
html[data-theme="light"] .about-page {
  --bg: #eef4f6;
  --panel: #fff;
  --panel-2: #f6fafb;
  --cyan: #006f7b;
  --cyan-strong: #07343b;
  --muted: #4f7177;
  --line: #b8cdd1;
  --accent: #5c54d6;
  --text: #13272b;
}

html[data-theme="light"] .about-page {
  background:
    radial-gradient(circle at 14% 14%, rgba(0,111,123,.08), transparent 26%),
    radial-gradient(circle at 84% 72%, rgba(92,84,214,.07), transparent 30%),
    linear-gradient(180deg,#f7fbfc,#edf4f6);
}

html[data-theme="light"] .about-section p,
html[data-theme="light"] .hero-intro {
  color: #36565d;
}

html[data-theme="light"] .skills-grid span {
  color: #0b5963;
  background: rgba(0,111,123,.035);
}

html[data-theme="light"] .language-switch,
html[data-theme="light"] .theme-button {
  background: rgba(255,255,255,.88);
}

@media (max-width: 900px) {
  .about-topbar {
    padding-right: 180px;
  }

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

  .about-hero {
    position: relative;
    top: auto;
  }

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

@media (max-width: 640px) {
  .about-page {
    padding: 18px 14px 34px;
  }

  .about-topbar {
    display: grid;
    gap: 8px;
    padding-right: 86px;
  }

  .about-status {
    text-align: left;
  }

  .theme-switch {
    top: 12px;
    right: 98px;
  }

  .theme-label {
    display: none;
  }

  .theme-button {
    width: 34px;
    min-width: 34px;
    justify-content: center;
    padding-inline: 0;
  }

  .language-switch {
    top: 12px;
    right: 12px;
  }

  h1 {
    font-size: clamp(46px,14vw,72px);
  }

  .about-section {
    grid-template-columns: 30px minmax(0,1fr);
    gap: 14px;
    padding-block: 26px 30px;
  }

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


html[data-theme="light"] .terminal-link,
html[data-theme="light"] .about-action,
html[data-theme="light"] .action-link,
html[data-theme="light"] .copy-button,
html[data-theme="light"] .send-button,
html[data-theme="light"] .theme-button,
html[data-theme="light"] .lang-button,
html[data-theme="light"] .back-link {
  color: #17383e;
}

html[data-theme="light"] .terminal-link::before,
html[data-theme="light"] .theme-icon,
html[data-theme="light"] .lang-button.is-active,
html[data-theme="light"] .about-action--primary,
html[data-theme="light"] .action-link {
  color: #005f69;
}

html[data-theme="light"] .terminal-link:hover,
html[data-theme="light"] .terminal-link:focus-visible,
html[data-theme="light"] .about-action:hover,
html[data-theme="light"] .about-action:focus-visible,
html[data-theme="light"] .action-link:hover,
html[data-theme="light"] .action-link:focus-visible,
html[data-theme="light"] .copy-button:hover,
html[data-theme="light"] .copy-button:focus-visible,
html[data-theme="light"] .theme-button:hover,
html[data-theme="light"] .theme-button:focus-visible,
html[data-theme="light"] .lang-button:hover,
html[data-theme="light"] .lang-button:focus-visible {
  color: #072f35;
}


/* ==========================================================================
   Global top-right controls: professional links + theme + language
   ========================================================================== */

.global-links {
  position: fixed;
  top: 18px;
  right: 202px;
  z-index: 101;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.global-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(111, 247, 255, 0.22);
  border-radius: 8px;
  background: rgba(7, 11, 18, 0.78);
  backdrop-filter: blur(10px);
  color: var(--muted);
  text-decoration: none;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    transform 0.16s ease;
}

.global-link:hover,
.global-link:focus-visible {
  color: var(--cyan-strong);
  border-color: rgba(111, 247, 255, 0.52);
  background: rgba(111, 247, 255, 0.07);
  transform: translateY(-1px);
  outline: none;
}

html[data-theme="light"] .global-link {
  color: #23474e;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 95, 105, 0.22);
}

html[data-theme="light"] .global-link:hover,
html[data-theme="light"] .global-link:focus-visible {
  color: #06373e;
  border-color: rgba(0, 95, 105, 0.46);
  background: rgba(0, 95, 105, 0.055);
}

@media (max-width: 760px) {
  .global-links {
    top: 12px;
    right: 174px;
    gap: 4px;
  }

  .global-link {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 560px) {
  .global-links {
    position: static;
    margin-left: auto;
    margin-bottom: 8px;
  }
}


@media (min-width: 561px) {
  .projects-topbar,
  .contact-topbar,
  .about-topbar {
    padding-right: 320px;
  }

  .projects-status,
  .contact-status,
  .about-status {
    max-width: calc(100% - 320px);
  }
}


@media (max-width: 560px) {
  .theme-switch,
  .language-switch {
    position: fixed;
  }

  .global-links {
    position: fixed;
    top: 12px;
    left: 12px;
    right: auto;
    margin: 0;
  }

  .projects-topbar,
  .contact-topbar,
  .about-topbar {
    padding-top: 54px;
    padding-right: 0;
  }

  .projects-status,
  .contact-status,
  .about-status {
    max-width: 100%;
  }
}


/* Refined external-link icon buttons */
.global-link {
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.015),
    0 8px 20px rgba(0,0,0,0.12);
}

.global-link__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.global-link__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.global-link:hover .global-link__icon,
.global-link:focus-visible .global-link__icon {
  transform: scale(1.05);
}

.global-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 16px rgba(111,247,255,0.05);
  pointer-events: none;
}

html[data-theme="light"] .global-link::after {
  box-shadow: inset 0 0 14px rgba(0,95,105,0.035);
}


/* 2026-10 light-mode contrast */
html[data-theme="light"] .hero-intro,
html[data-theme="light"] .about-section p,
html[data-theme="light"] .about-status,
html[data-theme="light"] .back-link {
  color: #294a50;
}

html[data-theme="light"] .about-action--primary {
  color: #f7fbfc;
  border-color: #0b5059;
  background: #0b5059;
}

html[data-theme="light"] .about-action--primary:hover,
html[data-theme="light"] .about-action--primary:focus-visible {
  color: #ffffff;
  border-color: #073a42;
  background: #073a42;
}


/* Visible CV download control */
.global-link--cv {
  width: auto;
  min-width: 58px;
  padding-inline: 9px;
  gap: 6px;
}
.global-link--cv .global-link__icon {
  width: 14px;
  height: 14px;
}
.global-link__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
}
@media (max-width: 560px) {
  .global-link--cv { min-width: 52px; padding-inline: 7px; }
}
