/* تحسينات CSS لموقع Linko */

/* تحسين مظهر أزرار تبديل اللغة */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.language-switcher:hover {
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.lang-btn {
    padding: 8px 15px;
    background-color: rgba(0, 91, 159, 0.2);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background-color: rgba(0, 91, 159, 0.5);
    transform: translateY(-2px);
}

.lang-btn.active {
    background-color: rgba(0, 91, 159, 0.9);
    box-shadow: 0 0 10px rgba(0, 176, 255, 0.5);
}

/* تحسين تأثيرات تبديل اللغة */
.language-transition {
    animation: fadeTransition 0.5s ease;
}

@keyframes fadeTransition {
    0% { opacity: 0.7; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

/* تحسين مظهر الشعار */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.logo img {
    height: 70px; /* زيادة حجم الشعار */
    width: auto;
    filter: drop-shadow(0 0 12px rgba(0, 176, 255, 0.7));
    transition: all 0.3s ease;
    animation: logoGlow 3s infinite alternate;
}

.logo img:hover {
    filter: drop-shadow(0 0 15px rgba(0, 176, 255, 0.9));
    transform: scale(1.08);
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 8px rgba(0, 176, 255, 0.5)); }
    100% { filter: drop-shadow(0 0 15px rgba(0, 176, 255, 0.8)); }
}

.footer-logo img {
    height: 80px; /* زيادة حجم الشعار في التذييل */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 176, 255, 0.6));
}

/* تحسين تباين الألوان للنصوص */
p, h3, label {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* تحسين مظهر النماذج */
.form-group input, .form-group textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 91, 159, 0.3);
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: rgba(0, 176, 255, 0.6);
    box-shadow: 0 0 8px rgba(0, 176, 255, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.2);
    outline: none;
}

/* تحسين مظهر الأزرار */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #005b9f;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 91, 159, 0.3);
}

.btn:hover {
    background-color: #0077cc;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 91, 159, 0.5);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 91, 159, 0.4);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* تحسين تأثيرات الحركة */
.service-card, .solution-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.service-card:hover, .solution-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* تحسين أبعاد القائمة كما طلب المستخدم */
nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

nav ul li {
    margin-left: 0;
    padding: 5px 0;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: block;
}

nav ul li a:hover {
    color: #ffffff;
    background-color: rgba(0, 91, 159, 0.5);
    transform: translateY(-2px);
}

/* تحسين أزرار التواصل */
.contact-btn {
    font-size: 18px;
    padding: 14px 35px;
    background-color: #0077cc;
    box-shadow: 0 5px 15px rgba(0, 119, 204, 0.4);
    margin-top: 10px;
}

.submit-btn {
    width: 100%;
    font-size: 16px;
    padding: 14px;
    background-color: #0077cc;
}

/* تصميم قسم الشركاء */
.partners {
    padding: 80px 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.partners-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: #e0e0e0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.partner-card {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 350px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 91, 159, 0.3);
}

.partner-logo {
    margin-bottom: 20px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo img {
    filter: drop-shadow(0 0 8px rgba(0, 176, 255, 0.4));
}

.partner-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.partner-card p {
    color: #e0e0e0;
}

/* تحسين التوافق مع الأجهزة المحمولة */
@media (max-width: 768px) {
    /* تحسين هيكل الصفحة للأجهزة المحمولة */
    .container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* تحسين العناوين والنصوص */
    h1 {
        font-size: 28px !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    h2 {
        font-size: 24px !important;
        margin-bottom: 20px;
    }
    
    h3 {
        font-size: 18px !important;
    }
    
    p {
        font-size: 14px !important;
        line-height: 1.5;
    }
    
    /* تحسين الأقسام */
    section {
        padding: 40px 0 !important;
    }
    
    /* تحسين البطاقات */
    .service-card, .solution-card, .partner-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .service-card:hover, .solution-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    /* تحسين الشبكات */
    .services-grid, .solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* تحسين قسم من نحن */
    .about-content {
        flex-direction: column-reverse;
    }
    
    .about-image {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .about-image img {
        max-width: 200px;
    }
    
    /* تحسين قسم التواصل */
    .contact-content {
        flex-direction: column;
    }
    
    .contact-form {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .contact-info {
        width: 100%;
    }
    
    /* تحسين تذييل الصفحة */
    .footer {
        padding: 30px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
    
    .footer-links, .footer-contact {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* تحسين أزرار التواصل */
    .contact-btn {
        font-size: 16px;
        padding: 12px 25px;
        display: block;
        margin: 20px auto 0;
        text-align: center;
    }
    
    /* تحسين نموذج التواصل */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .form-group input, .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    /* تحسين مظهر الشعار على الأجهزة المحمولة */
    .logo {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1002;
        margin-right: 0;
    }
    
    .logo img {
        height: 55px;
        width: auto;
    }
}

/* تحسينات إضافية للأجهزة الصغيرة جداً */
@media (max-width: 480px) {
    h1 {
        font-size: 24px !important;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .service-card, .solution-card, .partner-card {
        padding: 15px;
    }
    
    .partner-logo {
        height: 80px;
    }
    
    /* تحسين مظهر الشعار على الأجهزة الصغيرة جداً */
    .logo img {
        height: 50px;
    }
}
