/* استایل‌های لوگوها */

/* لوگوی اصلی - بین هدر و فرم */
.main-logo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.main-logo {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoFloat 3s ease-in-out infinite, logoEntrance 1s ease-out;
}

.main-logo-container:hover .main-logo {
    transform: scale(1.05) translateY(-5px);
}

.main-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, 
        rgba(204, 110, 32, 0.4) 0%, 
        rgba(6, 120, 131, 0.12) 50%, 
        transparent 80%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    animation: glowPulse 3s ease-in-out infinite;
}

.main-logo-container:hover .main-logo-glow {
    opacity: 1;
}

.main-logo-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.15) 50%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    animation: shineSweep 4s ease-in-out infinite;
}

.main-logo-container:hover .main-logo-shine {
    opacity: 1;
}

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes shineSweep {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(0%) translateY(0%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* لوگوهای همکاران - پایین فرم */
.partner-logos-below-form {
    position: relative;
}

.partner-logo-item-below {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    animation: partnerLogoEntrance 0.8s ease-out backwards;
    cursor: pointer;
}

.partner-logo-item-below:nth-child(1) {
    animation-delay: 0.1s;
}

.partner-logo-item-below:nth-child(2) {
    animation-delay: 0.3s;
}

.partner-logo-item-below:nth-child(3) {
    animation-delay: 0.5s;
}

.partner-logo-img-below {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-logo-item-below:hover .partner-logo-img-below {
    transform: scale(1.15) translateY(-5px);
}

.logo-glow-below {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, 
        rgba(204, 110, 32, 0.3) 0%, 
        rgba(6, 120, 131, 0.2) 50%, 
        transparent 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.partner-logo-item-below:hover .logo-glow-below {
    opacity: 1;
    animation: logoGlowPulse 2s ease-in-out infinite;
}

@keyframes partnerLogoEntrance {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes logoGlowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}


@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* لوگوهای همکاران - زیر جوایز (موبایل) */
.partner-logos-mobile {
    max-width: 100%;
    margin: 0 auto;
}

.partner-logo-item-mobile {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    animation: partnerLogoMobileEntrance 0.6s ease-out backwards;
    cursor: pointer;
}

.partner-logo-item-mobile:nth-child(1) {
    animation-delay: 0.1s;
}

.partner-logo-item-mobile:nth-child(2) {
    animation-delay: 0.3s;
}

.partner-logo-item-mobile:nth-child(3) {
    animation-delay: 0.5s;
}

.partner-logo-img-mobile {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-logo-item-mobile:hover .partner-logo-img-mobile {
    transform: scale(1.15) translateY(-5px);
}

.partner-logo-item-mobile:active .partner-logo-img-mobile {
    transform: scale(0.95);
}

.logo-glow-mobile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, 
        rgba(204, 110, 32, 0.25) 0%, 
        rgba(6, 120, 131, 0.15) 50%, 
        transparent 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.partner-logo-item-mobile:hover .logo-glow-mobile {
    opacity: 0.6;
    animation: logoGlowPulseMobile 2s ease-in-out infinite;
}

@keyframes partnerLogoMobileEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoGlowPulseMobile {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ریسپانسیو */
@media (max-width: 640px) {
    /* بهینه‌سازی عملکرد برای موبایل - جلوگیری از لرزش */
    .main-logo-container {
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    .main-logo {
        max-height: 100px;
        will-change: transform;
        transform: translateZ(0);
        /* غیرفعال کردن انیمیشن float در موبایل */
        animation: logoEntrance 1s ease-out !important;
    }
    
    .main-logo-container:hover .main-logo {
        transform: translateZ(0) scale(1);
    }
    
    /* غیرفعال کردن انیمیشن‌های infinite در موبایل */
    .main-logo-glow {
        animation: none !important;
        opacity: 0.3 !important;
    }
    
    .main-logo-shine {
        animation: none !important;
        opacity: 0 !important;
    }
    
    .main-logo-container:hover .main-logo-glow {
        opacity: 0.3 !important;
        animation: none !important;
    }
    
    .main-logo-container:hover .main-logo-shine {
        opacity: 0 !important;
    }
    
    .partner-logo-item-below {
        will-change: transform;
        transform: translateZ(0);
    }
    
    .partner-logo-img-below {
        max-height: 60px;
        will-change: transform;
        transform: translateZ(0);
    }
    
    .partner-logo-item-below:hover .partner-logo-img-below {
        transform: translateZ(0) scale(1);
    }
    
    .logo-glow-below {
        animation: none !important;
    }
    
    .partner-logo-item-below:hover .logo-glow-below {
        animation: none !important;
        opacity: 0.4 !important;
    }
}

@media (min-width: 641px) {
    .main-logo {
        max-height: 140px;
    }
    
    .partner-logo-img-below {
        max-height: 90px;
    }
}

/* بهینه‌سازی برای موبایل - اندازه متوسط */
@media (max-width: 768px) and (min-width: 641px) {
    .main-logo {
        animation: logoEntrance 1s ease-out !important;
    }
    
    .main-logo-glow {
        animation: none !important;
        opacity: 0.4 !important;
    }
    
    .main-logo-shine {
        animation: none !important;
    }
    
    .partner-logo-item-below:hover .partner-logo-img-below {
        transform: scale(1.05) translateY(-2px);
    }
}


