:root {
  /* Layout and surface tokens */
  --page-bg: #ececec;
  --projects-bg: #536a63;
  --nav-height: 54px;
  --side-nav-width: 160px;
  --section-shell-border: rgba(225, 205, 165, 0.38);
  --section-shell-shadow: 0 16px 40px rgba(7, 11, 20, 0.3);
  --text: #0f0f10;
  --muted: #242428;
  --nav-bg: rgba(8, 14, 28, 0.93);
  --section-divider: rgba(22, 24, 28, 0.18);
  --section-surface-border: rgba(32, 35, 43, 0.14);
  --section-surface-shadow: 0 10px 24px rgba(27, 31, 39, 0.08);
  --panel-bg: #f4f5f7;
  --accent-green: #1db954;
  --accent-violet: #9f72ff;
  --accent-violet-light: #dca6ff;

  /* Active theme tokens */
  --brand-fill: linear-gradient(108deg, #f6b06f 0%, #e68f4d 55%, #cf763f 100%);
  --brand-hover-shadow: 0 2px 9px rgba(203, 122, 64, 0.36);
  --brand-outline: rgba(239, 166, 99, 0.74);
  --brand-underline: rgba(239, 166, 99, 0.92);
  --splash-outer-ring-rgba: 207, 118, 63, 0.55;
  --splash-inner-ring-rgba: 246, 176, 111, 0.86;
  --splash-fill-rgba: 230, 143, 77, 0.14;
  --nav-link-color: #e8effa;
  --theme-accent-solid: #d9874a;
  --theme-accent-border: rgba(217, 135, 74, 0.56);
  --theme-accent-shadow: rgba(217, 135, 74, 0.26);
  --hero-picture-surface-bg: linear-gradient(108deg, rgba(246, 176, 111, 0.5) 0%, rgba(230, 143, 77, 0.5) 55%, rgba(207, 118, 63, 0.5) 100%);

  /* Motion control panel: update these values to retime the current UI */

  /* Hero picture entrance */
  --hero-picture-animation-duration: 1.33s;
  --hero-picture-start-delay: 0.5s;
  --hero-picture-fade-ease: linear;

  /* Hero text entrance */
  --hero-text-duration: 5.32s;
  --hero-text-start-gap-after-sidebar: 0s;
  --hero-text-delay: 1s;
  --hero-animation-ease: cubic-bezier(0.23, 1, 0.32, 1);

  /* Splash ripple around the hero name */
  --splash-auto-start-delay: 1900ms;
  --splash-duration: 4.26s;
  --splash-easing: ease-in-out;
  --splash-repeat-enabled: true;
  --splash-repeat-delay: 0.4s;
  --splash-diameter-multiplier: 1.3;
  --splash-start-scale: 0.1;
  --splash-end-scale: 1.3;
  --splash-mid-shadow: 12px;
  --splash-end-shadow: 17px;

  /* Side-nav motion and activation */
  --nav-scroll-duration: 780ms;
  --nav-section-top-gap: 180px;
  --nav-center-trigger-ratio: 0.5;
  --nav-center-trigger-offset: 14px;
  --nav-activation-snap: 25px;
  --nav-line-extend-top: 0px;
  --nav-line-extend-bottom: 12px;
  --side-nav-entrance-animation-name: side-nav-slide-right;
  --side-nav-entrance-duration: 1.46s;
  --side-nav-entrance-delay: calc(var(--hero-picture-start-delay) + (var(--hero-picture-animation-duration) * 0.5));
  --side-nav-entrance-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --side-nav-entrance-origin: left center;

  /* Small ambient loops */
  --project-sync-duration: 1.2s;
  --project-sync-ease: linear;

  /* Hero picture ring motion */
  --hero-ring-width: 10px;
  --hero-ring-bg: linear-gradient(108deg, #f6b06f 0%, #e68f4d 55%, #cf763f 100%);
  --hero-ring-opacity: 0.95;
  --hero-ring-filter: drop-shadow(0 0 10px rgba(222, 140, 72, 0.25));
  --hero-ring-animation-name: none;
  --hero-ring-duration: 0s;
  --hero-ring-ease: linear;
  --hero-ring-iteration: 1;

  /* Hero text layout tokens for the active style */
  --hero-text-animation-name: side-nav-slide-right;
  --hero-text-animation-ease: var(--hero-animation-ease);
  --hero-text-prep-x: 0px;
  --hero-text-prep-y: 0px;
  --hero-text-offset-x: 0px;
  --hero-text-offset-y: 0px;
  --hero-text-justify-self: start;
  --hero-text-align-self: center;
  --hero-text-text-align: left;
  --hero-text-max-width: 700px;
  --hero-text-padding: 0;
  --hero-text-bg: transparent;
  --hero-text-border: transparent;
  --hero-text-radius: 0px;
  --hero-text-shadow: none;
  --hero-text-h1-size: clamp(2.2rem, 4.2vw, 4.4rem);
  --hero-text-h1-line-height: 1.04;
  --hero-text-h1-spacing: -0.03em;
  --hero-text-h1-weight: 800;
  --hero-text-h1-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  --hero-text-intro-color: #f2f6ff;
  --hero-text-name-fill: var(--brand-fill);
  --hero-text-name-filter: drop-shadow(0 5px 14px rgba(20, 26, 48, 0.45));
  --hero-text-subtext-margin: 24px 0 18px;
  --hero-text-subtext-color: rgba(226, 233, 245, 0.92);
  --hero-text-subtext-size: clamp(1rem, 1.2vw, 1.3rem);
  --hero-text-subtext-weight: 500;
  --hero-text-subtext-spacing: 0;

  /* Side-nav visual tokens for the active style */
  --side-nav-x-shift: 0px;
  --side-nav-panel-bg: transparent;
  --side-nav-panel-border: transparent;
  --side-nav-panel-shadow: none;
  --side-nav-panel-radius: 0px;
  --side-nav-panel-padding-y: 0px;
  --side-nav-list-gap: 22px;
  --side-nav-list-padding-left: 14px;
  --side-nav-line-width: 1px;
  --side-nav-line-color: rgba(200, 215, 240, 0.28);
  --side-nav-link-color: rgba(220, 232, 250, 0.58);
  --side-nav-link-home-color: rgba(220, 232, 250, 0.72);
  --side-nav-link-active-color: #d9874a;
  --side-nav-link-size: 0.78rem;
  --side-nav-link-spacing: 0.07em;
  --side-nav-link-weight: 600;
  --side-nav-link-home-size: 0.88rem;
  --side-nav-link-home-weight: 800;
  --side-nav-link-transform: uppercase;
  --side-nav-link-home-transform: none;
  --side-nav-pip-size: 8px;
  --side-nav-pip-color: #d9874a;
  --side-nav-pip-shadow: 0 0 0 2px rgba(0, 0, 0, 0.28);
}

/* Hero picture ring: meteor streak */
body.hero-picture-ring {
  --hero-ring-width: 8px;
  --hero-ring-bg: linear-gradient(132deg, rgba(255, 230, 194, 0.95) 0%, rgba(246, 166, 92, 0.95) 30%, rgba(175, 89, 43, 0.92) 72%);
  --hero-ring-opacity: 0.98;
  --hero-ring-filter: drop-shadow(0 0 14px rgba(246, 164, 90, 0.38));
  --hero-ring-animation-name: hero-ring-spin;
  --hero-ring-duration: 21.3s;
  --hero-ring-ease: cubic-bezier(0.34, 1, 0.64, 1);
  --hero-ring-iteration: infinite;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: auto;
  background: #000;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body {
  padding-left: 0;
}

.hero-section-shell {
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: auto;
  background: transparent;
}

.site-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #000;
}

.sky-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--side-nav-width);
  z-index: 200;
  display: flex;
  align-items: center;
  padding-left: calc(20px + var(--side-nav-x-shift));
  pointer-events: none;
}

