/* ================================================================
   Haardhik Kunder â€” Interactive Portfolio
   Catppuccin Mocha palette Â· Vanilla CSS
   ================================================================ */

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Custom Properties
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  /* Catppuccin Mocha */
  --base: #1e1e2e;
  --mantle: #181825;
  --crust: #11111b;
  --text: #cdd6f4;
  --subtext0: #a6adc8;
  --subtext1: #bac2de;
  --overlay0: #313244;
  --overlay1: #45475a;
  --overlay2: #585b70;
  --blue: #89b4fa;
  --pink: #f5c2e7;
  --green: #a6e3a1;
  --yellow: #f9e2af;
  --red: #f38ba8;
  --lavender: #cba6f7;
  --teal: #94e2d5;
  --sky: #89dceb;
  --peach: #fab387;
  --canvas-element-scale: 1.1;
  --canvas-element-scale-down: 1.04;

  /* Terminal dimensions */
  --term-w: 720px;

  /* Canvas dimensions */
  --canvas-w: 2875px;
  --canvas-h: 1822px;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Reset & Base
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ede0cc;
  color: var(--text);
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Viewport & Canvas System
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  z-index: 1;
}

#viewport.dragging {
  cursor: grabbing;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--canvas-w);
  height: var(--canvas-h);
  will-change: transform;
  transform: translate(0, 0);
  background-color: #ede0cc;
  isolation: isolate;
}

#canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: multiply;
  opacity: 0.22;
}

/* ────────────────────────────────────────────────────────
   Ambient Background Blobs
   ──────────────────────────────────────────────────────── */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  mix-blend-mode: multiply;
  /* filter:blur() is set inline per-blob for varied softness */
}

@keyframes blob-drift-a {
  0% {
    transform: translate(0px, 0px) scale(1.00);
  }

  25% {
    transform: translate(280px, -320px) scale(1.07);
  }

  55% {
    transform: translate(-220px, 260px) scale(0.94);
  }

  80% {
    transform: translate(350px, 140px) scale(1.05);
  }

  100% {
    transform: translate(-160px, -240px) scale(0.97);
  }
}

@keyframes blob-drift-b {
  0% {
    transform: translate(0px, 0px) scale(1.00);
  }

  30% {
    transform: translate(-300px, 200px) scale(1.08);
  }

  60% {
    transform: translate(240px, -280px) scale(0.92);
  }

  100% {
    transform: translate(180px, 320px) scale(1.05);
  }
}

@keyframes blob-drift-c {
  0% {
    transform: translate(0px, 0px) scale(0.96);
  }

  40% {
    transform: translate(360px, 230px) scale(1.08);
  }

  70% {
    transform: translate(-180px, -310px) scale(0.93);
  }

  100% {
    transform: translate(-320px, 190px) scale(1.04);
  }
}

