/* Custom Components - Separate from Tailwind */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(138, 79, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8A4FFF 0%, #532F99 100%);
  border-radius: 4px;
}

/* Primary Button with glass effect */
.btn-primary {
  padding: 1rem 1.6rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #8A4FFF 0%, #532F99 100%);
  box-shadow: 0 4px 15px rgba(138, 79, 255, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: all 0.5s;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);

}

/* Secondary Button with glass effect */
.btn-secondary {
  /* border: 2px solid #8A4FFF; */
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  background: rgba(138, 79, 255, 0.1);
  color: white;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: all 0.5s;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.btn-secondary:hover::before {
  left: 100%;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(138, 79, 255, 0.2);
}

/* Feature Icon with enhanced glass effect */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #8A4FFF 0%, #532F99 100%);
  box-shadow: 0 4px 15px rgba(138, 79, 255, 0.3);
}

/* Enhanced Feature Cards */
.feature-card {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(138, 79, 255, 0.2);
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  background: rgba(138, 79, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(138, 79, 255, 0.1);
}

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

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

.feature-card:hover {
  transform: scale(1.05);
  /* box-shadow: 0 10px 20px rgba(138, 79, 255, 0.2); */
}

/* Demo Target Area */
.demo-target {
  position: relative;
  overflow: hidden;
}

.demo-target::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 10;
  background: radial-gradient(circle, rgba(138, 79, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
}

.demo-target:hover::before {
  width: 100px;
  height: 100px;
}

/* Platform Button */
.platform-button {
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
}

.platform-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
}

.platform-button:hover::before {
  transform: translateX(100%);
}

.platform-active {
  border: 1px solid rgba(138, 79, 255, 0.2);
  background: rgba(138, 79, 255, 0.1);
}

.platform-inactive {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  opacity: 0.6;
}

/* Keyboard Container */
.keyboard-container {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(138, 79, 255, 0.1), rgba(83, 47, 153, 0.1));
  backdrop-filter: blur(20px);

}

/* Text Area Modern */
.text-area-modern {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  color: white;
  padding: 1rem;
  transition: all 0.3s;
  background: #0e0d11;

}

.text-area-modern:focus {
  outline: none;
  border-color: #55535a;
  
}

/* Step Card */
.step-card {
  transition: all 0.3s;
  position: relative;
}

.step-card:hover {
  transform: scale(1.02) translateY(-4px);
}

/* Step Number */
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 10;
  background: linear-gradient(135deg, #8A4FFF 0%, #532F99 100%);

}

/* Pulse Glow Effect */
.pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

/* Swiper Customization */
.swiper-pagination-bullet {
  background: rgba(138, 79, 255, 0.5) !important;
}

.swiper-pagination-bullet-active {
  background: #8A4FFF !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: #8A4FFF !important;
}

/* Screenshot Slide */
.screenshot-slide {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.screenshot-slide:hover {
  transform: translateY(-10px) scale(1.05);
  z-index: 10;
}

/* Click Effect */
.click-effect {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid #8A4FFF;
  border-radius: 50%;
  pointer-events: none;
  animation: clickPulse 0.6s ease-out;
}

/* Hero Background */
.hero-bg {
  /* background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%); */
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(138, 79, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(138, 79, 255, 0.05) 0%, transparent 50%);
}

/* Floating Icons Container */
.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  color: rgba(138, 79, 255, 0.3);
  animation: float 6s ease-in-out infinite;
}

/* Floating Icon Positions */
.floating-icon:nth-child(1) { 
  top: 20%; 
  left: 10%;
  animation-delay: 0s; 
}
.floating-icon:nth-child(2) { 
  top: 60%; 
  left: 80%;
  animation-delay: 2s; 
}
.floating-icon:nth-child(3) { 
  top: 30%; 
  left: 70%;
  animation-delay: 4s; 
}
.floating-icon:nth-child(4) { 
  top: 80%; 
  left: 20%;
  animation-delay: 1s; 
}
.floating-icon:nth-child(5) { 
  top: 10%; 
  left: 60%;
  animation-delay: 3s; 
}

/* Icon Float Animation */
.icon-float {
  animation: iconFloat 3s ease-in-out infinite;
}

/* Key Button Styles for Keyboard Tester */
.key-button {
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, #2d3748, #1a202c);
  
}

.key-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: all 0.5s;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.key-button:hover::before {
  left: 100%;
}

.key-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.key-active {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  transform: scale(0.95) translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.key-previous {
  background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%) !important;
  color: #1a202c;
}

.key-clicked {
  animation: keyPressAnimation 0.15s ease-out;
}

/* Floating Animation for Hero Elements */
.floating-animation {
  animation: floating 6s ease-in-out infinite;
}

/* Additional Keyframes */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes clickPulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes keyPressAnimation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .floating-icon,
  .animate-float,
  .animate-pulse-glow,
  .floating-animation,
  .icon-float {
    animation: none !important;
  }
  
  .screenshot-slide,
  .feature-card,
  .btn-primary,
  .btn-secondary,
  .platform-button,
  .step-card,
  .key-button {
    transition: none !important;
  }
  
  .modal-content {
    animation: none !important;
  }
  
  .feature-card::before,
  .btn-primary::before,
  .btn-secondary::before,
  .platform-button::before,
  .key-button::before {
    display: none !important;
  }
}



/* Enhanced animations and effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Glass morphism enhanced */
.glass-card {
  background: rgba(138, 79, 255, 0.1);


  border: 1px solid rgba(138, 79, 255, 0.2);

}

.glass-card:hover {
  background: rgba(138, 79, 255, 0.15);
  border-color: rgba(138, 79, 255, 0.3);
}

/* Feature card enhanced hover */
.feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Hero button enhancements */
.hero-btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #8A4FFF 0%, #532F99 100%);
  box-shadow: 0 10px 20px rgba(138, 79, 255, 0.2);
}

.hero-btn-primary::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;
}

.hero-btn-primary:hover::before {
  left: 100%;
}

.hero-btn-secondary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(138, 79, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.hero-btn-secondary:hover::before {
  left: 100%;
}

/* Floating orbs */
.floating-orb {
  animation: float 6s ease-in-out infinite;
}

.floating-orb:nth-child(2) {
  animation-delay: -2s;
}

.floating-orb:nth-child(3) {
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(15px) rotate(240deg);
  }
}

/* Gradient text enhancement */
.gradient-text {
        background: linear-gradient(135deg, #8A4FFF, #E0E0FF);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

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

/* Pulse glow effect */
.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 0 20px rgba(138, 79, 255, 0.3);
  }
  to {
    box-shadow: 0 0 40px rgba(138, 79, 255, 0.6);
  }
}

/* Swiper customization */
.swiper-pagination-bullet {
  background: rgba(138, 79, 255, 0.5);
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #8A4FFF;
  transform: scale(1.2);
}

/* Enhanced scroll behavior */
html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: rgba(138, 79, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8A4FFF 0%, #532F99 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #A366FF 0%, #8A4FFF 100%);
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .feature-card {
    transform: none;
  }
  
  .feature-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .floating-orb {
    display: none;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-orb {
    animation: none;
  }
  
  .gradient-text {
    animation: none;
  }
  
  .animate-pulse-glow {
    animation: none;
  }
}

/* Focus states for accessibility */


/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass-card {
    border: 2px solid #8A4FFF;
    background: rgba(138, 79, 255, 0.2);
  }
  

}
