body {
  font-family: "Inter", sans-serif;
}

/* Hero animation: top-down slide + blur + fade */
@keyframes blurFadeSlideDown {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}
.animate-blur-fade-slidedown {
  animation: blurFadeSlideDown 1s ease forwards;
}

/* Button glow animation */
@keyframes buttonGlow {
  0%,
  100% {
    box-shadow: 0 0 8px 2px rgba(255, 179, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 20px 6px rgba(255, 179, 0, 1);
  }
}
.animate-button-glow {
  animation: buttonGlow 2.5s ease-in-out infinite;
}

/* Hamburger styles */
#hamburgerBtn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
#hamburgerBtn span {
  display: block;
  width: 100%;
  height: 4px;
  background-color: white;
  border-radius: 2px;
}
@media (max-width: 767px) {
  #hamburgerBtn {
    display: flex;
  }
  nav.desktop-nav {
    display: none;
  }
}

/* Side menu */
#sideMenu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 16rem;
  background-color: #222222;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.7);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 50;
  padding-top: 4rem;
}
#sideMenu.open {
  transform: translateX(0);
}
#sideMenu nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}
#sideMenu nav a:hover {
  color: #fbbf24;
}

/* Overlay */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 40;
}
#overlay.active {
  display: block;
}

/* timeline console style */
/* Cursor Blinker */
.blinker {
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  from,
  to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
#terminal-card {
  will-change: transform;
}
/* nav bar background */
.bg-navbar {
  background-color: rgba(17, 17, 17, 0.9); /* same as #111111e6 */
}
/* glass tile for skills  */
.glass-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.3s ease;
}
.glass-tile:hover {
  transform: scale(1.02);
}

/* animation for skills */

.glass-tile {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: transform 0.6s ease, opacity 0.6s ease;
  will-change: transform, opacity;
}

.glass-tile.group-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* test run */
body {
  background: #0a0a0a;
  font-family: "Fira Code", monospace;
  color: #fff;
}

.retro-box {
  position: relative;
  z-index: 0;
  border-radius: 12px;
  padding: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: retroPulse 3s infinite;
  background: #1a1a1a;
  border: 2px solid #333;
  color: #999;
  box-shadow: inset 0 0 20px rgba(255, 255, 0, 0.1),
    0 0 20px rgba(255, 255, 0, 0.2);
}

.retro-box::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.retro-box::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%) skewX(-20deg);
  transition: transform 0.6s ease;
}

.retro-box.active {
  color: #000;
  border-color: #fbbf24;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

.retro-box.active::before {
  opacity: 1;
  transform: scale(1);
}

.retro-box.active::after {
  transform: translateX(100%) skewX(-20deg);
}

.retro-box.filling {
  animation: pixelFill 0.8s ease-in-out forwards;
  background-color: transparent;
}

.retro-box.unfilling {
  animation: pixelUnfill 0.8s ease-in-out forwards;
  background-color: transparent;
}
@keyframes retroPulse {
  0%,
  100% {
    box-shadow: inset 0 0 20px rgba(255, 255, 0, 0.1),
      0 0 20px rgba(255, 255, 0, 0.2);
  }
  50% {
    box-shadow: inset 0 0 20px rgba(255, 255, 0, 0.2),
      0 0 30px rgba(255, 255, 0, 0.4);
  }
}

@keyframes pixelFill {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  25% {
    transform: scale(1.1);
    filter: brightness(1.3) contrast(1.2);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.8);
  }
  50% {
    transform: scale(0.95);
    filter: brightness(1.5) contrast(1.4);
  }
  75% {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.1);
  }
  100% {
    transform: scale(1.02);
    filter: brightness(1);
  }
}

@keyframes pixelUnfill {
  0% {
    transform: scale(1.02);
    filter: brightness(1.2);
  }
  25% {
    transform: scale(0.9);
    filter: brightness(0.8) contrast(0.8);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(0.6) contrast(0.6);
  }
  75% {
    transform: scale(0.95);
    filter: brightness(0.9) contrast(0.9);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes blurFadeSlidedown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes buttonGlow {
  0% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
  }
  100% {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.8);
  }
}

.animate-blur-fade-slidedown {
  animation: blurFadeSlidedown 1s ease-out;
}

.animate-button-glow {
  animation: buttonGlow 2s ease-in-out infinite alternate;
}

/* last offer section */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(2deg);
  }
  66% {
    transform: translateY(-5px) rotate(-1deg);
  }
}

/* Orbit Animation */
@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(150px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(150px) rotate(-360deg);
  }
}

@keyframes orbitSmall {
  0% {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  100% {
    transform: rotate(-360deg) translateX(100px) rotate(360deg);
  }
}

/* Pulse Animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Code Rain Animation */
@keyframes codeRain {
  0% {
    transform: translateY(-100vh);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Glow Effect */
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.6),
      0 0 60px rgba(251, 191, 36, 0.3);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}
.floating:nth-child(2) {
  animation-delay: -2s;
}
.floating:nth-child(3) {
  animation-delay: -4s;
}

.orbit-element {
  animation: orbit 20s linear infinite;
}
.orbit-small {
  animation: orbitSmall 15s linear infinite reverse;
}

.pulse-ring {
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.code-rain {
  animation: codeRain 3s linear infinite;
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: rgba(251, 191, 36, 0.7);
}

.glow-box {
  animation: glow 3s ease-in-out infinite;
}

/* Service Card Hover Effects */
.service-card {
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(51, 51, 51, 0.6);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(251, 191, 36, 0.2);
}

/* Interactive Elements */
.interactive-element {
  cursor: pointer;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Geometric Shapes Animation */
@keyframes rotate3d {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  33% {
    transform: rotateX(120deg) rotateY(120deg) rotateZ(0deg);
  }
  66% {
    transform: rotateX(240deg) rotateY(240deg) rotateZ(120deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

.rotate-3d {
  animation: rotate3d 8s ease-in-out infinite;
}

/* Text Typewriter Effect */
@keyframes typewriter {
  0% {
    width: 0;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 100%;
  }
}

@keyframes blink {
  0%,
  50% {
    border-color: transparent;
  }
  51%,
  100% {
    border-color: #fbbf24;
  }
}

.typewriter {
  overflow: hidden;
  border-right: 3px solid #fbbf24;
  white-space: nowrap;
  animation: typewriter 3s steps(30) infinite, blink 1s step-end infinite;
}

.box {
  width: 40px;
  height: 40px;
  border: 2px solid #ffd700;
  background: transparent;
  box-shadow: 0 0 2px #ffd70033;
}

.box.fill {
  background: #ffd700;
  box-shadow: 0 0 12px #ffd700;
}

.pulse-hover {
  border: 2px solid #facc15;
  color: #facc15;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  background-color: transparent;
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.66);
}

.pulse-hover:hover {
  background-color: #facc15;
  color: black;
  box-shadow: 0 0 15px #facc15;
}

.tile-hover {
  position: relative;
  border-radius: 0.75rem; /* rounded-xl */
  border: 1px solid #facc15; /* border-yellow-400 */
  color: #d1d5db; /* text-gray-300 */
  padding: 0.5rem 1rem; /* px-4 py-2 */
  text-align: center;
  transition: all 0.3s;
  overflow: hidden;
  background-color: #111;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.tile-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  transition: all 0.3s ease-in-out;
  background: linear-gradient(90deg, #facc15, #f59e0b);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 0;
}

.tile-hover:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.tile-hover > * {
  position: relative;
  z-index: 10;
}
