/* ============================================================================
 * JATIN — BREEZYCV DARK INSPIRED VCARD STYLESHEET
 * Clean centered floating card · Left profile sidebar · Vertical icon rail
 * Palette: Deep matte charcoal (#222222 / #444444) + Cyan-Blue (#04b4e0)
 * ============================================================================ */

:root,
[data-theme="dark"] {
  --page-bg: #060a12;
  --sidebar-bg: rgba(26, 32, 42, 0.16);
  --content-bg: rgba(12, 16, 24, 0.16);
  --surface-card: rgba(18, 24, 34, 0.20);
  --border: rgba(255, 255, 255, 0.09);
  --rail-border: rgba(255, 255, 255, 0.1);
  --pill-bg: rgba(255, 255, 255, 0.05);
  --pill-border: rgba(255, 255, 255, 0.1);
  --hover-tint: rgba(255, 255, 255, 0.16);
  --modal-bg: #1c2027;
  --toast-bg: #2b2d30;

  --text-heading: #f5f5f5;
  --text-body: #d5d5d5;
  --text-muted: #aaaaaa;
  --text-dim: #888888;
  --btn-hover-ink: #222222;
  --rail-icon: #b5b6b7;

  --accent: #04b4e0;
  --accent-hover: #1bc5ef;
  color-scheme: dark;
}

[data-theme="light"] {
  --page-bg: #eaf1f7;
  --sidebar-bg: rgba(255, 255, 255, 0.34);
  --content-bg: rgba(255, 255, 255, 0.24);
  --surface-card: rgba(255, 255, 255, 0.42);
  --border: rgba(15, 23, 42, 0.11);
  --rail-border: rgba(15, 23, 42, 0.12);
  --pill-bg: rgba(255, 255, 255, 0.56);
  --pill-border: rgba(15, 23, 42, 0.12);
  --hover-tint: rgba(15, 23, 42, 0.08);
  --modal-bg: #ffffff;
  --toast-bg: #ffffff;

  --text-heading: #0f172a;
  --text-body: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;
  --btn-hover-ink: #ffffff;
  --rail-icon: #475569;

  --accent: #0284c7;
  --accent-hover: #0369a1;
  color-scheme: light;
}

:root {
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --font-main: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-name: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--page-bg);
  transition: background-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--page-bg);
  transition: background-color 0.35s var(--ease-smooth);
}

[data-theme="light"] .bg-color-wash {
  background:
    radial-gradient(640px circle at 8% 14%, rgba(245, 158, 11, 0.18), transparent 62%),
    radial-gradient(660px circle at 92% 16%, rgba(16, 185, 129, 0.16), transparent 62%),
    radial-gradient(620px circle at 10% 88%, rgba(139, 92, 246, 0.15), transparent 60%),
    radial-gradient(640px circle at 88% 86%, rgba(2, 132, 199, 0.18), transparent 62%);
}

[data-theme="light"] .bg-engraved-grid {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.08) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.85) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 1px, transparent 1px);
}

[data-theme="light"] .bg-ambient {
  background: radial-gradient(
    460px circle at var(--bg-x, 50%) var(--bg-y, 40%),
    rgba(2, 132, 199, 0.14),
    transparent 65%
  );
}

[data-theme="light"] .trace-groove {
  stroke: rgba(15, 23, 42, 0.11);
}

[data-theme="light"] .trace-line {
  opacity: 0.36;
}