.side-nav,
.side-nav-links {
  transform-origin: var(--side-nav-entrance-origin);
}

.side-nav-links {
  list-style: none;
  margin: 0;
  padding: var(--side-nav-panel-padding-y) 0 var(--side-nav-panel-padding-y) var(--side-nav-list-padding-left);
  display: flex;
  flex-direction: column;
  gap: var(--side-nav-list-gap);
  position: relative;
  pointer-events: auto;
  --nav-line-top: 0px;
  --nav-line-bottom: 0px;
  background: var(--side-nav-panel-bg);
  border: 1px solid var(--side-nav-panel-border);
  border-radius: var(--side-nav-panel-radius);
  box-shadow: var(--side-nav-panel-shadow);
}

body.hero-ready .side-nav {
  animation-name: var(--side-nav-entrance-animation-name);
  animation-duration: var(--side-nav-entrance-duration);
  animation-delay: var(--side-nav-entrance-delay);
  animation-timing-function: var(--side-nav-entrance-ease);
  animation-fill-mode: both;
}

.side-nav-links::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--nav-line-top);
  bottom: var(--nav-line-bottom);
  width: var(--side-nav-line-width);
  background: var(--side-nav-line-color);
  border-radius: 1px;
}

.side-nav-link {
  display: block;
  font-size: var(--side-nav-link-size);
  font-weight: var(--side-nav-link-weight);
  color: var(--side-nav-link-color);
  text-decoration: none;
  letter-spacing: var(--side-nav-link-spacing);
  text-transform: var(--side-nav-link-transform);
  white-space: nowrap;
  transition: color 0.2s ease;
  padding: 6px 0;
}

.side-nav-link:hover {
  color: #e8effa;
}

.side-nav-link--home {
  font-weight: var(--side-nav-link-home-weight);
  text-transform: var(--side-nav-link-home-transform);
  font-size: var(--side-nav-link-home-size);
  letter-spacing: 0.02em;
  color: var(--side-nav-link-home-color);
}

.side-nav-link:focus-visible {
  outline: 2px solid var(--brand-outline);
  outline-offset: 4px;
  border-radius: 3px;
}

.side-nav-link--active {
  color: var(--side-nav-link-active-color);
}

