/* Languages Section Styling */
.languages-section {
    background: #1e1e1e;
    padding: 40px 0;
}

.languages-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.language-item {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    margin-bottom: 1rem;
}

.language-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0056b3, #4A90E2, #0056b3);
    border-radius: 12px 12px 0 0;
}

.language-item:hover {
    transform: translateY(-2px);
    border-color: #0056b3;
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.15);
}

.language-flag {
    font-size: 2rem;
    margin-right: 15px;
    min-width: 50px;
    text-align: center;
}

.language-info {
    flex-grow: 1;
}

.language-info h3 {
    color: #F0F8FF;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.proficiency-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.proficiency-fill {
    height: 100%;
    background: linear-gradient(135deg, #0056b3, #4A90E2);
    border-radius: 3px;
    transition: width 2s ease-in-out;
    width: 0%;
}

.proficiency-text {
    color: #ccc;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive Logic */
@media (max-width: 1024px) {
    .languages-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .languages-container { gap: 12px; }
    .language-item { padding: 15px; min-height: 70px; }
    .language-flag { font-size: 1.8rem; margin-right: 12px; min-width: 45px; }
    .language-info h3 { font-size: 1rem; }
}

/* Light Mode */
@media (prefers-color-scheme: light) {
    .languages-section { background: #f0f0f0; }
    .language-item {
        background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
        border: 1px solid #ddd;
    }
    .language-info h3 { color: #333; }
    .proficiency-text { color: #666; }
    .proficiency-bar { background: rgba(0, 0, 0, 0.1); }
}