@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-main: #fafafa;
  --text-dark: #111111;
  --text-body: #1f1f1f;
  --text-muted: #5c5c5c;
  --text-light: #666666;
  --text-arrow: #bbbbbb;
  --border-light: #eeeeee;
  --border-subtle: #f3f3f3;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-height: 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
}

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

html, body {
  height: 100%;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-muted);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* Split Viewport Layout */
.split-viewport {
  width: 100vw;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  background-color: var(--bg-main);
}

/* Left Stage */
.left-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  width: 100%;
}

.container {
  height: 100vh;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.75rem 4.5rem;
  position: relative;
}

/* Name always black + bold, left-aligned as in screenshot */
.site-header {
  text-align: left;
  margin-bottom: 2.25rem;
  flex-shrink: 0;
}

.name {
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  line-height: 1.2;
}

/* Right Stage - Perfectly Vertically Centered Avatar */
.right-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  height: 100vh;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-main);
}

.avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 78vh;
  width: 100%;
  max-width: 480px;
}

.avatar-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.avatar-img.is-visible {
  opacity: 1;
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
}

.acc-item {
  border-bottom: 1px solid var(--border-light);
}

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

.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0.25rem;
  cursor: pointer;
  user-select: none;
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  outline: none;
}

.acc-header:hover,
.acc-header:focus-visible,
.acc-item.open .acc-header {
  color: var(--text-dark);
}

.acc-header:focus-visible {
  outline: 2px solid var(--text-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.acc-header .arrow {
  font-size: 0.7rem;
  transition: transform var(--transition-bounce), color var(--transition-fast);
  color: var(--text-arrow);
  display: inline-block;
}

.acc-item.open .acc-header .arrow {
  transform: rotate(90deg);
  color: var(--text-dark);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 0.25rem;
  transition: max-height var(--transition-height), opacity 0.4s ease, padding 0.4s ease;
}

.acc-item.open .acc-body {
  opacity: 1;
  padding: 0.25rem 0.25rem 1.25rem;
}

/* Content styling */
.acc-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  font-weight: 400;
}

/* Education */
.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

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

.logo-badge {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border-light);
  transition: transform var(--transition-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-badge:hover {
  transform: scale(1.06);
}

.edu-info {
  flex: 1;
}

.edu-degree {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.edu-school {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.45;
}

.edu-school a,
.exp-company a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.edu-school a:hover,
.exp-company a:hover {
  border-bottom-color: #666666;
  color: var(--text-dark);
}

/* Experience */
.exp-group {
  margin-bottom: 1.85rem;
}

.exp-group:last-child {
  margin-bottom: 0.3rem;
}

.exp-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.exp-company-info {
  flex: 1;
  padding-top: 0.15rem;
}

.exp-company {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.exp-company-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.exp-roles {
  position: relative;
  margin-left: 0.2rem;
  padding-left: 1.2rem;
}

.exp-roles::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 2px;
  background: #dddddd;
  border-radius: 1px;
}

.exp-role-block {
  position: relative;
  margin-bottom: 1.05rem;
  padding: 0;
}

.exp-role-block:last-child {
  margin-bottom: 0;
}

.exp-role-block::before {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: 0.42rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #bbbbbb;
  box-sizing: border-box;
}

.exp-role {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-body);
  letter-spacing: -0.01em;
}

.exp-role-meta {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.15rem;
}

/* Passions List */
.passions-list {
  list-style: none;
  padding: 0.15rem 0 0;
}

.passions-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--text-body);
  font-weight: 400;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.passions-list li:last-child {
  border-bottom: none;
}

.passion-name {
  flex: 1;
}

.passion-icon {
  font-size: 1.05rem;
  line-height: 1;
  margin-left: 1rem;
  opacity: 0.9;
}

/* Contact always at bottom */
.contact {
  position: absolute;
  bottom: 1.6rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--text-dark);
}

.contact a:focus-visible {
  outline: 2px solid var(--text-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact .sep {
  color: #dddddd;
}

/* Responsive Layout */
@media (max-width: 960px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .split-viewport {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .left-stage {
    min-height: auto;
  }
  .container {
    padding: 1.25rem 1.25rem 4rem;
    height: auto;
    min-height: 100vh;
  }
  .site-header {
    margin-bottom: 1.75rem;
  }
  .acc-header {
    padding: 0.85rem 0.1rem;
  }
  .right-stage {
    display: none;
  }
}