.side-nav-pip {
  position: absolute;
  left: calc(var(--side-nav-line-width) * 0.5);
  top: 0;
  width: var(--side-nav-pip-size);
  height: var(--side-nav-pip-size);
  border-radius: 50%;
  background: var(--side-nav-pip-color);
  box-shadow: var(--side-nav-pip-shadow);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Active sidebar style */
body.sidebar-style {
  --side-nav-entrance-animation-name: side-nav-slide-right;
}

.hero-section {
  width: min(1240px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  column-gap: clamp(42px, 6.5vw, 96px);
  min-height: 100vh;
  padding: 0;
  position: relative;
}

.hero-picture {
  grid-column: 2;
  align-self: center;
  justify-self: center;
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
}

.hero-picture-frame {
  width: min(30vw, 360px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-picture-surface-bg);
  box-shadow:
    0 18px 36px rgba(5, 8, 16, 0.4),
    0 0 0 1px rgba(211, 223, 255, 0.26);
}

.hero-picture-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: var(--hero-ring-width);
  background: var(--hero-ring-bg);
  opacity: var(--hero-ring-opacity);
  filter: var(--hero-ring-filter);
  animation: var(--hero-ring-animation-name) var(--hero-ring-duration) var(--hero-ring-ease) var(--hero-ring-iteration);
  pointer-events: none;
  z-index: 2;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes hero-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes side-nav-slide-right {
  from {
    opacity: 0;
    transform: translateX(-34px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-picture-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center 64%;
}

.hero-text {
  grid-column: 1;
  grid-row: 1;
  align-self: var(--hero-text-align-self);
  justify-self: var(--hero-text-justify-self);
  width: 100%;
  max-width: var(--hero-text-max-width);
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 0;
  opacity: 1;
  text-align: var(--hero-text-text-align);
  padding: var(--hero-text-padding);
  background: var(--hero-text-bg);
  border: 1px solid var(--hero-text-border);
  border-radius: var(--hero-text-radius);
  box-shadow: var(--hero-text-shadow);
  left: var(--hero-text-offset-x);
  top: var(--hero-text-offset-y);
}

.hero-splash-entry {
  background: var(--brand-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  text-decoration: none;
  --splash-ring-size: 2.6em;
  --splash-duration: 1.33s;
  --splash-easing: ease-out;
  --splash-start-scale: 0.45;
  --splash-end-scale: 2.9;
  --splash-mid-shadow: 14px;
  --splash-end-shadow: 28px;
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.hero-splash-entry::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--splash-ring-size);
  height: var(--splash-ring-size);
  border: 3px solid rgba(0, 0, 0, 0);
  background-color: rgba(var(--splash-fill-rgba));
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(var(--splash-start-scale));
  opacity: 0;
  z-index: -1;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  pointer-events: none;
}

.hero-splash-entry.is-rippling::before {
  animation: splash-ripple var(--splash-duration) var(--splash-easing);
}

.hero-text-heading {
  margin: 0;
  font-size: var(--hero-text-h1-size);
  line-height: var(--hero-text-h1-line-height);
  letter-spacing: var(--hero-text-h1-spacing);
  font-weight: var(--hero-text-h1-weight);
  text-shadow: var(--hero-text-h1-shadow);
}

.hero-text-intro {
  display: block;
  color: var(--hero-text-intro-color);
}

.hero-text-name {
  display: block;
  margin-top: 6px;
  padding-bottom: 0.08em;
  background: var(--hero-text-name-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: var(--hero-text-name-filter);
}

.hero-text-subtext {
  margin: var(--hero-text-subtext-margin);
  color: var(--hero-text-subtext-color);
  font-size: var(--hero-text-subtext-size);
  line-height: 1.26;
  font-weight: var(--hero-text-subtext-weight);
  letter-spacing: var(--hero-text-subtext-spacing);
  max-width: none;
  white-space: nowrap;
}

.hero-picture,
.hero-text {
  opacity: 0;
}

.hero-text {
  transform: translate(var(--hero-text-prep-x), var(--hero-text-prep-y));
}

body.hero-ready .hero-picture
{
  animation-name: hero-picture-fade-in;
  animation-duration: var(--hero-picture-animation-duration);
  animation-timing-function: var(--hero-picture-fade-ease);
  animation-fill-mode: forwards;
}

body.hero-ready .hero-text
{
  animation-name: var(--hero-text-animation-name);
  animation-duration: var(--hero-text-duration);
  animation-timing-function: var(--hero-text-animation-ease);
  animation-fill-mode: forwards;
}

body.hero-ready .hero-picture {
  animation-delay: var(--hero-picture-start-delay);
}

body.hero-ready .hero-text {
  animation-delay: var(--hero-text-delay);
}

@keyframes hero-picture-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Active hero text style */
body.hero-text-style {
  --hero-text-animation-name: side-nav-slide-right;
  --hero-text-duration: 1.6s;
  --hero-text-delay: calc(var(--side-nav-entrance-delay) + (var(--side-nav-entrance-duration) * 0.5) + var(--hero-text-start-gap-after-sidebar));
  --hero-text-max-width: 740px;
  --hero-text-h1-size: clamp(2.3rem, 4.4vw, 4.85rem);
  --hero-text-h1-spacing: -0.01em;
  --hero-text-name-fill: linear-gradient(120deg, #fbe2c7 0%, #f6b06f 38%, #e3884a 70%, #cc6f3a 100%);
  --hero-text-name-filter: drop-shadow(0 8px 16px rgba(17, 20, 32, 0.42));
  --hero-text-subtext-color: rgba(224, 230, 242, 0.9);
  --side-nav-x-shift: 6px;
  --side-nav-list-gap: 24px;
  --side-nav-link-spacing: 0.1em;
  --side-nav-line-width: 3px;
  --side-nav-line-color: linear-gradient(180deg, rgba(96, 111, 136, 0.2) 0%, rgba(201, 216, 241, 0.26) 100%);
  --side-nav-pip-size: 10px;
}

@keyframes splash-ripple {
  0% {
    opacity: 1;
    background-color: rgba(var(--splash-fill-rgba));
    box-shadow: 0 0 0 0 rgba(var(--splash-outer-ring-rgba));
    transform: translate(-50%, -50%) scale(var(--splash-start-scale));
  }

  68% {
    opacity: 0.7;
    background-color: rgba(var(--splash-fill-rgba));
    border-color: rgba(var(--splash-inner-ring-rgba));
    box-shadow: 0 0 0 var(--splash-mid-shadow) rgba(var(--splash-outer-ring-rgba));
  }

  100% {
    opacity: 0;
    background-color: rgba(var(--splash-fill-rgba));
    border-color: rgba(var(--splash-inner-ring-rgba));
    box-shadow: 0 0 0 var(--splash-end-shadow) rgba(var(--splash-outer-ring-rgba));
    transform: translate(-50%, -50%) scale(var(--splash-end-scale));
  }
}

.projects {
  background: var(--projects-bg);
  color: #f4f6f4;
  border-top: 2px solid var(--section-divider);
  padding: 52px 0 64px;
  position: relative;
  z-index: 1;
}

.skills {
  padding: 30px 0 36px;
  background: transparent;
  position: relative;
  z-index: 0;
  scroll-margin-top: 20px;
}

.skills::before {
  content: none;
}

.skills-inner {
  --section-panel-bg: rgba(10, 18, 34, 0.74);
  width: min(1240px, 100% - 120px);
  margin: 0 auto;
  background: var(--section-panel-bg);
  border: 1px solid var(--section-shell-border);
  border-radius: 18px;
  box-shadow: var(--section-shell-shadow);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: clamp(16px, 2vw, 24px);
  position: relative;
  left: calc(var(--side-nav-width) * -0.5);
  z-index: 1;
}

.skills-inner h2 {
  margin: 0 0 16px;
  color: #edf4ff;
  text-align: left;
  font-size: clamp(1.9rem, 2.9vw, 2.8rem);
  letter-spacing: -0.02em;
}

.skill-group {
  background: rgba(229, 238, 255, 0.08);
  border: 1px solid rgba(160, 183, 220, 0.25);
  border-radius: 14px;
  padding: 20px 22px;
  margin-top: 16px;
}

.skill-group:first-of-type {
  margin-top: 0;
}

.skill-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  font-weight: 800;
  color: #e7efff;
  letter-spacing: -0.01em;
}

.skill-group-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.skill-group-rating--high {
  color: #1f7e3d;
}

.skill-group-rating--medium {
  color: #b56a1f;
}

.skill-tile-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(170, 189, 219, 0.5) transparent;
}

.skill-tile-grid::-webkit-scrollbar {
  height: 8px;
}

.skill-tile-grid::-webkit-scrollbar-track {
  background: transparent;
}

.skill-tile-grid::-webkit-scrollbar-thumb {
  background: rgba(170, 189, 219, 0.45);
  border-radius: 999px;
}

.skill-tile {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 210px;
  padding: 13px 15px;
  border: 1px solid rgba(160, 183, 220, 0.25);
  border-radius: 10px;
  background: rgba(230, 240, 255, 0.11);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.skill-tile:hover {
  border-color: var(--theme-accent-border);
  box-shadow: 0 4px 14px var(--theme-accent-shadow);
}

.skill-tile-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.skill-tile-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.skill-tile-rating {
  --skill-rating: 0.5;
  --skill-rating-color: #f08b2f;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(
    var(--skill-rating-color) calc(var(--skill-rating) * 1turn),
    rgba(68, 74, 88, 0.18) 0
  );
  box-shadow: inset 0 0 0 1px rgba(30, 35, 48, 0.22);
  position: relative;
}

.skill-tile-rating::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(246, 247, 250, 0.98);
}

.skill-tile-rating--high {
  --skill-rating-color: #22a447;
}

.skill-tile-rating--medium {
  --skill-rating-color: #f08b2f;
}

.skill-tile-rating--low {
  --skill-rating-color: #d64040;
}

.skill-tile-name {
  font-size: 0.97rem;
  font-weight: 700;
  color: #edf4ff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-tile-dates {
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(212, 226, 248, 0.84);
  white-space: nowrap;
}

.content-section {
  min-height: 100vh;
  padding: 72px 0 84px;
  background: transparent;
  position: relative;
  z-index: 0;
  scroll-margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-section::before,
.section-contact::before {
  content: none;
}

.section-inner {
  --section-panel-bg: rgba(10, 18, 34, 0.74);
  width: min(1240px, 100% - 120px);
  margin: 0 auto;
  background: var(--section-panel-bg);
  border: 1px solid var(--section-shell-border);
  border-radius: 18px;
  box-shadow: var(--section-shell-shadow);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: clamp(16px, 2vw, 24px);
  position: relative;
  z-index: 1;
}

.content-section h2 {
  margin: 0;
  color: #ffe7bf;
  text-align: left;
  font-size: clamp(1.9rem, 2.9vw, 2.8rem);
  letter-spacing: -0.02em;
}

.content-section p {
  margin: 12px 0 0;
  max-width: 760px;
  font-size: clamp(1rem, 1.1vw, 1.14rem);
  line-height: 1.42;
  color: rgba(221, 233, 252, 0.9);
}

.content-lead {
  font-size: clamp(1.06rem, 1.15vw, 1.2rem);
  max-width: 900px;
}

.content-columns {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.content-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 26, 30, 0.14);
  border-radius: 10px;
  padding: 14px;
}

.content-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.content-card p {
  margin-top: 8px;
}

.content-card-wide {
  margin-top: 16px;
  max-width: 920px;
}

.content-list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.content-list li {
  margin-bottom: 6px;
}

.placeholder-media-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.placeholder-media-grid img,
.placeholder-media-single img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(24, 26, 30, 0.15);
}

.placeholder-media-single {
  margin-top: 16px;
  max-width: 920px;
}

.section-experience {
  background: transparent;
}

.section-experience .section-inner {
  --section-panel-bg: #0b1426;
}

.section-projects {
  background: transparent;
}

.section-projects .section-inner {
  --section-panel-bg: #0c1628;
}

.projects-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.projects-title-row h2 {
  margin: 0;
}

.project-carousel-3d {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.project-carousel-control {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(225, 205, 165, 0.18);
  border-radius: 10px;
  background: rgba(255, 253, 245, 0.05);
  color: #ffe7bf;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  z-index: 30;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.project-carousel-control:hover {
  border-color: rgba(225, 205, 165, 0.48);
  background: rgba(255, 253, 245, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-carousel-viewport {
  position: relative;
  height: 455px;
  overflow: hidden;
  perspective: 1700px;
  user-select: none;
  touch-action: pan-y;
}

.project-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-card {
  position: absolute;
  top: 12px;
  left: 50%;
  width: min(700px, 76vw);
  max-width: calc(100% - 20px);
  background: #101a2d;
  border: 1px solid #8a6f4a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 430px;
  transform-origin: center center;
  transform: translate3d(calc(-50% + (var(--carousel-offset, 0) * 44%)), calc(var(--carousel-offset-abs, 0) * 18px), 0) rotateY(calc(var(--carousel-offset, 0) * -28deg)) scale(calc(1 - var(--carousel-offset-abs, 0) * 0.14));
  filter: grayscale(1) brightness(0.72) blur(1.6px);
  z-index: var(--carousel-z, 1);
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.24s ease, filter 0.24s ease;
}

.project-card:hover {
  border-color: #b89667;
  background: #16233a;
}

.project-card.is-active {
  border-color: #8a6f4a;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(217, 135, 74, 0.45);
  background: #17253c;
  filter: none;
}

.project-card--fullscreen-enabled {
  cursor: zoom-in;
}

.project-card--fullscreen-enabled:focus-visible {
  outline: 2px solid #ffe7bf;
  outline-offset: 2px;
}

.project-card-img {
  width: 100%;
  height: 224px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #2f3d56;
}

.project-card-img[data-fullscreen-enabled="true"] {
  cursor: zoom-in;
}

.project-image-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(7, 11, 20, 0.86);
  opacity: 0;
}

.project-image-modal.is-open {
  display: grid;
  animation: project-modal-fade-in 240ms ease forwards;
}

.project-image-modal.is-closing {
  display: grid;
  animation: project-modal-fade-out 220ms ease forwards;
}

.project-image-modal-stage {
  width: min(1040px, 92vw);
  max-height: 90vh;
  display: grid;
  place-items: center;
}

.project-image-modal-stage .project-card {
  width: 100%;
  max-width: min(940px, 86vw);
  max-height: 88vh;
  position: relative;
  top: auto;
  left: auto;
  margin: 0;
  overflow: auto;
  opacity: 1;
  filter: none;
  transform: none;
  border-color: rgba(255, 231, 191, 0.58);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.4);
}

.project-image-modal-stage .project-card-img {
  height: clamp(240px, 48vh, 560px);
}

.project-image-modal.is-open .project-image-modal-stage .project-card {
  animation: project-modal-zoom-in 260ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.project-image-modal.is-closing .project-image-modal-stage .project-card {
  animation: project-modal-zoom-out 220ms cubic-bezier(0.55, 0, 0.75, 0) forwards;
}

.project-image-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(10, 16, 29, 0.82);
  color: #ffffff;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.project-image-modal-nav--prev {
  left: clamp(10px, 2vw, 18px);
}

.project-image-modal-nav--next {
  right: clamp(10px, 2vw, 18px);
}

.project-image-modal-nav:hover {
  background: rgba(10, 16, 29, 0.98);
}

.project-image-modal-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.project-image-modal-close {
  position: absolute;
  top: clamp(10px, 2vw, 18px);
  right: clamp(10px, 2vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(10, 16, 29, 0.82);
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 7px 12px;
  cursor: pointer;
}

.project-image-modal-close:hover {
  background: rgba(10, 16, 29, 0.98);
}

.project-image-modal-counter {
  position: absolute;
  bottom: clamp(12px, 2vw, 20px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 16, 29, 0.7);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@keyframes project-modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes project-modal-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes project-modal-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes project-modal-zoom-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.88);
  }
}

.project-card-img--gemini-main {
  height: 224px;
  object-position: center 22%;
}

.project-carousel-track .project-card-img--gemini-main {
  height: 224px;
}

.project-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  background: #101a2d;
}

.project-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.project-card-view-btn {
  flex: 0 0 auto;
  border: 1px solid #5f6673;
  border-radius: 999px;
  background: #3b4250;
  color: #aeb6c4;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  opacity: 1;
  cursor: not-allowed;
}

.project-carousel-track .project-card-title-row h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  flex: 1;
  min-height: 2.5em;
}

