/* Custom styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background: #0f172a;
    overflow-x: hidden;
}

.velocity-title {
    background: linear-gradient(45deg, #06b6d4, #8b5cf6, #10b981);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

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

.particles-bg {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #06b6d4, transparent),
        radial-gradient(2px 2px at 40px 70px, #8b5cf6, transparent),
        radial-gradient(1px 1px at 90px 40px, #10b981, transparent),
        radial-gradient(1px 1px at 130px 80px, #06b6d4, transparent),
        radial-gradient(2px 2px at 160px 30px, #8b5cf6, transparent);
    background-size: 200px 100px;
    animation: particles-float 20s linear infinite;
    opacity: 0.3;
}

@keyframes particles-float {
    from {
        transform: translateY(0px) translateX(0px);
    }
    to {
        transform: translateY(-100px) translateX(100px);
    }
}

.velocity-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.velocity-card:hover {
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.2);
    transform: translateY(-4px);
}

.velocity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
    transition: left 0.5s ease;
}

.velocity-card:hover::before {
    left: 100%;
}

.velocity-button {
    position: relative;
    overflow: hidden;
}

.velocity-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.velocity-button:hover::before {
    left: 100%;
}

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

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

/* Glitch effect */
.velocity-title:hover {
    animation: glitch 0.5s ease-in-out;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

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

::-webkit-scrollbar-track {
    background: #1e293b;
}

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

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0891b2, #7c3aed);
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .velocity-title {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .particles-bg {
        background-size: 100px 50px;
    }
}