:root {
  --bg-deep: #050e1a;
  --bg-mid: #0a1929;
  --bg-card: rgba(255, 255, 255, 0.04);
  --accent1: #00c8ff;
  --accent2: #0077cc;
  --gold: #f0c060;
  --text-main: #e8f4ff;
  --text-muted: #7da8c8;
  --border: rgba(0, 200, 255, 0.18);
  --glow: 0 0 30px rgba(0, 200, 255, 0.15);
  --shadow-strong: rgba(0, 0, 0, 0.3);
  --shadow-soft: rgba(0, 0, 0, 0.4);
  --surface-soft: rgba(255, 255, 255, 0.025);
  --surface-border: rgba(255, 255, 255, 0.06);
  --track-bg: rgba(255, 255, 255, 0.08);
  --page-glow-1: rgba(0, 119, 204, 0.25);
  --page-glow-2: rgba(0, 200, 255, 0.12);
  --page-glow-3: rgba(240, 192, 96, 0.04);
  --dots-1: rgba(0, 200, 255, 0.3);
  --dots-2: rgba(240, 192, 96, 0.2);
  --sidebar-w: 300px;
  --radius: 16px;
}

body[data-theme="light"] {
  --bg-deep: #e7f1f8;
  --bg-mid: #d6e9f5;
  --bg-card: rgba(255, 255, 255, 0.82);
  --text-main: #102b3f;
  --text-muted: #4f728c;
  --border: rgba(0, 119, 204, 0.22);
  --glow: 0 0 34px rgba(0, 119, 204, 0.1);
  --shadow-strong: rgba(31, 75, 110, 0.11);
  --shadow-soft: rgba(31, 75, 110, 0.16);
  --surface-soft: rgba(255, 255, 255, 0.72);
  --surface-border: rgba(20, 50, 74, 0.1);
  --track-bg: rgba(20, 50, 74, 0.1);
  --page-glow-1: rgba(0, 119, 204, 0.22);
  --page-glow-2: rgba(0, 200, 255, 0.16);
  --page-glow-3: rgba(240, 192, 96, 0.14);
  --dots-1: rgba(0, 119, 204, 0.22);
  --dots-2: rgba(240, 192, 96, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, var(--page-glow-1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, var(--page-glow-2) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, var(--page-glow-3) 0%, transparent 60%),
    var(--bg-deep);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, var(--dots-1) 1px, transparent 1px),
    radial-gradient(circle, var(--dots-2) 1px, transparent 1px);
  background-size: 80px 80px, 130px 130px;
  background-position: 0 0, 40px 40px;
  animation: particlesDrift 40s linear infinite;
  opacity: 0.4;
}

@keyframes particlesDrift {
  0% {
    background-position: 0 0, 40px 40px;
  }

  100% {
    background-position: 80px 80px, 170px 170px;
  }
}

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: auto 1fr;
  gap: 24px;
}

.hero {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
  overflow: hidden;
  padding: 36px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(20px);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: fadeSlideDown 0.6s ease both;
}

body[data-theme="light"] .hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 245, 252, 0.84)),
    rgba(255, 255, 255, 0.55);
  box-shadow:
    0 20px 42px rgba(31, 75, 110, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent1),
    var(--gold),
    var(--accent1),
    transparent
  );
  animation: shimmerBar 3s linear infinite;
}

.hero::after {
  content: "\f13d";
  position: absolute;
  top: 50%;
  right: 44px;
  transform: translateY(-50%);
  font-family: "Font Awesome 6 Free";
  font-size: 160px;
  font-weight: 900;
  color: rgba(0, 200, 255, 0.08);
  pointer-events: none;
}

@keyframes shimmerBar {
  0% {
    background-position: -300px 0;
  }

  100% {
    background-position: 300px 0;
  }
}

.theme-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 54px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

body[data-theme="dark"] .theme-toggle__icon--sun,
body[data-theme="light"] .theme-toggle__icon--moon {
  opacity: 0.45;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar-ring {
  width: 120px;
  height: 120px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent1), var(--gold), var(--accent2));
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.4);
  animation: ringPulse 4s ease-in-out infinite;
}

@keyframes ringPulse {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.35);
  }

  50% {
    box-shadow: 0 0 55px rgba(0, 200, 255, 0.65);
  }
}

.avatar-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a1929, #0d2340);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent1);
  letter-spacing: -1px;
}

