@font-face {
  font-family: "Saeada";
  src: url(assets/fonts/df28054e79bbffe69ff92b76e531372e.otf) format("opentype");
}
* {
  font-family: Saeada, sans-serif;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow: hidden;
  background-color: #05060f;
}

/* ============================================================
   IMMERSIVE BACKDROP
   Layered aurora + nebula behind the transparent WebGL canvas.
   Sits at z-index -1 so the 3D room and all UI render on top.
   ============================================================ */
.immersive-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 8%, #14203f 0%, #0a1230 42%, #05060f 78%),
    #05060f;
}

/* slow-drifting aurora blobs */
.immersive-bg::before,
.immersive-bg::after {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 44% at 22% 30%, rgba(64, 124, 255, 0.30), transparent 70%),
    radial-gradient(34% 40% at 78% 26%, rgba(150, 84, 255, 0.24), transparent 70%),
    radial-gradient(46% 52% at 60% 82%, rgba(0, 196, 210, 0.20), transparent 72%);
  filter: blur(38px);
  will-change: transform;
  animation: bgDrift 26s ease-in-out infinite alternate;
}
.immersive-bg::after {
  background:
    radial-gradient(40% 46% at 70% 40%, rgba(255, 92, 160, 0.16), transparent 72%),
    radial-gradient(36% 42% at 30% 70%, rgba(72, 150, 255, 0.20), transparent 72%);
  animation-duration: 34s;
  animation-direction: alternate-reverse;
  mix-blend-mode: screen;
}

@keyframes bgDrift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1.05) rotate(0deg); }
  100% { transform: translate3d(3%, 3%, 0) scale(1.12) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .immersive-bg::before,
  .immersive-bg::after {
    animation: none;
  }
}

#webgl {
  width: 100vw;
  height: 100vh;
  pointer-events: auto;
  /* Let OrbitControls handle all touch gestures (pinch-zoom, drag) on the
     canvas instead of the browser.  The rest of the page (banner, buttons)
     still allows browser-level pinch-zoom since the viewport meta permits it. */
  touch-action: none;
}

#cssArcadeMachine {
  pointer-events: none;
  cursor: pointer;
}

#cssLeftMonitor {
  pointer-events: none;
  cursor: pointer;
}

#cssRightMonitor {
  pointer-events: none;
  cursor: pointer;
}

#drawing-canvas {
  background-color: #ffffff;
  display: none;
}

/* Floating fluid-glass pill navigation */
.banner {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1vw, 14px);
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  transform: translate(-50%, calc(-100% - 48px)); /* hidden above screen */
  padding: 9px clamp(12px, 1.6vw, 22px);
  max-width: min(94vw, 1120px);
  height: auto;
  width: auto;
  color: #eef0f6;
  background: rgba(18, 20, 30, 0.42);
  backdrop-filter: blur(22px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  /* Soft outer drop + a bright top inner edge = the iOS glass "lit rim" */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 20px rgba(0, 0, 0, 0.18);
  z-index: 3;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.banner::-webkit-scrollbar {
  display: none;
}
.banner--visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Fluid liquid-glass indicator that glides + morphs under the active link.
   Positioned at the banner origin and moved with GPU-composited transforms
   (translate) so the slide never triggers layout/paint — this is what makes
   it buttery like an iOS segmented control. NO nested backdrop-filter here:
   stacking blur inside the banner's blur is what caused the lag. */
.banner-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transform-origin: left top;
  will-change: transform, width, height;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.24),
    rgba(255, 255, 255, 0.08) 55%,
    rgba(130, 170, 255, 0.16)
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -6px 14px rgba(120, 160, 255, 0.14);
  /* springy, liquid motion — transform is composited (smooth), width/height
     morph the pill as it settles under a new link */
  transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.4, 1),
    width 0.42s cubic-bezier(0.34, 1.3, 0.4, 1),
    height 0.42s cubic-bezier(0.34, 1.3, 0.4, 1),
    opacity 0.3s ease;
}
.banner-indicator--visible {
  opacity: 1;
}

