:root{
  --accent:#5b8aff;   /* tweak to your pastel palette */
  --line:#cb7d62;
  --text:#91482e;
  --muted:#b37a67;
  --chip-bg:rgba(203, 125, 98, 0.33);
  --chip-border:#dfe5ff;
  --chip-text:#2a3a6b;
}
body {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  background-color: #dbb19e;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

::selection {
  color: #e4d1c0;
  background-color: #cb7d62b0;
}

test-bg {
  width: 100vw;
  height: 100vh;
  position: relative;
}
.cursor-default {
  cursor: default !important;
}

.image-container {
  position: relative;
  width: 100vw;
  /* Set your desired size */
  height: auto;
  max-width: 1100px;
  aspect-ratio: 1920 / 1080;
}

.image-container img {
  position: absolute;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.22, 1.61, 0.36, 1);
  width: 100%;
  /* bouncier easing */
  /* springy easing */
  will-change: transform;
}

.keycap-wrapper {
  cursor: pointer;
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(.4, 2, .6, 1), box-shadow 0.5s;
  
}

.keycap-wrapper:active {
  transform: translateY(8%);
}

/* Only apply hover effects on devices that support hovering */
@media (hover: hover) {
  .keycap-wrapper:hover {
    transform: translateY(8%);
  }

  .keycap-wrapper:hover .glow-effect {
    opacity: 1;
  }

  .keycap:hover {
    transform: translateY(8%);
  }
}

.keycap-wrapper .glow-effect {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show glow effect on active for touch devices */
.keycap-wrapper:active .glow-effect {
  opacity: 1;
}

.keycap {
  position: absolute;
  transition: transform 0.5s cubic-bezier(.4, 2, .6, 1), box-shadow 0.5s;
  cursor: pointer;
}

.keycap:active {
  transform: translateY(8%);
}

.name-position {
  position: absolute;
  height: calc(155 / 1080 * 100%) !important;
  top: 0%;
  z-index: 1;
}
.top-about-wrapper {
  left: 13%;
  top: 30%;
  z-index: 1;
  height: calc(155 / 1080 * 100%) !important;
  width: auto;
}
.top-about {
  height: -webkit-fill-available;
  width: auto !important;
}

.top-projects-wrapper {
  left: 30.4%;
  top: 30%;
  z-index: 1;
  height: calc(155 / 1080 * 100%) !important;
  width: auto;
}
.top-projects {
  height: -webkit-fill-available;
  width: auto !important;
}

.top-cat {
  height: calc(152.3 / 1080 * 100%) !important;
  width: auto !important;
  left: 50.3%;
  top: 30%;
  z-index: 1;
}

.mid-1 {
  height: calc(157 / 1080 * 100%) !important;
  width: auto !important;
  left: 11.99%;
  top: 42.3%;
  z-index: 2;
}

.mid-experience-wrapper {
  left: 20.1%;
  top: 42.3%;
  z-index: 2;
  height: calc(157 / 1080 * 100%) !important;
  width: auto;
}
.mid-experience {
  height: -webkit-fill-available;
  width: auto !important;
}

.mid-2 {
  height: calc(157 / 1080 * 100%) !important;
  width: auto !important;
  left: 42.69%;
  top: 42.3%;
  z-index: 2;
}

.mid-3 {
  height: calc(157 / 1080 * 100%) !important;
  width: auto !important;
  left: 50.5%;
  top: 42.3%;
  z-index: 2;
}

.bottom-1 {
  height: calc(160 / 1080 * 100%) !important;
  width: auto !important;
  left: 11.2%;
  top: 55.2%;
  z-index: 3;
}

.bottom-2 {
  height: calc(160 / 1080 * 100%) !important;
  width: auto !important;
  left: 19.4%;
  top: 55.2%;
  z-index: 3;
}

.bottom-contact-wrapper {
  left: 27.3%;
  top: 55.2%;
  z-index: 3;
  height: calc(160 / 1080 * 100%) !important;
  width: auto;
}
.bottom-contact {
  height: -webkit-fill-available;
  width: auto !important;
}

.bottom-cover {
  position: absolute;
  height: calc(148 / 1080 * 100%) !important;
  width: auto !important;
  left: 8%;
  top: 66%;
  z-index: 3;
}

.name-key {
  position: absolute;
  height: calc(400 / 1080 * 100%) !important;
  width: auto !important;
  left: 63%;
  top: 30%;
  z-index: 3;
}

.background {
  z-index: 0;
  width: 100%;
}

.overlay1 {
  z-index: 1;
}

.overlay2 {
  z-index: 2;
}

.overlay3 {
  z-index: 3;
}

.overlaytop {
  z-index: 99;
}

/* 🪄 Hover effect */
.overlay1:hover,
.overlay2:hover,
.overlay3:hover {
  transform: translateY(5px);
}

header {
  margin-top: 4em;
  text-align: center;
  color: white;
}

header h1 {
  font-size: 2em;
  font-weight: 900;
}

.landing-container {
  height: 90vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-0px);
  will-change: transform;
}

.content-container {
  margin: 0px 80px;
  margin-bottom: 200px;
  min-height: calc(100vh - 200px);
}

.content-block {
  display: flex;
  margin-top: 10vh;
  flex-direction: column;
  opacity: 0;
  transform: translateY(40px);
}

.content-title {
  text-align: center;
  font-size: 72px;
  color: #cb7d62;
  font-family: "Pixelify Sans", sans-serif;
  font-weight: 600;
  margin: 20px;
  letter-spacing: 4px;
  opacity: 0;
  transform: translateY(30px);
}
.subtitle {
  font-size: 30px;
  color: #cb7d62;
  font-family: "Pixelify Sans", sans-serif;
  font-weight: 600;
  margin-top: 20px;
  margin-left: 20px;
  margin-bottom: 5px;
}
.project-title {
  font-size: 21px;
  color: #cb7d62;
  font-weight: 600;
}
.project-container {
  max-width: 880px;
  display: flex;
  gap: 15px;
  margin-top: 45px;
}

