/**
 * Custom Enhancements CSS
 * Author: Mohamed Salem SRIDI
 * Version: 2.0
 */

/* ==========================================
   Language Switcher Dropdown
   ========================================== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-toggle {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 1);
    color: #000;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.lang-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.lang-dropdown-toggle .flag {
    font-size: 20px;
}

.lang-dropdown-toggle .arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.lang-dropdown.open .arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 8px 0;
    min-width: 150px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
}

.lang-option:hover {
    background: rgba(0, 0, 0, 0.08);
}

.lang-option.active {
    background: rgba(0, 0, 0, 0.12);
    font-weight: 600;
}

.lang-option .flag {
    font-size: 20px;
}

/* ==========================================
   Client Slider Styles
   ========================================== */
.clients-slider .client-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 10px auto;
    width: 360px;
    height: 196px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clients-slider .client-logo-wrapper {
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.clients-slider .client-logo {
    max-height: 80px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
    display: block;
}

/* Larger logos for specific clients */
.clients-slider .client-logo[alt*="TotalEnergies"],
.clients-slider .client-logo[alt*="Engie"],
.clients-slider .client-logo[alt*="Hermes"] {
    max-height: 90px;
    max-width: 220px;
    object-fit: contain;
}

/* Special adjustment for Loyalcraft */
.clients-slider .client-logo[alt*="Loyalcraft"] {
    max-height: 85px;
    max-width: 210px;
    object-fit: contain;
}

.clients-slider .client-logo[src*=".png"]:not([src=""]),
.clients-slider .client-logo[src*=".jpg"]:not([src=""]),
.clients-slider .client-logo[src*=".jpeg"]:not([src=""]) {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
}

.clients-slider .client-info h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 0;
}

.clients-slider .client-info span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.owl-theme .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.3);
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: #fff;
}

.owl-carousel {
    display: block !important;
}

.owl-stage-outer {
    overflow: visible;
}

/* ==========================================
   Experience Section - Match Education Style
   ========================================== */
.med-work .med-work-item {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.med-work .med-work-item:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-3px);
}

.med-work .med-work-item h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.med-work .med-work-item h4 a {
    color: inherit;
    margin-left: 5px;
}

.med-work .med-work-item .med-eduyear {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 12px;
    display: block;
}

.med-work .med-work-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .lang-dropdown-toggle {
        padding: 6px 12px;
    }
    
    .clients-slider .client-item {
        width: 100%;
        max-width: 360px;
        height: auto;
        min-height: 196px;
    }
}
