/**
 * Resume — elite phone mockup, app-style sections, design system only
 */

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

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

html {
  font-size: 19px;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ----- OS-adaptive window ----- */
.window {
  width: 100%;
  max-width: min(480px, 100vw);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.25);
  animation: windowIn 0.5s ease forwards;
}

@keyframes windowIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.window__body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sizeGeneralM);
  background: var(--page-bg);
}

/* Windows: title bar with controls on right */
body[data-os="windows"] .window {
  border-radius: 12px;
  background: var(--generalBackgroundBgL1);
}

body[data-os="windows"] .window__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 var(--sizeGeneralS) 0 var(--sizeGeneralM);
  background: var(--generalBackgroundBgL2);
  border-bottom: 1px solid var(--generalStrokeL2);
}

body[data-os="windows"] .window__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--generalForegroundSecondary);
}

body[data-os="windows"] .window__controls--left {
  display: none;
}

body[data-os="windows"] .window__controls--right {
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-os="windows"] .window__win {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
}

body[data-os="windows"] .window__win--min { background: #f5b84c; }
body[data-os="windows"] .window__win--max { background: #61c554; }
body[data-os="windows"] .window__win--close { background: #ed6a5e; }

/* Mac: traffic lights on left */
body[data-os="mac"] .window {
  border-radius: 12px;
  background: var(--generalBackgroundBgL1);
}

body[data-os="mac"] .window__titlebar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 var(--sizeGeneralM);
  background: var(--generalBackgroundBgL2);
  border-bottom: 1px solid var(--generalStrokeL2);
  position: relative;
}

body[data-os="mac"] .window__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--generalForegroundSecondary);
}

body[data-os="mac"] .window__controls--left {
  position: absolute;
  left: var(--sizeGeneralM);
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-os="mac"] .window__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

body[data-os="mac"] .window__dot--red { background: #ff5f57; }
body[data-os="mac"] .window__dot--yellow { background: #febc2e; }
body[data-os="mac"] .window__dot--green { background: #28c840; }

body[data-os="mac"] .window__controls--right {
  display: none;
}

/* Mobile / iOS: no title bar, full bleed, no phone frame — app-like in browser */
body[data-os="mobile"] .window,
body[data-os="ios"] .window {
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
}

body[data-os="mobile"] .window__titlebar,
body[data-os="ios"] .window__titlebar {
  display: none;
}

body[data-os="mobile"] .window__body,
body[data-os="ios"] .window__body {
  padding: 0;
  background: var(--generalBackgroundBgL0Web);
}

body[data-os="mobile"] .page,
body[data-os="ios"] .page {
  padding: 0;
  background: var(--generalBackgroundBgL0Web);
  background-image: none;
}

/* Mobile web: remove phone frame (borders, notch) for simple in-browser app feel */
body[data-os="mobile"] .phone,
body[data-os="ios"] .phone {
  max-width: 100%;
  aspect-ratio: unset;
  min-height: 100dvh;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  border: none;
  animation: none;
}

body[data-os="mobile"] .phone__notch,
body[data-os="ios"] .phone__notch {
  display: none;
}

/* Narrow viewport (resized or small screen): full viewport, no frames */
@media (max-width: 768px) {
  .page {
    padding: 0;
    margin: 0;
    width: 100%;
    min-height: 100dvh;
    height: 100dvh;
    background: var(--generalBackgroundBgL0Web);
    background-image: none;
    align-items: stretch;
    justify-content: stretch;
  }

  .window {
    width: 100%;
    max-width: none;
    flex: 1;
    min-height: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .window__titlebar {
    display: none !important;
  }

  .window__body {
    flex: 1;
    padding: 0;
    margin: 0;
    background: var(--generalBackgroundBgL0Web);
    align-items: stretch;
    justify-content: stretch;
    min-height: 0;
  }

  .phone {
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: 100%;
    aspect-ratio: unset;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    animation: none;
  }

  .phone__notch {
    display: none;
  }
}

/* Page: theme-aware background behind phone (web) */
.page {
  --page-bg: #e2e4e9;
  --page-gradient-top: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(73, 101, 210, 0.08), transparent);
  --page-gradient-bottom: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(0, 0, 0, 0.06), transparent);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  background: var(--page-bg);
  background-image: var(--page-gradient-top), var(--page-gradient-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sizeGeneralM);
  box-sizing: border-box;
}

[data-theme="dark"] .page {
  --page-bg: #0f1012;
  --page-gradient-top: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(73, 101, 210, 0.15), transparent);
  --page-gradient-bottom: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(0, 0, 0, 0.4), transparent);
}

