/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  cursor: none;
  overflow: hidden;
  height: 100%;
  --nav-height: 92px;
  --bg: #000;
  --bg-2: #0a0a0a;
  --bg-3: #111;
  --fg: #fff;
  --fg-2: #ccc;
  --fg-muted: #888;
  --fg-subtle: #555;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --accent-1: #e0e0e0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  color: var(--fg);
  background: var(--bg);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 12px 18px;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  cursor: none;
}

.skip-link:focus {
  left: 0;
  outline: 2px solid #000;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button {
  cursor: none;
  font-family: 'Barlow', sans-serif;
}

img {
  max-width: 100%;
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */
html:not(.cursor-has-moved) #cursor-dot,
html:not(.cursor-has-moved) #cursor-ring {
  opacity: 0;
  visibility: hidden;
}

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  pointer-events: none;
  width: 20px;
  height: 24px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(255,255,255,0.18));
  transition: color 0.3s ease, filter 0.3s ease, transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: left, top, transform;
}

#cursor-dot.clicking {
  transform: scale(0.85);
}

#cursor-dot svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

#cursor-dot svg path {
  fill: currentColor;
  stroke: none;
}

/* Light pages override cursor */
.page-light #cursor-dot {
  color: #000;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  pointer-events: none;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  will-change: left, top;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cursor-ring.hover {
  width: 72px;
  height: 72px;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
}

#cursor-ring.text-visible {
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.7);
}

#cursor-ring.clicking {
  width: 32px;
  height: 32px;
}

.page-light #cursor-ring {
  border-color: rgba(0,0,0,0.2);
}
.page-light #cursor-ring.hover {
  border-color: rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.04);
}
.page-light #cursor-ring.text-visible {
  border-color: rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.06);
}
.page-light #cursor-text {
  color: #000;
}

#cursor-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

#cursor-ring.text-visible #cursor-text {
  opacity: 1;
}

html.use-system-cursor #cursor-dot,
html.use-system-cursor #cursor-ring {
  visibility: hidden !important;
  opacity: 0 !important;
}

html.use-system-cursor,
html.use-system-cursor body {
  cursor: auto !important;
}

html.use-system-cursor a,
html.use-system-cursor button,
html.use-system-cursor .hoverable,
html.use-system-cursor [data-cursor] {
  cursor: pointer !important;
}

/* ========================================
   PAGE TRANSITIONS
   ======================================== */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

#page-transition.pt-blocking {
  pointer-events: auto;
}

.pt-layer {
  position: fixed;
  pointer-events: none;
  background: #000;
  will-change: transform, opacity, clip-path;
}

.pt-split-left {
  top: 0; left: -50%; width: 50%; height: 100%; z-index: 9001;
}
.pt-split-right {
  top: 0; right: -50%; width: 50%; height: 100%; z-index: 9001;
}
.pt-wipe {
  top: 0; left: 0; width: 100%; height: 100%; z-index: 9002;
  transform: translate3d(-100%, 0, 0);
}
.pt-h-top {
  top: 0; left: 0; width: 100%; height: 50%; z-index: 9003;
  transform: translate3d(0, -100%, 0);
}
.pt-h-bottom {
  bottom: 0; left: 0; width: 100%; height: 50%; z-index: 9003;
  transform: translate3d(0, 100%, 0);
}
.pt-circle-outer {
  inset: 0; z-index: 9004; display: flex; align-items: center;
  justify-content: center; overflow: hidden; background: transparent;
}
.pt-circle-inner {
  width: min(220vmin, 400vw);
  height: min(220vmin, 400vw);
  border-radius: 50%;
  background: #000;
  transform: scale(0);
  transform-origin: center center;
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}
.pt-diag {
  left: 50%; top: 50%; width: 220vmax; height: 220vmax;
  margin-left: -110vmax; margin-top: -110vmax; z-index: 9005;
  transform: rotate(12deg) scale(0); transform-origin: center center;
}
.pt-blinds {
  inset: 0; z-index: 9006; display: flex; flex-direction: column;
  background: transparent;
}
.pt-blinds span {
  flex: 1; min-height: 0; background: #000;
  transform: scaleY(0); transform-origin: top center;
  transition: transform 0.42s cubic-bezier(0.76, 0, 0.24, 1);
}
.pt-slide {
  left: 0; bottom: 0; width: 100%; height: 100%; z-index: 9007;
  transform: translate3d(0, 100%, 0);
}
.pt-fade {
  inset: 0; z-index: 9008; background: #000; opacity: 0;
}

