/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
    }
}

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

.animate-gradient {
    animation: gradient-shift 6s ease infinite;
    background-size: 200% 200%;
}

.animate-glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}

/* Code highlighting customizations */
pre {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

code {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
}

/* Hero section gradient animation */
.hero-gradient {
    background: linear-gradient(
        135deg,
        rgba(124, 58, 237, 0.1) 0%,
        rgba(59, 130, 246, 0.05) 50%,
        rgba(6, 182, 212, 0) 100%
    );
    animation: gradient-shift 8s ease infinite;
}

/* Smooth transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button hover effects */
button, a {
    position: relative;
}

/* FAQ toggle smooth transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content.visible {
    max-height: 500px;
}

.faq-toggle span {
    transition: transform 0.3s ease-out;
}

.faq-toggle.active span {
    transform: rotate(45deg);
}

/* Cards with hover effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.2);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(to right, #7c3aed, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Link hover effects */
a {
    transition: color 0.2s ease;
}

a:hover {
    color: #7c3aed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark mode is default, light mode not needed */
body {
    background-color: #0f172a;
    color: #f1f5f9;
}

/* Ensure proper contrast */
.high-contrast {
    color: #ffffff;
}

/* Utility for centering */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glass morphism effect for headers */
.glass {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 116, 139, 0.1);
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}
