/* Custom Animations */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

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

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    75% { transform: translateY(10px) rotate(-2deg); }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-spin-reverse {
    animation: spin-reverse 15s linear infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Gradient Text Animation */
.gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Glow Effects */
.glow-purple {
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.4);
}

.glow-blue {
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.4);
}

.glow-pink {
    box-shadow: 0 0 60px rgba(236, 72, 153, 0.4);
}

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

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6, #ec4899);
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}

/* Smooth hover transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover glow */
.group:hover {
    box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.15);
}

/* Mobile Menu (hidden by default, can be expanded) */
#mobileMenu {
    display: none;
}

#mobileMenu.active {
    display: flex;
}

/* Particle canvas styling */
#particleCanvas {
    pointer-events: none;
}

/* Loading animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Responsive typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

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

/* Print styles */
@media print {
    .bg-animation, nav, #particleCanvas {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
