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

html, body { height: 100%; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: #f0effa;
  -webkit-font-smoothing: antialiased;
}

/* ── About Me screen (node 26:416) ── */

.about-screen {
  position: absolute;
  inset: 0;
  background: white;
  display: flex;
  flex-direction: column;
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.about-screen.is-visible {
  transform: translateX(0);
}

.about-back-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.about-back-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.about-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.about-body::-webkit-scrollbar { width: 0; }

/* Content matches Figma: left:24px top:85px (21px below header) width:309px */
.about-content {
  padding: 21px 27px 28px 24px;
}

.about-p {
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 500;
  font-size: 16px;
  color: #0b1c30;
  line-height: 30px;
  margin: 0;
}

.about-bold {
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 700;
  color: #0b1c30;
}

.about-link {
  color: #0b1c30;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-contact {
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 500;
  font-size: 12px;
  color: #0b1c30;
  line-height: 20px;
  margin: 0;
  margin-top: 40px;
}

/* ── Page ── */

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Card shell (node 8:622 / 8:623) ── */

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.card {
  position: relative;
  width: 360px;
  height: 720px;
  border: 1.5px solid #c7c4d8;
  border-radius: 25px;
  background: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cardEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  zoom: var(--card-scale, 0.9);
}



/* ── Header (node 8:725) — always sticky ── */

.card-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 1px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid #c7c4d8;
}

