/* Loading animation */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.loaded .loader-container {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 80px;
    height: 80px;
    border: 5px solid transparent;
    border-top-color: #4f9de0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loader:before, .loader:after {
    content: '';
    position: absolute;
    border: 5px solid transparent;
    border-radius: 50%;
}

.loader:before {
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-top-color: #4fe075;
    animation: spin 0.8s linear infinite reverse;
}

.loader:after {
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-top-color: #f0a742;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Page transition effects */
.page-transition {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover animation */
.card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

/* Flashing highlight effect for new items */
.flash-highlight {
    animation: flash-highlight 2s ease;
}

@keyframes flash-highlight {
    0%, 100% {
        box-shadow: 0 0 0 rgba(79, 157, 224, 0);
    }
    50% {
        box-shadow: 0 0 30px rgba(79, 157, 224, 0.6);
    }
}

/* Floating animation */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Text glitch effect for headings */
.glitch {
    position: relative;
    color: white;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 1s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                   -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                   0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                   -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
                   0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                   0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                   -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                   0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                   -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                   0.05em 0 0 rgba(0, 255, 0, 0.75),
                   0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                   0.05em 0 0 rgba(0, 255, 0, 0.75),
                   0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
                   -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
                   -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

/* Neon text effect */
.neon-text {
    color: #fff;
    text-shadow: 0 0 5px #fff, 
                 0 0 10px #fff, 
                 0 0 15px #0073e6, 
                 0 0 20px #0073e6, 
                 0 0 25px #0073e6, 
                 0 0 30px #0073e6, 
                 0 0 35px #0073e6;
    animation: neon-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        text-shadow: 0 0 5px #fff, 
                     0 0 10px #fff, 
                     0 0 15px #0073e6, 
                     0 0 20px #0073e6, 
                     0 0 25px #0073e6, 
                     0 0 30px #0073e6, 
                     0 0 35px #0073e6;
    }
    to {
        text-shadow: 0 0 5px #fff, 
                     0 0 10px #fff, 
                     0 0 15px #0073e6, 
                     0 0 20px #0073e6, 
                     0 0 25px #0073e6;
    }
}

/* Card flip effect */
.card-flip {
    perspective: 1000px;
}

.card-flip:hover .card-inner {
    transform: rotateY(180deg);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.card-back {
    transform: rotateY(180deg);
}

/* Smooth cursor trail effect */
.cursor-trail {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(79, 157, 224, 0.3);
    pointer-events: none;
    animation: fade-trail 1s forwards;
}

@keyframes fade-trail {
    from {
        opacity: 0.5;
        width: 10px;
        height: 10px;
    }
    to {
        opacity: 0;
        width: 30px;
        height: 30px;
    }
} 