/* SCAM EL ELYON - Custom Styles */

/* Header Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Logos with animations */
.header-logo img,
.mobile-logo img,
.about-logo img {
    max-width: 140px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.header-logo:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Animation des liens du menu */
.main-menu ul li a {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.main-menu ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: left 0.4s ease;
}

.main-menu ul li a:hover::before {
    left: 0;
}

.main-menu ul li a:hover {
    color: #3498db;
    transform: translateY(-2px);
}

/* Animations des réseaux sociaux */
.social-links a,
.th-social a {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.social-links a::before,
.th-social a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.social-links a:hover::before,
.th-social a:hover::before {
    width: 150%;
    height: 150%;
}

.social-links a:hover,
.th-social a:hover {
    color: #3498db;
    transform: translateY(-3px) rotate(360deg);
}

/* Animation du bouton menu mobile */
.th-menu-toggle {
    transition: all 0.3s ease;
}

.th-menu-toggle:hover {
    transform: rotate(90deg);
}

/* Footer Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Footer Styles */
.footer-wrapper.bg-light {
    background-color: #f8f9fa !important;
    border-top: 3px solid #3498db;
}

.footer-wrapper {
    animation: slideInUp 0.8s ease-out;
}

.footer-wrapper .footer-logo {
    max-width: 180px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.footer-wrapper .footer-logo:hover {
    transform: scale(1.05);
}

.footer-wrapper .info-box_text {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease;
}

.footer-wrapper .info-box_text:hover {
    transform: translateX(10px);
}

.footer-wrapper .info-box_text .icon img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(200deg) brightness(104%) contrast(97%);
    width: 20px;
    height: auto;
}

.footer-wrapper .menu li a:hover {
    color: #3498db;
    border-left-color: #3498db;
    padding-left: 25px;
    background: rgba(52, 152, 219, 0.1);
}

.footer-wrapper .th-social.style5 a {
    width: 40px;
    height: 40px;
    background: #3498db;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-wrapper .th-social.style5 a:hover {
    background: #2980b9;
    transform: translateY(-5px) rotate(360deg);
}

/* Unified Alert Styles */
.alert {
    border: none;
    border-radius: 12px;
}

.alert-success {
    background-color: #d4edda !important;
    color: #155724 !important;
}

.alert-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

/* Team Section Styles */
#team-sec .team-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px;
    width: 100%;
}

#team-sec .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

#team-sec .th-team:hover .team-img img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    #team-sec .team-img {
        height: 250px;
    }
    #team-sec .team-card-content .box-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    #team-sec .team-desig {
        font-size: 0.9rem;
    }
}

#team-sec .team-card-content .box-title {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
}

#team-sec .team-card-content .box-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    display: block;
    word-wrap: break-word;
    hyphens: auto;
}

#team-sec .team-card-content .box-title a:hover {
    color: #3498db;
    transition: color 0.3s ease;
}

#team-sec .team-desig {
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-top: 5px;
    min-height: 35px;
    display: flex;
    align-items: center;
}

#team-sec .team-card-content {
    padding: 20px 15px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#team-sec .media-left {
    flex: 1;
}

#team-sec .th-team.team-card.style3 {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

#team-sec .th-team.team-card.style3:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (min-width: 1400px) {
    #team-sec .swiper-slide {
        width: calc(25% - 20px) !important;
        margin-right: 20px;
    }
}


/* Blog Section Hover Fixes */
.blog-card.style2 .box-title .blog-title-link {
    color: #fff !important;
    text-decoration: none;
}

.blog-card.style2 .box-title .blog-title-link:hover {
    color: #e49101 !important; /* Gold hover */
}

.blog-card.style2 .blog-meta a.category {
    color: #fff !important;
}

/* Footer Readability Improvements */
.footer-wrapper.bg-light {
    background-color: #f8f9fa !important; 
}

.footer-wrapper.bg-light .widget_title {
    color: #000000 !important; /* Pure Black titles */
    font-weight: 800;
}

.footer-wrapper.bg-light .about-text,
.footer-wrapper.bg-light .info-box_text p,
.footer-wrapper.bg-light .menu li a {
    color: #000000 !important; /* Pure Black for text/links */
}

.footer-wrapper.bg-light .info-box_link,
.footer-wrapper.bg-light .info-box_link p {
    color: #000000 !important; /* Pure Black */
}

.footer-wrapper.bg-light .info-box_link:hover,
.footer-wrapper.bg-light .menu li a:hover {
    color: var(--theme-color, #e49101) !important;
}

.footer-wrapper.bg-light .icon img {
    filter: brightness(0); /* Black icons */
}

.blog-card.style2 .blog-meta a.category:hover {
    filter: brightness(1.2);
    color: #fff !important;
}

.blog-card.style2 .blog-meta a.date {
    color: #fff !important;
    opacity: 0.8;
}
