/* Custom Animations & Effects */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(-2deg);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-x {
    0%, 100% {
        background-size: 200% 200%;
        background-position: left center;
    }
    50% {
        background-size: 200% 200%;
        background-position: right center;
    }
}

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

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* Animation Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 6s ease-in-out infinite;
    animation-delay: 3s;
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
    opacity: 0;
}

.animate-fade-in.delay-100 {
    animation-delay: 0.2s;
}

.animate-fade-in.delay-200 {
    animation-delay: 0.4s;
}

.animate-gradient-x {
    animation: gradient-x 15s ease infinite;
    background: linear-gradient(90deg, #22d3ee, #3b82f6, #a855f7, #22d3ee);
    background-size: 200% 200%;
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Selection Color */
::selection {
    background: rgba(34, 211, 238, 0.3);
    color: #fff;
}

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

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.5);
    outline-offset: 2px;
}

/* Custom hover transitions */
.tech-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-icon:hover {
    transform: translateY(-5px);
}

/* Counter animation helper */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Custom text shadow for glow effects */
.text-glow {
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

/* Gradient border animation */
.gradient-border {
    position: relative;
    background: linear-gradient(var(--bg-color, #000), var(--bg-color, #000)) padding-box,
                linear-gradient(135deg, rgba(34, 211, 238, 0.5), rgba(168, 85, 247, 0.5), rgba(34, 211, 238, 0.5)) border-box;
    border: 1px solid transparent;
}

/* Noise texture overlay */
.noise {
    position: relative;
}

.noise::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    mix-blend-mode: overlay;
}