.project-carousel-track .project-card-body p {
  display: block;
  overflow: visible;
}

.project-card-body h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffe7bf;
  line-height: 1.25;
}

.project-card-body p {
  margin: 0;
  font-size: 0.82rem;
  color: #d8e5f9;
  line-height: 1.45;
}

.project-card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #eef4ff;
  text-decoration: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.project-card-link:hover {
  background: var(--theme-accent-solid);
  border-color: var(--theme-accent-solid);
  color: #fff;
}

.section-projects.projects-layout-poster-shelf .project-card-grid {
  position: relative;
  grid-template-columns: none;
}

.section-projects.projects-layout-poster-shelf .project-card,
.section-projects.projects-layout-poster-shelf .project-card-body {
  min-width: 0;
}

.section-projects.projects-layout-poster-shelf .project-card-img {
  height: 300px;
}

.section-projects.projects-layout-poster-shelf .project-card-body {
  padding: 14px 14px 16px;
}

.section-projects.projects-layout-poster-shelf .project-card-body p {
  font-size: 0.84rem;
}

.project-card-img--contain {
  object-fit: contain;
  background: white;
  padding: 1rem;
}

@media (max-width: 1100px) {
  .project-carousel-3d {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-carousel-control {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .project-carousel-viewport {
    height: 430px;
  }

  .project-card {
    width: min(92vw, 660px);
    height: 420px;
    transform: translate3d(calc(-50% + (var(--carousel-offset, 0) * 58%)), calc(var(--carousel-offset-abs, 0) * 18px), 0) rotateY(calc(var(--carousel-offset, 0) * -22deg)) scale(calc(1 - var(--carousel-offset-abs, 0) * 0.16));
  }

  .project-image-modal-stage {
    width: 94vw;
  }

  .section-projects.projects-layout-poster-shelf .project-card-img {
    height: 220px;
  }

  .section-projects.projects-layout-poster-shelf .project-card-body {
    padding: 16px 18px 18px;
  }
}

.section-about .section-inner {
  --section-panel-bg: #0a1222;
}

.section-contact .section-inner {
  --section-panel-bg: #0a1222;
}

.about-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 231, 191, 0.7);
  font-family: 'Monaco', 'Courier New', monospace;
}

