/* ============================================================
   ALIEN FRANCHISE PORTFOLIO — CORE STYLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;600;900&family=Exo+2:ital,wght@0,300;0,400;0,600;1,300&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-void:       #020602;
  --bg-deep:       #050a05;
  --bg-surface:    #080f08;
  --bg-card:       #0c160c;
  --bg-card-hover: #101e10;

  --green-bright:  #39ff14;
  --green-mid:     #6bbd5b;
  --green-dim:     #8fbc8f;
  --green-muted:   #4a6b4a;
  --green-ghost:   #1e3a1e;
  --green-border:  #2d5a2d;

  --amber:         #e8a400;
  --amber-bright:  #ffd700;
  --amber-dim:     #a06800;

  --red-warn:      #c0392b;
  --red-bright:    #ff3b3b;

  --text-primary:  #a8c49a;
  --text-dim:      #6a8a6a;
  --text-ghost:    #3a5a3a;

  --font-mono:   'Share Tech Mono', 'Courier New', monospace;
  --font-head:   'Orbitron', sans-serif;
  --font-body:   'Exo 2', 'Share Tech Mono', sans-serif;

  --panel-left-w: 23rem;/*24%;*/

  --glow-green:  0 0 8px rgba(57, 255, 20, 0.35), 0 0 20px rgba(57, 255, 20, 0.12);
  --glow-amber:  0 0 8px rgba(232, 164, 0, 0.5),  0 0 20px rgba(232, 164, 0, 0.18);
  --glow-red:    0 0 8px rgba(192, 57, 43, 0.5),  0 0 16px rgba(192, 57, 43, 0.15);

  --transition: 0.2s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

/* ---- Scanlines overlay ---- */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */

.panel-left {
  width: var(--panel-left-w);
  min-width: 200px;
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--bg-deep);
  border-right: 1px solid var(--green-border);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.5rem 1.25rem 1rem;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--green-ghost) transparent;
}

.panel-left::-webkit-scrollbar {
  width: 3px;
}
.panel-left::-webkit-scrollbar-track {
  background: transparent;
}
.panel-left::-webkit-scrollbar-thumb {
  background: var(--green-ghost);
}

/* Top circuit-trace line */
.panel-left::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--green-bright) 30%, var(--amber) 60%, transparent 100%);
  opacity: 0.7;
}

/* ---- Avatar ---- */
.avatar-wrap {
  margin-bottom: 1.25rem;
  position: relative;
}

.avatar-frame {
  position: relative;
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
  border: 1px solid var(--green-border);
  background: var(--bg-card);
  padding: 4px;
}

.avatar-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* Corner brackets */
.frame-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--green-bright);
  border-style: solid;
  opacity: 0.8;
}
.frame-corner--tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.frame-corner--tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.frame-corner--bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.frame-corner--br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

/* ---- ID Block ---- */
.id-block {
  margin-bottom: 1rem;
}

.id-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.name {
  font-family: var(--font-head);
  font-size: clamp(12px, 1.6vw, 20px);
  font-weight: 900;
  color: var(--green-bright);
  letter-spacing: 0.05em;
  text-shadow: var(--glow-green);
  line-height: 1.2;
  white-space: nowrap;
}

.name-underline {
  height: 2px;
  background: linear-gradient(90deg, var(--green-bright) 0%, var(--amber) 60%, transparent 100%);
  margin: 0.3rem 0 0.35rem;
  opacity: 0.7;
}

.name-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--amber-dim);
  letter-spacing: 0.12em;
}

/* ---- Bio ---- */
.bio {
  font-family: var(--font-body);
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-style: italic;
}

/* ---- Dividers ---- */
.panel-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0.6rem;
}
.panel-divider::before,
.panel-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--green-ghost);
}
.panel-divider-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--green-muted);
  letter-spacing: 0.18em;
  white-space: nowrap;
}

/* ---- Social Links ---- */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.social-link,
.email-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  padding: 0.3rem 0.4rem;
  border: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.email-link span,
.email-link > *:not(svg) {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.social-link:hover,
.email-link:hover {
  color: var(--green-bright);
  border-color: var(--green-border);
  background: rgba(57, 255, 20, 0.04);
}

.social-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.7;
}
.social-link:hover .social-icon,
.email-link:hover .social-icon {
  opacity: 1;
  filter: drop-shadow(var(--glow-green));
}

.email-link {
  margin-bottom: 0;
}

.email-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  white-space: nowrap;
}

/* ---- Section Nav ---- */
.section-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.9vw, 11px);
  letter-spacing: 0.12em;
  color: var(--text-dim);
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(57, 255, 20, 0.05);
  transition: width 0.2s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover,