.card-title {
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  color: #0b1c30;
  letter-spacing: -0.24px;
  line-height: 32px;
  white-space: nowrap;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Slide up + fade out */
.card-title.title-exit {
  opacity: 0;
  transform: translateY(-10px);
}

/* Snap below, no transition — JS removes this class to trigger roll-in */
.card-title.title-enter {
  opacity: 0;
  transform: translateY(10px);
  transition: none;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 8px;
  border: none;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}


/* ── Context menu (node 8:490) ── */

@keyframes menuEnter {
  from { opacity: 0; transform: scale(0.88) translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.context-menu {
  display: none;
  position: absolute;
  top: 54px;
  right: 12px;
  z-index: 200;
  background: white;
  border-radius: 12px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.30), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
  padding: 8px 4px 8px 6px;
  min-width: 160px;
  flex-direction: column;
  transform-origin: top right;
}

.context-menu.is-open {
  display: flex;
  animation: menuEnter 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 12px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}


.context-menu-icon {
  width: 15px;
  height: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.context-menu-label {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #464555;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* ── Scrollable body ── */

.card-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}
.card-body::-webkit-scrollbar { width: 0; }

/* ── Content container (node 10:5) — 1289px tall ── */

.content {
  position: relative;
  width: 360px;
  height: 1180px;  /* 124 + 1056 = timeline-grid bottom + 4px below and-more */
  background: white;
}

/* ── Day selector spacer (node 10:105) — 124px empty zone ── */

.day-selector {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  height: 124px;
  pointer-events: none;
}

/* ── Connect with Rich (node 10:124)
       Scrolls with content — positioned within .content at top: 12px ── */

.connect-btn {
  text-decoration: none;
  position: absolute;
  top: 19px;
  left: 87px;
  width: 246px;
  height: 48px;
  z-index: 3;
  background: white;
  border: 1px dashed #464555;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1px;
  cursor: pointer;
  transition: border-color 0.15s ease, border-style 0.15s ease;
}

.connect-btn:hover {
  border-color: #9998b8;
  border-style: solid;
}

.connect-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.connect-icon {
  width: 15px;
  height: 11px;
  display: block;
  flex-shrink: 0;
}

.connect-text {
  font-weight: 600;
  font-size: 12px;
  color: #464555;
  line-height: 20px;
  white-space: nowrap;
}

/* ── Avatar: CSS-masked photo + vector outline — node 10:129 ── */

.avatar-stack {
  display: inline-grid;
  grid-template-columns: max-content;
  grid-template-rows: max-content;
  place-items: start;
  line-height: 0;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.connect-btn:hover .avatar-stack {
  transform: scale(1.15) rotate(6deg);
}

/* Both layers occupy the same grid cell */
.avatar-masked,
.avatar-outline-wrap {
  grid-column: 1;
  grid-row: 1;
}

/* Masked photo layer — node 10:132 */
.avatar-masked {
  width: 25.606px;
  height: 31.834px;
  margin-left: -0.09px;
  margin-top: -0.26px;
  position: relative;
}

.avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  max-width: none;
  -webkit-mask-image: url('assets/avatar-mask.svg');
  mask-image: url('assets/avatar-mask.svg');
  -webkit-mask-size: 26px 32.574px;
  mask-size: 26px 32.574px;
  -webkit-mask-position: -0.414px -0.24px;
  mask-position: -0.414px -0.24px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Vector outline overlay — node 10:133 */
.avatar-outline-wrap {
  width: 25px;
  height: 31.574px;
  position: relative;
}

.avatar-outline-inner {
  position: absolute;
  inset: -1.58% -2%;
}

.avatar-outline {
  display: block;
  max-width: none;
  width: 100%;
  height: 100%;
}

/* ── Timeline grid (node 10:6) — background dashed boxes ── */

.timeline-grid {
  position: absolute;
  top: 124px;
  left: 0;
  right: 0;
  height: 1056px;  /* 1007 + 45 + 4px below and-more */
}

/* Shared dashed box */
/* Shared placeholder box — solid fill, no border */
.tg-box {
  position: absolute;
  left: 79px;
  right: 18px;
  background: #f8f9ff;
  border-radius: 12px;
}

/* Inner: logo aligned to top-center */
.tg-box-inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
}

/* Meta placeholder (top: -25px, height: 874px) — logo at top with py:5px */
.tg-meta { top: -25px; height: 874px; }
.tg-meta .tg-box-inner { padding: 4px 8px; }

.tg-logo {
  width: 43px;
  height: 24px;
  object-fit: contain;
  display: block;
}

/* HP placeholder (top: 857px, height: 150px) — logo at top with py:7px */
.tg-hp { top: 857px; height: 150px; }
.tg-hp .tg-box-inner { padding: 12px 8px 8px; }

.tg-logo-sm {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

/* And more... — flush below HP box (857+150=1007px) */
.tg-andmore {
  text-decoration: none;
  cursor: pointer;
  position: absolute;
  top: 1007px;
  left: 89px;
  right: 8px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.tg-andmore span {
  font-weight: 400;
  font-size: 12px;
  color: #464555;
  line-height: 20px;
}

/* ── "Today" label — node 8:393
       Separate absolute element, right-edge aligned with year labels (right:304px = left edge at 56px),
       vertically centred on the now-indicator at top:87px ── */

.today-label {
  position: absolute;
  right: 304px;
  top: 87px;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 12px;
  color: #464555;
  letter-spacing: 0.24px;
  line-height: 16px;
  text-align: right;
  white-space: nowrap;
}

/* ── Year markers column — node 8:391
       top:125px, w:80px, gap:60px, pt:8px, pr:24px
       First slot is a 16px empty spacer; year labels follow ── */

.year-markers {
  position: absolute;
  top: 125px;
  left: 0;
  width: 80px;
  padding-top: 8px;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
}

/* Empty 16px spacer — occupies the slot above 2026 */
.year-spacer {
  height: 16px;
  flex-shrink: 0;
  width: 100%;
}

.year-label-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  flex-shrink: 0;
}

.year-label {
  font-weight: 400;
  font-size: 12px;
  color: #464555;
  letter-spacing: 0.24px;
  line-height: 16px;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Grid area (node 10:20) ── */

.grid-area {
  position: absolute;
  top: 124px;
  left: 80px;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

/* ── Now indicator (node 10:21) ── */

.now-indicator {
  position: absolute;
  top: -37.35px;
  left: -9px;
  right: -2px;
  height: 0;
}

.now-line {
  position: absolute;
  left: 11px;
  right: 0;
  top: 0.35px;
  height: 1px;
  background: #3525cd;
}

@keyframes nowRipple {
  0%   { box-shadow: 0 0 0 0   rgba(53, 37, 205, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(53, 37, 205, 0);    }
  100% { box-shadow: 0 0 0 0   rgba(53, 37, 205, 0);    }
}

.now-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #3525cd;
  border-radius: 4px;
  left: 5px;
  top: -3px;
  animation: nowRipple 2.4s ease-out infinite;
}

/* ── Event card entrance animation ── */

@keyframes eventFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Cards start hidden; JS adds .visible when they scroll into view */
.event:not(.visible) {
  opacity: 0;
  transform: translateY(10px);
}

.event.visible {
  animation: eventFadeIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Event cards (shared) ── */

.event {
  position: absolute;
  left: 7px;
  right: 26px;
  border-radius: 12px;
  padding: 13px 25px;
  display: flex;
  flex-direction: column;
  cursor: default;
}


.event-title {
  font-weight: 600;
  font-size: 12px;
  color: #0b1c30;
  line-height: 28px;
  height: 28px;
  white-space: nowrap;
  flex-shrink: 0;
}

.event-desc {
  font-weight: 400;
  font-size: 11px;
  color: #464555;
  line-height: 16px;
}

/* WhatsApp — top 10, h 97, green */
.event--whatsapp {
  top: 10px;
  height: 97px;
  background: #f1fff8;
  border: 1px solid rgba(0, 126, 82, 0.1);
  padding-bottom: 9px;
  padding-left: 19px;
}

/* XR Tech — top 115, h 126, purple */
.event--xr {
  top: 115px;
  height: 126px;
  background: #f4f1ff;
  border: 1px solid rgba(88, 0, 126, 0.1);
}

/* Metaverse — top 249, h 215, blue */
.event--metaverse {
  top: 249px;
  height: 215px;
  background: #edf4ff;
  border: 1px solid rgba(0, 59, 126, 0.1);
  padding-bottom: 17px;
}

/* Privacy — top 472, h 144, warm */
.event--privacy {
  top: 472px;
  height: 144px;
  background: #fff9f9;
  border: 1px solid rgba(126, 48, 0, 0.1);
}

/* Ads & Business — top 624, h 215, red */
.event--ads {
  top: 624px;
  height: 215px;
  background: #fff1f1;
  border: 1px solid rgba(126, 48, 0, 0.1);
}

/* ── Responsive ── */

/* Mobile: floating card with consistent lavender spacing on all sides */
@media (max-width: 430px) {
  .page {
    padding: 12px;
    align-items: center;
  }
}
