/**
 * MINEX GROUP COMPANY LIMITED - Logo Animations
 * Based on the official logo: Dark blue gear, gold text, silver arcs, crossed mining tools
 */

/* Logo Container */
.logo-animated {
    width: 70px;
    height: 70px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.logo-animated img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
    transition: all 0.3s ease;
}

/* Logo Animation - Convergence Effect */
.logo-animated {
    animation: logoFadeIn 1s ease-out;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Logo Glow Effect on Hover */
.logo-animated:hover img {
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.6));
    transform: scale(1.05);
}

/* Logo Pulse Animation (for loading states) */
.logo-animated.pulse {
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.6));
    }
}

/* Logo Spin Animation (for special occasions) */
.logo-animated.spin {
    animation: logoSpin 3s linear infinite;
}

@keyframes logoSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Logo Shimmer Effect */
.logo-animated::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(212, 175, 55, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Logo Container with Background Circle (matching gear theme) */
.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container::after {
    content: '';
    position: absolute;
    left: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: gearRotate 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes gearRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Header Logo Size Adjustments */
.main-header .logo-animated {
    width: 60px;
    height: 60px;
}

.main-header.scrolled .logo-animated {
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

/* Footer Logo */
.footer .logo-animated {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

/* Hero Section Large Logo */
.hero-section .logo-animated {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    animation: heroLogoEntrance 1.5s ease-out;
}

@keyframes heroLogoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    60% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Logo Color Overlay Effects (matching brand colors) */
.logo-animated.color-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.1) 0%,
        rgba(26, 45, 92, 0.1) 50%,
        rgba(212, 175, 55, 0.1) 100%
    );
    border-radius: 50%;
    animation: colorPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes colorPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsive Logo Sizes */
@media (max-width: 768px) {
    .logo-animated {
        width: 50px;
        height: 50px;
    }
    
    .main-header .logo-animated {
        width: 45px;
        height: 45px;
    }
    
    .hero-section .logo-animated {
        width: 100px;
        height: 100px;
    }
}