body[data-theme="light"] .avatar-inner {
  background: linear-gradient(135deg, #d4e9f5, #f8fbff);
}

.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-initials {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.avatar-inner.is-fallback img {
  display: none;
}

.avatar-inner.is-fallback .avatar-initials {
  display: flex;
}

.avatar-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 28px;
  height: 28px;
  border: 2px solid var(--bg-deep);
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
}

.avatar-upload-hint {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 0.65rem;
}

.hero-text {
  flex: 1;
  margin-left: 10px;
}

.hero-title {
  margin-bottom: 6px;
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, var(--accent1) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #0e2435 0%, var(--accent2) 55%, #ab7a12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-subtitle__icon {
  margin-right: 6px;
}

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

.hero-meta-item,
.experience-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta-item {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-meta-item i {
  color: var(--accent1);
  font-size: 0.8rem;
}

.experience-chip {
  padding: 5px 14px;
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.15), rgba(0, 119, 204, 0.1));
  color: var(--accent1);
  font-size: 0.82rem;
  font-weight: 600;
}

body[data-theme="light"] .experience-chip {
  border-color: rgba(0, 119, 204, 0.34);
  background: linear-gradient(135deg, rgba(0, 119, 204, 0.16), rgba(0, 200, 255, 0.12));
  box-shadow: 0 10px 20px rgba(0, 119, 204, 0.12);
}

.sidebar,
.main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar {
  animation: fadeSlideLeft 0.7s ease 0.1s both;
}

.main {
  animation: fadeSlideRight 0.7s ease 0.1s both;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  box-shadow:
    0 4px 24px var(--shadow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px var(--shadow-soft),
    0 0 20px rgba(0, 200, 255, 0.1);
  border-color: rgba(0, 200, 255, 0.32);
}

body[data-theme="light"] .card {
  box-shadow:
    0 14px 32px rgba(31, 75, 110, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body[data-theme="light"] .card::before {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: -24px 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent1), rgba(240, 192, 96, 0.95));
}

body[data-theme="light"] .card-routes {
  border-color: rgba(0, 119, 204, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 119, 204, 0.12), rgba(255, 255, 255, 0.82) 72%);
  box-shadow:
    0 14px 34px rgba(0, 119, 204, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body[data-theme="light"] .card-routes .sec-title {
  color: #1f5f88;
}

body[data-theme="light"] .card-routes .sec-icon {
  border-color: rgba(0, 119, 204, 0.26);
  background: linear-gradient(135deg, rgba(0, 119, 204, 0.2), rgba(0, 200, 255, 0.18));
  color: #0a86cc;
}

body[data-theme="light"] .card-routes .sec-line {
  background: linear-gradient(90deg, rgba(0, 119, 204, 0.34), transparent);
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.sec-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.2), rgba(0, 119, 204, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--accent1);
}

.sec-title {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sec-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.25), transparent);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item,
.route-item,
.strength-item,
.tech-card,
.job-period {
  border: 1px solid var(--surface-border);
  background: var(--surface-soft);
}

body[data-theme="light"] .contact-item,
body[data-theme="light"] .route-item,
body[data-theme="light"] .strength-item,
body[data-theme="light"] .tech-card,
body[data-theme="light"] .job-period {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.85rem;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent2), var(--accent1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
}

body[data-theme="light"] .contact-icon {
  box-shadow: 0 8px 18px rgba(0, 119, 204, 0.18);
}

.skill-row {
  margin-bottom: 13px;
}

.skill-row:last-child {
  margin-bottom: 0;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--text-main);
  font-size: 0.82rem;
}

.skill-pct {
  color: var(--accent1);
  font-weight: 600;
}

.skill-pct--gold {
  color: var(--gold);
}

.skill-track {
  height: 6px;
  overflow: hidden;
  border-radius: 100px;
  background: var(--track-bg);
}

.skill-fill {
  position: relative;
  width: 0;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent1);
  box-shadow: 0 0 8px var(--accent1);
}

.skill-fill.gold-bar {
  background: linear-gradient(90deg, #c87a10, var(--gold));
}

.skill-fill.gold-bar::after {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.lang-item:last-child {
  border-bottom: none;
}

body[data-theme="light"] .lang-item {
  border-bottom-color: rgba(20, 50, 74, 0.08);
}

.lang-dots {
  display: flex;
  gap: 4px;
}

.lang-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

body[data-theme="light"] .lang-dot {
  background: rgba(20, 50, 74, 0.12);
}

.lang-dot.filled {
  background: var(--accent1);
  box-shadow: 0 0 5px var(--accent1);
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.status-item__label {
  color: var(--text-main);
  font-size: 0.84rem;
  line-height: 1.35;
}

.status-item__check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.22);
}

.status-item__value-badge {
  flex-shrink: 0;
  max-width: 48%;
  padding: 5px 10px;
  border: 1px solid rgba(0, 200, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 200, 255, 0.09);
  color: var(--accent1);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.status-item__value-badge--ok {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.12);
  color: #16964c;
}

.emphasis-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.emphasis-point {
  position: relative;
  padding: 10px 12px 10px 34px;
  border: 1px solid rgba(240, 192, 96, 0.16);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(240, 192, 96, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--text-main);
  font-size: 0.8rem;
  line-height: 1.35;
}

.emphasis-point::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 12px;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(240, 192, 96, 0.45);
}

