/* Language Selector Styling */
.language-selector-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.language-selector-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
}

.language-selector-header h2 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(to right, #4361ee, #3a0ca3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    line-height: 1.2;
}

.language-selector-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.language-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 900px;
    justify-items: center;
}

.language-btn {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 0;
    text-decoration: none;
    color: #2b2d42;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    height: 220px;
}

.language-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #4361ee, #3a0ca3);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.language-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    color: white;
}

.language-btn:hover:before {
    opacity: 1;
}

.btn-content {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.language-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.language-btn:hover .language-icon {
    transform: scale(1.2);
}

.language-text {
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
}

.language-flag {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.language-btn:hover .language-flag {
    opacity: 1;
    transform: rotate(10deg);
}

.btn-english {
    border-top: 5px solid #3a86ff;
}

.btn-french {
    border-top: 5px solid #0077b6;
}

.btn-spanish {
    border-top: 5px solid #fca311;
}

.btn-german {
    border-top: 5px solid #d00000;
}

.selected-indicator {
    position: absolute;
    bottom: 15px;
    font-size: 0.9rem;
    background: #4cc9f0;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.language-btn:hover .selected-indicator {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet Styles */
@media (max-width: 992px) {
    .language-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .language-selector-header h2 {
        font-size: 2.4rem;
    }
    
    .language-selector-header p {
        font-size: 1.1rem;
    }
    
    .btn-content {
        padding: 25px 20px;
    }
    
    .language-text {
        font-size: 1.3rem;
    }
    
    .language-btn {
        height: 200px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .language-buttons {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .language-selector-header h2 {
        font-size: 2rem;
    }
    
    .language-selector-header {
        margin-bottom: 40px;
    }
    
    .language-selector-container {
        padding: 30px 15px;
    }
    
    .language-text {
        font-size: 1.2rem;
    }
    
    .language-icon {
        font-size: 2.5rem;
    }
    
    .language-btn {
        height: 180px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .language-selector-header h2 {
        font-size: 1.6rem;
    }
    
    .language-selector-header p {
        font-size: 1rem;
    }
    
    .btn-content {
        padding: 20px 15px;
    }
    
    .language-text {
        font-size: 1.1rem;
    }
    
    .language-btn {
        height: 160px;
    }
}

/* Animation for buttons */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-btn {
    animation: fadeInUp 0.6s ease forwards;
}

.language-btn:nth-child(1) { animation-delay: 0.1s; }
.language-btn:nth-child(2) { animation-delay: 0.2s; }
.language-btn:nth-child(3) { animation-delay: 0.3s; }
.language-btn:nth-child(4) { animation-delay: 0.4s; }