.about-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffe7bf;
  letter-spacing: -0.02em;
  width: 100%;
  padding-bottom: 12px;
}

.about-me {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-areas: "content contacts";
  column-gap: 32px;
  row-gap: 20px;
  margin: 0;
}

.about-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
}

.about-tagline {
  font-size: 0.975rem;
  font-weight: 700;
  color: #d9874a;
  margin-top: 10px;
  padding-bottom: 18px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 16px;
}

.about-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(221, 233, 252, 0.92);
}

.about-text strong {
  color: #ffe7bf;
  font-weight: 700;
}

.about-contacts {
  grid-area: contacts;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
  width: 100%;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(225, 205, 165, 0.18);
  border-radius: 10px;
  background: rgba(255, 253, 245, 0.05);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-card:hover {
  border-color: rgba(225, 205, 165, 0.48);
  background: rgba(255, 253, 245, 0.12);
}

.contact-card--disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.contact-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffe7bf;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #edf4ff;
}

.contact-handle {
  font-size: 0.75rem;
  color: rgba(221, 233, 252, 0.7);
  margin-top: 2px;
}

.contact-arrow {
  font-size: 1rem;
  color: rgba(255, 231, 191, 0.6);
  flex-shrink: 0;
}

.contact-card--disabled .contact-arrow {
  display: none;
}

