/* Ripple effect */
.cyber-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.6);
    transform: scale(0);
    animation: cyber-ripple 0.6s linear;
    pointer-events: none;
}

@keyframes cyber-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Scroll animations */
.cyber-card, .hero-title, .hero-description {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cyber-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* Smooth Page Transitions */
.cyber-main {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Navigation active states */
.nav-link.active {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
    box-shadow: var(--shadow-glow);
}

/* Hover effects for better UX */
.cyber-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.cyber-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading states for buttons */
.cyber-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.cyber-button.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: buttonSpin 1s linear infinite;
    margin-left: 8px;
}

@keyframes buttonSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus states for accessibility */
.cyber-button:focus,
.nav-link:focus,
.lang-btn:focus {
    outline: 2px solid var(--neon-blue);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cyber-main,
    .cyber-card,
    .cyber-button,
    .nav-link {
        transition: none;
    }
    
    #quantum-loader {
        display: none !important;
    }
    
    #main-universe.hidden {
        opacity: 1;
        visibility: visible;
    }
}
