/* ============================================
   KVANTS.LV - PREMIUM DESIGN SYSTEM 2026
   ============================================ */

/* Custom Scrollbar - Neon Style */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
    border-radius: 10px;
    border: 2px solid #0a0a0f;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a78bfa 0%, #60a5fa 50%, #22d3ee 100%);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 #0a0a0f;
}

/* ============================================
   GRADIENT TEXT EFFECTS
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

.gradient-text-new {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient 5s ease infinite;
}

/* ============================================
   GLASS MORPHISM EFFECTS - OPTIMIZED
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   QUANTUM GRID BACKGROUND
   ============================================ */

.quantum-grid {
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
}

.quantum-grid-dense {
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ============================================
   NEON GLOW EFFECTS
   ============================================ */

.neon-glow-purple {
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(139, 92, 246, 0.2),
        0 0 60px rgba(139, 92, 246, 0.1);
}

.neon-glow-blue {
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 40px rgba(59, 130, 246, 0.2),
        0 0 60px rgba(59, 130, 246, 0.1);
}

.neon-glow-cyan {
    box-shadow: 
        0 0 20px rgba(6, 182, 212, 0.3),
        0 0 40px rgba(6, 182, 212, 0.2),
        0 0 60px rgba(6, 182, 212, 0.1);
}

/* ============================================
   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.3);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(59, 130, 246, 0.3),
        0 0 90px rgba(6, 182, 212, 0.2);
}

/* ============================================
   PARTICLE EFFECTS
   ============================================ */

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.particle-1 { 
    top: 20%; 
    left: 10%; 
    animation-delay: 0s; 
    animation-duration: 6s;
}

.particle-2 { 
    top: 60%; 
    left: 20%; 
    animation-delay: 1s; 
    animation-duration: 8s;
}

.particle-3 { 
    top: 30%; 
    left: 80%; 
    animation-delay: 2s; 
    animation-duration: 7s;
}

.particle-4 { 
    top: 70%; 
    left: 70%; 
    animation-delay: 3s; 
    animation-duration: 9s;
}

.particle-5 { 
    top: 40%; 
    left: 50%; 
    animation-delay: 4s; 
    animation-duration: 6.5s;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-40px) translateX(-10px);
        opacity: 1;
    }
    75% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
}

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

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    }
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-shadow-glow {
    text-shadow: 
        0 0 10px rgba(139, 92, 246, 0.5),
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(6, 182, 212, 0.2);
}

.border-gradient {
    border: 2px solid transparent;
    background-image: 
        linear-gradient(#0a0a0f, #0a0a0f),
        linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.bg-gradient-radial {
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
    .quantum-grid {
        background-size: 40px 40px;
    }
    
    .particle {
        display: none;
    }
}

/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ============================================
   SELECTION STYLING
   ============================================ */

::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(139, 92, 246, 0.3);
    color: #ffffff;
}

/* ============================================
   FOCUS STATES
   ============================================ */

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* ============================================
   SMOOTH TRANSITIONS & PERFORMANCE
   ============================================ */

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

/* Hardware acceleration for smooth scrolling */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.glass,
.glass-strong,
.premium-card {
    transform: translateZ(0);
    will-change: transform;
}

/* Optimize animations */
@media (hover: hover) {
    .hover-lift,
    .hover-glow {
        will-change: transform, box-shadow;
    }
}

/* ============================================
   ANIMATION DELAYS
   ============================================ */

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-1s { animation-delay: 1s; }
.delay-2s { animation-delay: 2s; }
.delay-3s { animation-delay: 3s; }

/* ============================================
   PREMIUM CARD STYLES
   ============================================ */

.premium-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.premium-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(139, 92, 246, 0.2);
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(6, 182, 212, 0.5);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .quantum-grid,
    .particle,
    .glass {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