/* ========================================
   NAVBAR
   ======================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 500;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s, background 0.3s;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* Light navbar override (for about page etc if needed) */
#navbar.light-mode {
  background: #fff;
  border-bottom-color: #e0e0e0;
}
#navbar.light-mode .nav-logo,
#navbar.light-mode .nav-link {
  color: #000;
}
#navbar.light-mode .nav-link::after,
#navbar.light-mode .nav-logo::after {
  background: #000;
}
#navbar.light-mode .lang-btn { color: #888; }
#navbar.light-mode .lang-btn.active { color: #000; }
#navbar.light-mode .lang-switcher span { color: #ccc; }
#navbar.light-mode .nav-cta { background: #000; color: #fff; }
#navbar.light-mode .hamburger span { background: #000; }

.nav-logo {
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.03em;
  color: var(--fg);
  transition: color 0.3s;
  position: relative;
}
.nav-logo::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--fg);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-logo:hover::after,
.nav-logo.active::after {
  width: 100%;
}

.nav-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-link {
  font-size: 17px;
  font-weight: 400;
  color: var(--fg-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover {
  color: var(--fg);
}
.nav-link:hover::after { width: 100%; }
.nav-link.active {
  color: var(--fg);
  font-weight: 600;
}
.nav-link.active::after { width: 100%; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-sep { color: #333; font-size: 15px; }
.lang-btn {
  background: none; border: none;
  font-size: 15px; color: #555;
  font-family: inherit; cursor: none; padding: 0;
  transition: color 0.2s;
}
.lang-btn.active { color: #fff; font-weight: 700; }
.lang-btn:hover { color: #fff; }

.nav-cta {
  background: #fff;
  color: #000;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
}
.nav-cta:hover {
  background: #e0e0e0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  padding: 8px; z-index: 600;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: #0a0a0a;
  z-index: 499;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
}
#mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
#mobile-menu .mobile-link {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: color 0.25s;
}
#mobile-menu .mobile-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu .mobile-link.active::after { width: 100%; }
#mobile-menu .mobile-link:hover { color: #fff; }
#mobile-menu .mobile-lang-switcher {
  display: flex; gap: 16px; padding-top: 8px;
}
#mobile-menu .mobile-lang-btn {
  font-size: 16px; font-weight: 700;
  color: #555; background: none; border: none;
}
#mobile-menu .mobile-lang-btn.active { color: #fff; }

/* ========================================
   PAGES CONTAINER
   ======================================== */
#pages-container {
  width: 100%;
  height: 100vh;
  position: relative;
}

.page {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.page.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   HOME PAGE — HERO
   ======================================== */
#page-home {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
}

.hero-title-container {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 5;
  overflow: hidden;
  padding-bottom: 20px;
}

.hero-titles-slider {
  position: relative;
  width: 100%;
  height: auto;
}

.hero-title-slide {
  position: absolute;
  width: 100%;
  left: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.hero-title-slide.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-title-slide.exit-up {
  opacity: 0;
  transform: translateY(-100%);
}

.hero-title-line1 {
  display: block;
  font-size: clamp(50px, 8vw, 120px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  z-index: 5;
  cursor: none;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.85);
  transition: color 3s ease-in-out;
}

.hero-title-line2 {
  display: block;
  font-size: clamp(50px, 8vw, 120px);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-top: 0.04em;
  white-space: nowrap;
  position: relative;
  z-index: 5;
  cursor: none;
  color: #fff;
  transition: color 3s ease-in-out;
}

.hero-photo {
  position: absolute;
  top: calc(var(--nav-height) + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, 36vw);
  z-index: 2;
  pointer-events: auto;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  background: rgba(255,255,255,0.04);
  padding: 8px;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  object-fit: cover;
  transition: filter 0.45s ease, transform 0.45s ease;
  filter: brightness(1.08) contrast(1.04);
}
.hero-photo:hover img {
  filter: brightness(1.12) drop-shadow(0 10px 30px rgba(255,255,255,0.08));
  transform: scale(1.02);
}
.hero-photo.anim-up {
  transform: translateX(-50%) translateY(60px);
}
.hero-photo.anim-up.visible {
  transform: translateX(-50%) translateY(0);
}
.hero-photo.anim-up.visible:hover {
  transform: translateX(-50%) translateY(0) scale(1.045);
}

.hero-bottom {
  position: absolute;
  bottom: 40px;
  left: 0; right: 0;
  padding: 0 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 10;
}

.hero-location {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-muted);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.hero-btn-primary {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 100px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.hero-btn-primary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}
.hero-btn-primary::before {
  content: '●';
  font-size: 8px;
}

.hero-btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}
.hero-btn-secondary::before {
  content: '○';
  font-size: 10px;
}

.hero-social {
  display: flex;
  gap: 24px;
}
.hero-social a {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.hero-social a:hover { color: #fff; }

/* Scroll animations */
.anim-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.anim-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.anim-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   WORK PAGE
   ======================================== */
#page-work {
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-padding-top: var(--nav-height);
}

.work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--nav-height) + 24px) 60px 16px;
  flex-shrink: 0;
  gap: 16px;
}
.work-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}
.work-nav-arrows { display: flex; gap: 12px; }
.work-nav-btn {
  width: 44px; height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  font-size: 18px;
  display: flex;
  align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.work-nav-btn:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
}