.nav-link.active {
  color: var(--green-bright);
  border-left-color: var(--green-bright);
}
.nav-link.active {
  text-shadow: var(--glow-green);
}

.nav-index {
  font-size: 9px;
  color: var(--green-muted);
  flex-shrink: 0;
}
.nav-label {
  flex: 1;
}
.nav-arrow {
  font-size: 14px;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateX(-4px);
}
.nav-link:hover .nav-arrow,
.nav-link.active .nav-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---- System Status ---- */
.sys-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green-muted);
  letter-spacing: 0.1em;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: var(--glow-green);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ============================================================
   RIGHT PANEL
   ============================================================ */

.panel-right {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--bg-surface);
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--green-ghost) transparent;
}

.panel-right::-webkit-scrollbar { width: 4px; }
.panel-right::-webkit-scrollbar-track { background: var(--bg-deep); }
.panel-right::-webkit-scrollbar-thumb { background: var(--green-border); }

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: 3rem 3rem 2rem;
  border-bottom: 1px solid var(--green-ghost);
  position: relative;
}

.section--last {
  border-bottom: none;
}

/* ---- Section Header ---- */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  text-shadow: var(--glow-amber);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 600;
  color: var(--green-bright);
  letter-spacing: 0.15em;
  text-shadow: var(--glow-green);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--green-border) 0%, transparent 100%);
  position: relative;
}
.section-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  background: var(--green-border);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* ---- Section Body ---- */
.section-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-body p {
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 300;
}

/* ---- Skills Grid ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--green-ghost);
  background: var(--bg-card);
  position: relative;
}
.skills-grid::before {
  content: '// CAPABILITIES';
  position: absolute;
  top: -9px;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green-muted);
  background: var(--bg-card);
  padding: 0 0.5rem;
  letter-spacing: 0.1em;
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--amber);
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
  text-shadow: var(--glow-amber);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green-dim);
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid var(--green-ghost);
  padding: 0.1rem 0.45rem;
  letter-spacing: 0.05em;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  cursor: default;
}
.skill-tag:hover {
  color: var(--green-bright);
  border-color: var(--green-border);
  background: rgba(57, 255, 20, 0.09);
  text-shadow: var(--glow-green);
}

/* ---- Cert Cards ---- */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--green-ghost);
  border-left: 3px solid var(--green-border);
  transition: border-left-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}
.cert-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(57,255,20,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.cert-card:hover::after { opacity: 1; }
.cert-card:hover {
  border-left-color: var(--green-bright);
  background: var(--bg-card-hover);
}

.cert-badge {
  font-family: var(--font-head);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 900;
  color: var(--amber);
  text-shadow: var(--glow-amber);
  min-width: 50px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.cert-name {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.1vw, 13px);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.cert-issuer {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.cert-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
}
.cert-dot { opacity: 0.4; }

.cert-valid {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 0 0.3rem;
  border: 1px solid;
}
.cert-valid--active {
  color: var(--green-bright);
  border-color: var(--green-border);
  text-shadow: var(--glow-green);
}
.cert-valid--expired {
  color: var(--red-warn);
  border-color: rgba(192, 57, 43, 0.4);
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--green-border), var(--green-ghost), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  background: var(--amber);
  box-shadow: var(--glow-amber);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transform: translateX(-4px);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--green-ghost);
  padding: 1.1rem 1.25rem;
  transition: border-color var(--transition);
  position: relative;
}
.timeline-content::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0.5rem; /*14px;*/
  width: 6px;
  height: 1px;
  background: var(--green-border);
}
.timeline-content:hover { border-color: var(--green-border); }

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.job-title {
  font-family: var(--font-head);
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 600;
  color: var(--green-bright);
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.job-company {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.job-type {
  color: var(--text-ghost);
  font-size: 10px;
}
.job-period {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber-dim);
  white-space: nowrap;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.job-duties {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.job-duties li {
  font-size: clamp(11px, 1vw, 13px);
  color: var(--text-primary);
  padding-left: 1rem;
  position: relative;
  font-weight: 300;
}
.job-duties li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--amber);
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.job-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green-muted);
  background: rgba(57, 255, 20, 0.04);
  border: 1px solid var(--green-ghost);
  padding: 0.05rem 0.4rem;
  letter-spacing: 0.05em;
}

/* ---- Other Grid ---- */
.other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.other-card {
  background: var(--bg-card);
  border: 1px solid var(--green-ghost);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}
.other-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--green-border), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.other-card:hover::before { opacity: 1; }
.other-card:hover {
  border-color: var(--green-border);
  background: var(--bg-card-hover);
}

