/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animated Logo Hero Section */

.logo-container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.animated-logo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 100px rgba(31, 143, 255, 0.4),
        inset 0 0 50px rgba(255, 255, 255, 0.1);
    animation: logoFloat 6s ease-in-out infinite,
        logoEntrance 2s ease-out;
    backdrop-filter: blur(8px);
    position: relative;
}

.animated-logo::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            var(--primary-blue),
            var(--primary-black),
            var(--accent-cyan),
            var(--primary-blue));
    animation: logoRotate 10s linear infinite;
    z-index: -1;
    opacity: 0.7;
}

.animated-logo::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 60%, rgba(31, 143, 255, 0.3) 70%, transparent 80%);
    animation: logoRotate 15s linear infinite reverse;
    z-index: -2;
}

/* Floating Particles */

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 12s linear infinite;
    opacity: 0.4;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 0.5s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 1.5s;
    animation-duration: 6s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 2.5s;
    animation-duration: 8s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 3s;
    animation-duration: 7s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 0.8s;
    animation-duration: 9s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: 1.8s;
    animation-duration: 6s;
}

/* Keyframe Animations */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
        filter: blur(20px);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(-90deg);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    25% {
        transform: translateY(-20px) scale(1.02);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }

    75% {
        transform: translateY(-15px) scale(1.02);
    }
}

@keyframes logoGlow {
    0% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
            0 0 100px rgba(31, 143, 255, 0.4),
            inset 0 0 50px rgba(255, 255, 255, 0.1);
    }

    100% {
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4),
            0 0 150px rgba(31, 143, 255, 0.6),
            inset 0 0 80px rgba(255, 255, 255, 0.2);
    }
}

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes titleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-20vh);
        opacity: 0;
    }
}

/* Responsive Design for Logo Hero */
@media (max-width: 768px) {
    .animated-logo {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .animated-logo {
        width: 150px;
        height: 150px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}