.section-experience h2 {
  text-align: left;
}

.tech-stack {
  scroll-margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 120;
}

.tech-stack-title {
  margin: 0;
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
  font-weight: 800;
  color: #ffe7bf;
  letter-spacing: -0.01em;
}

.tech-stack-icon-container {
  background: rgba(255, 253, 245, 0.05);
  border: 1px solid rgba(225, 205, 165, 0.38);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.15);
  overflow: visible;
  position: relative;
  z-index: 121;
}

.tech-stack-container {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: rgba(225, 205, 165, 0.5) transparent;
  position: relative;
  z-index: 122;
}

.tech-stack-container::-webkit-scrollbar {
  height: 8px;
}

.tech-stack-container::-webkit-scrollbar-track {
  background: transparent;
}

.tech-stack-container::-webkit-scrollbar-thumb {
  background: rgba(225, 205, 165, 0.45);
  border-radius: 999px;
}

.tech-stack-items {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 18px);
  width: 100%;
  justify-content: space-between;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.tech-stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.tech-stack-item:hover,
.tech-stack-item:focus-within {
  z-index: 130;
}

.tech-stack-logo {
  width: 48px;
  height: 48px;
  padding: 10px;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  display: block;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

i.tech-stack-logo {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}

.tech-stack-item:hover .tech-stack-logo,
.tech-stack-item:focus-within .tech-stack-logo {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.tech-stack-label {
  display: none;
}

.tech-stack-global-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 231, 191, 0.45);
  background: rgba(9, 16, 30, 0.96);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 231, 191, 0.96);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 2147483647;
  transition: opacity 0.16s ease;
}