.banner-link {
  position: relative;
  isolation: isolate;
  z-index: 1;
  user-select: none;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 9px clamp(12px, 1vw, 18px);
  font-size: clamp(10px, 1.02vw, 13px);
  letter-spacing: 0.18em;
  color: #c3c7d2;
  border-radius: 999px;
  border: 1px solid transparent;
  /* the moving sheen is positioned from these vars (updated in JS on move) */
  --mx: 50%;
  --my: 50%;
  transition: color 0.35s ease, background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease, box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Frosted-glass fill that fades in smoothly */
.banner-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Cursor-following sheen (a soft radial highlight that glides with the pointer) */
.banner-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    120px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.banner-link:hover,
.banner-link.is-active {
  color: #ffffff;
  transform: translateY(-1px);
}
/* keep a faint fill only for touch "active" feedback (no pointer hover there) */
.banner-link.is-active::before {
  opacity: 1;
}
.banner-link:hover::after,
.banner-link.is-active::after {
  opacity: 1;
}
/* Tactile press feedback for mouse and touch */
.banner-link:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
@media (prefers-reduced-motion: reduce) {
  .banner-link,
  .banner-link::before,
  .banner-link::after {
    transition: none;
  }
}

.circular-button {
  position: absolute;
  display: block;
  bottom: 50px;
  left: 50px;
  width: 100px;
  opacity: 0;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(15, 15, 21, 0.5);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  line-height: 100px;
  text-decoration: none;
  visibility: hidden;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 1s, visibility 1s, background-size 0.2s ease-in-out;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 2;
  background-image: url(assets/images/72178d92e1249f02d8d66ea74bc64cfb.svg);
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

.show-back-button {
  visibility: visible;
  opacity: 1;
}

.circular-button:hover {
  background-size: 75%;
}

.button-row {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  width: 100vw;
  bottom: 30px;
  display: flex;
  justify-content: center;
  z-index: 1;
  transition: opacity 1s, visibility 1s;
}

.show-button-row {
  visibility: visible;
  opacity: 1;
}

.circular-button-whiteboard {
  display: inline-block;
  transition: opacity 1s, visibility 1s, background-size 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  width: 60px;
  height: 60px;
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  border: 3px solid #ffffff00;
  border-radius: 50%;
  background-color: rgba(15, 15, 21, 0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  margin: 0px 10px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.whiteboard-selected {
  border: 3px solid #eef0f6;
}

.rubik-message {
  text-align: center;
  visibility: hidden;
  opacity: 0;
  color: #eef0f6;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  user-select: none;
  font-size: 1.5rem;
  transition: opacity 1s ease, visibility 1s ease;
}

.show-rubik-message {
  visibility: visible;
  opacity: 1;
}

.audio-button {
  transition: opacity 1s, visibility 1s, background-size 0.2s ease-in-out,
    0.2s ease-in-out, background-image 1s ease-in-out;
  position: absolute;
  display: block;
  bottom: 50px;
  right: 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(15, 15, 21, 0.5);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  line-height: 100px;
  text-decoration: none;
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 1s, visibility 1s, background-size 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 2;
  background-image: url(assets/images/e735f2ace4717bfa3ee56b0c02d735a7.svg);
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
}

.audio-button:hover {
  opacity: 1;
}
.audio-button-muted {
  background-image: url(assets/images/6df72fdeb4b9dbcd9aa8a33f5bdee896.svg);
}

.circular-button-whiteboard:hover {
  background-size: 80%;
}

/* Smooth, animatable progress angle (driven by JS: --p in deg) */
@property --p {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ============================================================
   CIRCULAR SVG LOADER (brand new)
   Crisp stroke-based progress ring with a gradient stroke,
   centered live %, and a soft breathing glow.
   ============================================================ */
.loadingScreen {
  --p: 0;
  user-select: none;
  width: 44vmin;
  max-width: 190px;
  aspect-ratio: 1;
  color: #eaf1ff;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(0.9em, 2.5vmin, 1.4em);
  line-height: 1.1;
  filter: drop-shadow(0 0 26px rgba(79, 139, 255, 0.3));
  animation: loaderBreathe 3.6s ease-in-out infinite;
  transition: visibility 1s ease, opacity 1s ease;
}

/* Continuous rotating sweep behind the progress ring — reads as "alive"
   independent of the actual load progress. */
.loadingScreen::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(90, 150, 255, 0.0) 200deg,
    rgba(90, 150, 255, 0.55) 320deg,
    rgba(167, 107, 255, 0.9) 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  animation: loaderSpin 1.4s linear infinite;
  pointer-events: none;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

.loadingScreen-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
  z-index: 1;
}

.loadingScreen-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.loadingScreen-fill {
  fill: none;
  stroke: url(#loaderGrad);
  stroke-width: 6;
  stroke-linecap: round;
  /* 2π·54 ≈ 339.29 */
  stroke-dasharray: 339.29;
  stroke-dashoffset: calc(339.29 * (1 - var(--p) / 100));
  transition: stroke-dashoffset 0.55s ease;
  filter: drop-shadow(0 0 6px rgba(90, 150, 255, 0.7));
}

.loadingScreen-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
}

.loadingScreen-percent {
  font-size: 1.7em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #eaf1ff, #8ab6ff 55%, #b79bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.loadingScreen-label {
  font-size: 0.6em;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: rgba(200, 214, 245, 0.5);
  text-transform: uppercase;
}

@keyframes loaderBreathe {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(79, 139, 255, 0.28)); }
  50%      { filter: drop-shadow(0 0 42px rgba(138, 99, 255, 0.5)); }
}

.finished-load .loadingScreen-percent {
  color: rgba(234, 241, 255, 0.6);
  -webkit-text-fill-color: rgba(234, 241, 255, 0.6);
}

/* START state — SVG/center replaced by plain "START" text */
.loading-screen-hover {
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(1.1em, 3vmin, 1.7em);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: #ffffff;
  transition: letter-spacing 0.4s ease, filter 0.4s ease;
}
.loading-screen-hover:hover {
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  filter: drop-shadow(0 0 46px rgba(138, 99, 255, 0.8));
}
/* No ring/spinner in the START state — only the word "START" remains. */
.loading-screen-hover::before {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .loadingScreen { animation: none; }
  .loadingScreen-fill { transition: none; }
  .loadingScreen::before { animation: none; }
}

.show-loading-screen {
  visibility: visible;
  opacity: 1;
}
.show-audio-button {
  visibility: visible;
  opacity: 0.4;
}
/* ============================================================
   MOBILE FULLSCREEN OVERLAY
   Hosts a screen's web app (About Me / Projects / Arcade) as a
   normal full-viewport page on phones — reliable, native-res,
   fully interactive, and free of the CSS3D memory blow-up.
   ============================================================ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: #05060f;
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mobile-overlay.is-open {
  display: block;
  opacity: 1;
}
.mobile-overlay-frame {
  position: absolute;
  top: 0;
  left: 0;
  /* width/height/transform are set in JS (Navigation._layoutOverlayFrame):
     the embedded apps are desktop-only, so we render them at a desktop width
     and scale-to-fit the phone rather than letting their fixed layouts
     collapse. */
  border: 0;
  background: radial-gradient(circle at 50% 38%, #16224a 0%, #0a0f22 70%);
}
.mobile-overlay-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 5002;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 15, 21, 0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  color: #eef0f6;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.mobile-overlay-close:active {
  transform: scale(0.94);
}
/* Spinner shown until the embedded app paints its first frame. */
.mobile-overlay-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5001;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.mobile-overlay-loader span {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(120, 160, 255, 0.25);
  border-top-color: #5a96ff;
  animation: mobileOverlaySpin 0.9s linear infinite;
}
.mobile-overlay.is-loaded .mobile-overlay-loader {
  display: none;
}
@keyframes mobileOverlaySpin {
  to { transform: rotate(360deg); }
}

.mobile-text {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 20px;
  width: 60%;
  color: #eef0f6;
  z-index: 9999;
}

/* ============================================================
   RESPONSIVE LAYER — desktop / tablet / mobile
   Uses dynamic viewport height and clamps so alignment and
   sizes never break across screen sizes.
   ============================================================ */
#webgl {
  height: 100vh;      /* fallback */
  height: 100dvh;     /* mobile: excludes URL bar */
}

