/* Glassmorphism Styles */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease;
}

.dark .glass-card {
    background: rgba(17, 24, 39, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

/* Premium Gradients */
.gradient-primary {
    background: linear-gradient(135deg, #00D4FF 0%, #0066FF 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #39FF14 0%, #00D4FF 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

/* Navigation Links */
.nav-link {
    @apply px-4 py-2 text-gray-700 dark:text-gray-300 rounded-lg hover:bg-white/20 dark:hover:bg-gray-800/20 transition-all duration-300;
}

.nav-link:hover {
    @apply text-cyan-600 dark:text-cyan-400;
}

/* Button Effects */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.btn-glow:hover::before {
    animation: shine 0.5s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Micro-animations */
.pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.bounce-slow {
    animation: bounce 2s infinite;
}

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

/* Text Animations */
.text-gradient {
    background: linear-gradient(135deg, #00D4FF, #0066FF, #39FF14);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

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

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Parallax Effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Glass Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-nav {
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Glass Cards */
@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .glass-card {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid #ffffff;
    }
    
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover {
        border-color: #00D4FF;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating,
    .text-gradient,
    .pulse-slow,
    .bounce-slow,
    .spin-slow {
        animation: none;
    }
    
    .hover-lift {
        transition: none;
    }
    
    .hover-lift:hover {
        transform: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0066FF, #00D4FF);
}

/* Focus Styles for Accessibility */
.focus-visible {
    outline: 2px solid #00D4FF;
    outline-offset: 2px;
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Dark mode glass cards */
.dark .glass-card {
    background: rgba(17, 24, 39, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Premium button styles */
.btn-premium {
    background: linear-gradient(135deg, #00D4FF, #0066FF);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-premium:active {
    transform: translateY(0);
}

/* Animated borders */
.animated-border {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.animated-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00D4FF, #39FF14, #0066FF, #00D4FF);
    background-size: 400% 400%;
    border-radius: 16px;
    animation: gradient-border 3s ease infinite;
    z-index: -1;
}

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