@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-bg {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.animated-gradient {
  background: linear-gradient(-45deg, #3b82f6, #8b5cf6, #6366f1, #a855f7);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Additional cyberpunk-style animations */
@keyframes cyber-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5),
                0 0 40px rgba(59, 130, 246, 0.3),
                0 0 60px rgba(59, 130, 246, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5),
                0 0 50px rgba(139, 92, 246, 0.3),
                0 0 70px rgba(139, 92, 246, 0.1);
  }
}

.cyber-glow {
  animation: cyber-glow 2s ease-in-out infinite alternate;
}

@keyframes radar-sweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.radar-effect {
  position: relative;
  overflow: hidden;
}

.radar-effect::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.8), transparent);
  transform-origin: center;
  animation: radar-sweep 3s linear infinite;
}

/* Modern scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #dc2626, #ef4444);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #b91c1c, #dc2626);
}

/* Text selection styling */
::selection {
  background: rgba(220, 38, 38, 0.3);
  color: white;
}

/* Loading animation enhancement */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

/* Enhanced floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
  }
  50% {
    transform: translateY(-20px) rotate(0deg);
  }
  75% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Glitch effect for headings */
@keyframes glitch {
  0%, 100% {
    text-shadow: 2px 2px 0 rgba(220, 38, 38, 0.5),
                 -2px -2px 0 rgba(59, 130, 246, 0.5);
  }
  25% {
    text-shadow: -2px 2px 0 rgba(220, 38, 38, 0.5),
                 2px -2px 0 rgba(59, 130, 246, 0.5);
  }
  50% {
    text-shadow: 2px -2px 0 rgba(220, 38, 38, 0.5),
                 -2px 2px 0 rgba(59, 130, 246, 0.5);
  }
  75% {
    text-shadow: -2px -2px 0 rgba(220, 38, 38, 0.5),
                 2px 2px 0 rgba(59, 130, 246, 0.5);
  }
}

.glitch-text {
  animation: glitch 3s ease-in-out infinite;
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .feature-card:hover {
    transform: translateY(-5px);
  }
  
  .command-card:hover {
    transform: translateY(-3px);
  }
}

.loader-content {
  width: 48px;
  height: 48px;
  border: 5px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.glow {
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.command-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.command-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.arrow-icon.active {
  transform: rotate(180deg);
}

.nav-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

/* Enhanced command card styles */
.command-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.command-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #dc2626, #ef4444, #b91c1c);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.command-card:hover::after {
  transform: scaleX(1);
}

.command-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.4);
}

/* Enhanced button styles */
.gradient-bg {
  background: linear-gradient(-45deg, #dc2626, #ef4444, #b91c1c, #991b1b);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  position: relative;
  overflow: hidden;
}

.gradient-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.gradient-bg:hover::before {
  left: 100%;
}

.pulse-on-hover {
  position: relative;
}

.pulse-on-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  opacity: 0;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
}

.shine-effect:hover::before {
  animation: shine 1.5s ease-in-out;
}

@keyframes shine {
  100% {
    transform: translateX(100%);
  }
}

.gradient-bg {
  background: linear-gradient(45deg, #dc2626, #991b1b);
}

@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
  .sm\:gap-8 {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:text-left {
    text-align: left;
  }
  .lg\:justify-start {
    justify-content: flex-start;
  }
  .lg\:mt-0 {
    margin-top: 0;
  }
  .lg\:block {
    display: block;
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.2s ease-out forwards;
}

.menu-icon {
  transition: d 0.2s ease-in-out;
}

#mobileMenu {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