/* Phone device frame — theme-aware bezel on web */
.phone {
  --phone-bezel-outer: #2c2c30;
  --phone-bezel-inner: #1a1a1e;
  --phone-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: min(100%, var(--sizePagePageWidth));
  aspect-ratio: 375 / 812;
  max-height: 90dvh;
  min-height: 400px;
  position: relative;
  background: var(--generalBackgroundBgL0Web);
  border-radius: 40px;
  box-shadow: 0 0 0 12px var(--phone-bezel-outer),
              0 0 0 14px var(--phone-bezel-inner),
              var(--phone-shadow),
              inset 0 0 0 1px var(--generalStrokeL2);
  overflow: hidden;
  animation: phoneIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Light theme: softer bezel so frame doesn’t look harsh */
:root:not([data-theme="dark"]) .phone {
  --phone-bezel-outer: #b8b8c0;
  --phone-bezel-inner: #9a9aa4;
  --phone-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

@keyframes phoneIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.phone__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 5;
}

/* Status bar */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  padding: 0 var(--sizePagePageMargin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: var(--generalForegroundPrimary);
  z-index: 4;
}

.status-bar__time {
  font-variant-numeric: tabular-nums;
}

.status-bar__right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-bar__icon {
  font-size: 15px;
}

/* Status bar theme toggle — visible on web (desktop) only; hidden on mobile */
.status-bar__theme {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px 8px;
  margin: -4px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--generalForegroundSecondary);
  border-radius: 6px;
  min-height: 28px;
  transition: background 0.2s ease, color 0.2s ease;
}

.status-bar__theme:hover {
  background: var(--generalBackgroundBgL2);
  color: var(--generalForegroundPrimary);
}

.status-bar__theme-icon {
  display: block;
  font-size: 15px;
}

.status-bar__theme-icon--light {
  display: block;
}

.status-bar__theme-icon--dark {
  display: none;
}

.theme--dark .status-bar__theme-icon--light {
  display: none;
}

.theme--dark .status-bar__theme-icon--dark {
  display: block;
}

.status-bar__theme-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Theme toggle in profile header — visible on mobile only */
.home__theme-toggle {
  margin-left: auto;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--generalBackgroundBgL2);
  border: 1px solid var(--generalStrokeL2);
  border-radius: 50%;
  cursor: pointer;
  color: var(--generalForegroundSecondary);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.home__theme-toggle:hover {
  background: var(--generalBackgroundBgL3);
  color: var(--generalForegroundPrimary);
}

.home__theme-toggle:active {
  transform: scale(0.95);
}

.home__theme-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home__theme-icon svg {
  width: 100%;
  height: 100%;
}

.home__theme-icon--sun {
  display: flex;
}

.home__theme-icon--moon {
  display: none;
}

.theme--dark .home__theme-icon--sun {
  display: none;
}

.theme--dark .home__theme-icon--moon {
  display: flex;
}

/* Web (desktop): show theme in status bar, hide in profile header */
@media (min-width: 769px) {
  .home__theme-toggle {
    display: none !important;
  }
}

/* Mobile web: hide entire status bar; theme only in profile header (screen top:0 is set after .screen base) */
@media (max-width: 768px) {
  .status-bar {
    display: none !important;
  }
}

/* Screens stack */
.screen {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--generalBackgroundBgL0Web);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.35s;
}

@media (max-width: 768px) {
  .screen {
    top: 0;
  }
}