[data-theme="light"] .trace-line--amber { stroke: #ea580c; }
[data-theme="light"] .trace-line--cyan { stroke: #0284c7; }
[data-theme="light"] .trace-line--violet { stroke: #7c3aed; }
[data-theme="light"] .trace-line--emerald { stroke: #059669; }

[data-theme="light"] .pad {
  fill: #eaf1f7;
}

[data-theme="light"] .pad--amber { stroke: #ea580c; }
[data-theme="light"] .pad--cyan { stroke: #0284c7; }
[data-theme="light"] .pad--violet { stroke: #7c3aed; }
[data-theme="light"] .pad--emerald { stroke: #059669; }

/* Contrasting dual-tone architectural wash behind engraved motherboard */
.bg-color-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px circle at 8% 14%, rgba(249, 115, 22, 0.22), transparent 62%),
    radial-gradient(660px circle at 92% 16%, rgba(16, 185, 129, 0.20), transparent 62%),
    radial-gradient(620px circle at 10% 88%, rgba(139, 92, 246, 0.20), transparent 60%),
    radial-gradient(640px circle at 88% 86%, rgba(4, 180, 224, 0.22), transparent 62%);
}

/* Etched metallic blueprint grid */
.bg-engraved-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  background-position: 0 0, 0 0, 1px 1px, 1px 1px;
}

/* Soft ambient cursor sheen illuminating engraved grooves */
.bg-ambient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    460px circle at var(--bg-x, 50%) var(--bg-y, 40%),
    rgba(4, 180, 224, 0.16),
    transparent 65%
  );
  transition: opacity 0.4s var(--ease-smooth);
}

/* Full-canvas carved circuit lines & pulsing data packets */
.bg-circuit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trace-groove {
  stroke: rgba(0, 0, 0, 0.72);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trace-line {
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.34;
}

.trace-line--amber { stroke: #fb923c; }
.trace-line--cyan { stroke: #38bdf8; }
.trace-line--violet { stroke: #a78bfa; }
.trace-line--emerald { stroke: #34d399; }

.trace-pulse {
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 28 240;
  animation: traceFlow 9s linear infinite;
  opacity: 0.78;
}

.trace-pulse--amber { stroke: #fbbf24; animation-duration: 8s; }
.trace-pulse--cyan { stroke: #22d3ee; animation-duration: 10s; animation-delay: -3s; }
.trace-pulse--violet { stroke: #c084fc; animation-duration: 11s; animation-delay: -5s; }
.trace-pulse--emerald { stroke: #34d399; animation-duration: 9s; animation-delay: -2s; }

@keyframes traceFlow {
  from { stroke-dashoffset: 268; }
  to { stroke-dashoffset: 0; }
}

.pad {
  fill: #080d14;
  stroke-width: 2;
}

.pad--amber { stroke: #fb923c; }
.pad--cyan { stroke: #38bdf8; }
.pad--violet { stroke: #a78bfa; }
.pad--emerald { stroke: #34d399; }

/* Engraved viewport corner brackets */
.bg-frame-brackets {
  position: absolute;
  inset: 10px;
}

.bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(56, 189, 248, 0.28);
  border-style: solid;
  border-width: 0;
}

.bracket--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 8px; border-color: rgba(251, 146, 60, 0.4); }
.bracket--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 8px; border-color: rgba(52, 211, 153, 0.4); }
.bracket--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 8px; border-color: rgba(167, 139, 250, 0.4); }
.bracket--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 8px; border-color: rgba(56, 189, 248, 0.4); }

/* ============================================================================
 * CENTERED STAGE & FLOATING VCARD
 * ============================================================================ */

.vcard-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
}

.vcard-wrapper {
  width: 100%;
  max-width: 1580px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.vcard {
  flex: 1;
  max-width: 1480px;
  height: min(94vh, 920px);
  min-height: 660px;
  display: flex;
  background: transparent;
  backdrop-filter: blur(4px) saturate(135%);
  -webkit-backdrop-filter: blur(4px) saturate(135%);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.72),
    0 0 60px -20px rgba(4, 180, 224, 0.18);
}

[data-theme="light"] .vcard {
  border-color: rgba(15, 23, 42, 0.12);
  text-shadow: none;
  box-shadow:
    0 24px 68px rgba(15, 23, 42, 0.13),
    0 0 48px -18px rgba(2, 132, 199, 0.16);
}

/* ============================================================================
 * LEFT PROFILE SIDEBAR
 * ============================================================================ */

.profile-sidebar {
  width: 400px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sidebar-top {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sidebar-info {
  width: 100%;
  margin-top: 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-ring {
  position: relative;
  width: min(265px, 100%);
  height: 248px;
  border-radius: 0;
  padding: 0;
  border: 0;
  background: radial-gradient(circle at 50% 44%, rgba(4, 180, 224, 0.14), transparent 72%);
  margin: 0 auto 6px;
  overflow: visible;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  border: 0;
  display: block;
  background: transparent;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.28));
  -webkit-mask-image:
    linear-gradient(to bottom, #000 0%, #000 64%, rgba(0, 0, 0, 0.72) 80%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 0%, #000 64%, rgba(0, 0, 0, 0.72) 80%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}

[data-theme="light"] .avatar-ring {
  background: radial-gradient(circle at 50% 44%, rgba(2, 132, 199, 0.16), transparent 72%);
}

[data-theme="light"] .avatar-ring img {
  filter: drop-shadow(0 6px 16px rgba(15, 23, 42, 0.16));
}

.sidebar-name {
  margin: 0 0 6px;
  font-family: var(--font-name);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-heading);
}

.sidebar-role {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--text-muted);
}

.sidebar-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 7px;
  margin: 4px 0 18px;
  white-space: nowrap;
}

.sidebar-contact-sep {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.sidebar-contact-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.24s var(--ease-smooth);
}

.sidebar-contact-btn:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.sidebar-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.social-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  background: transparent;
  transition: background-color 0.28s var(--ease-smooth), color 0.28s var(--ease-smooth), transform 0.28s var(--ease-smooth);
  text-decoration: none;
}

.social-circle:hover {
  background: var(--hover-tint);
  transform: translate3d(0, -2px, 0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border-radius: 999px;
  border: 2px solid var(--text-heading);
  background: transparent;
  color: var(--text-heading);
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.btn-outline:hover {
  background: var(--text-heading);
  color: var(--btn-hover-ink);
  transform: translate3d(0, -1px, 0);
}

.btn-outline--accent {
  border-color: var(--accent);
  color: var(--text-heading);
}

.btn-outline--accent:hover {
  background: var(--accent);
  color: #ffffff;
}

.sidebar-copy {
  margin: 24px 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Mobile-only nav inside drawer */
.mobile-section-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  margin: 10px 0 24px;
  border-top: 1px solid var(--border);
}

.mobile-nav-item {
  padding: 10px 0;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-item.is-active {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================================
 * RIGHT CONTENT AREA & PAGE SECTIONS
 * ============================================================================ */

.content-area {
  flex: 1;
  min-width: 0;
  background: var(--content-bg);
  position: relative;
  overflow: hidden;
}

.page-section {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 36px 52px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(4, 180, 224, 0.35) transparent;
  will-change: transform, opacity;
  z-index: 2;
}

.section-inner {
  width: 100%;
  margin: 0;
}

.page-section[hidden] {
  display: none;
}

.page-section.is-entering-next {
  z-index: 3;
  animation: swapInNext 0.46s var(--ease-smooth) both;
}

.page-section.is-leaving-next {
  z-index: 1;
  pointer-events: none;
  animation: swapOutNext 0.44s var(--ease-smooth) both;
}

.page-section.is-entering-prev {
  z-index: 3;
  animation: swapInPrev 0.46s var(--ease-smooth) both;
}

.page-section.is-leaving-prev {
  z-index: 1;
  pointer-events: none;
  animation: swapOutPrev 0.44s var(--ease-smooth) both;
}

@keyframes swapInNext {
  from {
    opacity: 0;
    transform: translate3d(0, 44px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes swapOutNext {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -34px, 0) scale(0.975);
  }
}

@keyframes swapInPrev {
  from {
    opacity: 0;
    transform: translate3d(0, -44px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes swapOutPrev {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(0.975);
  }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Home Splash (Simple & Clean) */
#home.page-section {
  display: flex;
  flex-direction: column;
}

#home.page-section[hidden] {
  display: none;
}

.home-center {
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 640px;
}

.home-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.home-location svg {
  color: var(--accent);
}

.home-name {
  margin: 0;
  font-family: var(--font-name);
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  background: linear-gradient(135deg, #ffffff 35%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .home-name {
  background: linear-gradient(135deg, #0f172a 35%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.home-designation {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
}

.home-at {
  color: var(--text-dim);
}

.home-company-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.24s var(--ease-smooth);
}

.home-company-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.timeline-company-link {
  color: var(--accent);
  text-decoration: none;
}

.timeline-company-link:hover {
  text-decoration: underline;
}

/* Section Titles */
.page-title-wrap {
  margin-bottom: 18px;
}

.page-title {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text-heading);
  position: relative;
  display: inline-block;
}

.page-title span,
.block-title span {
  color: var(--accent);
}

.sub-block {
  margin-top: 22px;
}

.block-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
}

/* ============================================================================
 * ABOUT ME SECTION
 * ============================================================================ */

.about-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#about .page-title-wrap {
  margin-bottom: 10px;
}

.about-bio {
  margin: 0;
  width: 100%;
  max-width: none;
  color: var(--text-body);
  font-size: clamp(1.06rem, 1.3vw, 1.18rem);
  line-height: 1.72;
}

.about-stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.hive-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hive-header .block-title {
  margin: 0;
  align-self: center;
}

.hive-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-card);
  max-width: 100%;
}

.hive-filter-btn {
  --dom-c: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.22s var(--ease-smooth), color 0.22s var(--ease-smooth), background-color 0.22s var(--ease-smooth), box-shadow 0.22s var(--ease-smooth);
}

.hive-filter-btn[data-domain="backend"] { --dom-c: #fb923c; }
.hive-filter-btn[data-domain="frontend"] { --dom-c: #a78bfa; }
.hive-filter-btn[data-domain="devops"] { --dom-c: #38bdf8; }
.hive-filter-btn[data-domain="security"] { --dom-c: #34d399; }

[data-theme="light"] .hive-filter-btn[data-domain="backend"] { --dom-c: #ea580c; }
[data-theme="light"] .hive-filter-btn[data-domain="frontend"] { --dom-c: #7c3aed; }
[data-theme="light"] .hive-filter-btn[data-domain="devops"] { --dom-c: #0284c7; }
[data-theme="light"] .hive-filter-btn[data-domain="security"] { --dom-c: #059669; }

.hive-filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dom-c);
  box-shadow: 0 0 6px var(--dom-c);
}

.hive-filter-btn:hover {
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .hive-filter-btn:hover {
  background: rgba(15, 23, 42, 0.05);
}

.hive-filter-btn.is-active {
  border-color: var(--dom-c);
  color: var(--text-heading);
  background: var(--pill-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .hive-filter-btn.is-active {
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.hive-stage {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  padding: 10px 4px 6px;
}

.hex-hive {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hex-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.hex-row + .hex-row {
  margin-top: -22px;
}

.hex-cell {
  --hex-c: var(--accent);
  --hex-bg: rgba(4, 180, 224, 0.16);
  position: relative;
  width: 94px;
  height: 106px;
  flex-shrink: 0;
  border: 0;
  padding: 0 8px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  z-index: 1;
  transition: transform 0.26s var(--ease-smooth), opacity 0.26s var(--ease-smooth), filter 0.26s var(--ease-smooth);
}

.hex-cell[data-domain="backend"] { --hex-c: #fb923c; --hex-bg: rgba(251, 146, 60, 0.18); }
.hex-cell[data-domain="frontend"] { --hex-c: #a78bfa; --hex-bg: rgba(167, 139, 250, 0.18); }
.hex-cell[data-domain="devops"] { --hex-c: #38bdf8; --hex-bg: rgba(56, 189, 248, 0.18); }
.hex-cell[data-domain="security"] { --hex-c: #34d399; --hex-bg: rgba(52, 211, 153, 0.18); }

[data-theme="light"] .hex-cell[data-domain="backend"] { --hex-c: #ea580c; --hex-bg: rgba(234, 88, 12, 0.14); }
[data-theme="light"] .hex-cell[data-domain="frontend"] { --hex-c: #7c3aed; --hex-bg: rgba(124, 58, 237, 0.14); }
[data-theme="light"] .hex-cell[data-domain="devops"] { --hex-c: #0284c7; --hex-bg: rgba(2, 132, 199, 0.14); }
[data-theme="light"] .hex-cell[data-domain="security"] { --hex-c: #059669; --hex-bg: rgba(5, 150, 105, 0.14); }

.hex-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.hex-polygon {
  fill: rgba(16, 22, 32, 0.72);
  stroke: var(--hex-c);
  stroke-opacity: 0.34;
  stroke-width: 1.5;
  transition: fill 0.24s var(--ease-smooth), stroke 0.24s var(--ease-smooth), stroke-opacity 0.24s var(--ease-smooth), stroke-width 0.24s var(--ease-smooth);
}

[data-theme="light"] .hex-polygon {
  fill: rgba(255, 255, 255, 0.84);
  stroke-opacity: 0.4;
}

.hex-icon {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  color: var(--hex-c);
  flex-shrink: 0;
  transition: transform 0.24s var(--ease-smooth), filter 0.24s var(--ease-smooth);
}

.hex-name {
  position: relative;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-heading);
  word-break: break-word;
}

.hex-cell.is-highlighted .hex-polygon {
  stroke-opacity: 0.85;
  stroke-width: 1.9;
  fill: var(--hex-bg);
}

.hex-cell:hover,
.hex-cell:focus-visible,
.hex-cell.is-selected {
  transform: translate3d(0, -6px, 0) scale(1.1);
  z-index: 8;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.48));
}

[data-theme="light"] .hex-cell:hover,
[data-theme="light"] .hex-cell:focus-visible,
[data-theme="light"] .hex-cell.is-selected {
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.16));
}

.hex-cell:hover .hex-polygon,
.hex-cell:focus-visible .hex-polygon,
.hex-cell.is-selected .hex-polygon {
  stroke-opacity: 1;
  stroke-width: 2.3;
  fill: var(--hex-bg);
}

.hex-cell:hover .hex-icon,
.hex-cell:focus-visible .hex-icon,
.hex-cell.is-selected .hex-icon {
  transform: scale(1.12);
}

.hex-cell.is-selected .hex-name {
  color: var(--hex-c);
}

.hex-cell.is-dimmed {
  opacity: 0.22;
  transform: scale(0.92);
}

/* ============================================================================
 * RESUME SECTION (TIMELINES + SKILL BARS + KNOWLEDGES)
 * ============================================================================ */

.resume-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
}

.resume-left > .sub-block:first-child,
.resume-right > .sub-block:first-child {
  margin-top: 0;
}

.exp-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.exp-header .page-title-wrap {
  margin-bottom: 0;
}

.exp-span-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: var(--accent);
  letter-spacing: 0.03em;
}

/* ============================================================================
 * SIMPLE TIME MACHINE EXPERIENCE ENGINE
 * ============================================================================ */

.exp-tm {
  --exp-c: #34d399;
  --exp-bg: rgba(52, 211, 153, 0.16);
  margin: auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(260px, 1.1fr);
  align-items: center;
  gap: 32px clamp(24px, 4vw, 52px);
}

.exp-tm[data-tone="amber"] { --exp-c: #fb923c; --exp-bg: rgba(251, 146, 60, 0.17); }
.exp-tm[data-tone="violet"] { --exp-c: #a78bfa; --exp-bg: rgba(167, 139, 250, 0.17); }
.exp-tm[data-tone="cyan"] { --exp-c: #38bdf8; --exp-bg: rgba(56, 189, 248, 0.17); }
.exp-tm[data-tone="emerald"] { --exp-c: #34d399; --exp-bg: rgba(52, 211, 153, 0.2); }

[data-theme="light"] .exp-tm[data-tone="amber"] { --exp-c: #ea580c; --exp-bg: rgba(234, 88, 12, 0.12); }
[data-theme="light"] .exp-tm[data-tone="violet"] { --exp-c: #7c3aed; --exp-bg: rgba(124, 58, 237, 0.12); }
[data-theme="light"] .exp-tm[data-tone="cyan"] { --exp-c: #0284c7; --exp-bg: rgba(2, 132, 199, 0.12); }
[data-theme="light"] .exp-tm[data-tone="emerald"] { --exp-c: #059669; --exp-bg: rgba(5, 150, 105, 0.14); }

/* Minimal Futuristic Clock Dial */
.exp-tm-clock {
  position: relative;
  width: min(100%, 290px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exp-tm-clock::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--exp-bg) 0%, transparent 72%);
  opacity: 0.82;
  pointer-events: none;
  transition: transform 0.35s var(--ease-smooth), opacity 0.35s var(--ease-smooth);
}

.exp-tm.is-warping .exp-tm-clock::before {
  transform: scale(1.12);
  opacity: 1;
}

.exp-tm-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.exp-tm-ring-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
}

.exp-tm-tick {
  stroke: var(--text-dim);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.48;
}

.exp-tm-tick--major {
  stroke: var(--exp-c);
  stroke-width: 2;
  opacity: 0.72;
  transition: stroke 0.3s var(--ease-smooth);
}

.exp-tm-needle {
  transform-box: view-box;
  transform-origin: 160px 160px;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-tm-needle-ray {
  stroke: var(--exp-c);
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: stroke 0.3s var(--ease-smooth);
}

.exp-tm-needle-tip {
  fill: var(--exp-c);
  transition: fill 0.3s var(--ease-smooth);
}

/* Central Clock Portal Core */
.exp-tm-eye {
  position: relative;
  z-index: 2;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  border: 1.8px solid var(--exp-c);
  background: rgba(12, 17, 27, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 10px;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.44), inset 0 0 20px var(--exp-bg);
  transition: border-color 0.3s var(--ease-smooth), transform 0.32s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

[data-theme="light"] .exp-tm-eye {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12), inset 0 0 16px var(--exp-bg);
}

.exp-tm.is-warping .exp-tm-eye {
  transform: scale(1.07);
}

.exp-tm-eye-icon {
  color: var(--exp-c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s var(--ease-smooth);
}

.exp-tm-eye-icon svg {
  width: 24px;
  height: 24px;
}

.exp-tm-eye-year {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 0.03em;
  line-height: 1.1;
}

/* Right Minimal Designation + @Company & Centered Below Icon Buttons */
.exp-tm-caption {
  position: relative;
  padding: 10px 6px 10px 26px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.exp-tm-caption::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 2.5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--exp-c), rgba(255, 255, 255, 0.08) 76%, transparent);
  transition: background 0.35s var(--ease-smooth);
}

[data-theme="light"] .exp-tm-caption::before {
  background: linear-gradient(180deg, var(--exp-c), rgba(15, 23, 42, 0.08) 76%, transparent);
}

.exp-tm-caption-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  animation: tmDossierIn 0.28s var(--ease-smooth);
}

@keyframes tmDossierIn {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.exp-title {
  margin: 0;
  font-family: var(--font-name);
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  line-height: 1.18;
}

.exp-affiliation {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

.exp-at {
  color: var(--text-dim);
}

.exp-company-name {
  color: var(--exp-c);
  font-weight: 500;
}

.exp-company-link {
  color: var(--exp-c);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--exp-c);
  transition: color 0.2s var(--ease-smooth), opacity 0.2s var(--ease-smooth);
}

.exp-company-link:hover {
  opacity: 0.85;
}

.exp-tm-nav {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.exp-tm-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.22s var(--ease-smooth), color 0.22s var(--ease-smooth), background-color 0.22s var(--ease-smooth), transform 0.22s var(--ease-smooth), box-shadow 0.22s var(--ease-smooth);
}

.exp-tm-nav-btn:hover:not(:disabled) {
  border-color: var(--exp-c);
  color: var(--exp-c);
  background: var(--exp-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--exp-bg);
}

.exp-tm-nav-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

@media (max-width: 1080px) {
  .exp-tm {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .exp-tm-clock {
    width: min(100%, 248px);
  }

  .exp-tm-caption {
    padding: 0;
    align-items: center;
    text-align: center;
  }

  .exp-tm-caption::before {
    display: none;
  }

  .exp-tm-caption-body {
    align-items: center;
  }
}

/* Skill Bars */
.skills-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.skill-pct {
  color: var(--text-muted);
  font-weight: 400;
}

.skill-track {
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  padding: 1.5px;
  background: transparent;
}

.skill-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

/* Knowledges Tags */
.knowledges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.knowledge-tag {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 500;
}

/* ============================================================================
 * PORTFOLIO SECTION
 * ============================================================================ */

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
}

.pf-filter {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0 0 4px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.26s var(--ease-smooth);
}

.pf-filter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease-smooth);
}

.pf-filter:hover {
  color: var(--text-heading);
}

.pf-filter.is-active {
  color: var(--accent);
}

.pf-filter.is-active::after {
  transform: scaleX(1);
}

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

.pf-card {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pf-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(24, 28, 35, 0.66);
  height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  transition: border-color 0.32s var(--ease-smooth), transform 0.32s var(--ease-smooth), box-shadow 0.32s var(--ease-smooth);
}

.pf-card:hover .pf-thumb {
  border-color: var(--accent);
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 12px 26px -14px rgba(4, 180, 224, 0.32);
}

.pf-thumb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.pf-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(4, 180, 224, 0.16);
  color: var(--accent);
  font-weight: 500;
}

.pf-thumb-preview {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.5;
}

.pf-thumb-stack {
  font-size: 0.73rem;
  color: var(--text-dim);
}

.pf-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
}

.pf-cat {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================================
 * CONTACT SECTION
 * ============================================================================ */

.contact-columns {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

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

.contact-info-box {
  background: rgba(34, 38, 45, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 15px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.contact-info-btn {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.28s var(--ease-smooth), transform 0.28s var(--ease-smooth), box-shadow 0.28s var(--ease-smooth);
}

.contact-info-btn:hover {
  border-color: var(--accent);
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 10px 22px -14px rgba(4, 180, 224, 0.32);
}

.contact-icon {
  color: var(--accent);
  display: inline-flex;
}

.contact-info-box h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-heading);
}

.copy-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.breezy-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.breezy-form input,
.breezy-form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 6px;
  border: 2px solid #555555;
  background: transparent;
  color: var(--text-heading);
  font-family: var(--font-main);
  font-size: 0.88rem;
  transition: border-color 0.2s ease;
}

.breezy-form textarea {
  height: 100%;
  min-height: 136px;
  resize: vertical;
}

.breezy-form input:focus,
.breezy-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.breezy-form input::placeholder,
.breezy-form textarea::placeholder {
  color: #888888;
}

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

.btn-text {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.btn-text:hover {
  color: var(--accent);
}

/* ============================================================================
 * RIGHT FLOATING VERTICAL ICON RAIL & ARROWS
 * ============================================================================ */

.side-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: min(94vh, 920px);
  padding: 6px 0;
}

.icon-menu {
  width: 68px;
  background: var(--sidebar-bg);
  backdrop-filter: blur(4px) saturate(135%);
  -webkit-backdrop-filter: blur(4px) saturate(135%);
  border: 1px solid var(--rail-border);
  border-radius: 36px;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--rail-border);
  background: var(--sidebar-bg);
  backdrop-filter: blur(4px) saturate(135%);
  -webkit-backdrop-filter: blur(4px) saturate(135%);
  color: var(--rail-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s var(--ease-smooth), color 0.26s var(--ease-smooth), border-color 0.26s var(--ease-smooth);
}

.lang-switcher {
  position: relative;
}

.lang-toggle-btn {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--rail-border);
  background: var(--sidebar-bg);
  backdrop-filter: blur(4px) saturate(135%);
  -webkit-backdrop-filter: blur(4px) saturate(135%);
  color: var(--rail-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s var(--ease-smooth), color 0.26s var(--ease-smooth), border-color 0.26s var(--ease-smooth);
}

.lang-toggle-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.lang-code {
  position: absolute;
  top: -4px;
  right: -4px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--modal-bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.lang-toggle-btn:hover,
.lang-toggle-btn[aria-expanded="true"] {
  transform: translate3d(0, -2px, 0);
  color: var(--accent);
  border-color: var(--accent);
}

.lang-toggle-btn[aria-expanded="true"] .menu-tooltip {
  opacity: 0 !important;
  pointer-events: none;
}

.lang-menu {
  position: absolute;
  right: 68px;
  bottom: 0;
  min-width: 192px;
  max-height: min(440px, calc(100vh - 110px));
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--rail-border);
  background: var(--modal-bg);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 110;
  animation: pageFadeIn 0.16s ease;
}

[data-theme="light"] .lang-menu {
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-body);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-smooth), color 0.2s var(--ease-smooth);
}

.lang-option:hover {
  background: var(--hover-tint);
  color: var(--text-heading);
}

.lang-option[aria-checked="true"] {
  background: rgba(4, 180, 224, 0.14);
  color: var(--accent);
  font-weight: 600;
}

.lang-option-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-heading);
}

.lang-option[aria-checked="true"] .lang-option-code {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-option-name {
  flex: 1;
}

.theme-toggle-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.theme-toggle-btn .menu-tooltip {
  right: 68px;
}

.theme-toggle-btn:hover {
  transform: translate3d(0, -2px, 0);
  color: var(--accent);
  border-color: var(--accent);
}

[data-theme="dark"] .theme-icon--moon,
[data-theme="light"] .theme-icon--sun {
  display: none;
}

.icon-menu-item {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rail-icon);
  text-decoration: none;
  border-radius: 50%;
  transition: color 0.28s var(--ease-smooth), transform 0.28s var(--ease-smooth);
}

.icon-menu-item:hover {
  color: var(--accent);
  transform: scale(1.06);
}

.icon-menu-item.is-active {
  color: var(--accent);
}

.menu-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translate3d(10px, -50%, 0);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s var(--ease-smooth), transform 0.26s var(--ease-smooth);
}

.icon-menu-item:hover .menu-tooltip,
.lang-toggle-btn:hover .menu-tooltip,
.theme-toggle-btn:hover .menu-tooltip,
.chat-fab:hover .menu-tooltip {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}

/* ============================================================================
 * MOBILE HAMBURGER BUTTON
 * ============================================================================ */

.mobile-toggle {
  display: none;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

/* ============================================================================
 * PROJECT DETAIL MODAL & TOAST
 * ============================================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-box {
  width: min(680px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--modal-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-cat {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

.modal-title {
  margin: 4px 0 0;
  font-size: 1.45rem;
  color: var(--text-heading);
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #444;
  background: transparent;
  color: var(--text-heading);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-content {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.9rem;
}

.modal-content p {
  margin: 0;
  color: var(--text-body);
}

.modal-bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-bullets li::marker {
  color: var(--accent);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-tag {
  font-size: 0.76rem;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  color: var(--text-body);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.toast {
  position: fixed;
  right: 108px;
  bottom: 30px;
  z-index: 120;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--toast-bg);
  border: 1px solid var(--accent);
  color: var(--text-heading);
  font-size: 0.84rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.toast[hidden] {
  display: none;
}

/* ============================================================================
 * BOTTOM-RIGHT TERMINAL CHATBOT LAUNCHER & WINDOW
 * ============================================================================ */

.chat-fab {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(4, 180, 224, 0.6);
  background: var(--sidebar-bg);
  backdrop-filter: blur(4px) saturate(135%);
  -webkit-backdrop-filter: blur(4px) saturate(135%);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.32s var(--ease-smooth), background-color 0.28s var(--ease-smooth), color 0.28s var(--ease-smooth), border-color 0.28s var(--ease-smooth), box-shadow 0.32s var(--ease-smooth);
}

.chat-fab::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.chat-fab .menu-tooltip {
  right: 80px;
}

.chat-fab:hover {
  transform: translate3d(0, -3px, 0);
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(4, 180, 224, 0.34);
}

.chat-fab-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--sidebar-bg);
}

.chat-widget {
  position: fixed;
  right: 108px;
  bottom: 30px;
  z-index: 95;
  width: min(400px, calc(100vw - 132px));
  height: min(475px, calc(100vh - 64px));
  background: #171a1f;
  border: 1px solid #3c4048;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  transition: width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth);
  animation: pageFadeIn 0.2s ease;
}

.chat-widget.is-maximized {
  width: min(920px, calc(100vw - 132px));
  height: min(740px, calc(100vh - 64px));
}

.chat-widget.is-minimized {
  height: auto;
  width: min(300px, calc(100vw - 32px));
}

.chat-widget.is-minimized .chat-messages,
.chat-widget.is-minimized .chat-chips,
.chat-widget.is-minimized .chat-form {
  display: none;
}

.chat-widget[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #23272e;
  border-bottom: 1px solid #343840;
}

.chat-widget.is-minimized .chat-header {
  border-bottom: 0;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.chat-dot {
  position: relative;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.24s var(--ease-smooth), color 0.22s var(--ease-smooth), filter 0.22s var(--ease-smooth);
}

.chat-dot::before {
  content: "";
  position: absolute;
  inset: -4px;
}

.chat-dot--red { background: #ff5f57; }
.chat-dot--yellow { background: #febc2e; }
.chat-dot--green { background: #28c840; }

.chat-dots:hover .chat-dot,
.chat-dot:focus-visible {
  color: rgba(15, 23, 42, 0.88);
}

@media (hover: none) {
  .chat-dot {
    color: rgba(15, 23, 42, 0.72);
  }
}

.chat-dot:hover {
  transform: scale(1.1);
  filter: brightness(1.06);
}

.chat-title {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-ctrl-btn {
  background: transparent;
  border: 1px solid #3c4048;
  border-radius: 4px;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.7rem;
  padding: 2px 7px;
  cursor: pointer;
}

.chat-ctrl-btn:hover {
  color: #f8fafc;
  border-color: var(--accent);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: #3c4048 #171a1f;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg--user {
  color: #f8fafc;
}

.chat-msg--user .chat-prefix {
  color: #10b981;
  margin-right: 6px;
}

.chat-msg--bot {
  color: #cbd5e1;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
}

.chat-msg--warn {
  color: #fbbf24;
  padding-left: 10px;
  border-left: 2px solid #f59e0b;
}

.chat-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.chat-action-btn {
  background: rgba(4, 180, 224, 0.14);
  border: 1px solid rgba(4, 180, 224, 0.45);
  color: #7dd3fc;
  font-family: inherit;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
}

.chat-action-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid #282c33;
  background: #1a1e24;
}

.chat-chip {
  background: #23272e;
  border: 1px solid #353942;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chat-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #343840;
  background: #1f2329;
}

.chat-prompt {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.chat-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.8rem;
  outline: none;
}

.chat-input::placeholder {
  color: #64748b;
}

.chat-send-btn {
  background: #2a2f37;
  border: 1px solid #3c4048;
  color: #cbd5e1;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.78rem;
  padding: 3px 8px;
  cursor: pointer;
}

.chat-send-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================================
 * RESPONSIVE (TABLET & MOBILE)
 * ============================================================================ */

@media (max-height: 700px) and (min-width: 1025px) {
  .content-area {
    overflow-y: auto;
  }

  .page-section {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 100%;
  }
}

@media (max-width: 1024px) {
  .bg-frame-brackets {
    display: none;
  }

  .vcard-stage {
    padding: 0;
  }

  .vcard-wrapper {
    max-width: 100%;
    gap: 0;
  }

  .vcard {
    max-width: 100%;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
  }

  .content-area {
    overflow-y: visible;
  }

  .page-section {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 100vh;
    padding: 40px 28px;
  }

  .side-rail {
    position: static;
    height: auto;
    padding: 0;
    gap: 0;
  }

  .icon-menu {
    display: none;
  }

  .rail-bottom {
    position: static;
  }

  .theme-toggle-btn {
    position: fixed;
    right: 16px;
    bottom: 80px;
    z-index: 90;
    width: 48px;
    height: 48px;
    background: var(--modal-bg);
  }

  .lang-switcher {
    position: fixed;
    right: 16px;
    bottom: 138px;
    z-index: 95;
  }

  .lang-toggle-btn {
    width: 48px;
    height: 48px;
    background: var(--modal-bg);
  }

  .lang-toggle-btn .menu-tooltip,
  .theme-toggle-btn .menu-tooltip {
    display: none;
  }

  .lang-menu {
    right: 58px;
    bottom: 0;
  }

  .chat-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    width: 54px;
    height: 54px;
    background: #1b1e23;
  }

  [data-theme="light"] .chat-fab {
    background: #ffffff;
  }

  .chat-fab .menu-tooltip {
    display: none;
  }

  .chat-fab-dot {
    top: 3px;
    right: 3px;
    border-color: #1b1e23;
  }

  [data-theme="light"] .chat-fab-dot {
    border-color: #ffffff;
  }

  .chat-widget {
    right: 16px;
    bottom: 196px;
    max-height: calc(100vh - 214px);
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-section-nav {
    display: flex;
  }

  .profile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    z-index: 50;
    background: rgba(34, 38, 45, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    box-shadow: -12px 0 36px rgba(0, 0, 0, 0.5);
  }

  [data-theme="light"] .profile-sidebar {
    background: rgba(248, 250, 252, 0.96);
    border-left-color: rgba(15, 23, 42, 0.1);
    box-shadow: -12px 0 36px rgba(15, 23, 42, 0.14);
  }

  .profile-sidebar.is-open {
    transform: translateX(0);
  }
}

@media (max-width: 760px) {
  .hex-cell {
    width: 78px;
    height: 90px;
  }

  .hex-row + .hex-row {
    margin-top: -18px;
  }

  .hex-icon {
    width: 20px;
    height: 20px;
  }

  .hex-name {
    font-size: 0.68rem;
  }

  .exp-tm-clock {
    width: min(100%, 218px);
  }

  .exp-tm-eye {
    width: 94px;
    height: 94px;
  }

  .exp-tm-eye-icon svg {
    width: 20px;
    height: 20px;
  }

  .exp-tm-eye-year {
    font-size: 0.82rem;
  }

  .exp-tm-nav-btn {
    width: 42px;
    height: 42px;
  }

  .resume-columns,
  .portfolio-grid,
  .contact-columns,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .page-bg,
  .side-rail,
  .lang-switcher,
  .theme-toggle-btn,
  .mobile-toggle,
  .portfolio-filters,
  .contact-form-wrap,
  .modal-backdrop,
  .chat-fab,
  .chat-widget,
  .toast {
    display: none !important;
  }

  .vcard {
    height: auto;
    box-shadow: none;
    border-radius: 0;
  }

  .page-section[hidden] {
    display: block !important;
  }
}