.work-cards-container {
  display: flex;
  gap: 20px;
  padding: 16px 60px 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 0 0 auto;
  align-items: stretch;
}
.work-cards-container::-webkit-scrollbar { display: none; }

.work-card {
  background: var(--bg-3);
  border-radius: 12px;
  padding: 18px 20px 20px;
  width: 300px;
  min-width: 300px;
  min-height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  box-sizing: border-box;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background 0.3s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: #161616;
}
.work-card-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  max-height: 118px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0a0a0a 100%);
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: background 0.4s ease;
}
.work-card:hover .work-card-image {
  background: linear-gradient(135deg, #161616 0%, #222 50%, #111 100%);
}
.work-card-image svg {
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.work-card:hover .work-card-image svg {
  opacity: 0.7;
  transform: scale(1.1);
}
.work-card-title {
  font-size: 18px; font-weight: 800;
  margin-bottom: 6px;
  color: var(--fg);
  line-height: 1.2; flex: 0 0 auto;
}
.work-card-tech {
  font-size: 12px; font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em; line-height: 1.35;
  flex: 0 0 auto;
}
.work-card-desc {
  font-size: 13px; font-weight: 400;
  color: var(--fg-muted);
  line-height: 1.45; margin: 0;
  flex: 1 1 auto; min-height: 0;
}

.work-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 60px 48px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  gap: 28px;
  width: 100%;
}
.work-bottom-header { margin: 0 auto; width: 100%; }
.work-bottom-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.1;
  white-space: nowrap;
}
.work-bottom-body {
  font-size: 15px; font-weight: 400;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 760px;
  margin-left: auto; margin-right: auto;
}

.work-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1280px;
  margin: 8px auto 0;
}
.work-feature {
  position: relative;
  padding: 24px 22px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background 0.3s ease;
  overflow: hidden;
}
.work-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work-feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
}
.work-feature:hover::before { opacity: 1; }
.work-feature-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  margin-bottom: 16px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.work-feature:hover .work-feature-icon {
  background: rgba(255,255,255,0.12);
  transform: scale(1.05);
}
.work-feature-icon svg { width: 22px; height: 22px; }
.work-feature-title {
  font-size: 16px; font-weight: 800;
  color: var(--fg); margin-bottom: 8px; line-height: 1.25;
}
.work-feature-desc {
  font-size: 13.5px; font-weight: 400;
  color: var(--fg-muted); line-height: 1.55;
}
.work-bottom-btn {
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  padding: 14px 36px;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
  margin-top: 4px;
}
.work-bottom-btn:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
#page-about {
  background: #0a0a0a;
  display: flex;
}