.screen--home {
  transform: translateX(-20%);
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.screen--home.is-active {
  transform: translateX(0);
}

.screen--home.is-active .app-icon--animate {
  animation: appIconIn 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.app-icon--animate:nth-child(1) { animation-delay: 0.05s; }
.app-icon--animate:nth-child(2) { animation-delay: 0.1s; }
.app-icon--animate:nth-child(3) { animation-delay: 0.15s; }
.app-icon--animate:nth-child(4) { animation-delay: 0.2s; }
.app-icon--animate:nth-child(5) { animation-delay: 0.25s; }
.app-icon--animate:nth-child(6) { animation-delay: 0.3s; }

@keyframes appIconIn {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Transition: smooth back to home (no jerk) */
.screen.screen--exit-left {
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  transform: translateX(0);
  opacity: 0;
}

/* Transition: entering app (slide from right) */
.screen.screen--enter-right.is-active {
  animation: screenSlideIn 0.3s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes screenSlideIn {
  from {
    transform: translateX(100%);
    opacity: 1;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Home */
.home {
  flex: 1;
  padding: var(--sizeGeneralXL) var(--sizePagePageMargin) var(--sizeGeneralM);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home__header {
  display: flex;
  align-items: center;
  gap: var(--sizeGeneralM);
  margin-bottom: var(--sizeGeneralL);
  position: relative;
}

.home__header .home__theme-toggle {
  position: relative;
}

.home__photo-wrap {
  display: block;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.home__photo-wrap:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.home__photo-wrap:active {
  transform: scale(0.98);
}

.home__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--generalStrokeL2);
  display: block;
}

.home__header-text {
  min-width: 0;
}

.home__name {
  margin: 0 0 var(--sizeGeneralXXS) 0;
  color: var(--generalForegroundPrimary);
}

.home__tagline {
  margin: 0;
  color: var(--generalForegroundSecondary);
}

/* Apple-only: animated timeline widget */
.timeline-widget {
  margin-bottom: var(--sizeGeneralL);
  padding: var(--sizeGeneralM);
  background: var(--generalBackgroundBgL1);
  border: 1px solid var(--generalStrokeL2);
  border-radius: var(--cornerRadiusCardCard);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.timeline-widget[hidden] {
  display: none !important;
}

.timeline-widget__title {
  margin: 0 0 var(--sizeGeneralS) 0;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  color: var(--generalForegroundSecondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline {
  position: relative;
  padding-left: var(--sizeGeneralL);
}

/* Bottom-to-top: line draws from bottom; items ordered Now (top) → 2017 (bottom) */
.timeline--bottom-top .timeline__line {
  transform-origin: bottom;
}

.timeline__line {
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--generalStrokeL2);
  border-radius: 2px;
  transform-origin: bottom;
  animation: timelineLineDrawBottomTop 1.2s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes timelineLineDraw {
  from { transform: scaleY(0); opacity: 0.6; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes timelineLineDrawBottomTop {
  from { transform: scaleY(0); opacity: 0.6; }
  to { transform: scaleY(1); opacity: 1; }
}

.timeline__item {
  position: relative;
  margin-bottom: var(--sizeGeneralS);
  font-size: 12px;
  line-height: 1.35;
  color: var(--generalForegroundPrimary);
  opacity: 0;
  transform: translateX(-8px);
  animation: timelineItemIn 0.45s ease forwards;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sizeGeneralL) + 3px);
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--actionBackgroundPrimary);
  border: 2px solid var(--generalBackgroundBgL1);
}

.timeline__item--current::before {
  background: var(--positiveBackgroundPrimary);
  box-shadow: 0 0 0 2px var(--positiveBackgroundSecondary);
}

.timeline__item--1 { animation-delay: 0.25s; }
.timeline__item--2 { animation-delay: 0.45s; }
.timeline__item--3 { animation-delay: 0.65s; }
.timeline__item--4 { animation-delay: 0.85s; }

@keyframes timelineItemIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline__item[data-year] {
  padding-right: 2em;
}

.timeline__item[data-year]::after {
  content: attr(data-year);
  position: absolute;
  right: 0;
  top: 0;
  font-size: 10px;
  font-weight: 600;
  color: var(--generalForegroundTertiary);
}

.home__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sizeGeneralM);
  flex: 1;
  align-content: start;
  min-width: 0;
}

/* App icon with flip on hover (web) */
.app-icon {
  position: relative;
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 0;
  border: none;
  border-radius: var(--cornerRadiusCardCard);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  background: transparent;
  perspective: 500px;
  transform-style: preserve-3d;
}

.app-icon__front,
.app-icon__back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sizeGeneralXS);
  padding: var(--sizeGeneralL);
  border-radius: var(--cornerRadiusCardCard);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.app-icon__front {
  background: var(--generalBackgroundBgL1);
  border: 1px solid var(--generalStrokeL2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  color: var(--generalForegroundPrimary);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.app-icon__back {
  position: absolute;
  inset: 0;
  background: var(--actionBackgroundSecondary);
  border: 1px solid var(--generalStrokeL2);
  color: var(--generalForegroundPrimary);
  font-size: 10px;
  line-height: 1.3;
  padding: var(--sizeGeneralM);
  transform: rotateY(180deg);
}

.app-icon--flip:hover .app-icon__front,
.app-icon--flip:focus-within .app-icon__front {
  transform: rotateY(-180deg);
}

.app-icon--flip:hover .app-icon__back,
.app-icon--flip:focus-within .app-icon__back {
  transform: rotateY(0);
}

/* Flip in smooth on hover only; no transition on mouse leave to avoid jerk */
.app-icon__front,
.app-icon__back {
  transition: none;
}

.app-icon--flip:hover .app-icon__front,
.app-icon--flip:hover .app-icon__back,
.app-icon--flip:focus-within .app-icon__front,
.app-icon--flip:focus-within .app-icon__back {
  transition: transform 0.55s ease-in-out;
}

.app-icon__symbol {
  font-size: 30px;
  line-height: 1;
}

.app-icon__label {
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  color: var(--generalForegroundPrimary);
}

@media (hover: none) {
  .app-icon--flip .app-icon__back {
    display: none;
  }
}

/* App nav bar — sticky so it stays with content when scrolling */
.screen--app {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.app-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--sizeGeneralS);
  padding: var(--sizeGeneralS) var(--sizePagePageMargin);
  background: var(--generalBackgroundBgL1);
  border-bottom: 1px solid var(--generalStrokeL2);
  position: sticky;
  top: 0;
  z-index: 2;
}

.app-nav__back {
  display: none;
}

.app-nav__title {
  margin: 0;
  font-size: 17px;
  line-height: 20px;
  font-weight: 600;
  color: var(--generalForegroundPrimary);
}

/* App content (scrollable) — wheel, trackpad, and touch drag */
.app-content {
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  overflow-scrolling: touch;
  -webkit-overflow-scrolling: touch;
  padding: var(--sizeGeneralM) var(--sizePagePageMargin) 72px;
  cursor: default;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  min-width: 0;
}

@media (max-width: 480px) {
  .app-content {
    overflow-y: auto;
    padding-left: var(--sizeGeneralM);
    padding-right: var(--sizeGeneralM);
  }
}

/* Summary: card-style layout */
.summary-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sizeGeneralS);
}

.summary-card-item {
  display: flex;
  gap: var(--sizeGeneralM);
  padding: var(--sizeGeneralM);
  background: var(--generalBackgroundBgL1);
  border: 1px solid var(--generalStrokeL2);
  border-radius: var(--cornerRadiusCardCard);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.summary-card-item__icon {
  font-size: 26px;
  flex-shrink: 0;
}

.summary-card-item__title {
  display: block;
  margin: 0 0 var(--sizeGeneralXXS) 0;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  color: var(--actionForegroundSecondary);
}

.summary-card-item__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--generalForegroundPrimary);
}

.app-content__p {
  margin: 0;
  color: var(--generalForegroundPrimary);
  line-height: 1.5;
}

.app-content__subtitle {
  margin: var(--sizeGeneralL) 0 var(--sizeGeneralXS) 0;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  color: var(--generalForegroundSecondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Typography */
.text-hero {
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
}

.text-body {
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
}

.text-sBody {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}

/* Skill chips (inside app) */
.skill-category {
  margin-bottom: var(--sizeGeneralM);
}

.skill-category__label {
  margin: 0 0 var(--sizeGeneralXS) 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  color: var(--generalForegroundSecondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.skill-category__sublabel {
  margin: var(--sizeGeneralM) 0 var(--sizeGeneralXS) 0;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  color: var(--generalForegroundTertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.skill-category__sublabel:first-of-type {
  margin-top: var(--sizeGeneralS);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sizeGeneralXS);
}

.chip {
  padding: var(--sizeChipChip) var(--sizeGeneralS);
  background: var(--actionBackgroundSecondary);
  border: 1px solid var(--generalStrokeL1);
  border-radius: var(--cornerRadiusChipChip);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  color: var(--actionForegroundSecondary);
  font-family: inherit;
}

/* Experience card */
.exp-card {
  margin-bottom: var(--sizeGeneralM);
  padding: var(--sizeGeneralM);
  background: var(--generalBackgroundBgL1);
  border: 1px solid var(--generalStrokeL2);
  border-radius: var(--cornerRadiusCardCard);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.exp-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sizeGeneralXS);
  margin-bottom: var(--sizeGeneralXXS);
}

.exp-card__company {
  margin: 0;
  font-size: 17px;
  line-height: 20px;
  font-weight: 600;
  color: var(--generalForegroundPrimary);
}

.exp-card__badge {
  padding: var(--sizeGeneralXXS) var(--sizeGeneralXS);
  background: var(--positiveBackgroundSecondary);
  border-radius: var(--cornerRadiusTagTag);
  font-size: 8px;
  line-height: 12px;
  font-weight: 600;
  color: var(--positiveForegroundSecondary);
  flex-shrink: 0;
}

.exp-card__role {
  margin: 0 0 var(--sizeGeneralXXS) 0;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  color: var(--actionForegroundSecondary);
}

.exp-card__meta {
  margin: 0 0 var(--sizeGeneralS) 0;
  font-size: 9px;
  line-height: 12px;
  font-weight: 500;
  color: var(--generalForegroundTertiary);
}

.exp-card__highlights {
  margin: 0;
  padding: 0;
  list-style: none;
}

.exp-card__highlights li {
  position: relative;
  padding-left: 1em;
  margin-bottom: var(--sizeGeneralXS);
  font-size: 13px;
  line-height: 1.35;
  color: var(--generalForegroundPrimary);
}

.exp-card__highlights li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--generalForegroundSecondary);
}

/* Education & recognition */
.edu-list,
.rec-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.edu-list li,
.rec-list li {
  margin-bottom: var(--sizeGeneralXS);
  font-size: 13px;
  line-height: 16px;
  color: var(--generalForegroundPrimary);
}

.rec-list li::before {
  content: '★ ';
  color: var(--alertForegroundSecondary);
}

/* Contact intro */
.contact-intro {
  margin: 0 0 var(--sizeGeneralM) 0;
  color: var(--generalForegroundSecondary);
}

/* Contact buttons (inside Contact app) — value-focused copy */
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--sizeGeneralS);
}

.contact__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sizeGeneralXXS);
  padding: var(--sizeGeneralM) var(--sizeGeneralL);
  background: var(--actionBackgroundPrimary);
  color: var(--actionForegroundPrimary);
  border: none;
  border-radius: var(--cornerRadiusCardCard);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  padding-left: calc(var(--sizeGeneralL) + 28px);
}

.contact__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.contact__btn:active {
  transform: translateY(0);
}

.contact__btn__icon {
  position: absolute;
  left: var(--sizeGeneralM);
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--cornerRadiusCardSCard);
}