body[data-theme="light"] .status-item {
  border-color: rgba(20, 50, 74, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .status-item__value-badge {
  border-color: rgba(0, 119, 204, 0.18);
  background: rgba(0, 119, 204, 0.11);
  color: #0a74b8;
}

body[data-theme="light"] .status-item__value-badge--ok {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.14);
  color: #168549;
}

body[data-theme="light"] .emphasis-point {
  border-color: rgba(214, 151, 26, 0.18);
  background: linear-gradient(135deg, rgba(240, 192, 96, 0.14), rgba(255, 255, 255, 0.7));
}

.card-media {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.media-column {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.media-thumb {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 132px;
  border: 1px solid rgba(0, 200, 255, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at top, rgba(0, 200, 255, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.16);
}

.media-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.media-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(5, 14, 26, 0.92));
}

.media-thumb:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.media-thumb figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 20px);
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 14, 26, 0.45);
  backdrop-filter: blur(14px);
  color: #f2f8ff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-thumb--hero {
  min-height: 164px;
}

body[data-theme="light"] .media-thumb {
  border-color: rgba(0, 119, 204, 0.12);
  background:
    radial-gradient(circle at top, rgba(0, 119, 204, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 14px 24px rgba(31, 75, 110, 0.1);
}

body[data-theme="light"] .media-thumb::after {
  background: linear-gradient(180deg, transparent, rgba(11, 38, 58, 0.82));
}

body[data-theme="light"] .media-thumb figcaption {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.18);
}

.timeline {
  position: relative;
  padding-left: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--accent1), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 28px;
}

.tl-item:last-child {
  margin-bottom: 0;
}

.tl-dot {
  position: absolute;
  top: 5px;
  left: -22px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent1);
  border-radius: 50%;
  background: var(--bg-deep);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.tl-item:hover .tl-dot {
  transform: scale(1.3);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.8);
}

.tl-dot.gold {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(240, 192, 96, 0.5);
}

.tl-item:hover .tl-dot.gold {
  box-shadow: 0 0 16px rgba(240, 192, 96, 0.8);
}

.tl-company {
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tl-role {
  margin-bottom: 2px;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
}

.tl-period {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 200, 255, 0.16);
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(0, 200, 255, 0.08),
    rgba(0, 119, 204, 0.05)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .tl-period {
  border-color: rgba(0, 119, 204, 0.2);
  background: linear-gradient(
    135deg,
    rgba(0, 119, 204, 0.14),
    rgba(0, 200, 255, 0.09)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 22px rgba(31, 75, 110, 0.08);
}

.tl-period__years,
.tl-period__duration {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tl-period__years {
  color: var(--accent1);
  border: 1px solid rgba(0, 200, 255, 0.28);
  background: rgba(0, 200, 255, 0.12);
}

.tl-period__duration {
  color: var(--gold);
  border: 1px solid rgba(240, 192, 96, 0.28);
  background: rgba(240, 192, 96, 0.14);
}

.tl-vessel {
  margin-bottom: 8px;
  color: var(--accent1);
  font-size: 0.82rem;
  font-style: italic;
}

.tl-vessel__icon {
  margin-right: 4px;
  color: var(--accent1);
}

.tl-vessel__icon--gold {
  color: var(--gold);
}

.tl-duties {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 2px;
}

.tl-duties li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.4;
}

.tl-duties li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-top: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent1);
}

.job-periods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.job-period {
  padding: 14px;
  border-radius: 12px;
}

