/* Language Toggle Styles */

.language-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 25px;
    color: #94A3B8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: linear-gradient(135deg, #00CED1 0%, #00ACC1 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 206, 209, 0.3);
}

.lang-text {
    font-weight: 700;
    font-size: 15px;
}

.lang-full {
    display: none;
}

/* Show full text on hover/larger screens */
@media (min-width: 768px) {
    .language-toggle:hover .lang-full {
        display: inline;
    }

    .language-toggle:hover .lang-btn {
        padding: 10px 20px;
    }
}

/* Mobile positioning */
@media (max-width: 768px) {
    .language-toggle {
        top: auto;
        bottom: 100px;
        right: 15px;
        padding: 4px;
        z-index: 10000;
    }

    .lang-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .lang-text {
        font-size: 14px;
    }
}

/* Animation on language change */
@keyframes langSwitch {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.lang-btn.active {
    animation: langSwitch 0.3s ease;
}

/* RTL support for Hindi (optional) */
[lang="hi"] {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Increase line-height for Hindi text */
[lang="hi"] body {
    line-height: 1.8;
}

[lang="hi"] p,
[lang="hi"] li,
[lang="hi"] span {
    line-height: 1.7;
}