/* ===== Advanced Logo Effects - تأثيرات اللوغو المتقدمة ===== */

/* Premium Logo Container */
.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    text-align: center;
    padding: 25px;
    border-radius: 25px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)),
        radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.8s ease;
    z-index: -1;
}

.logo-container:hover {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)),
        radial-gradient(circle at 70% 70%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-8px) scale(1.02);
}

.logo-container:hover::before {
    transform: rotate(45deg) scale(1.1);
}

/* Enhanced Logo Styling */
.hero-logo,
.demo-logo,
.brochure-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: 
        drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3))
        brightness(1.08)
        contrast(1.12)
        saturate(1.08);
    border-radius: 20px;
    padding: 20px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)),
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-logo:hover,
.demo-logo:hover,
.brochure-logo:hover {
    transform: scale(1.04) translateY(-10px) rotate(1deg);
    filter: 
        drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4))
        brightness(1.12)
        contrast(1.15)
        saturate(1.12);
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.09)),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.12) 0%, transparent 50%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Premium Glow Effects */
.logo-glow,
.demo-logo-glow,
.brochure-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: 
        radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.1) 30%, transparent 60%),
        radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle, rgba(5, 150, 105, 0.1) 0%, transparent 40%);
    border-radius: 50%;
    animation: premiumLogoGlow 5s ease-in-out infinite alternate;
    z-index: -1;
    filter: blur(2px);
}

@keyframes premiumLogoGlow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.85) rotate(0deg);
        filter: blur(2px) hue-rotate(0deg);
    }
    25% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.0) rotate(90deg);
        filter: blur(3px) hue-rotate(90deg);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1) rotate(180deg);
        filter: blur(2px) hue-rotate(180deg);
    }
    75% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.05) rotate(270deg);
        filter: blur(3px) hue-rotate(270deg);
    }
    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.15) rotate(360deg);
        filter: blur(2px) hue-rotate(360deg);
    }
}

/* Premium Navbar Logo */
.navbar-brand img {
    height: 85px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: 
        brightness(1.08)
        contrast(1.12)
        drop-shadow(0 6px 15px rgba(0, 0, 0, 0.25));
    border-radius: 15px;
    padding: 10px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.navbar-brand img:hover {
    transform: scale(1.1) translateY(-5px) rotate(2deg);
    filter: 
        brightness(1.12)
        contrast(1.15)
        drop-shadow(0 12px 25px rgba(0, 0, 0, 0.35));
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)),
        radial-gradient(circle at 70% 70%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Premium Footer Logo */
.footer-logo {
    height: 38px;
    width: auto;
    max-width: 95px;
    object-fit: contain;
    filter: 
        brightness(0.98)
        contrast(1.12)
        drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
    transition: all 0.4s ease;
    border-radius: 10px;
    padding: 6px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo:hover {
    filter: 
        brightness(1.08)
        contrast(1.15)
        drop-shadow(0 6px 15px rgba(0, 0, 0, 0.3));
    transform: scale(1.12) rotate(1deg);
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Logo Loading Animation */
.logo-container {
    animation: premiumLogoContainerEntrance 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes premiumLogoContainerEntrance {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(40px) rotate(-5deg);
        filter: blur(5px);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.85) translateY(20px) rotate(-2deg);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
        filter: blur(0px);
    }
}

/* Enhanced Logo States */
.logo-container:active {
    transform: scale(0.96);
    transition: all 0.1s ease;
}

.logo-container:focus-within {
    outline: 4px solid rgba(37, 99, 235, 0.4);
    outline-offset: 4px;
    box-shadow: 
        0 0 0 8px rgba(37, 99, 235, 0.1),
        0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Logo Quality Enhancement */
.hero-logo,
.demo-logo,
.brochure-logo,
.navbar-brand img,
.footer-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    will-change: transform, filter;
}

/* Responsive Premium Design */
@media (max-width: 768px) {
    .logo-container {
        padding: 20px;
        border-radius: 20px;
    }
    
    .hero-logo,
    .demo-logo,
    .brochure-logo {
        padding: 15px;
        border-radius: 15px;
    }
    
    .navbar-brand img {
        height: 70px;
        max-width: 150px;
        padding: 8px;
        border-radius: 12px;
    }
    
    .footer-logo {
        height: 32px;
        max-width: 80px;
        padding: 5px;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .logo-container {
        padding: 15px;
        border-radius: 15px;
    }
    
    .hero-logo,
    .demo-logo,
    .brochure-logo {
        padding: 12px;
        border-radius: 12px;
    }
    
    .navbar-brand img {
        height: 60px;
        max-width: 130px;
        padding: 6px;
        border-radius: 10px;
    }
    
    .footer-logo {
        height: 28px;
        max-width: 65px;
        padding: 4px;
        border-radius: 6px;
    }
}

/* Premium Logo Interactions */
.navbar-brand:focus-within img {
    animation: logoFocus 0.8s ease-out;
}

@keyframes logoFocus {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15) rotate(3deg);
    }
}

/* Logo Particle Effects */
.logo-container::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(37, 99, 235, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(5, 150, 105, 0.15) 1px, transparent 1px);
    background-size: 25px 25px, 20px 20px, 30px 30px;
    animation: particleFloat 12s linear infinite;
    z-index: -2;
    opacity: 0.3;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.2;
    }
}
