/* ============================
   NAVBAR
============================ */
.kortoba-navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(11, 18, 36, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 15px 8%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.navbar-brand h2 {
    color: #f5c542;
    font-size: 24px;
    margin: 0;
}

.navbar-links {
    display: flex;
    align-items: center;
    /* ensures vertical alignment */
    gap: 25px;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-links a:hover {
    color: #f5c542;
}

/* Mobile Hamburger */
.navbar-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.navbar-close {
    display: none;
    /* hidden by default */
}


.btn-highlight {
    position: relative;
    background: #f5c542;
    color: #111 !important;
    font-weight: 700;
    padding: 16px 36px;
    /* more padding for better balance */
    border-radius: 12px;
    overflow: hidden;
    /* contain shine inside */
    animation: pulseGlow 2.5s infinite;
}

/* Glow animation */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0px rgba(245, 197, 66, 0.6);
    }

    50% {
        box-shadow: 0 0 20px rgba(245, 197, 66, 0.9);
    }

    100% {
        box-shadow: 0 0 0px rgba(245, 197, 66, 0.6);
    }
}

/* Shine sweep */
.btn-highlight::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    /* start just outside left */
    width: 50%;
    /* streak width */
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    animation: shineSweep 3s infinite;
}

/* Adjusted sweep so it ends just outside right edge */
@keyframes shineSweep {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}


/* ============================
   RESPONSIVE NAVBAR
============================ */
@media (max-width: 768px) {
    .navbar-close {
        display: block;
        /* show only on mobile */
    }

    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        /* full width */
        background: rgba(11, 18, 36, 0.98);
        flex-direction: column;
        padding: 60px 20px 20px 20px;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 998;
        overflow-y: auto;
    }

    .navbar-links.active {
        right: 0;
    }

    .navbar-toggle {
        display: block;
    }

    /* Close button */
    .navbar-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        color: #fff;
        cursor: pointer;
    }
}

/* Language Switcher */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #f5c542;
}

.lang-btn i:first-child {
    color: #f5c542;
}

.lang-btn i:last-child {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.3s;
}

.language-dropdown:hover .lang-btn i:last-child {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 140px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    visibility: hidden;
    opacity: 0;
    display: block;
    /* Use visibility/opacity for transition */
}

.lang-menu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.language-dropdown:hover .lang-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-menu button:hover {
    background: rgba(245, 197, 66, 0.1);
    color: #f5c542;
}

.lang-menu button.active {
    color: #f5c542;
    background: rgba(245, 197, 66, 0.05);
}

@media (max-width: 768px) {
    .language-dropdown {
        width: 100%;
    }

    .lang-btn {
        width: 100%;
        justify-content: space-between;
        padding: 12px 20px;
    }

    .lang-menu {
        position: static;
        width: 100%;
        margin-top: 10px;
        background: rgba(255, 255, 255, 0.03);
    }

    .language-dropdown:hover .lang-menu {
        display: block;
    }
}