.about-photo {
  width: 45vw;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.05) contrast(1.02);
}
.about-photo::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(to top, #0a0a0a 0%, transparent 25%),
    linear-gradient(to right, transparent 90%, #0a0a0a 100%);
  pointer-events: none;
  z-index: 1;
}
.about-photo svg {
  width: 80%;
  height: 80%;
  filter: brightness(1.1) contrast(1.05);
  display: block;
  transition: filter 0.8s ease, transform 0.8s ease;
  margin-top: auto;
}
.about-photo:hover svg {
  transform: scale(1.02);
  filter: brightness(1.15);
}

.about-content {
  width: 55vw;
  height: 100vh;
  padding: 120px 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.about-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.about-title {
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 900;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 20px;
}
.about-bio {
  font-size: 16px; font-weight: 400;
  color: var(--fg-2);
  line-height: 1.7;
  margin-bottom: 36px;
}
.about-stats {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
}
.about-stat {
  padding: 0 32px;
  border-right: 1px solid var(--border);
}
.about-stat:first-child { padding-left: 0; }
.about-stat:last-child { border-right: none; }
.about-stat-value {
  font-size: 32px; font-weight: 900;
  color: var(--fg);
}
.about-stat-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  margin-top: 4px;
}
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.about-chip {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  color: var(--fg-muted);
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.about-chip:hover {
  background: rgba(255,255,255,0.08);
  color: var(--fg);
  border-color: rgba(255,255,255,0.25);
}
.about-socials { display: flex; gap: 28px; }
.about-socials a {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.about-socials a:hover { opacity: 1; color: #fff; }

/* ========================================
   EXPERIENCE, SKILLS, CERTIFICATES
   ======================================== */
#page-experience,
#page-certificates {
  background: var(--bg-2);
  color: var(--fg);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

#page-skills {
  background: var(--bg-2);
  color: var(--fg);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.exp-wrapper,
.certs-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 120px 60px 80px;
  box-sizing: border-box;
}

.skills-wrapper {
  max-width: min(1420px, 100%);
  margin: 0 auto;
  padding: 120px clamp(20px, 4vw, 64px) 100px;
  box-sizing: border-box;
}

.skills-header {
  max-width: 100%;
  margin-bottom: clamp(36px, 4vw, 52px);
}
.skills-header .section-title {
  margin-bottom: 12px;
  white-space: nowrap;
  font-size: clamp(22px, min(4.8vw, 3.2rem), 56px);
  line-height: 1.05;
}
.skills-header .section-line { margin-bottom: 18px; }
.skills-lead {
  max-width: 42rem;
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
  letter-spacing: 0.01em;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--fg);
}

.section-line {
  width: 64px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  margin-bottom: 48px;
}

#page-experience .section-title { text-align: center; }
#page-experience .section-line {
  margin-left: auto; margin-right: auto;
}

/* ─── Timeline ─────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 44px;
  max-width: 820px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px; bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.15) 45%,
    rgba(255,255,255,0.05) 100%
  );
}
.timeline-item {
  position: relative;
  margin-bottom: clamp(22px, 3vw, 32px);
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -44px;
  top: 22px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow:
    0 0 0 5px rgba(255,255,255,0.04),
    0 6px 16px rgba(0,0,0,0.4);
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.12);
  border-color: rgba(255,255,255,0.9);
  box-shadow:
    0 0 0 5px rgba(255,255,255,0.06),
    0 8px 22px rgba(0,0,0,0.5);
}
.timeline-card {
  --exp-accent: rgba(255,255,255,0.9);
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #111 0%, #0d0d0d 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px 30px 28px 34px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}
.timeline-item:nth-child(1) .timeline-card { --exp-accent: rgba(255,255,255,0.85); }
.timeline-item:nth-child(2) .timeline-card { --exp-accent: #60a5fa; }
.timeline-item:nth-child(3) .timeline-card { --exp-accent: #34d399; }
.timeline-item:nth-child(4) .timeline-card { --exp-accent: #a78bfa; }
.timeline-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  border-radius: 22px 0 0 22px;
  background: var(--exp-accent);
  opacity: 0.7;
}
.timeline-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 24px 56px rgba(0,0,0,0.5);
}
.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 4px;
}
.timeline-role {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--fg);
}
.timeline-company {
  font-size: 14px; font-weight: 600;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.timeline-company:hover {
  color: var(--fg-muted);
  border-bottom-color: rgba(255,255,255,0.2);
}
.timeline-date {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.timeline-list {
  list-style: none;
  margin: 0; padding: 0;
}
.timeline-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.7;
  color: var(--fg-2);
}
.timeline-list li:last-child { margin-bottom: 0; }
.timeline-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--exp-accent, rgba(255,255,255,0.5));
  opacity: 0.8;
}

/* ─── Skills Bento ────────────────────────────── */
.skills-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 2.5vw, 32px);
  align-items: stretch;
  width: 100%;
}
.skill-card {
  --skill-accent: rgba(255,255,255,0.8);
  position: relative;
  background: linear-gradient(165deg, #111 0%, #0d0d0d 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(26px, 3vw, 36px) clamp(28px, 3.2vw, 40px) clamp(30px, 3.2vw, 42px) clamp(30px, 3.2vw, 44px);
  min-height: 0;
  overflow: hidden;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.38s ease,
              border-color 0.38s ease;
}
.skill-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--skill-accent);
  border-radius: 22px 0 0 22px;
  opacity: 0.7;
}
.skill-card--accent-1 { --skill-accent: rgba(255,255,255,0.85); }
.skill-card--accent-2 { --skill-accent: #60a5fa; }
.skill-card--accent-3 { --skill-accent: #34d399; }
.skill-card--accent-4 { --skill-accent: #f87171; }
.skill-card--accent-5 { --skill-accent: #c084fc; }
.skill-card--accent-6 { --skill-accent: #fbbf24; }
.skill-card--accent-7 { --skill-accent: #38bdf8; }

.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 22px 50px rgba(0,0,0,0.5);
}
.skill-card-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
  min-height: 1.2em;
}
.skill-card-index {
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #333;
}
.skill-card-title {
  font-size: clamp(18px, 1.5vw, 26px);
  font-weight: 800;
  margin: 0 0 clamp(20px, 2vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--fg);
  padding-right: 8px;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.2vw, 14px);
}
.skill-tags span {
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: #666;
  line-height: 1.3;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.skill-card:hover .skill-tags span { border-color: rgba(255,255,255,0.12); }
.skill-tags span:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

/* ─── Certificates ─────────────────────────────── */
#page-certificates .section-title { text-align: center; }
#page-certificates .section-line {
  margin-left: auto; margin-right: auto;
}
.certs-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.certs-grid a.cert-card:nth-child(8n + 1) { --cert-accent: #60a5fa; }
.certs-grid a.cert-card:nth-child(8n + 2) { --cert-accent: #818cf8; }
.certs-grid a.cert-card:nth-child(8n + 3) { --cert-accent: #34d399; }
.certs-grid a.cert-card:nth-child(8n + 4) { --cert-accent: #c084fc; }
.certs-grid a.cert-card:nth-child(8n + 5) { --cert-accent: #f87171; }
.certs-grid a.cert-card:nth-child(8n + 6) { --cert-accent: #fbbf24; }
.certs-grid a.cert-card:nth-child(8n + 7) { --cert-accent: #38bdf8; }
.certs-grid a.cert-card:nth-child(8n + 8) { --cert-accent: #a78bfa; }

a.cert-card {
  --cert-accent: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(165deg, #111 0%, #0d0d0d 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  cursor: none;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s ease,
              border-color 0.35s ease,
              background 0.45s ease;
}
a.cert-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: var(--cert-accent);
  opacity: 0.3;
  transform: scaleY(0.65);
  transform-origin: center;
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
a.cert-card > * { position: relative; z-index: 1; }
a.cert-card:hover {
  transform: translateY(-6px) translateX(4px);
  border-color: var(--border-hover);
  box-shadow: 0 28px 56px rgba(0,0,0,0.5);
  background: linear-gradient(155deg, #161616 0%, #111 55%, #0d0d0d 100%);
}
a.cert-card:hover::before {
  opacity: 0.9;
  transform: scaleY(1);
}
.cert-icon-fa {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
a.cert-card:hover .cert-icon-fa { transform: scale(1.06); }
.cert-icon-fa i {
  font-size: 2rem;
  color: #444;
  opacity: 0.88;
  transition: color 0.4s ease, opacity 0.35s ease,
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
a.cert-card:hover .cert-icon-fa i {
  color: var(--cert-accent);
  opacity: 1;
  transform: scale(1.08);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4));
}
.cert-info {
  flex: 1; min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cert-card-title {
  font-size: 1.15rem; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.3;
  color: var(--fg-2);
  transition: color 0.3s ease;
}
a.cert-card:hover .cert-card-title { color: #fff; }
.cert-provider {
  font-size: 0.95rem; font-weight: 700;
  color: var(--fg-muted);
  transition: color 0.35s ease;
}
a.cert-card:hover .cert-provider { color: var(--fg-2); }
.cert-date {
  font-size: 0.88rem; font-weight: 600;
  color: var(--fg-subtle);
}
.cert-external {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--fg-subtle);
  transition: color 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
a.cert-card:hover .cert-external {
  color: var(--cert-accent);
  transform: translate(4px, -4px) scale(1.05);
}

/* ========================================
   CONTACT PAGE
   ======================================== */
#page-contact {
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}
.contact-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #444;
  margin-bottom: 24px;
}
.contact-title {
  font-size: clamp(40px, 4.5vw, 72px);
  font-weight: 900;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 48px;
  white-space: nowrap;
}
.contact-rows { max-width: 900px; }
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-row:last-child { border-bottom: 1px solid var(--border); }
.contact-row:hover { transform: translateX(-8px); }
.contact-row-label {
  font-size: 14px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  min-width: 120px;
}
.contact-row-value {
  font-size: 22px; font-weight: 600;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.contact-row:hover .contact-row-value { color: var(--fg); }
.contact-row-arrow {
  font-size: 18px;
  color: var(--fg);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s;
}
.contact-row:hover .contact-row-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   TABLET RESPONSIVENESS
   ======================================== */
@media (max-width: 1024px) {
  .about-photo { width: 40vw; }
  .about-content { width: 60vw; padding: 100px 40px 40px; }
  .hero-photo { width: min(380px, 32vw); }
  .work-card { width: 280px; min-width: 280px; }
  .work-cards-container { padding: 14px 40px 28px; }
  .work-header { padding: calc(var(--nav-height) + 20px) 40px 14px; }
  .work-bottom { padding: 24px 40px 32px; margin-top: 4px; }
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */
@media (max-width: 768px) {
  html { cursor: auto !important; }
  #cursor-dot, #cursor-ring { display: none !important; }
  body { height: 100vh; }
  #pages-container { height: 100vh; }
  .page { height: 100vh; overflow-y: auto; overflow-x: hidden; }

  #navbar { padding: 0 20px; }
  .nav-right { display: none; }
  .hamburger { display: flex; }

  #page-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: calc(var(--nav-height) + 20px);
    padding-bottom: 40px;
  }
  .hero-title-line1,
  .hero-title-line2 {
    font-size: clamp(36px, 9vw, 64px);
    color: #fff;
    -webkit-text-stroke: 0;
  }
  .hero-title-line1 { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.7); }
  .hero-photo {
    position: relative;
    width: min(280px, 60vw);
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 24px;
    flex-shrink: 0;
  }
  .hero-photo.anim-up {
    transform: translateY(40px);
  }
  .hero-photo.anim-up.visible {
    transform: translateY(0);
  }
  .hero-photo.anim-up.visible:hover {
    transform: scale(1.045);
  }
  .hero-title-container {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin-bottom: 28px;
    padding-bottom: 0;
    flex-shrink: 0;
  }
  .hero-bottom {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    flex-shrink: 0;
  }
  .hero-location { font-size: 14px; }
  .hero-buttons { position: static; transform: none; flex-direction: column; width: 100%; }
  .hero-btn-primary,
  .hero-btn-secondary { justify-content: center; width: 100%; padding: 14px 24px; font-size: 13px; }
  .hero-social { display: flex; justify-content: center; gap: 18px; }

  .work-header { padding: calc(var(--nav-height) + 32px) 20px 12px; flex-wrap: wrap; }
  .work-label { font-size: 13px; flex: 1 1 auto; min-width: 0; }
  .work-cards-container { padding: 12px 20px 24px; gap: 14px; -webkit-overflow-scrolling: touch; }
  .work-card {
    width: min(260px, calc(100vw - 56px));
    min-width: min(260px, calc(100vw - 56px));
    max-width: calc(100vw - 40px);
    padding: 14px 16px 16px;
  }
  .work-card-image { aspect-ratio: 2 / 1; max-height: 100px; margin-bottom: 10px; }
  .work-card-image svg { width: 40px; height: 40px; }
  .work-card-title { font-size: 18px; }
  .work-bottom { padding: 24px 20px 36px; margin-top: 4px; gap: 22px; }
  .work-bottom-title { font-size: clamp(22px, 6vw, 32px); white-space: normal; }
  .work-bottom-body { font-size: 14px; }
  .work-features { grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 100%; }
  .work-feature { padding: 20px 16px 22px; border-radius: 16px; }
  .work-feature-icon { width: 38px; height: 38px; margin-bottom: 12px; }
  .work-feature-icon svg { width: 18px; height: 18px; }
  .work-feature-title { font-size: 14.5px; margin-bottom: 6px; }
  .work-feature-desc { font-size: 12.5px; line-height: 1.5; }
  .work-bottom-btn { padding: 12px 28px; font-size: 13px; }

  .exp-wrapper, .skills-wrapper, .certs-wrapper {
    padding: calc(var(--nav-height) + 32px) 20px 60px;
  }
  .section-title { font-size: clamp(26px, 7vw, 40px); }
  .section-line { margin-bottom: 28px; }
  .timeline { padding-left: 32px; max-width: none; }
  .timeline::before { left: 11px; width: 2px; }
  .timeline-dot { left: -32px; top: 18px; width: 14px; height: 14px; border-width: 2px; }
  .timeline-card { padding: 20px 18px 22px 24px; border-radius: 18px; }
  .timeline-card::before { border-radius: 18px 0 0 18px; width: 4px; }
  .timeline-card-header { flex-direction: column; align-items: flex-start; }
  .timeline-date { align-self: flex-start; }

  .skills-header { margin-bottom: 28px; }
  .skills-header .section-title { font-size: clamp(18px, 5.2vw, 40px); }
  .skills-bento { gap: 18px; }
  .skill-card { padding: 22px 18px 24px 22px; border-radius: 18px; }
  .skill-card-title { font-size: clamp(17px, 4.2vw, 22px); margin-bottom: 16px; }
  .skill-tags span { font-size: clamp(12px, 3.1vw, 14px); padding: 8px 12px; }

  a.cert-card { flex-wrap: wrap; align-items: flex-start; padding: 1.15rem 1.1rem; gap: 0.85rem; }
  .cert-icon-fa { width: 40px; }
  .cert-icon-fa i { font-size: 1.4rem; }
  .cert-external { margin-left: auto; align-self: center; }

  #page-about { flex-direction: column; padding-top: var(--nav-height); }
  .about-photo {
    width: 100%; height: auto;
    aspect-ratio: 4 / 5; max-height: 44vh;
    flex-shrink: 0; background: #050505;
  }
  .about-photo::after { background: linear-gradient(to top, #0a0a0a 0%, transparent 20%); }
  .about-content { width: 100%; height: auto; padding: 32px 20px 60px; overflow: visible; }
  .about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .about-stat { padding: 0 12px; min-width: 0; }
  .about-stat:first-child { padding-left: 0; }
  .about-stat:last-child { padding-right: 0; }
  .about-stat-value { font-size: 22px; }
  .about-stat-label { font-size: 11px; line-height: 1.3; }

  #page-contact { padding: calc(var(--nav-height) + 32px) 20px 80px; justify-content: flex-start; }
  .contact-label { font-size: 13px; }
  .contact-title { font-size: clamp(32px, 8vw, 60px); margin-bottom: 40px; white-space: normal; }
  .contact-row { flex-wrap: wrap; gap: 8px; }
  .contact-row-value { font-size: 15px; }
}

@media (max-width: 480px) {
  .hero-title-line1, .hero-title-line2 { font-size: clamp(32px, 9vw, 50px); }
  .hero-photo { width: min(220px, 55vw); top: auto; }
  .about-chips { gap: 8px; }
  .about-chip { font-size: 12px; padding: 6px 14px; }
}

/* ========================================
   SKILLS BENTO — LARGE SCREEN GRID
   ======================================== */
@media (min-width: 900px) {
  .skills-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1400px) {
  .skills-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Language-specific visibility rules for dynamic content */
html[lang="uz"] .lang-uz { display: block; }
html[lang="ru"] .lang-ru { display: block; }
html[lang="en"] .lang-en { display: block; }

html[lang="uz"] span.lang-uz, html[lang="uz"] a.lang-uz { display: inline; }
html[lang="ru"] span.lang-ru, html[lang="ru"] a.lang-ru { display: inline; }
html[lang="en"] span.lang-en, html[lang="en"] a.lang-en { display: inline; }

html[lang="uz"] .lang-ru, html[lang="uz"] .lang-en { display: none !important; }
html[lang="ru"] .lang-uz, html[lang="ru"] .lang-en { display: none !important; }
html[lang="en"] .lang-uz, html[lang="en"] .lang-ru { display: none !important; }
