@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&family=Rajdhani:wght@400;600;700&display=swap");

:root {
  --font-pixel: "Chakra Petch", sans-serif;
  --font-tech: "Rajdhani", sans-serif;
  --bg-dark: #1a1a1a;
  --bg-pattern: #2a2a2a;
  --col-console-dark: #1e293b;
  --col-console-shadow: rgba(0, 0, 0, 0.3);
  --focus-color: #facc15;
  --focus-glow: rgba(250, 204, 21, 0.5);
  --shadow-btn-lg:
    0 4px 0 var(--col-console-dark), 0 5px 5px var(--col-console-shadow);
  --shadow-btn-lg-active:
    0 0 0 var(--col-console-dark), inset 0 2px 5px rgba(0, 0, 0, 0.5);
  --shadow-btn-sm:
    0 2px 0 var(--col-console-dark), 0 3px 3px var(--col-console-shadow);
  --shadow-btn-sm-active:
    0 0 0 var(--col-console-dark), inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

body {
  overflow: hidden;
  touch-action: none;
  background-color: var(--bg-dark);
  background-image: radial-gradient(var(--bg-pattern) 1px, transparent 1px);
  background-size: 20px 20px;
}

.font-pixel {
  font-family: var(--font-pixel);
  font-weight: 700;
}
.font-tech {
  font-family: var(--font-tech);
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.origin-bottom-left {
  transform-origin: bottom;
}

.screen-glare {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 40%
  );
  pointer-events: none;
}

.card-container {
  transition:
    box-shadow 0.3s ease-in-out,
    border-color 0.3s ease-in-out;
}

#project-overlay {
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease-out;
  will-change: transform, opacity;
}

#live-canvas iframe,
#live-canvas video,
#live-canvas img {
  opacity: 0;
  animation: slideUpFade 0.5s ease-out forwards;
}

.handle-left,
.handle-right {
  box-shadow: inset 10px 0 15px -5px rgba(0, 0, 0, 0.4);
}

.handle-left {
  background: linear-gradient(to right, #334155, var(--col-console-dark));
  border-right: 2px solid var(--col-console-shadow) !important;
}

.handle-right {
  background: linear-gradient(to left, #334155, var(--col-console-dark));
  border-left: 2px solid var(--col-console-shadow) !important;
  box-shadow: inset -10px 0 15px -5px rgba(0, 0, 0, 0.4);
}

.console-btn {
  box-shadow: var(--shadow-btn-lg);
  transition: all 0.1s;
}

.console-btn:active {
  box-shadow: var(--shadow-btn-lg-active);
  translate: 0 4px;
}

.console-btn-sm {
  box-shadow: var(--shadow-btn-sm);
  transition: all 0.1s;
}

.console-btn-sm:active {
  box-shadow: var(--shadow-btn-sm-active);
  translate: 0 2px;
}

.btn-press:active {
  transform: scale(0.95);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.console-body {
  background-color: var(--col-console-dark);
  background-image:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    ),
    url("https://www.transparenttextures.com/patterns/carbon-fibre.png");
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.1),
    inset 0 -5px 10px rgba(0, 0, 0, 0.5),
    0 20px 50px rgba(0, 0, 0, 0.6);
}

.screw {
  width: 6px;
  height: 6px;
  background: #0f172a;
  border-radius: 50%;
  position: absolute;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.speaker-grille {
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0.4;
}

.speaker-line {
  width: 20px;
  height: 2px;
  background: #000;
  border-radius: 2px;
}

.power-led {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  margin-bottom: 10px;
}

.nav-focus {
  outline: none;
  border-color: var(--focus-color) !important;
  box-shadow: 0 0 15px var(--focus-glow) !important;
  z-index: 50;
  border-style: solid;
  border-width: 2px;
  isolation: isolate;
}

#games-list .nav-focus {
  border-color: var(--focus-color) !important;
}

button[onclick="toggleProfile()"].nav-focus {
  background-color: rgba(250, 204, 21, 0.1);
  border-radius: 9999px;
  padding: 0 12px;
  transition: all 0.2s ease;
  color: white;
}

.nav-focus i.fa-github,
.nav-focus i.fa-envelope,
.nav-focus i.fa-filter {
  color: #ffffff !important;
  transition: color 0.2s ease;
}

.nav-focus i.fa-linkedin-in {
  color: #3b82f6 !important;
  transition: color 0.2s ease;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes color-shimmer {
  from {
    background-position: 200% center;
  }
  to {
    background-position: 0% center;
  }
}

@keyframes spin-slow {
  0% {
    transform: rotate(0deg);
  }
  25%,
  100% {
    transform: rotate(-90deg);
  }
}

.animate-charging-colors {
  background: linear-gradient(
    90deg,
    currentColor 0%,
    #adffbb 50%,
    currentColor 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: color-shimmer 2s linear infinite;
}

.animate-spin-slow {
  animation: spin-slow 2s infinite ease-in-out;
}

@media only screen and (orientation: portrait) and (max-width: 1024px) {
  #rotate-message {
    display: flex !important;
  }
  .landscape-only {
    display: none !important;
  }
}

@media (min-width: 1920px) {
  body {
    zoom: 1.2;
  }
}
