/* EXTREME Logo Enhancement - Use this when normal enhancements aren't enough */

/* Override header background and fix alignment - COMPACT VERSION */
header {
    background: rgba(0, 20, 40, 0.9) !important;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.6) !important;
    border-bottom: 2px solid rgba(0, 225, 255, 1) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    min-height: auto !important;
}

/* Fix header container layout - REDUCED VERTICAL PADDING */
header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 5px 5% !important;
}

/* Create special container for logo - REDUCED SIZE */
.logo {
    position: relative;
    padding: 2px;
    z-index: 2000;
    transform: scale(1.0);
    flex: 0 0 auto !important;
    margin-right: 15px !important;
}

/* Glowing background aura - REDUCED SIZE */
.logo:before {
    content: "";
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(0, 212, 255, 0.6) 30%,
        rgba(9, 9, 121, 0.4) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    border-radius: 50%;
    animation: pulsateExtreme 2s infinite alternate;
    z-index: -1;
    filter: blur(6px);
}

@keyframes pulsateExtreme {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Mega-enhanced logo styling - COMPACT VERSION */
.logo img {
    width: auto;
    height: 45px !important;
    filter: brightness(2.5) contrast(1.7) drop-shadow(0 0 20px rgba(255, 255, 255, 1)) 
           drop-shadow(0 0 35px rgba(0, 225, 255, 1)) 
           drop-shadow(0 0 50px rgba(41, 180, 255, 1));
    border: 3px solid white;
    border-radius: 12px;
    background-color: rgba(0, 70, 130, 0.9);
    padding: 8px;
    transform: scale(1.05);
    transition: all 0.3s ease;
    animation: logoGlowMega 1.5s infinite alternate;
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.9),
        0 0 50px rgba(0, 200, 255, 0.7),
        0 0 70px rgba(0, 140, 255, 0.5);
}

/* Super-strong glow animation */
@keyframes logoGlowMega {
    0% {
        filter: brightness(2.5) contrast(1.7)
               drop-shadow(0 0 30px rgba(255, 255, 255, 1)) 
               drop-shadow(0 0 50px rgba(0, 225, 255, 1));
        border-color: white;
    }
    50% {
        filter: brightness(2.7) contrast(1.8)
               drop-shadow(0 0 40px rgba(255, 255, 255, 1)) 
               drop-shadow(0 0 60px rgba(0, 225, 255, 1)) 
               drop-shadow(0 0 80px rgba(0, 170, 255, 0.9));
        border-color: rgba(200, 255, 255, 1);
    }
    100% {
        filter: brightness(2.9) contrast(1.9)
               drop-shadow(0 0 50px rgba(255, 255, 255, 1)) 
               drop-shadow(0 0 70px rgba(0, 255, 255, 1)) 
               drop-shadow(0 0 90px rgba(0, 200, 255, 1));
        border-color: white;
    }
}

/* Ultra hover effect - REDUCED */
.logo img:hover {
    filter: brightness(2.7) contrast(1.8) 
           drop-shadow(0 0 35px rgba(255, 255, 255, 1)) 
           drop-shadow(0 0 50px rgba(0, 255, 255, 1)) 
           drop-shadow(0 0 65px rgba(0, 200, 255, 1));
    transform: scale(1.08);
    border-color: white;
    box-shadow: 
        0 0 40px rgba(255, 255, 255, 1),
        0 0 55px rgba(0, 225, 255, 0.9),
        0 0 70px rgba(0, 170, 255, 0.8);
}

/* Add sparkle effect - SMALLER */
.logo:after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: 5px;
    right: 5px;
    box-shadow: 0 0 15px 6px white;
    opacity: 0.7;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* Footer logo styling */
.footer-logo {
    position: relative;
    padding: 5px;
    z-index: 100;
}

.footer-logo:before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(0, 212, 255, 0.5) 30%,
        rgba(9, 9, 121, 0.3) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    border-radius: 50%;
    animation: pulsateExtreme 2.5s infinite alternate;
    z-index: -1;
    filter: blur(6px);
}

.footer-logo img {
    width: 80px;
    height: auto;
    filter: brightness(2.5) contrast(1.7) drop-shadow(0 0 25px rgba(255, 255, 255, 1)) 
           drop-shadow(0 0 40px rgba(0, 225, 255, 1));
    border: 4px solid white;
    border-radius: 15px;
    background-color: rgba(0, 70, 130, 0.9);
    padding: 12px;
    transform: scale(1.1);
    transition: all 0.3s ease;
    animation: logoGlowMega 2s infinite alternate;
    box-shadow: 
        0 0 40px rgba(255, 255, 255, 0.9),
        0 0 60px rgba(0, 200, 255, 0.8);
}

.footer-logo img:hover {
    filter: brightness(2.8) contrast(1.9) 
           drop-shadow(0 0 40px rgba(255, 255, 255, 1)) 
           drop-shadow(0 0 60px rgba(0, 255, 255, 1));
    transform: scale(1.15);
}

/* Navigation styling is now in alignment-fix.css */

/* Make sure particles don't obscure logo */
#particles-canvas,
.particles-js-canvas-el {
    z-index: -5 !important;
}

/* Responsive adjustments - COMPACT */
@media (max-width: 768px) {
    .logo img {
        height: 40px !important;
        padding: 6px;
    }
    
    .footer-logo img {
        padding: 6px;
        width: 50px;
    }
    
    nav ul {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    nav ul li {
        margin: 5px !important;
    }
    
    header .container {
        flex-direction: column !important;
    }
    
    .logo {
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
}