.other-card-header {
  margin-bottom: 0.1rem;
}
.other-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--amber);
  letter-spacing: 0.15em;
  text-shadow: var(--glow-amber);
}
.other-card-title {
  font-family: var(--font-head);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600;
  color: var(--green-bright);
  letter-spacing: 0.06em;
}
.other-card-desc {
  font-size: clamp(11px, 1vw, 12px);
  color: var(--text-dim);
  line-height: 1.6;
  font-weight: 300;
  flex: 1;
}
.other-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green-mid);
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
  transition: color var(--transition);
}
.other-link:hover {
  color: var(--green-bright);
  text-shadow: var(--glow-green);
}

/* ---- Education ---- */
.edu-block {
  margin-top: 1rem;
}
.edu-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--green-ghost);
}
.edu-degree {
  font-family: var(--font-head);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600;
  color: var(--green-bright);
  letter-spacing: 0.06em;
}
.edu-school {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  flex: 1;
}
.edu-year {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber-dim);
}

/* ---- Footer ---- */
.footer {
  padding: 1.5rem 3rem 2rem;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-ghost);
  letter-spacing: 0.1em;
  border-top: 1px solid var(--green-ghost);
}

/* ---- Mobile bar (hidden on desktop) ---- */
.mobile-bar {
  display: none;
}
.panel-toggle {
  display: none;
}

/* ---- Panel expandable (always visible on desktop) ---- */
.panel-expandable {
  display: contents;
}

/* ============================================================
   MOBILE / RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  html, body {
    height: auto;
    overflow: visible;
  }

  .layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  /* ---- Left panel: sticky collapsed bar by default ---- */
  .panel-left {
    width: 100%;
    min-width: unset;
    height: auto;
    overflow-y: visible;
    border-right: none;
    border-bottom: 1px solid var(--green-border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 200;
    background-color: var(--bg-deep);
    gap: 0;
  }

  /* Remove the top gradient line on mobile (handled by border-bottom) */
  .panel-left::before {
    display: none;
  }

  /* ---- Mobile collapsed bar ---- */
  .mobile-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    width: 100%;
    border-bottom: 1px solid var(--green-ghost);
    position: relative;
  }
  .mobile-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--green-bright) 30%, var(--amber) 60%, transparent 100%);
    opacity: 0.6;
  }

  .mobile-bar-name {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 900;
    color: var(--green-bright);
    letter-spacing: 0.1em;
    text-shadow: var(--glow-green);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mobile-bar-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .mobile-bar-nav::-webkit-scrollbar { display: none; }

  .mobile-nav-link {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    padding: 0.25rem 0.45rem;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
  }
  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    color: var(--green-bright);
    border-color: var(--green-border);
    background: rgba(57, 255, 20, 0.06);
  }
  .mobile-nav-link.active {
    text-shadow: var(--glow-green);
  }

  /* ---- Toggle button ---- */
  .panel-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: transparent;
    border: 1px solid var(--green-ghost);
    color: var(--green-mid);
    cursor: pointer;
    font-size: 10px;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    padding: 0;
  }
  .panel-toggle:hover {
    color: var(--green-bright);
    border-color: var(--green-border);
    background: rgba(57, 255, 20, 0.07);
  }

  .toggle-icon {
    display: inline-block;
    transition: transform 0.25s ease;
    line-height: 1;
  }
  .panel-left.expanded .toggle-icon {
    transform: rotate(180deg);
  }

  /* ---- Expandable content: hidden by default, shown when expanded ---- */
  .panel-expandable {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 1.25rem;
    border-top: 1px solid var(--green-ghost);
  }

  .panel-left.expanded .panel-expandable {
    display: flex;
  }

  /* Restore vertical gap between items inside expanded panel */
  .panel-expandable > * + * {
    margin-top: 0;
  }

  /* ---- Right panel ---- */
  .panel-right {
    height: auto;
    overflow-y: visible;
  }

  .section {
    padding: 2rem 1.25rem 1.5rem;
  }

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

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

  .job-header {
    flex-direction: column;
  }

  .sys-status {
    padding-top: 0.5rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .other-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 1.75rem 1rem 1.25rem;
  }

  .footer {
    padding: 1rem;
  }

  .name {
    font-size: 16px;
  }

  .mobile-bar-name {
    font-size: 11px;
  }
}

/* ---- Scrollbar for right panel on desktop ---- */
@media (min-width: 769px) {
  .panel-right {
    scrollbar-width: thin;
    scrollbar-color: var(--green-ghost) transparent;
  }
}
