/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000000;
  color: #ffffff;
  font-family: 'Stack Sans Headline', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400; /* Default weight: Regular */
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
  min-height: 100vh;
  text-transform: lowercase;
}

.keep-case,
.keep-case * {
  text-transform: none !important;
}

/* 1. Hero Landing Section */
.hero-landing {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Portrait Walking Video */
.video-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 90vh;
  aspect-ratio: 0.643302;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 4px;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: transparent;
}

@media (max-width: 809.98px) {
  .video-wrapper {
    height: 85vh;
  }
}

/* Editorial Content Frame */
.editorial-frame {
  position: relative;
  width: 520px;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 809.98px) {
  .editorial-frame {
    width: 90vw;
  }
}

/* Top Bar Navigation Grid */
.top-bar {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: auto;
}

.left-section {
  display: flex;
  align-items: flex-start;
}

.middle-section {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.right-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* Clock Row & Dual Clock Display */
.clock-row {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: baseline;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clock-row .city-name {
  opacity: 0.4;
}

.clock-row .time-val {
  opacity: 1;
  color: #ffffff;
}

/* Language Switcher Buttons */
.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.25s ease;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  color: #ffffff;
  pointer-events: none;
}

.lang-separator {
  color: rgba(255, 255, 255, 0.2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  pointer-events: none;
}

/* Metadata Text generic styling (for date) */
.metadata-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

/* Bottom: Biography Text */
.bio-text {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 100%;
  font-family: 'Stack Sans Headline', sans-serif;
  font-size: 32px;
  font-weight: 700; /* Bold 700 */
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #ffffff;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

/* Bottom Ticks Positioning */
.tick-wrapper {
  position: absolute;
  width: 25px;
  height: 24px;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.3s ease;
}

.bottom-left .tick-wrapper {
  bottom: 0;
  left: 0;
}

.bottom-right .tick-wrapper {
  bottom: 0;
  right: 0;
}

.bottom-left .corner-tick {
  transform: scaleY(-1);
}

.bottom-right .corner-tick {
  transform: scale(-1);
}

.bottom-left {
  position: absolute;
  bottom: 28px;
  left: 0;
  width: 25px;
  height: 24px;
  pointer-events: auto;
}

.bottom-right {
  position: absolute;
  bottom: 28px;
  right: 0;
  width: 25px;
  height: 24px;
  pointer-events: auto;
}

/* 2. Scrollable Resume Section (Compact Layout) */
.scroll-content {
  width: 520px;
  margin: 0 auto;
  padding: 0 0 120px 0;
  z-index: 20;
  position: relative;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

@media (max-width: 809.98px) {
  .scroll-content {
    width: 90vw;
    padding: 0 0 80px 0;
  }
}

/* Bio detailed paragraphs */
.bio-paragraphs {
  margin-bottom: 24px;
}

.scroll-para {
  font-family: 'Stack Sans Headline', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 18.6px;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 12px;
}

.scroll-para:last-child {
  margin-bottom: 0;
}

/* Compact Sections & Underlying Title lines */
.section {
  margin-bottom: 24px;
}

.section-title {
  font-family: 'Stack Sans Headline', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
  line-height: 18.6px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
}

.timeline-row {
  display: flex;
  font-family: 'Stack Sans Headline', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 18.6px;
  color: #ffffff;
  padding: 0;
}

.timeline-item-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: background-color 0.3s ease, color 0.3s ease, padding 0.3s ease, margin 0.3s ease;
  border-radius: 3px;
  margin: 0;
  padding: 0;
}

.timeline-item-wrapper.drawer-open {
  background-color: #ffffff;
  color: #000000;
  padding: 12px 16px;
  margin: 8px 0;
}

.timeline-item-wrapper.drawer-open .company-text {
  font-weight: 700;
  color: #000000;
}

.timeline-item-wrapper.drawer-open .degree-title {
  font-weight: 700;
  color: #000000;
}

.timeline-item-wrapper.drawer-open .university-name {
  color: rgba(0, 0, 0, 0.6);
}

.timeline-item-wrapper.drawer-open .timeline-year {
  color: #000000;
}

.timeline-item-wrapper.drawer-open .site-link-arrow {
  color: #000000;
}

.timeline-company {
  width: 380px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.timeline-company-group {
  display: flex;
  flex-direction: column;
  width: 380px;
  flex-shrink: 0;
}

/* Micro-interaction arrows for drawer trigger */
.drawer-arrow {
  display: inline-block;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.2s ease, opacity 0.2s ease;
  font-family: 'JetBrains Mono', monospace;
  font-size: inherit;
  margin-right: 2px;
}

.drawer-trigger:hover .drawer-arrow {
  width: 18px;
  opacity: 1;
}

.site-link-arrow {
  display: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: inherit;
  color: #ffffff;
  text-decoration: none;
  margin-right: 4px;
}

.timeline-item-wrapper.drawer-open .site-link-arrow {
  display: inline-block;
}

.timeline-item-wrapper.drawer-open .drawer-arrow {
  display: none !important;
}

/* White Contrast Drawer Panel */
.timeline-drawer {
  background-color: transparent;
  color: #000000;
  width: 100%;
  height: 0;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.drawer-content {
  padding: 0;
}

.drawer-role {
  font-family: 'Stack Sans Headline', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  margin-top: 12px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.drawer-desc {
  font-family: 'Stack Sans Headline', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 18.6px;
  color: #000000;
  margin-top: 8px;
  margin-bottom: 16px;
  letter-spacing: normal;
}

.drawer-desc-line {
  font-family: 'Stack Sans Headline', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 18.6px;
  color: #000000;
  margin-bottom: 6px;
  letter-spacing: normal;
}

.drawer-desc-line:last-child {
  margin-bottom: 0;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: #000000;
  font-family: 'Stack Sans Headline', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  margin-bottom: 4px;
  transition: opacity 0.2s ease;
}

.drawer-close-btn:hover {
  opacity: 0.6;
}

.close-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: inherit;
}

.degree-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 18.6px;
  color: #ffffff;
}

.university-name {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5); /* Muted */
  font-size: 13px;
  line-height: 18.6px;
  margin-top: 1px;
}

.timeline-row.education-row {
  padding: 4px 0;
}

.timeline-year {
  font-family: 'Stack Sans Headline', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 18.6px;
  color: #ffffff;
  flex-grow: 1;
}

/* Social Section with sliding label */
.social-section {
  position: relative;
  margin-top: 24px;
}

.follow-on-label {
  position: absolute;
  left: 0;
  top: 4px; /* Align with first item */
  font-family: 'Stack Sans Headline', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 18.6px;
  color: #ffffff;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-list {
  padding-left: 380px; /* Align with year column */
  display: flex;
  flex-direction: column;
}

.social-link-item {
  display: inline-flex;
  align-items: center;
  font-family: 'Stack Sans Headline', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 18.6px;
  color: rgba(255, 255, 255, 0.4); /* Muted by default */
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.25s ease;
  cursor: pointer;
  align-self: flex-start;
}

.social-link-item:hover {
  color: #ffffff;
}

/* Arrow Slide-out Animation */
.hover-arrow {
  display: inline-block;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.2s ease, opacity 0.2s ease;
  font-family: 'JetBrains Mono', monospace;
  font-size: inherit;
  white-space: pre;
}

.social-link-item:hover .hover-arrow {
  width: 18px;
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 809.98px) {
  .bio-text {
    font-size: 18px;
    bottom: 58px;
  }
  .top-bar {
    top: 20px;
  }
  
  .scroll-content {
    padding-top: 20px;
  }
  
  /* Stack columns on mobile */
  .timeline-row {
    flex-direction: column;
    padding: 6px 0;
  }
  .timeline-company {
    width: auto;
    font-weight: 400; /* Muted weight contrast on mobile */
  }
  .timeline-year {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
  }
  
  .social-section {
    margin-top: 20px;
  }
  .follow-on-label {
    position: static;
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.4);
  }
  .social-list {
    padding-left: 0;
  }
  .social-link-item {
    padding: 6px 0;
  }
}
