/* Accounts icon grid */
.accounts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 8px;
}

.account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #1b2248;
  box-shadow: 0 2px 8px rgba(76, 123, 255, 0.10);
  transition: background 0.18s, transform 0.18s;
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

.account-icon:hover,
.account-icon:focus {
  background: linear-gradient(180deg, #151c3f, #121836);
  transform: translateY(-2px) scale(1.07);
}

.account-icon[title] {
  position: relative;
}

.account-icon[title]:hover::after,
.account-icon[title]:focus::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  top: -2rem;
  transform: translateX(-50%);
  background: #222b57;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.98em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  z-index: 10;
  pointer-events: none;
  opacity: 0.97;
}

/* Concise Timeline with Vertical Line and Year on Left */
.timeline-connected {
  position: relative;
  max-width: 700px;
  margin: 40px auto 0 auto;
  padding: 0 10px 40px 10px;
}

.timeline-connected::before {
  content: '';
  position: absolute;
  left: 4.87rem;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--brand), var(--brand-2));
  border-radius: 2px;
  z-index: 0;
}

.timeline-entry-connected {
  display: flex;
  align-items: flex-start;
  position: relative;
  min-height: 70px;
  margin-bottom: 32px;
}

.timeline-year-connected {
  /* min-width: 38px; */
  text-align: right;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  margin-right: 1rem;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.timeline-dot-connected {
  width: 1rem;
  height: 1rem;
  background: #fff;
  border: 4px solid var(--brand);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
  margin-right: 18px;
  /* margin-left: -2px; */
  box-shadow: 0 2px 8px rgba(76, 123, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-content-connected {
  /* background: #10162a; */
  /* border-radius: 14px; */
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  /* padding: 18px 24px 14px 24px; */
  color: #e6e8f0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.08rem;
  font-family: inherit;
  min-width: 0;
  flex: 1;
}

.timeline-content-connected .timeline-title {
  font-size: 1.08rem;
  color: #e6e8f0;
  font-weight: bold;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.timeline-content-connected .timeline-title .timeline-icon {
  font-size: 1.2em;
  vertical-align: middle;
}

.timeline-content-connected .timeline-desc {
  font-size: 0.98rem;
  color: #b3b9cc;
}

.timeline-entry-connected:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .timeline-connected {
    /* max-width: 99vw;
    padding: 0 2vw 32px 2vw; */
    padding-left: 0;
  }

  .timeline-year-connected {
    /* min-width: 38px;
    font-size: 0.98rem;
    margin-right: 8px; */
    rotate: 90deg;
    margin-right: 0.2rem;
  }



  .timeline-connected::before {
    left: 3.45rem;
  }
}

/* Concise Responsive Timeline */
.timeline-simple {
  max-width: 600px;
  margin: 40px auto 0 auto;
  padding: 0 10px 40px 10px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-entry {
  background: #10162a;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 22px 28px 18px 28px;
  color: #e6e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.08rem;
  font-family: inherit;
}

.timeline-entry .timeline-year {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.timeline-entry .timeline-title {
  font-size: 1.08rem;
  color: #e6e8f0;
  font-weight: 500;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.timeline-entry .timeline-title .timeline-icon {
  font-size: 1.2em;
  vertical-align: middle;
}

.timeline-entry .timeline-desc {
  font-size: 0.98rem;
  color: #b3b9cc;
}

@media (max-width: 700px) {
  .timeline-simple {
    max-width: 99vw;
    padding: 0 2vw 32px 2vw;
    gap: 18px;
  }

  .timeline-entry {
    padding: 14px 8px 12px 8px;
    font-size: 0.98rem;
  }

  .timeline-entry .timeline-year {
    font-size: 1.05rem;
  }
}

/* Alternating Two-Column Timeline */
.timeline-alt {
  position: relative;
  margin: 48px auto 0 auto;
  max-width: 900px;
  padding: 0 0 40px 0;
}

.timeline-alt::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #ff9800 0%, #e53935 30%, #43a047 60%, #039be5 100%);
  border-radius: 3px;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 60px;
  position: relative;
}

.timeline-row:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-dot-alt {
  position: absolute;
  left: 50%;
  top: 0;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 6px solid var(--timeline-dot, #ff9800);
  border-radius: 50%;
  z-index: 2;
  transform: translate(-50%, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.timeline-row:nth-child(2) .timeline-dot-alt {
  --timeline-dot: #e53935;
}

.timeline-row:nth-child(3) .timeline-dot-alt {
  --timeline-dot: #8d6e63;
}

.timeline-row:nth-child(4) .timeline-dot-alt {
  --timeline-dot: #43a047;
}

.timeline-row:nth-child(5) .timeline-dot-alt {
  --timeline-dot: #039be5;
}

.timeline-row:nth-child(6) .timeline-dot-alt {
  --timeline-dot: #039be5;
}

.timeline-content-alt {
  background: #10162a;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 24px 32px;
  min-width: 260px;
  max-width: 340px;
  margin: 0 32px;
  color: #e6e8f0;
  position: relative;
  z-index: 1;
}

.timeline-year-alt {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--timeline-dot, #ff9800);
  margin-bottom: 6px;
}

.timeline-title-alt {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--timeline-dot, #ff9800);
  margin-bottom: 8px;
}

.timeline-desc-alt {
  font-size: 1rem;
  color: #b3b9cc;
}

@media (max-width: 900px) {
  .timeline-alt {
    max-width: 99vw;
    padding: 0 0 40px 0;
  }

  .timeline-content-alt {
    min-width: 0;
    max-width: 98vw;
    padding: 18px 10px;
    margin: 0 10px;
  }
}

/* --- Polished Vertical Timeline --- */
.timeline-vertical {
  position: relative;
  margin: 48px auto 0 auto;
  max-width: 520px;
  padding-left: 60px;
  border-left: 4px solid var(--brand);
  min-height: 600px;
}

.timeline-item {
  position: relative;
  margin-bottom: 56px;
  display: flex;
  align-items: flex-start;
  min-height: 90px;
}

.timeline-dot {
  position: absolute;
  left: -38px;
  top: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #23294a 60%, #1a1e33 100%);
  border: 4px solid var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  box-shadow: 0 0 0 6px rgba(108, 123, 255, 0.18), 0 2px 16px 0 rgba(76, 123, 255, 0.10);
  z-index: 2;
  transition: box-shadow 0.2s;
}

.timeline-dot:hover {
  box-shadow: 0 0 0 10px var(--brand-2), 0 2px 24px 0 rgba(0, 212, 255, 0.18);
}

.timeline-content {
  margin-left: 32px;
  background: linear-gradient(135deg, rgba(76, 123, 255, 0.18) 0%, rgba(0, 212, 255, 0.10) 100%);
  border-radius: 18px;
  padding: 22px 32px 18px 32px;
  box-shadow: 0 2px 24px rgba(76, 123, 255, 0.10);
  min-width: 220px;
  color: #e6e8f0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.13rem;
  font-family: inherit;
}

.timeline-year {
  color: var(--brand);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}



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

@media (max-width: 600px) {
  .timeline-vertical {
    padding-left: 32px;
    max-width: 98vw;
  }

  .timeline-dot {
    left: -28px;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .timeline-content {
    margin-left: 18px;
    padding: 14px 12px 12px 12px;
    min-width: 0;
    font-size: 1rem;
  }

  .timeline-year {
    font-size: 1.05rem;
  }
}

/* Timeline Section */
.timeline-illustration {
  position: relative;
  margin: 32px 0 0 0;
  min-height: 220px;
}

.timeline-svg {
  display: block;
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
  height: 180px;
  background: none;
}

.timeline-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.timeline-label {
  position: absolute;
  background: rgba(76, 123, 255, 0.12);
  color: var(--brand);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(76, 123, 255, 0.08);
  white-space: nowrap;
  pointer-events: auto;
  transition: background 0.2s;
}

.timeline-label:hover {
  background: var(--brand);
  color: #fff;
}

:root {
  --bg: #0b1020;
  --card: #121936;
  --card-2: #0f152e;
  --text: #e6e8f0;
  --muted: #b3b9cc;
  --brand: #6c7bff;
  --brand-2: #00d4ff;
  --accent: #ffd166;
  --danger: #ef4444;
  --success: #16a34a;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -200px, #1b2352 0%, transparent 60%) no-repeat,
    radial-gradient(800px 600px at -100px 30%, #12234e 0%, transparent 55%) no-repeat,
    var(--bg) no-repeat;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}



.site-header {
  backdrop-filter: saturate(1.2) blur(8px);
  background: rgba(11, 16, 32, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}



.nav-links {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.avatar {
  height: 11rem;
  aspect-ratio: 1;
  border-radius: 50%;
  transition: transform 400ms ease;
  font-size: 6rem;
  border: #00adff54 4px solid;
  background: #00adff1a;
  border-bottom: 0;
}

.avatar:hover {
  transform: rotate(-3deg) scale(1.02);
}

h1 {
  margin: 16px 0 8px;
  letter-spacing: 0.3px;
}

.subtitle {
  margin: 0 0 16px;
  color: var(--muted);
}




.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px;
}

.section-head h2 {
  margin: 0 0 6px;
}

.section-head p {
  margin: 0 0 20px;
  color: var(--muted);
}

.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1rem;
  /* padding-top: 0; */
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.account {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.account .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #1b2248;
  border-radius: 12px;
}

.account .icon-img {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.account:hover {
  background: linear-gradient(180deg, #151c3f, #121836);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project.card {
  cursor: pointer;
  display: block;
  color: inherit;
  transition: box-shadow 240ms, transform 240ms, background 160ms;
}

.project.card:hover,
.project.card:focus {
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: #061025;
  text-decoration: none;
  outline: 2px solid var(--brand);
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  margin-inline: auto;
}

.cert {
  margin: 0;
  text-align: center;
  flex: 0 1 auto;
}

.cert img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px var(--shadow);
  cursor: zoom-in;
  object-fit: cover;
  background: #0e1431;
}

.cert img[width][height] {
  height: auto;
}

.cert:has(img.portrait) {
  width: clamp(140px, 18vw, 200px);
}

.cert:has(img.landscape) {
  width: clamp(220px, 26vw, 320px);
}

.cert img.portrait {
  aspect-ratio: 3 / 4;
}

.cert img.landscape {
  aspect-ratio: 16 / 9;
}

.cert figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 55rem;
  margin: 0 auto;
}

.skills-wrap {
  display: grid;
  gap: 10px;
}

.skills-chart {
  width: 100%;
  aspect-ratio: 1 / 1;
  justify-self: center;
}

.legend {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  color: var(--muted);
  justify-content: center;
}

.legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: var(--dot);
  margin-right: 6px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06) inset;
}

.personality-wrap {
  display: grid;
  gap: 24px;
  padding: 0 20px;
}

.personality-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.personality-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}


.personality-titles {
  text-align: center;
}

.personality-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
}

.personality-subtitle {
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.personality-chart-container {
  flex: 1;
  min-width: 400px;
}

/* HTML/CSS-based personality chart */
.personality-chart {
  width: 100%;
  max-width: 600px;
  /* margin: 0 auto; */
}

.trait-bar {
  margin-bottom: 2.5rem;
  position: relative;
}

.trait-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.bar-container {
  position: relative;
  height: 8px;
  margin: 0.5rem 0;
}

.bar-track {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease-out;
}

.bar-fill.introverted {
  background: #06b6d4;
}

.bar-fill.intuitive {
  background: #f59e0b;
}

.bar-fill.thinking {
  background: #16a34a;
}

.bar-fill.prospecting {
  background: #9333ea;
}

.bar-fill.turbulent {
  background: #ef4444;
}

.bar-indicator {
  position: absolute;
  top: -0.25rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bar-indicator::before {
  content: '';
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
}

.trait-icon {
  font-size: 1.3rem;
  margin-top: 0.85rem;
}

.trait-percentage {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 0.85rem;
  color: inherit;
}

.trait-bar:nth-child(1) .trait-percentage {
  color: #06b6d4;
}

.trait-bar:nth-child(2) .trait-percentage {
  color: #f59e0b;
}

.trait-bar:nth-child(3) .trait-percentage {
  color: #16a34a;
}

.trait-bar:nth-child(4) .trait-percentage {
  color: #9333ea;
}

.trait-bar:nth-child(5) .trait-percentage {
  color: #ef4444;
}

.personality-description {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive layout for narrow screens */
@media (max-width: 768px) {
  .personality-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .personality-info {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: center;
  }

  .personality-titles {
    text-align: left;
  }

  .personality-title {
    font-size: 1.25rem;
  }

  .personality-subtitle {
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
  }

  .personality-chart-container {
    min-width: auto;
    width: 100%;
  }

  /* Move labels on top of bars for narrow screens */
  .trait-labels {
    position: absolute;
    top: -1.6rem;
    left: 0;
    right: 0;
    font-size: 0.875rem;
    z-index: 2;
  }

  .trait-bar {
    margin-bottom: 4rem;
    margin-top: 2rem;
  }



}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 30px 0 50px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 20px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(100%, 980px);
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  color: #e2e6ff;
  margin-top: 10px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
  transition: opacity 500ms ease, transform 500ms ease;
}

@media (max-width: 960px) {

  .about-grid,
  .projects-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert:has(img.portrait) {
    width: clamp(120px, 24vw, 180px);
  }

  .cert:has(img.landscape) {
    width: clamp(200px, 36vw, 300px);
  }
}

@media (max-width: 700px) {
  .chart-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .project.card span {
    display: none;
  }

  .cert-grid {
    gap: 8px;
  }

  .cert:has(img.portrait) {
    width: 44vw;
  }

  .cert:has(img.landscape) {
    width: 88vw;
  }

  .cert figcaption {
    font-size: 12px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .section {
    padding: 24px 16px;
  }


}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}