.content-text-block {
  color: #91482e;
  font-family: "IBM Plex Mono", monospace;
  max-width: 1000px;
  margin: 0px 20px;
  opacity: 0;
  transform: translateY(25px);
}

.name-title {
  text-align: center;
  font-size: 42px;
  color: #cb7d62b5;
  font-family: "Pixelify Sans", sans-serif;
  font-weight: 600;
  width: 100%;
  display: block;
  letter-spacing: 0px;
}

#container3D canvas {
  width: 100vw !important;
  height: 100vh !important;
  position: absolute;
  top: 0;
  left: 0;
}

.sticky-nav {
  position: fixed;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-50%) translateX(-20px);
}

.sticky-nav.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  text-decoration: none;
  color: #cb7d62;
  font-family: "Pixelify Sans", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 2px;
  position: relative;
  display: block;
  padding: 8px 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
}

.nav-list a:hover {
  color: #91482e;
  background-color: rgba(203, 125, 98, 0.1);
  transform: translateX(5px);
}

.nav-list a.active {
  color: #91482e;
  background-color: rgba(203, 125, 98, 0.2);
  transform: translateX(8px);
}

.nav-list a::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background-color: #cb7d62;
  border-radius: 2px;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list a:hover::before,
.nav-list a.active::before {
  height: 100%;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: rgba(203, 125, 98, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle:hover {
  background: rgba(203, 125, 98, 1);
}

.hamburger {
  display: block;
  width: 25px;
  height: 20px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  left: 0;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 8px;
}

/* Mobile Navigation Overlay */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block !important;
    opacity: 1;
    visibility: visible;
  }

  .sticky-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: rgba(219, 177, 158, 0.98);
    transform: translateX(-100%) !important;  /* Force hidden by default */
    transition: transform 0.3s ease;
    visibility: hidden !important;  /* Hide by default */
    opacity: 1;
    padding: 80px 20px 20px;
    overflow-y: auto;
  }

  /* On mobile, ignore the visible class completely */
  .sticky-nav.visible {
    transform: translateX(-100%) !important;
    visibility: hidden !important;
  }

  /* Only show when explicitly opened via hamburger */
  .sticky-nav.mobile-open {
    transform: translateX(0) !important;
    visibility: visible !important;
  }

  .nav-list {
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
  }

  .nav-list a {
    font-size: 20px;
    padding: 15px 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.5);
  }

  .nav-list a:hover {
    transform: none;
    background-color: rgba(203, 125, 98, 0.3);
  }

  .nav-list a.active {
    transform: none;
    background-color: rgba(203, 125, 98, 0.4);
  }

  .nav-list a::before {
    display: none;
  }
}

/* Scroll Navigation Arrows */
.scroll-arrow {
  position: fixed;
  z-index: 1000;
  background: rgba(203, 125, 98, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform-origin: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(203, 125, 98, 0.3);
}

.scroll-arrow:hover {
  background: rgba(203, 125, 98, 1);
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(203, 125, 98, 0.4);
}

.scroll-arrow:active {
  transform: scale(0.95);
}

.scroll-arrow svg {
  color: white;
  transition: transform 0.3s ease;
}

.scroll-arrow:hover svg {
  transform: translateY(2px);
}

.scroll-down {
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  animation: bounce 2s infinite;
}

.scroll-down.visible {
  transform: translateX(-50%) scale(1);
}

.scroll-up {
  top: 30px;
  right: 30px;
  transform: scale(0.8);
  animation: pulse 2s infinite;
}

.scroll-up.visible {
  transform: scale(1);
}

.scroll-up:hover svg {
  transform: translateY(-2px);
}

.scroll-arrow.visible {
  opacity: 1;
  visibility: visible;
}

/* Animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .scroll-arrow {
    width: 45px;
    height: 45px;
  }

  .scroll-down {
    bottom: 20px;
  }

  .scroll-up {
    top: 20px;
    right: 20px;
  }
}

.text-decor {
  font-family: "IBM Plex Mono", monospace;
  font-size: 37px;
}
.experience-container {
  display: flex;
  justify-content: center;
}
.xp-title{
  max-width: 880px;
  margin: 0 auto 14px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.xp-list{
  max-width: 880px;
  list-style: none;
  padding: 0;
}

.xp-item{
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(25,40,90,0.06);
}

.xp-head{ margin-bottom: 8px; }
.role{ color: var(--text); font-size: 1.02rem; font-weight: 700; margin: 0; }
.role .at{ color: var(--muted); font-weight: 600; }
.meta{ color: var(--muted); font-size: .94rem; display: flex; gap: 10px; flex-wrap: wrap; }

.labels{ display: flex; gap: 8px; padding: 8px 0 0; margin: 0; list-style: none; flex-wrap: wrap; }
.chip{
  display: inline-flex; 
  align-items: center; 
  gap: 6px;
  padding: 6px 10px; 
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--text); 
  font-weight: 600; 
  font-size: .82rem;
}
.chip::before{ 
  /*content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .9; */
}
.summary{ margin: 6px 0 0; color: var(--text); line-height: 1.55; }
.grid-gap {
  gap: 25px;
  display: grid;
  padding: 25px;
}
.flex-gap {
  gap: 15px;
  display: flex;
  flex-direction: column;
  padding: 25px;
}
.penguin-band {
  height: 400px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.vid-content {
  display: flex;
  gap: 15px;
}

@media (max-width: 640px){
  .xp-item{ padding: 16px; }
}