:root {
    --gold: #f5c542;
    --gold-light: #ffdb6e;
    --text-light: #fff;
    --text-dim: #ccc;
    --bg-dark: #000;
    --transition: 0.3s ease;
}

/* NAVBAR BASE */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    margin-right: 10px;
}


/* NAVBAR RIGHT CONTAINER */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 35px;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--gold);
}

.nav-item::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--gold);
    transition: width 0.3s ease;
}

/* Desktop Nav Active Glow */
.nav-links a.active-link,
.nav-buttons a.active-link {
    color: var(--gold) !important; /* Text gold */
    text-shadow: 0 0 8px rgba(245, 197, 66, 0.7); /* Soft gold glow */
    background-color: transparent !important; /* Keep background clean */
    box-shadow: none !important; /* Remove button shadow */
    border: none !important; /* Remove any border */
}

/* BUTTON GROUP */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* BUTTONS STYLE */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: var(--transition);
    white-space: nowrap;
}

/* GOLD BUTTON */
.btn-gold {
  background: var(--gold);
    color: #000;
    border: none;
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.4);
}

.btn-gold:hover {
    box-shadow: 0 0 30px rgba(245, 197, 66, 0.7);
}

/* OUTLINE BUTTON */
.btn-outline {
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.5);
}

/* MENU TOGGLE (MOBILE) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle span {
    background: var(--gold);
    height: 3px;
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* FULL SCREEN MOBILE MENU (below navbar) */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: top 0.4s ease, opacity 0.4s ease;
    z-index: 9999;
}

/* Ensure the <nav> element stacks the links vertically one by one */
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Activate mobile menu */
.mobile-menu.active {
    top: 70px;
    opacity: 1;
    pointer-events: auto;
}

/* Nav links base styling */
.mobile-menu nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.8em;
    font-weight: 600;
    text-align: center;

    /* Layout and Transition Styles */
    opacity: 0;
    transform: translateY(-20px);
    transition: transform 0.35s ease, opacity 0.35s ease, background-color 0.3s ease;

    /* Separator Styles */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 40px;
    width: 90%;
    max-width: 350px;
    box-sizing: border-box;
    margin: 0;
    background-color: transparent;
}

/* Active link glow */
.mobile-menu nav a.active-link {
    color: var(--gold) !important; /* Text becomes gold */
    text-shadow: 0 0 10px rgba(245, 197, 66, 0.8); /* Soft gold glow */
    background-color: transparent !important; /* Ensure no background */
    border-radius: 0 !important; /* Remove rounded corners */
    border-color: transparent !important; /* Remove border highlight */
    padding: 15px 40px; /* Keep spacing consistent */
}

/* ------------------------------------- */

/* Remove top border from the very first link */
.mobile-menu nav a:first-child {
    border-top: none;
}

/* Remove bottom border from the very last link */
.mobile-menu nav a:last-child {
    border-bottom: none;
}

/* Nav links animation */
.mobile-menu.active nav a {
    animation: slideFadeFull 0.35s forwards;
    opacity: 1;
    transform: translateY(0);
}

/* Add delay to each link for sequential animation */
.mobile-menu.active nav a:nth-child(1) {
    animation-delay: 0.05s;
}

.mobile-menu.active nav a:nth-child(2) {
    animation-delay: 0.12s;
}

.mobile-menu.active nav a:nth-child(3) {
    animation-delay: 0.19s;
}

.mobile-menu.active nav a:nth-child(4) {
    animation-delay: 0.26s;
}

.mobile-menu.active nav a:nth-child(5) {
    animation-delay: 0.33s;
}

.mobile-menu.active nav a:nth-child(6) {
    animation-delay: 0.40s;
}

.mobile-menu.active nav a:nth-child(7) {
    animation-delay: 0.47s;
}

.mobile-menu.active nav a:nth-child(8) {
    animation-delay: 0.54s;
}

/* Slide + fade animation */
@keyframes slideFadeFull {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effect with soft gold glow */
/* We must ensure this doesn't overwrite the active state */
.mobile-menu nav a:hover {
    color: var(--gold);
    text-shadow: 0 0 15px rgba(245, 197, 66, 0.8);
    border-color: var(--gold);
}

/* Smooth top-down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

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

/* =======================
   LANGUAGE SELECTOR
   ======================= */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #ccc;
    font-size: 1em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.language-selector:hover .lang-current {
    color: #f5c542;
}


.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
}

.arrow-down {
    border: solid #f5c542;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* Dropdown */
.lang-dropdown {
    position: absolute;
    top: 35px;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.lang-dropdown.active {
    display: flex;
    animation: fadeIn 0.2s ease forwards;
}

.lang-dropdown a {
    color: #ccc;
    padding: 10px 15px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95em;
}

.lang-dropdown a:hover {
    color: #f5c542;
    background: rgba(255, 255, 255, 0.05);
}

/* MOBILE LANGUAGE SELECTOR */
.mobile-lang {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 950px) {

    .nav-links,
    .nav-buttons {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar {
        padding: 14px 24px;
    }

    .language-selector {
        display: none;
    }

    .mobile-lang {
        display: flex;
        align-items: center;
    }

    .mobile-lang .lang-current {
        font-size: 0.95em;
    }

    .lang-dropdown {
        right: 0;
        left: auto;
    }
}