.tech-stack-global-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.certificates {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 120;
  padding-bottom: 16px;
}

.certificates-title {
  margin: 0;
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
  font-weight: 800;
  color: #ffe7bf;
  letter-spacing: -0.01em;
}

.certificate-container {
  background: rgba(255, 253, 245, 0.05);
  border: 1px solid rgba(225, 205, 165, 0.38);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.15);
  min-height: 60px;
}

/* ── Certificate items — shared base ── */
.cert-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.cert-name {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffe7bf;
  letter-spacing: -0.01em;
}

.cert-issuer {
  display: block;
  font-size: 0.75rem;
  color: rgba(220, 210, 190, 0.68);
  margin-top: 2px;
}

.cert-date {
  display: block;
  font-size: 0.7rem;
  color: rgba(220, 210, 190, 0.45);
  margin-top: 2px;
}

.cert-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(217, 135, 74, 0.18);
  border: 1px solid rgba(217, 135, 74, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--theme-accent-solid);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ── Inline table layout: Icon · Name · Issuer · Date ── */
.cert-display-inline-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cert-display-inline-table .cert-item {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  align-items: center;
  gap: 0 12px;
  padding: 7px 2px;
  border-bottom: 1px solid rgba(225, 205, 165, 0.1);
}

.cert-display-inline-table .cert-item:last-child {
  border-bottom: none;
}

.cert-display-inline-table .cert-body {
  display: contents;
}

.cert-display-inline-table .cert-icon {
  width: 28px;
  height: 28px;
  font-size: 0.52rem;
  border-radius: 5px;
}

.cert-display-inline-table .cert-name {
  font-size: 0.84rem;
}

.cert-display-inline-table .cert-issuer {
  margin-top: 0;
  font-size: 0.72rem;
  text-align: right;
  white-space: nowrap;
}

.cert-display-inline-table .cert-date {
  margin-top: 0;
  font-size: 0.68rem;
  white-space: nowrap;
}

.experience-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.experience-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(225, 205, 165, 0.18);
  border-radius: 10px;
  background: rgba(255, 253, 245, 0.05);
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.experience-card:hover {
  border-color: rgba(225, 205, 165, 0.48);
  background: rgba(255, 253, 245, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.experience-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.experience-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(225, 205, 165, 0.28);
  background: rgba(217, 135, 74, 0.12);
  color: #ffe7bf;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.experience-info {
  flex: 1;
  min-width: 0;
}

.experience-info h3 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffe7bf;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.experience-location {
  font-size: 0.82rem;
  color: rgba(211, 225, 247, 0.78);
  font-weight: 600;
}

.experience-duration {
  display: block;
  font-size: 0.72rem;
  color: rgba(220, 210, 190, 0.68);
  margin-top: 2px;
}

.experience-duties {
  margin: 0;
  padding: 12px 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.experience-duties li {
  position: relative;
  padding-left: 16px;
  color: rgba(218, 231, 250, 0.88);
  font-size: 0.92rem;
  line-height: 1.38;
  margin: 0;
}

.experience-duties li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-accent-solid);
}

.section-experience h2 {
  text-align: left;
  color: #ffe7bf;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.section-education {
  background: transparent;
}

.section-education .section-inner {
  --section-panel-bg: rgba(10, 18, 34, 0.76);
}

.section-education h2 {
  text-align: left;
}