.job-period__years {
  margin-bottom: 6px;
  color: var(--accent1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-period__company {
  margin-bottom: 4px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
}

.job-period__note {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.routes-block,
.routes-section {
  display: flex;
  flex-direction: column;
}

.routes-block {
  gap: 10px;
}

.routes-section {
  margin-top: 14px;
}

.routes-section__title {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.route-item i {
  color: var(--accent1);
  font-size: 1rem;
}

.route-item strong {
  color: var(--text-main);
  margin-right: 4px;
}

body[data-theme="light"] .route-item {
  border-color: rgba(0, 119, 204, 0.16);
  background: linear-gradient(135deg, rgba(0, 119, 204, 0.1), rgba(255, 255, 255, 0.74));
}

.geo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border: 1px solid;
  border-radius: 100px;
  cursor: default;
  font-size: 0.78rem;
  font-weight: 500;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chip-blue {
  color: var(--accent1);
  border-color: rgba(0, 200, 255, 0.3);
  background: rgba(0, 200, 255, 0.1);
}

.chip-gold {
  color: var(--gold);
  border-color: rgba(240, 192, 96, 0.3);
  background: rgba(240, 192, 96, 0.1);
}

.chip-teal {
  color: #00c8a0;
  border-color: rgba(0, 200, 160, 0.3);
  background: rgba(0, 200, 160, 0.1);
}

body[data-theme="light"] .chip-blue {
  border-color: rgba(0, 119, 204, 0.28);
  background: rgba(0, 119, 204, 0.12);
  color: #0a74b8;
}

body[data-theme="light"] .chip-gold {
  border-color: rgba(214, 151, 26, 0.3);
  background: rgba(240, 192, 96, 0.18);
  color: #a96f09;
}

body[data-theme="light"] .chip-teal {
  border-color: rgba(0, 160, 140, 0.28);
  background: rgba(0, 200, 160, 0.14);
  color: #008b78;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.tech-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.tech-card:hover {
  transform: translateY(-1px);
  color: var(--text-main);
  border-color: rgba(0, 200, 255, 0.25);
  background: rgba(0, 200, 255, 0.08);
}

.tech-card i {
  flex-shrink: 0;
  color: var(--accent1);
  font-size: 0.9rem;
}

.tech-card.gold-card i {
  color: var(--gold);
}

.tech-card.gold-card:hover {
  border-color: rgba(240, 192, 96, 0.25);
  background: rgba(240, 192, 96, 0.08);
}

.strengths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.strength-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.strength-item:hover {
  color: var(--text-main);
  border-color: rgba(0, 200, 255, 0.2);
  background: rgba(0, 200, 255, 0.06);
}

.strength-item i {
  margin-top: 1px;
  flex-shrink: 0;
  color: var(--accent1);
}

.edu-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.edu-icon-wrap {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 200, 255, 0.25);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.15), rgba(0, 119, 204, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent1);
  font-size: 1.2rem;
}

.edu-school {
  margin-bottom: 4px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
}

.edu-spec {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.edu-year {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid rgba(240, 192, 96, 0.25);
  border-radius: 100px;
  background: rgba(240, 192, 96, 0.12);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
}

.footer-bar {
  grid-column: 1 / -1;
  margin-top: 8px;
  opacity: 0.5;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.75rem;
}

a[href^="tel"],
a[href^="mailto"] {
  color: inherit;
  text-decoration: none;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeSlideRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--accent2);
}

@media print {
  body::before,
  body::after,
  .theme-toggle,
  .avatar-upload-hint {
    display: none;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

@media (max-width: 860px) {
  .page-wrap {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 12px 60px;
  }

  .hero {
    flex-direction: column;
    gap: 20px;
    padding: 56px 16px 32px;
    text-align: center;
  }

  .hero-text {
    margin-left: 0;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .hero::after {
    display: none;
  }

  .theme-toggle {
    top: 14px;
    right: 14px;
  }

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

  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
  }

  .card {
    padding: 18px 16px;
  }

  .timeline {
    padding-left: 18px;
  }

  .tl-role {
    font-size: 0.92rem;
  }

  .geo-chips {
    gap: 6px;
  }

  .chip {
    padding: 4px 9px;
    font-size: 0.75rem;
  }

  .edu-block {
    flex-direction: column;
    gap: 12px;
  }

  .edu-icon-wrap {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .card-media {
    flex: initial;
  }

  .media-column {
    gap: 8px;
  }

  .media-thumb,
  .media-thumb--hero {
    flex: initial;
    min-height: 160px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.35rem;
  }

  .experience-chip {
    padding: 4px 12px;
    font-size: 0.78rem;
  }

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

  .tl-duties li {
    font-size: 0.8rem;
  }

  .sec-title {
    font-size: 0.72rem;
  }

  .job-periods {
    grid-template-columns: 1fr;
  }

  .media-thumb {
    min-height: 132px;
  }

  .media-thumb--hero {
    min-height: 148px;
  }
}