.contact__btn__icon--github {
  padding: 2px;
}

.contact__btn__icon--github svg {
  width: 100%;
  height: 100%;
}

.contact__btn--email {
  background: #E8F0FE;
  color: #1a73e8;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.15);
}
.contact__btn--email .contact__btn__icon { background: #1a73e8; color: #fff; }

.contact__btn--phone {
  background: #E0F2F1;
  color: #0D9488;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.15);
}
.contact__btn--phone .contact__btn__icon { background: #0D9488; color: #fff; }

.contact__btn--linkedin {
  background: #E3F2FD;
  color: #0a66c2;
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.15);
}
.contact__btn--linkedin .contact__btn__icon { background: #0a66c2; color: #fff; font-size: 13px; }

.contact__btn--github {
  background: var(--generalBackgroundBgL3);
  color: var(--generalForegroundPrimary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.contact__btn--github .contact__btn__icon { background: var(--generalForegroundPrimary); color: var(--generalBackgroundBgL1); font-size: 13px; }

.contact__btn--instagram {
  background: linear-gradient(135deg, #f9f0ff 0%, #ffe8f0 50%, #fff4e6 100%);
  color: #833AB4;
  box-shadow: 0 2px 8px rgba(131, 58, 180, 0.15);
}
.contact__btn--instagram .contact__btn__icon { background: linear-gradient(135deg, #833AB4, #E1306C, #F77737); color: #fff; }
.contact__btn--instagram .contact__btn__icon svg { fill: #fff; }

[data-theme="dark"] .contact__btn--instagram {
  background: linear-gradient(135deg, #2d1b4e 0%, #4a2a3d 50%, #3d3520 100%);
  color: #e0aaff;
}
[data-theme="dark"] .contact__btn--instagram .contact__btn__icon { background: linear-gradient(135deg, #833AB4, #E1306C); color: #fff; }

[data-theme="dark"] .contact__btn--email { background: #1e3a5f; color: #8ab4f8; }
[data-theme="dark"] .contact__btn--email .contact__btn__icon { background: #8ab4f8; color: #1e3a5f; }
[data-theme="dark"] .contact__btn--phone { background: #134e4a; color: #5eead4; }
[data-theme="dark"] .contact__btn--phone .contact__btn__icon { background: #5eead4; color: #134e4a; }
[data-theme="dark"] .contact__btn--linkedin { background: #1a365d; color: #93c5fd; }
[data-theme="dark"] .contact__btn--linkedin .contact__btn__icon { background: #93c5fd; color: #1a365d; }
[data-theme="dark"] .contact__btn--github { background: var(--generalBackgroundBgL2); color: var(--generalForegroundPrimary); }
[data-theme="dark"] .contact__btn--github .contact__btn__icon { background: var(--generalForegroundSecondary); color: var(--generalBackgroundBgL1); }

.contact__btn__title {
  font-size: 15px;
  line-height: 18px;
  font-weight: 600;
  color: inherit;
}

.contact__btn__desc {
  font-size: 12px;
  line-height: 14px;
  font-weight: 400;
  opacity: 0.9;
}

/* Settings */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sizeGeneralS);
  padding: var(--sizeGeneralM) 0;
  border-bottom: 1px solid var(--generalStrokeL2);
}

.settings-row__label {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--generalForegroundPrimary);
}

.settings-row__control {
  display: flex;
  gap: var(--sizeGeneralXS);
}

.theme-switch {
  padding: var(--sizeGeneralXS) var(--sizeGeneralM);
  border-radius: var(--cornerRadiusButtonButton);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--generalStrokeL2);
  background: var(--generalBackgroundBgL2);
  color: var(--generalForegroundSecondary);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.theme-switch:hover {
  background: var(--generalBackgroundBgL3);
  color: var(--generalForegroundPrimary);
}

.theme-switch[aria-pressed="true"] {
  background: var(--actionBackgroundPrimary);
  color: var(--actionForegroundPrimary);
  border-color: var(--actionBackgroundPrimary);
}

.theme-switch:active {
  transform: scale(0.98);
}

/* Bottom nav — native-style tab bar, more visible and active-looking */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 4px;
  padding: var(--sizeGeneralS) var(--sizeGeneralXS);
  padding-bottom: calc(var(--sizeGeneralS) + env(safe-area-inset-bottom, 0px));
  background: var(--generalBackgroundBgL1);
  border-top: 1px solid var(--generalStrokeL2);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  z-index: 3;
}

[data-theme="dark"] .bottom-nav {
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 48px;
  flex: 1;
  padding: var(--sizeGeneralXS) var(--sizeGeneralXXS);
  background: transparent;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--generalForegroundSecondary);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__item:hover {
  color: var(--generalForegroundPrimary);
  background: var(--generalBackgroundBgL2);
}

.bottom-nav__item:active {
  transform: scale(0.97);
}

.bottom-nav__item.is-active {
  color: var(--actionForegroundSecondary);
  font-weight: 600;
  background: var(--actionBackgroundSecondary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .bottom-nav__item.is-active {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bottom-nav__item .bottom-nav__icon {
  font-size: 24px;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.bottom-nav__item.is-active .bottom-nav__icon {
  opacity: 1;
}

/* Home tab: selected = filled house 🏠, unselected = outline ⌂ */
.bottom-nav__item .bottom-nav__icon--unselected {
  display: block;
}

.bottom-nav__item .bottom-nav__icon--selected {
  display: none;
}

.bottom-nav__item.is-active .bottom-nav__icon--unselected {
  display: none;
}

.bottom-nav__item.is-active .bottom-nav__icon--selected {
  display: block;
}

.bottom-nav__item .bottom-nav__label {
  line-height: 1.2;
  font-size: 11px;
  letter-spacing: 0.01em;
}

/* Profile photo overlay (WhatsApp-style) */
.profile-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.profile-photo-overlay[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
}

.profile-photo-overlay[hidden] {
  display: none !important;
}

.profile-photo-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.profile-photo-overlay__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sizeGeneralM);
  padding: var(--sizeGeneralXL);
  max-width: 90%;
  pointer-events: none;
}

.profile-photo-overlay__content * {
  pointer-events: auto;
}

.profile-photo-overlay__close {
  position: absolute;
  top: calc(-1 * var(--sizeGeneralL));
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.profile-photo-overlay__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.profile-photo-overlay__img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.profile-photo-overlay__name {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.profile-photo-overlay__title {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* Others overlay */
.others-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.others-overlay[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
}

.others-overlay[hidden] {
  display: none !important;
}

.others-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  cursor: pointer;
}

.others-overlay__panel {
  position: relative;
  width: 100%;
  max-height: 50%;
  background: var(--generalBackgroundBgL1);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  padding: var(--sizeGeneralM);
  padding-bottom: calc(var(--sizeGeneralM) + env(safe-area-inset-bottom, 0));
}

.others-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sizeGeneralM);
}

.others-overlay__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--generalForegroundPrimary);
}

.others-overlay__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 26px;
  color: var(--generalForegroundSecondary);
  cursor: pointer;
}

.others-overlay__list {
  display: flex;
  flex-direction: column;
  gap: var(--sizeGeneralXS);
}

.others-overlay__item {
  display: flex;
  align-items: center;
  gap: var(--sizeGeneralM);
  width: 100%;
  padding: var(--sizeGeneralM);
  background: var(--generalBackgroundBgL2);
  border: 1px solid var(--generalStrokeL2);
  border-radius: var(--cornerRadiusCardCard);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--generalForegroundPrimary);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.others-overlay__item:hover {
  background: var(--actionBackgroundSecondary);
}

.others-overlay__icon {
  font-size: 21px;
}

/* Personal life section */
.personal-intro {
  margin: 0 0 var(--sizeGeneralL) 0;
  color: var(--generalForegroundSecondary);
}

.personal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.personal-list__item {
  display: flex;
  gap: var(--sizeGeneralM);
  margin-bottom: var(--sizeGeneralL);
  padding: var(--sizeGeneralM);
  background: var(--generalBackgroundBgL1);
  border: 1px solid var(--generalStrokeL2);
  border-radius: var(--cornerRadiusCardCard);
  font-size: 13px;
  line-height: 1.45;
  color: var(--generalForegroundPrimary);
}

.personal-list__icon {
  font-size: 26px;
  flex-shrink: 0;
}

.personal-list__item strong {
  display: block;
  margin-bottom: var(--sizeGeneralXXS);
  color: var(--generalForegroundPrimary);
}

/* App content entrance animation */
.screen--app.is-active .app-content > * {
  animation: contentFadeIn 0.4s ease both;
}

.screen--app.is-active .exp-card:nth-child(1) { animation-delay: 0.05s; }
.screen--app.is-active .exp-card:nth-child(2) { animation-delay: 0.1s; }
.screen--app.is-active .exp-card:nth-child(3) { animation-delay: 0.15s; }
.screen--app.is-active .exp-card:nth-child(4) { animation-delay: 0.2s; }
.screen--app.is-active .skill-category:nth-child(1) { animation-delay: 0.05s; }
.screen--app.is-active .skill-category:nth-child(2) { animation-delay: 0.08s; }
.screen--app.is-active .skill-category:nth-child(3) { animation-delay: 0.11s; }
.screen--app.is-active .skill-category:nth-child(4) { animation-delay: 0.14s; }
.screen--app.is-active .skill-category:nth-child(5) { animation-delay: 0.17s; }
.screen--app.is-active .skill-category:nth-child(6) { animation-delay: 0.2s; }

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Responsive: small screens (no overflow, readable layout) ----- */
@media (max-width: 400px) {
  .home {
    padding-left: var(--sizeGeneralM);
    padding-right: var(--sizeGeneralM);
  }

  .status-bar {
    padding-left: var(--sizeGeneralM);
    padding-right: var(--sizeGeneralM);
  }

  .app-nav {
    padding-left: var(--sizeGeneralM);
    padding-right: var(--sizeGeneralM);
  }

  .home__header {
    gap: var(--sizeGeneralS);
  }

  .home__photo {
    width: 56px;
    height: 56px;
  }

  .text-hero {
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.2;
  }

  .bottom-nav__item {
    min-height: 44px;
    padding: var(--sizeGeneralXXS) 2px;
  }

  .bottom-nav__item .bottom-nav__icon {
    font-size: 21px;
  }

  .bottom-nav__item .bottom-nav__label {
    font-size: 10px;
  }

  .app-icon {
    min-height: 76px;
  }

  .app-icon__symbol {
    font-size: 26px;
  }

  .app-icon__label {
    font-size: 10px;
  }
}
