.gradient-text {
  background: linear-gradient(45deg, rgb(99 102 241), rgb(147 51 234));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  animation: spin 20s linear infinite;
}

/* Terminal-like scrollbar */
::-webkit-scrollbar {
  width: 8px;
  background: rgb(17 24 39);
}

::-webkit-scrollbar-track {
  background: rgb(31 41 55);
}

::-webkit-scrollbar-thumb {
  background: rgb(16 185 129);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(5 150 105);
}

/* Desktop grid pattern */
.desktop-pattern {
  background-image: linear-gradient(rgba(16, 185, 129, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Terminal Message and Help Content Styles */
.help-section {
  margin-bottom: 16px;
}

.command-list {
  margin-left: 8px;
}

.command-item {
  margin: 4px 0;
}

.command-name {
  color: rgb(16 185 129);
  font-family: monospace;
}

/* Hamburger Menu Styles */
#hamburger-menu {
  /* Ensure it stays above everything */
}

.hamburger-line {
  transform-origin: center;
}

/* Hamburger animation to X */
#hamburger-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(2px, 2px);
}

#hamburger-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

#hamburger-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* Menu panel animations */
#hamburger-panel.show {
  transform: translateX(0);
  opacity: 1;
}

/* App link hover effects */
.hamburger-app-link:hover {
  transform: translateX(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.hamburger-app-link:active {
  transform: translateX(0) scale(0.98);
}

/* Staggered animation for app links */
.hamburger-app-link:nth-child(1) {
  animation-delay: 0.05s;
}
.hamburger-app-link:nth-child(2) {
  animation-delay: 0.1s;
}
.hamburger-app-link:nth-child(3) {
  animation-delay: 0.15s;
}
.hamburger-app-link:nth-child(4) {
  animation-delay: 0.2s;
}
.hamburger-app-link:nth-child(5) {
  animation-delay: 0.25s;
}
.hamburger-app-link:nth-child(6) {
  animation-delay: 0.3s;
}
.hamburger-app-link:nth-child(7) {
  animation-delay: 0.35s;
}
.hamburger-app-link:nth-child(8) {
  animation-delay: 0.4s;
}
.hamburger-app-link:nth-child(9) {
  animation-delay: 0.45s;
}
.hamburger-app-link:nth-child(10) {
  animation-delay: 0.5s;
}

/* Menu show animation */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Apply animations when menu is shown */
#hamburger-panel.show .hamburger-app-link {
  animation: fadeInUp 0.3s ease-out forwards;
  opacity: 0;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  #hamburger-panel {
    width: 90vw;
    right: -45vw;
    max-width: none;
  }

  #hamburger-panel.show {
    right: -5vw;
  }

  .hamburger-app-link {
    padding: 0.75rem;
  }

  .hamburger-app-link span:first-child {
    font-size: 1.25rem;
  }

  /* Ensure hamburger button is easily tappable on mobile */
  #hamburger-toggle {
    min-height: 56px;
    min-width: 56px;
  }
}

/* Backdrop blur for mobile */
@media (max-width: 768px) {
  #hamburger-panel::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: -1;
  }
}
