/* Language Selector Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Cairo', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3d7eaa 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: relative;
}

body.loaded {
    opacity: 1;
}

.language-selector-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
}

.content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

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

.logo-section {
    margin-bottom: 3rem;
}

.company-name-ar {
    font-family: 'Cairo', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 0.5rem;
    direction: rtl;
}

.company-name-en {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2a5298;
    margin-bottom: 1rem;
}

.tagline-ar {
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
    direction: rtl;
}

.tagline-en {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

.language-selection {
    margin-bottom: 3rem;
}

.selection-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 600;
}

.ar-text {
    font-family: 'Cairo', sans-serif;
    display: block;
    margin-bottom: 0.5rem;
}

.en-text {
    font-family: 'Inter', sans-serif;
    display: block;
    font-size: 1.2rem;
}

.language-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 16px;
}

.language-option:hover::before,
.language-option.suggested::before {
    opacity: 0.05;
}

.language-option:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(30, 60, 114, 0.1);
}

.language-option:hover .language-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

.language-option.suggested {
    border: 2px solid #2a5298;
    box-shadow: 
        0 15px 35px rgba(42, 82, 152, 0.2),
        0 0 0 1px rgba(42, 82, 152, 0.1);
    position: relative;
}

.language-option.suggested::after {
    content: 'Recommended';
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.language-option.arabic {
    direction: rtl;
}

.language-option.english {
    direction: ltr;
}

.language-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    transition: all 0.3s ease;
}

.language-icon i {
    font-size: 1.5rem;
    color: white;
}

.language-info {
    flex: 1;
    text-align: left;
}

.language-option.arabic .language-info {
    text-align: right;
}

.language-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e3c72;
}

.language-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.arrow {
    font-size: 1.2rem;
    color: #2a5298;
    margin: 0 0.5rem;
    transition: transform 0.3s ease;
}

.language-option:hover .arrow {
    transform: translateX(5px);
}

.language-option.arabic:hover .arrow {
    transform: translateX(-5px);
}

.quick-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.info-item i {
    color: #2a5298;
    width: 16px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 2rem;
        margin: 1rem;
    }
    
    .company-name-ar {
        font-size: 2rem;
    }
    
    .company-name-en {
        font-size: 1.5rem;
    }
    
    .language-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .language-option {
        padding: 1.5rem 1rem;
    }
    
    .language-icon {
        width: 50px;
        height: 50px;
    }
    
    .language-icon i {
        font-size: 1.2rem;
    }
    
    .quick-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .company-name-ar {
        font-size: 1.8rem;
    }
    
    .company-name-en {
        font-size: 1.3rem;
    }
    
    .selection-title {
        font-size: 1.2rem;
    }
    
    .language-option {
        padding: 1.2rem 0.8rem;
    }
    
    .language-info h4 {
        font-size: 1.1rem;
    }
    
    .language-info p {
        font-size: 0.8rem;
    }
}

