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

:root {
  --bg: #080810;
  --surface: #0f0f1e;
  --pink: #ff2d78;
  --teal: #00e5cc;
  --purple: #9b30ff;
  --text: #f0f0f0;
  --muted: #888;
}

html, body {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  position: relative;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(155, 48, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 45, 120, 0.10) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 48px 32px;
}

@media (max-height: 700px) {
  .container {
    padding: 24px 32px;
    gap: 8px;
  }
}

/* Avatar with animated glow ring */
.avatar-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--pink), var(--purple), var(--teal), var(--pink));
  animation: spin 4s linear infinite;
  z-index: 0;
}

.avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--pink), var(--purple), var(--teal), var(--pink));
  animation: spin 4s linear infinite;
  filter: blur(10px);
  opacity: 0.6;
  z-index: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.avatar {
  position: relative;
  z-index: 1;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.4);
}

.name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg,
    var(--pink) 0%,
    var(--purple) 25%,
    var(--teal) 50%,
    var(--purple) 75%,
    var(--pink) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: name-sweep 4s linear infinite;
}

@keyframes name-sweep {
  0%   { background-position: -100% center; }
  100% { background-position: 100% center; }
}

.title {
  font-size: 0.95rem;
  color: rgba(240, 240, 240, 0.75);
  letter-spacing: 0.01em;
}

.bio {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.6;
}

.links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 240, 240, 0.7);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .icon-btn:hover {
    color: var(--teal);
    border-color: var(--teal);
    background: rgba(0, 229, 204, 0.07);
    box-shadow: 0 0 16px rgba(0, 229, 204, 0.25);
  }
}

.icon-btn--tooltip {
  position: relative;
}

.icon-btn--tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

@media (hover: hover) {
  .icon-btn--tooltip:hover::after {
    opacity: 1;
  }
}

.squint-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(240, 240, 240, 0.35);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.squint-link:hover {
  color: var(--teal);
  text-decoration-color: var(--teal);
}

/* icon-btn as button element */
button.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-family: inherit;
}


/* Overlay */
.cv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 20;
}

.cv-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Drawer */
.cv-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100dvh;
  background: var(--surface);
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 30;
  overflow: hidden;
}

.cv-drawer.open {
  transform: translateX(0);
}

.cv-drawer-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 36px 24px 32px;
  background: var(--surface);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.cv-close-x {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

@media (hover: hover) {
  .cv-close-x:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.35);
  }
}

.cv-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.cv-timeline {
  list-style: none;
}

.cv-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

/* Vertical line running through dot column */
.cv-item::after {
  content: '';
  position: absolute;
  left: calc(40px + 14px + 5px); /* year width + dot left margin + half dot */
  top: 14px;
  bottom: -14px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.cv-item:last-child::after {
  display: none;
}


.cv-year {
  flex-shrink: 0;
  width: 40px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: 3px;
  text-align: right;
  letter-spacing: 0.02em;
}

@keyframes cv-pulse {
  0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(167, 139, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}

.cv-dot--current {
  animation: cv-pulse 2s ease-out infinite;
}

.cv-dot {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--purple);
  border: 2px solid var(--surface);
  box-shadow: 0 0 8px rgba(155, 48, 255, 0.5);
  margin: 4px 14px 0;
  position: relative;
  z-index: 1;
}

.cv-item--split {
  align-items: flex-start;
}

.cv-split-entries {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cv-split-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.cv-dot--edu {
  background: var(--pink);
  box-shadow: 0 0 8px rgba(255, 45, 120, 0.5);
}

.cv-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
}

.cv-item:last-child .cv-content {
  padding-bottom: 0;
}

.cv-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.cv-company {
  font-size: 0.78rem;
  color: var(--teal);
  text-decoration: none;
}

a.cv-company:hover {
  text-decoration: underline;
}

.cv-company--tooltip {
  position: relative;
  cursor: default;
}

.cv-company--tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

@media (hover: hover) {
  .cv-company--tooltip:hover::after {
    opacity: 1;
  }
}

.cv-heading--skills {
  margin-top: 32px;
}

.cv-heading--built {
  margin-top: 24px;
}

.cv-built {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-built-item {
  display: flex;
}

.cv-built-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .cv-built-card:hover {
    border-color: var(--teal);
    background: rgba(0, 229, 204, 0.05);
    box-shadow: 0 0 14px rgba(0, 229, 204, 0.12);
  }

  .cv-built-card:hover .cv-built-arrow {
    color: var(--teal);
    transform: translateX(3px);
  }

  .cv-built-card:hover .cv-built-name {
    color: var(--teal);
  }
}

.cv-built-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.cv-built-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}

.cv-built-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}

.cv-built-arrow {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}



.cv-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-skill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 3px 10px;
}


.cv-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--muted);
}

.copyright {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}
