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

.animate-radar {
    animation: radar 4s linear infinite;
}

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

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}

/* Selection Color */
::selection {
    background: rgba(6, 182, 212, 0.3);
    color: #06b6d4;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Text Glow Effects */
.text-glow {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.text-glow-secondary {
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

/* Grid Background Pattern for sections */
.grid-pattern {
    background-image: linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Button Hover Effects */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect::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;
}

.btn-hover-effect:hover::before {
    left: 100%;
}

/* Card Hover Glow */
.card-glow:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

/* Loading Animation for inputs */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, transparent 4%, rgba(6, 182, 212, 0.1) 25%, transparent 36%);
    background-size: 1000px 100%;
}