@keyframes blob-drift-d {
  0% {
    transform: translate(0px, 0px) scale(1.03);
  }

  35% {
    transform: translate(-260px, -200px) scale(0.92);
  }

  65% {
    transform: translate(310px, 290px) scale(1.09);
  }

  100% {
    transform: translate(120px, -250px) scale(1.00);
  }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Terminal Wrapper (canvas element)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.terminal-wrapper {
  position: absolute;
  width: 720px;
  z-index: 10;
  cursor: default;
  /* Warm parchment palette — overrides global Catppuccin vars for terminal scope */
  --mantle: #faf8f4;
  --crust: #f0ebe0;
  --base: #ede3d0;
  --overlay0: #c4a87c;
  --overlay1: #d4bc98;
  --overlay2: #9a8570;
  --text: #382a1c;
  --subtext0: #7a6050;
  --subtext1: #5c4535;
  --green: #9c4c2e;
  --blue: #7a4828;
  --pink: #8c3428;
  --yellow: #6a6018;
  --red: #b03828;
  --lavender: #a05a30;
}

/* Terminal container */
.terminal {
  background: var(--mantle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(100, 65, 30, 0.18), 0 2px 8px rgba(100, 65, 30, 0.10);
  border: 1.5px solid var(--overlay1);
  transition: box-shadow 0.3s ease;
}

/* Title bar */
.terminal-bar {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--crust);
  border-bottom: 1px solid var(--overlay0);
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-r {
  background: var(--red);
}

.dot-y {
  background: var(--yellow);
}

.dot-g {
  background: var(--green);
}

.terminal-title {
  margin-left: 8px;
  font-size: 13px;
  color: var(--overlay2);
  letter-spacing: 0.3px;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Terminal Body
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.terminal-body {
  padding: 0;
  min-height: 260px;
  max-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Welcome Screen
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.welcome-box {
  margin: 20px 20px 0;
  border: 1px dashed var(--overlay1);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
  min-height: 224px;
  flex-shrink: 0;
}

/* Left panel */
.welcome-left {
  flex: 0 0 248px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px dashed var(--overlay1);
  text-align: center;
  gap: 0;
}

.welcome-version {
  font-size: 11px;
  color: var(--overlay2);
  letter-spacing: 1px;
}

.welcome-title {
  font-size: 14px;
  color: var(--pink);
  letter-spacing: -0.3px;
  line-height: 1.5;
}

/* Pixel creature */
.creature {
  display: grid;
  grid-template-columns: repeat(9, 6px);
  grid-template-rows: repeat(7, 6px);
  gap: 1px;
  margin: 4px 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.creature:hover {
  transform: scale(1.1) rotate(-5deg);
}

.creature .p {
  background: var(--pink);
  border-radius: 1px;
}

.creature .e {
  background: transparent;
  border-radius: 1px;
}

.creature .a {
  background: var(--blue);
  border-radius: 1px;
}

.creature .q {}

.welcome-info {
  font-size: 11px;
  color: var(--overlay2);
  line-height: 1.7;
}

.pixel-avatar-panel {
  width: 100%;
  min-height: 202px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pixel-avatar-shell {
  position: relative;
  width: 186px;
  height: 224px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  outline: none;
  animation: avatar-idle 2.8s ease-in-out infinite;
}

.pixel-avatar-shell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 112px;
  height: 18px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(120, 70, 30, 0.10) 0%, rgba(120, 70, 30, 0.04) 56%, rgba(120, 70, 30, 0) 100%);
  filter: blur(7px);
  opacity: 0.72;
  z-index: 0;
  pointer-events: none;
}

.pixel-avatar-img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 186px;
  max-width: none;
  transform: translate3d(-50%, 0, 0);
  transform-origin: 50% 100%;
  image-rendering: pixelated;
  user-select: none;
  pointer-events: none;
  will-change: opacity, transform;
  filter: drop-shadow(0 10px 16px rgba(100, 55, 25, 0.14));
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.pixel-avatar-base {
  opacity: 1;
}

.pixel-avatar-wave {
  opacity: 0;
  transform: translate3d(-50%, 8px, 0) scale(0.985);
}

.pixel-avatar-shell:hover,
.pixel-avatar-shell:focus-visible {
  animation: avatar-wave 0.62s steps(2, end) infinite alternate;
}

.pixel-avatar-shell:hover .pixel-avatar-base,
.pixel-avatar-shell:focus-visible .pixel-avatar-base {
  opacity: 0;
  transform: translate3d(-50%, 6px, 0) scale(0.98);
}

.pixel-avatar-shell:hover .pixel-avatar-wave,
.pixel-avatar-shell:focus-visible .pixel-avatar-wave {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.pixel-avatar-shell:focus-visible {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(156, 76, 46, 0.45);
}

@keyframes avatar-idle {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes avatar-wave {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  100% {
    transform: translate3d(0, -5px, 0) rotate(1.2deg);
  }
}

/* Right panel */
.welcome-right {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-label {
  font-size: 12px;
  color: var(--yellow);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.activity-list {
  font-size: 12px;
  line-height: 1.9;
  color: var(--subtext0);
}

.activity-list .time {
  color: var(--overlay2);
  display: inline-block;
  min-width: 72px;
}

.activity-list .dim {
  color: var(--overlay1);
}

.help-list {
  font-size: 12px;
  line-height: 1.9;
  color: var(--subtext1);
}

.help-list .cmd {
  color: var(--blue);
}

.help-list .dim {
  color: var(--overlay2);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Terminal Output Area
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.terminal-output {
  flex: 1;
  padding: 12px 16px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  scrollbar-width: thin;
  scrollbar-color: var(--overlay0) transparent;
}

.terminal-output::-webkit-scrollbar {
  width: 4px;
}

.terminal-output::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: var(--overlay0);
  border-radius: 2px;
}

.cmd-line {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}

.cmd-prompt {
  color: var(--green);
  font-weight: 600;
}

.cmd-text {
  color: var(--blue);
}

.cmd-input-text {
  color: var(--green);
}

.output-text {
  color: var(--subtext1);
  margin-top: 4px;
}

.output-error {
  color: var(--red);
  white-space: pre-wrap;
}

.output-text .highlight {
  color: var(--pink);
  font-weight: 500;
}

.output-text .link {
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
}

.output-text .link:hover {
  color: var(--lavender);
}

.output-text .dim {
  color: var(--overlay2);
}

.output-text .tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin: 0 3px 3px 0;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Terminal Input Area
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.terminal-input-area {
  margin: 0 20px 20px;
  padding: 12px 14px;
  border: 1px solid var(--overlay0);
  border-radius: 8px;
  background: var(--crust);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex-shrink: 0;
}

.prompt-symbol {
  color: var(--green);
  font-weight: 600;
  flex-shrink: 0;
}

.terminal-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  caret-color: var(--blue);
}

.terminal-input::placeholder {
  color: var(--overlay1);
}

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--blue);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Boot animation overlay (shown during typing) */
.boot-cursor {
  display: none;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Matrix Rain (Easter Egg)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#matrix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: 0 0 12px 12px;
}

#matrix-canvas.active {
  opacity: 1;
  pointer-events: auto;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Canvas Elements â€” common
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.canvas-element {
  position: absolute;
  z-index: 8;
  cursor: pointer;
  --element-rotation: 0deg;
  transform: rotate(var(--element-rotation)) scale(var(--canvas-element-scale));
  transform-origin: center center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, filter 0.2s ease, transform 0.2s ease;
}

body.elements-visible .canvas-element {
  opacity: 1;
  pointer-events: auto;
}

.canvas-element:hover {
  filter: none;
}

.canvas-element.clicked {
  animation: element-click-pulse 0.3s ease;
}

@keyframes element-click-pulse {
  0% {
    transform: rotate(var(--element-rotation)) scale(var(--canvas-element-scale));
  }

  40% {
    transform: rotate(var(--element-rotation)) scale(var(--canvas-element-scale-down));
  }

  100% {
    transform: rotate(var(--element-rotation)) scale(var(--canvas-element-scale));
  }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Scattered Photos (decorative, non-interactive)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.photo-scatter {
  position: absolute;
  max-width: 160px;
  height: auto;
  border-radius: 0;
  border: 7px solid #F2EBE0;
  box-shadow: 0 0 0 1.5px #BAAB93, 0 5px 20px rgba(26, 25, 23, 0.28);
  transform: rotate(var(--photo-rot, 0deg));
  pointer-events: none;
  user-select: none;
  display: block;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.photos-visible .photo-scatter {
  opacity: 1;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   1. GITHUB Element
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.github-box {
  width: 150px;
  height: 150px;
  position: relative;
  overflow: visible;
}

.github-sleeve {
  position: absolute;
  inset: 0;
  background: #AAACBB;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(26, 25, 23, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}

.github-sleeve-logo {
  width: 58px;
  height: 58px;
  fill: #1A1917;
}

.github-cat {
  position: absolute;
  top: -46px;
  right: -30px;
  width: 172px;
  height: 172px;
  z-index: 1;
  opacity: 0;
  transform: translate(-46px, 52px) rotate(-5deg) scale(0.98);
  transform-origin: 64% 68%;
  transition:
    transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.18s ease;
  pointer-events: none;
}

.github-cat img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.github-box:hover .github-cat {
  opacity: 1;
  transform: translate(-2px, -2px) rotate(7deg) scale(1);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   2. LINKEDIN Element
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.linkedin-box {
  width: 150px;
  height: 150px;
  position: relative;
  overflow: visible;
}

.linkedin-card {
  position: absolute;
  inset: 0;
  background: #1A1917;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(26, 25, 23, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.linkedin-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, transparent 55%);
  border-radius: 10px;
}

.linkedin-card-logo {
  width: 55px;
  height: 55px;
  fill: #BAAB93;
}

.linkedin-plane {
  position: absolute;
  bottom: 5px;
  left: 5px;
  width: 52px;
  height: 52px;
  opacity: 0;
  z-index: 5;
  pointer-events: none;
  transform: rotate(-45deg);
}

.linkedin-plane svg {
  width: 100%;
  height: 100%;
  fill: white;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.linkedin-box:hover .linkedin-plane {
  animation: plane-diagonal 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes plane-diagonal {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-45deg) scale(0.5);
  }

  15% {
    opacity: 1;
    transform: translate(10px, -10px) rotate(-45deg) scale(1);
  }

  82% {
    opacity: 1;
    transform: translate(140px, -140px) rotate(-45deg) scale(0.78);
  }

  100% {
    opacity: 0;
    transform: translate(188px, -188px) rotate(-45deg) scale(0.72);
  }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   3. PROJECTS â€” Single Polaroid
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.polaroid-single {
  width: 130px;
  background: #F2EBE0;
  border-radius: 2px;
  padding: 8px 8px 40px 8px;
  box-shadow: 0 6px 20px rgba(26, 25, 23, 0.30);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.canvas-element:hover .polaroid-single {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

/* (legacy stacked polaroids â€” kept for reference) */
.polaroid-stack {
  position: relative;
  width: 210px;
  height: 336px;
}

.polaroid {
  position: absolute;
  width: 145px;
  background: #fafaf8;
  border-radius: 2px;
  padding: 10px 10px 46px 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.polaroid-image {
  width: 100%;
  min-height: 196px;
  background: #2d3748;
  border-radius: 1px;
  padding: 10px;
  overflow: hidden;
}

.polaroid-desc {
  font-size: 7.4px;
  color: #e8ddd0;
  line-height: 1.42;
  font-family: 'Space Grotesk', sans-serif;
}

.polaroid-title {
  position: absolute;
  bottom: 11px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #1A1917;
  font-family: 'Space Grotesk', sans-serif;
}

.polaroid:nth-child(1) {
  bottom: 0;
  left: 0;
  transform: rotate(-7deg);
  z-index: 1;
}

.polaroid:nth-child(2) {
  bottom: 26px;
  left: 30px;
  transform: rotate(4deg);
  z-index: 2;
}

.polaroid:nth-child(3) {
  bottom: 52px;
  left: 18px;
  transform: rotate(-1deg);
  z-index: 3;
}

.polaroid-stack:hover .polaroid:nth-child(1) {
  transform: translate(-26px, 20px) rotate(-12deg);
}

.polaroid-stack:hover .polaroid:nth-child(2) {
  transform: translate(18px, 2px) rotate(7deg);
}

.polaroid-stack:hover .polaroid:nth-child(3) {
  transform: translate(46px, 28px) rotate(4deg);
}

.polaroid:nth-child(2) .polaroid-image {
  background: #3d2d4d;
}

.polaroid:nth-child(2) .polaroid-desc {
  color: #c4b5d0;
}

.polaroid:nth-child(3) .polaroid-image {
  background: #2d3d35;
}

.polaroid:nth-child(3) .polaroid-desc {
  color: #a8d4b8;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   4. RESEARCH Paper Stack
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.research-stack {
  width: 170px;
  height: 220px;
  position: relative;
}

.research-paper {
  position: absolute;
  inset: 0;
  background: #1A1917;
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(26, 25, 23, 0.28);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.research-paper:nth-child(1) {
  transform: rotate(4deg) translateY(8px) translateX(5px);
  opacity: 0.75;
}

.research-paper:nth-child(2) {
  transform: rotate(-2deg) translateY(4px);
  opacity: 0.88;
}

.research-paper:nth-child(3) {
  background: #F2EBE0;
  z-index: 1;
}

.research-stack:hover .research-paper:nth-child(1) {
  transform: rotate(-10deg) translateX(-12px) translateY(5px);
}

.research-stack:hover .research-paper:nth-child(2) {
  transform: rotate(6deg) translateX(10px) translateY(3px);
}

.research-stack:hover .research-paper:nth-child(3) {
  transform: translateY(-18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.research-content {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.research-journal {
  font-size: 7px;
  font-weight: 700;
  color: #7D766C;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.research-title {
  font-size: 12px;
  font-weight: 800;
  color: #1A1917;
  line-height: 1.35;
  margin-bottom: 6px;
}

.research-line {
  width: 20px;
  height: 2px;
  background: rgba(125, 118, 108, 0.4);
  margin-bottom: 8px;
}

.research-abstract {
  font-size: 7px;
  color: rgba(26, 25, 23, 0.55);
  line-height: 1.55;
  flex: 1;
}

.research-seal {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.research-seal .material-symbols-outlined {
  color: #7D766C;
  font-size: 16px;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   5. EMAIL Envelope
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.envelope-wrap {
  width: 180px;
  height: 140px;
  position: relative;
  perspective: 600px;
}

.envelope-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: #7D766C;
  border-radius: 4px 4px 0 0;
  z-index: 1;
}

.envelope-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: #BAAB93;
  border-radius: 0 0 4px 4px;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(26, 25, 23, 0.32);
}

.envelope-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(to bottom right, transparent 49.5%, rgba(0, 0, 0, 0.06) 49.5%, rgba(0, 0, 0, 0.06) 50.5%, transparent 50.5%),
    linear-gradient(to bottom left, transparent 49.5%, rgba(0, 0, 0, 0.06) 49.5%, rgba(0, 0, 0, 0.06) 50.5%, transparent 50.5%);
  pointer-events: none;
}

.envelope-letter {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 20%;
  height: 55%;
  background: #FAF5EE;
  border-radius: 3px;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
  padding: 12px 10px;
  box-shadow: 0 2px 8px rgba(26, 25, 23, 0.12);
}

.envelope-wrap:hover .envelope-letter {
  transform: translateY(-70%);
}

.scribble {
  height: 2px;
  background: #7D766C;
  border-radius: 1px;
  margin-bottom: 6px;
}

.scribble:nth-child(1) {
  width: 40%;
  background: #1A1917;
  height: 3px;
}

.scribble:nth-child(2) {
  width: 85%;
}

.scribble:nth-child(3) {
  width: 65%;
}

.scribble:nth-child(4) {
  width: 75%;
}

.scribble:nth-child(5) {
  width: 50%;
  margin-top: 6px;
  background: rgba(125, 118, 108, 0.5);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   6. EDUCATION 3D Book
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.edu-wrap {
  position: relative;
  width: 200px;
  height: 260px;
}

.edu-book {
  width: 130px;
  height: 175px;
  position: absolute;
  bottom: 0;
  left: 35px;
  z-index: 3;
  perspective: 800px;
}

.edu-book-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.edu-wrap:hover .edu-book-3d {
  transform: rotateY(-20deg) rotateX(5deg) rotateZ(-2deg);
}

.edu-book-front {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #1A1917 0%, #2D2A26 60%, #1A1917 100%);
  border-radius: 2px 6px 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backface-visibility: hidden;
  box-shadow: 0 10px 30px rgba(26, 25, 23, 0.45);
}

.edu-book-front::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(0, 0, 0, 0.15) 100%);
  border-radius: 2px 0 0 2px;
}

.edu-book-emblem {
  width: 50px;
  height: 50px;
  border: 1.5px solid rgba(186, 171, 147, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.edu-book-emblem .material-symbols-outlined {
  color: rgba(186, 171, 147, 0.65);
  font-size: 24px;
}

.edu-book-title {
  font-size: 11px;
  color: #BAAB93;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

.edu-book-sub {
  font-size: 7px;
  color: rgba(186, 171, 147, 0.55);
  margin-top: 5px;
  letter-spacing: 1px;
}

.edu-book-pages {
  position: absolute;
  right: -10px;
  top: 3px;
  bottom: 3px;
  width: 10px;
  background: repeating-linear-gradient(to bottom,
      #f5f5f0 0px, #f5f5f0 1px,
      #e8e8e3 1px, #e8e8e3 2px);
  border-radius: 0 2px 2px 0;
  transform: rotateY(90deg);
  transform-origin: left center;
  opacity: 0;
  transition: opacity 0.4s;
}

.edu-wrap:hover .edu-book-pages {
  opacity: 1;
}

.edu-book-back {
  position: absolute;
  inset: 0;
  background: #0a0a15;
  border-radius: 2px 6px 6px 2px;
  transform: translateZ(-10px);
  opacity: 0;
  transition: opacity 0.4s;
}

.edu-wrap:hover .edu-book-back {
  opacity: 0.8;
}

.edu-note {
  position: absolute;
  width: 88px;
  height: 52px;
  border-radius: 2px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 5px;
  z-index: 1;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.edu-note-text {
  font-size: 7px;
  font-weight: 600;
  color: #1A1917;
  text-align: center;
  line-height: 1.3;
  font-family: 'Space Grotesk', sans-serif;
}

.edu-note-text small {
  font-weight: 400;
  font-size: 6px;
  color: #7D766C;
  display: block;
  margin-top: 2px;
}

.edu-note:nth-child(1) {
  background: #BAAB93;
  bottom: 175px;
  left: -5px;
}

.edu-note:nth-child(2) {
  background: #AAACBB;
  bottom: 185px;
  left: 56px;
}

.edu-note:nth-child(3) {
  background: #C8C2B8;
  bottom: 170px;
  right: -5px;
}

.edu-wrap:hover .edu-note:nth-child(1) {
  opacity: 1;
  transform: translate(-5px, -10px) rotate(-8deg);
}

.edu-wrap:hover .edu-note:nth-child(2) {
  opacity: 1;
  transform: translate(0, -25px) rotate(2deg);
  transition-delay: 0.05s;
}

.edu-wrap:hover .edu-note:nth-child(3) {
  opacity: 1;
  transform: translate(5px, -8px) rotate(7deg);
  transition-delay: 0.1s;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   7. FLIP CLOCK
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.clock-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
}

.clock-sep {
  font-size: 24px;
  font-weight: 700;
  color: #7D766C;
  margin: 0 2px;
  align-self: center;
}

.flip-digit {
  width: 52px;
  height: 68px;
  position: relative;
  border-radius: 6px;
  overflow: visible;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 36px;
  font-weight: 600;
  color: #1A1917;
  perspective: 300px;
  box-shadow: 0 4px 12px rgba(26, 25, 23, 0.25);
}

.fd-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
  background: linear-gradient(to bottom, #BAAB93, #A99D88);
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid rgba(26, 25, 23, 0.15);
  z-index: 1;
}

.fd-top span {
  display: block;
  width: 100%;
  height: 68px;
  line-height: 68px;
  text-align: center;
  color: #1A1917;
}

.fd-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
  background: linear-gradient(to bottom, #A49880, #9E9278);
  border-radius: 0 0 6px 6px;
  z-index: 1;
}

.fd-bottom span {
  display: block;
  width: 100%;
  height: 68px;
  line-height: 68px;
  text-align: center;
  margin-top: -34px;
  color: #1A1917;
}

.flip-digit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(26, 25, 23, 0.18);
  z-index: 10;
}

.fd-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  transform-origin: bottom center;
  transform-style: preserve-3d;
  z-index: 5;
  pointer-events: none;
}

.fd-flap-front,
.fd-flap-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
}

.fd-flap-front {
  background: linear-gradient(to bottom, #BAAB93, #A99D88);
  border-radius: 6px 6px 0 0;
}

.fd-flap-front span {
  display: block;
  width: 100%;
  height: 68px;
  line-height: 68px;
  text-align: center;
  color: #1A1917;
}

.fd-flap-back {
  background: linear-gradient(to bottom, #A49880, #9E9278);
  border-radius: 0 0 6px 6px;
  transform: rotateX(180deg);
}

.fd-flap-back span {
  display: block;
  width: 100%;
  height: 68px;
  line-height: 68px;
  text-align: center;
  color: #1A1917;
  margin-top: -34px;
}

@keyframes flip-top-down {
  0% {
    transform: rotateX(0deg);
  }

  100% {
    transform: rotateX(-180deg);
  }
}

.fd-flap.flipping {
  animation: flip-top-down 0.6s ease-in-out forwards;
}

#el-beyblade {
  --canvas-element-scale: 1.28;
  --canvas-element-scale-down: 1.22;
}

.beyblade-deck {
  position: relative;
  width: 280px;
  height: 230px;
  padding: 18px 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: default;
}

.beyblade-deck::before,
.beyblade-deck::after {
  display: none;
}

.beyblade-stage {
  position: relative;
  width: 234px;
  height: 210px;
  padding: 0;
  border: none;
  border-radius: 0;
  background:
    url('../beyblade/stadium.png') center / contain no-repeat;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 1;
  cursor: pointer;
}

.beyblade-deck.is-spinning .beyblade-stage {
  transform: none;
}

/* Rings hidden — stadium image replaces them */
.beyblade-ring {
  display: none;
}

.beyblade-art {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 88px;
  height: 88px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  user-select: none;
  display: block;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.24s ease;
}

.beyblade-deck.is-spinning .beyblade-art {
  transform: translate(-50%, -50%) scale(1.18);
}

.beyblade-arrow {
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  border: 1px solid rgba(140, 100, 50, 0.28);
  background: rgba(237, 224, 204, 0.82);
  color: var(--subtext0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(100, 65, 30, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.beyblade-arrow-prev {
  left: 8px;
}

.beyblade-arrow-next {
  right: 8px;
}

.beyblade-arrow:hover,
.beyblade-arrow:focus-visible {
  transform: translateY(-1px) scale(1.08);
  border-color: rgba(140, 100, 50, 0.5);
  background: rgba(237, 224, 204, 0.96);
}

.beyblade-arrow .material-symbols-outlined {
  font-size: 16px;
  line-height: 1;
}

.beyblade-stage:focus-visible,
.beyblade-arrow:focus-visible {
  outline: 2px solid rgba(156, 76, 46, 0.45);
  outline-offset: 2px;
}

@keyframes beyblade-ring-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.46;
  }

  50% {
    transform: scale(1.06);
    opacity: 0.9;
  }
}

@keyframes beyblade-ring-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Element Labels
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.element-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--overlay2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.2s ease;
}

.canvas-element:hover .element-label {
  color: #1A1917;
}


/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Responsive â€” Mobile (<768px)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

@media (max-width: 767px) {

  html,
  body {
    overflow: auto;
    background: #ede0cc;
  }

  #viewport {
    position: relative;
    height: auto;
    overflow: visible;
    cursor: default;
  }

  #canvas {
    position: relative;
    width: 100%;
    height: auto;
    transform: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 60px;
    gap: 0;
    background: #ede0cc;
  }

  #canvas::before {
    display: none;
  }

  .bg-blob {
    display: none;
  }

  #canvas-glow {
    display: none;
  }

  /* Hide all canvas elements and photos on mobile */
  .canvas-element,
  .photo-scatter {
    display: none !important;
  }

  .terminal-wrapper {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 540px;
    max-height: none !important;
  }

  .terminal-body {
    max-height: none !important;
    overflow: auto;
  }

  /* Avatar sizing on mobile */
  .pixel-avatar-panel {
    min-height: 180px;
    padding: 16px 0 8px;
  }

  .pixel-avatar-shell {
    width: 140px;
    height: 188px;
    max-width: 100%;
  }

  .pixel-avatar-img {
    width: 140px;
    max-width: 100%;
  }

  /* Mobile welcome text area */
  .mobile-welcome {
    padding: 16px 20px 8px;
  }

  /* Mobile command buttons */
  .mobile-buttons-section {
    padding: 8px 20px 16px;
  }

  .mobile-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .mobile-cmd-btn {
    background: rgba(100, 65, 30, 0.06);
    border: 1.5px solid var(--overlay1);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--blue);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    text-align: center;
  }

  .mobile-cmd-btn:hover,
  .mobile-cmd-btn:active {
    background: rgba(100, 65, 30, 0.14);
    border-color: var(--overlay2);
  }

  .terminal-output {
    padding: 12px 20px;
    max-height: none;
    overflow: visible;
  }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Responsive â€” Tablet (768â€“1024px)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (min-width: 768px) and (max-width: 1024px) {
  .terminal-wrapper {
    width: 580px;
  }

  :root {
    --term-w: 580px;
  }
}