/* LOGO EFFECT - PARTICLE SHINE (Nổi bật, sáng tạo, lấp lánh) - IMPROVED HOVER */

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: visible;
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(1.3)
            drop-shadow(0 0 10px rgba(124, 179, 66, 0.5))
            drop-shadow(0 0 10px rgba(239, 83, 80, 0.5));
    transform-origin: center;
    position: relative;
    z-index: 2;
}

/* Shimmer effect - Light sweeping across */
@keyframes logoShimmer {
    0% {
        filter: brightness(1.3)
                drop-shadow(0 0 10px rgba(124, 179, 66, 0.5))
                drop-shadow(0 0 10px rgba(239, 83, 80, 0.5));
    }
    40% {
        filter: brightness(1.5)
                drop-shadow(5px 0 15px rgba(124, 179, 66, 0.8))
                drop-shadow(-5px 0 15px rgba(239, 83, 80, 0.8));
    }
    60% {
        filter: brightness(1.6)
                drop-shadow(0 0 20px rgba(255, 255, 255, 0.6))
                drop-shadow(0 0 20px rgba(124, 179, 66, 0.7));
    }
    100% {
        filter: brightness(1.3)
                drop-shadow(0 0 10px rgba(124, 179, 66, 0.5))
                drop-shadow(0 0 10px rgba(239, 83, 80, 0.5));
    }
}

.logo-img {
    animation: logoShimmer 3s ease-in-out infinite;
}

/* Green particle trail */
.logo::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(124, 179, 66, 0.9), transparent);
    box-shadow: 0 0 15px rgba(124, 179, 66, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: particleGreen 4s ease-in-out infinite;
}

@keyframes particleGreen {
    0%, 100% {
        top: 20%;
        left: -5px;
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        top: 10%;
        left: calc(100% + 5px);
    }
}

/* Red particle trail */
.logo::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(239, 83, 80, 0.9), transparent);
    box-shadow: 0 0 12px rgba(239, 83, 80, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: particleRed 4s ease-in-out infinite 0.5s;
}

@keyframes particleRed {
    0%, 100% {
        bottom: 20%;
        right: -5px;
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        bottom: 10%;
        right: calc(100% + 5px);
    }
}

/* ========== SIMPLE & ELEGANT HOVER ========== */

/* Main logo hover - Simple lift with soft glow */
.logo:hover .logo-img {
    filter: brightness(1.5)
            drop-shadow(0 0 15px rgba(124, 179, 66, 0.7))
            drop-shadow(0 0 15px rgba(239, 83, 80, 0.7))
            drop-shadow(0 5px 20px rgba(0, 0, 0, 0.2)) !important;
    transform: translateY(-5px) scale(1.08) !important;
    animation: none !important;
}

/* Keep particle animation but make it subtle on hover */
.logo:hover::before {
    opacity: 0;
}

.logo:hover::after {
    opacity: 0;
}

/* Footer Logo - Simple elegant style */
.footer-logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: brightness(1.3)
            drop-shadow(0 0 8px rgba(124, 179, 66, 0.5));
    cursor: pointer;
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.12) translateY(-4px);
    filter: brightness(1.5)
            drop-shadow(0 0 18px rgba(124, 179, 66, 0.8))
            drop-shadow(0 5px 20px rgba(0, 0, 0, 0.2));
}

/* Responsive */
@media (max-width: 768px) {
    .logo-img {
        height: 45px;
    }

    .footer-logo-img {
        height: 40px;
    }

    /* Simplify effects on mobile for performance */
    .logo:hover::before {
        box-shadow:
            20px 0 0 2px rgba(124, 179, 66, 0.8),
            -20px 0 0 2px rgba(239, 83, 80, 0.8),
            0 20px 0 2px rgba(124, 179, 66, 0.7),
            0 -20px 0 2px rgba(239, 83, 80, 0.7);
    }

    .logo:hover::after {
        width: 120px;
        height: 120px;
        filter: blur(15px);
    }
}