.section-blog .section-inner { --section-panel-bg: #ece3e8; }

.section-blog .section-inner {
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-placeholder {
  width: min(560px, 100%);
  padding: 28px 20px;
  border-radius: 12px;
  border: 1px solid rgba(24, 26, 30, 0.16);
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
}

.section-placeholder p {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2c313b;
}

.section-contact {
  background: transparent;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-margin-top: 20px;
  position: relative;
  z-index: 1;
}

.section-contact::before {
  content: none;
}

.section-contact .section-inner {
  --section-panel-bg: #0a121e;
  display: block;
  width: min(860px, 100% - 120px);
  min-height: 0;
  border: 1px solid rgba(225, 205, 165, 0.38);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-align: left;
}

.section-contact h2 {
  color: #ffe7bf;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.02;
}

.contact-intro p {
  margin: 16px 0 0;
  color: rgba(223, 232, 248, 0.92);
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  line-height: 1.35;
  max-width: 700px;
}

.contact-list {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-item {
  border: 1px solid rgba(225, 205, 165, 0.18);
  border-radius: 10px;
  background: rgba(255, 253, 245, 0.05);
  color: #eef4ff;
  text-decoration: none;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.contact-item:hover {
  border-color: rgba(225, 205, 165, 0.48);
  background: rgba(255, 253, 245, 0.12);
}

.contact-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #edf4ff;
}

.contact-item-meta {
  font-size: 0.75rem;
  color: rgba(221, 233, 252, 0.7);
  line-height: 1.3;
}

.contact-item--disabled {
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .hero-section {
    width: min(calc(100vw - var(--side-nav-width) - 40px), 1100px);
    grid-template-columns: 1fr;
    row-gap: 18px;
    align-items: center;
    min-height: 100vh;
    padding: 0;
  }

  .hero-text {
    grid-column: auto;
    grid-row: auto;
    order: -1;
    max-width: 680px;
  --nav-center-trigger-offset: 0px;
    align-items: center;
    justify-self: center;
  }

  .hero-picture {
    grid-column: auto;
    align-self: center;
  }

  .hero-text-subtext {
    white-space: normal;
  }

  .hero-picture-frame {
    width: min(58vw, 360px);
    margin: 0 auto;
    border-radius: 50%;
  }

  .projects {
    padding: 48px 0 54px;
  }

  .section-contact {
    min-height: 0;
    padding: 24px 0 12px;
    align-items: flex-start;
  }

  .section-contact .section-inner {
    width: calc(100% - 24px);
  }

  .skills {
    padding: 30px 0 34px;
  }

  .skills-inner {
    width: min(100% - 40px, 1100px);
  }

  .section-inner {
    width: min(100% - 40px, 1100px);
  }

  .contact-intro p {
    margin-left: auto;
    margin-right: auto;
  }

  .about-me {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-contacts {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-card {
    flex: 0 0 calc(50% - 5px);
  }
}


@media (max-width: 680px) {
  body {
    padding-left: 0;
  }

  .side-nav {
    display: none;
  }

  .hero-section {
    width: calc(100% - 24px);
    min-height: 100vh;
    padding: 0;
  }

  .hero-text-heading {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .hero-text-subtext {
    margin: 14px 0 20px;
    font-size: clamp(1.03rem, 4.5vw, 1.35rem);
    white-space: normal;
  }

  .hero-picture-frame {
    width: min(76vw, 320px);
  }
  .projects {
    padding: 34px 0 40px;
  }

  .skills {
    padding: 22px 0 26px;
  }

  .skills-inner {
    width: calc(100% - 24px);
  }

  .content-section {
    min-height: 100vh;
    padding: 40px 0 46px;
  }

  .tech-stack-group {
    flex-basis: 250px;
  }

  .skill-tile {
    flex-basis: 190px;
  }

  .content-columns {
    grid-template-columns: 1fr;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .placeholder-media-grid {
    grid-template-columns: 1fr;
  }

  .placeholder-media-grid img,
  .placeholder-media-single img {
    height: 200px;
  }

  .project-card-img--gemini-main {
    height: 190px;
    object-position: center 16%;
  }

  .projects-title-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .section-inner {
    width: calc(100% - 24px);
  }

  .projects-link {
    font-size: 1.2rem;
  }

  .experience-card {
    padding: 16px;
  }

  .experience-head {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 40px;
  }

  .experience-logo {
    width: 40px;
    height: 40px;
  }

  .experience-meta h3 {
    font-size: 1.2rem;
  }

  .experience-duties li {
    font-size: 0.98rem;
  }

  .about-me {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-contacts {
    flex-direction: column;
  }

  .contact-card {
    flex: 0 0 auto;
  }

}

/* Mobile Overlay Styles */
.mobile-overlay {
  display: none;
}

@media screen and (max-width: 1024px) {
  .mobile-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--nav-bg);
    z-index: 10000;
  }

  .mobile-overlay-content {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text);
    background-color: var(--panel-bg);
    border: 1px solid var(--theme-accent-border);
    border-radius: 16px;
    box-shadow: var(--section-surface-shadow), 0 0 40px var(--theme-accent-shadow);
    max-width: 90%;
    margin: 1rem;
  }

  .mobile-overlay-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: var(--brand-fill);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
  }

  .mobile-overlay-content p {
    font-size: 1.2rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  /* Hide everything except the overlay */
  body > *:not(#mobile-overlay) {
    display: none !important;
  }
}