/* Tablet */
@media (max-width: 1024px) {
  .banner-link {
    letter-spacing: 0.12em;
  }
  .circular-button {
    width: 74px;
    height: 74px;
    bottom: 32px;
    left: 32px;
  }
  .circular-button-whiteboard {
    width: 74px;
    height: 74px;
    margin: 0 12px;
  }
  .audio-button {
    bottom: 32px;
    right: 32px;
  }
  .rubik-message {
    font-size: clamp(0.9rem, 2.4vw, 1.3rem);
    width: 90%;
  }
}

/* Phone */
@media (max-width: 640px) {
  .banner {
    max-width: 94vw;
    gap: 0;
    padding: 7px 12px;
  }
  .banner-link {
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 7px 11px;
  }
  .circular-button,
  .circular-button-whiteboard {
    width: 58px;
    height: 58px;
  }
  .circular-button {
    bottom: 22px;
    left: 22px;
  }
  .button-row {
    bottom: 84px;
  }
  .circular-button-whiteboard {
    margin: 0 8px;
  }
  .audio-button {
    bottom: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
  }
  .loadingScreen {
    width: 34vmin;
    font-size: 1.3em;
  }
  .rubik-message {
    font-size: 1rem;
    bottom: 90px;
    padding: 0 16px;
  }
}

/* Landscape phones: keep the room usable, shrink chrome further */
@media (max-height: 480px) and (orientation: landscape) {
  .banner {
    height: 44px;
    font-size: clamp(10px, 2.6vh, 14px);
  }
  .circular-button,
  .circular-button-whiteboard,
  .audio-button {
    transform: scale(0.85);
  }
}


/*# sourceMappingURL=main.29a8a76d32962c0c402e.css.map*/