/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navbar container */
.navbar {
    background-color: var(--grey-nav);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 75px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ===== Left Side ===== */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    height: 60px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--green-main);
}

/* ===== Right Side ===== */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Donate Button */
.donate-btn {
    background-color: var(--green-main);
    color: white;
    padding: 8px 35px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    height: 38px;
    display: flex;
    align-items: center;
}

.donate-btn:hover {
    background-color: var(--green-dark);
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-trigger {
    height: 38px;
    width: 38px;
    cursor: pointer;
    border-radius: 5px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.lang-trigger:hover {
    transform: scale(1.05);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 10px;
    z-index: 999;
}

.lang-dropdown img {
    width: 36px;
    height: 36px;
    margin: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lang-dropdown img:hover {
    transform: scale(1.1);
}

/* Hamburger */
.hamburger {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    user-select: none;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: var(--grey-nav);
    position: fixed;
    top: 75px;
    right: 0;
    width: 100%;
    padding: 20px;
    z-index: 999;
}

.mobile-menu ul {
    list-style: none;
    width: 100%;
    text-align: center;
    padding: 0;
}

.mobile-menu ul li {
    margin: 10px 0;
}

.mobile-menu ul li a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    font-weight: 500;
}

.mobile-donate {
    margin-top: 15px;
}

/* === Media Queries === */
@media (max-width: 768px) {
    .nav-links,
    .donate-btn {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-menu.show {
        display: flex;
    }
    .navbar {
        justify-content: space-between;
        padding: 0 15px;
    }

    .navbar-left {
        flex: 1;
        justify-content: flex-start;
    }

    .logo {
        height: 60px;
    }

    .navbar-right {
        flex: 1;
        justify-content: flex-end;
        gap: 12px;
    }

    .nav-links,
    .donate-btn {
        display: none;
    }

    /* Base hamburger (already in your file, keep widths you prefer) */
    .hamburger {
        width: 38px;
        height: 38px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px; /* even spacing */
        background: none;
        border: none;
        padding: 0;
    }

    .hamburger span {
        width: 30px; /* you said 30px looks better */
        height: 5px;
        background: #fff;
        border-radius: 3px;
        transition: transform 0.35s ease, opacity 0.35s ease;
    }

    /* === Animation to X === */
    .hamburger.open span:nth-child(1) {
        transform: translateY(11px) rotate(45deg); /* down + rotate */
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0; /* fade middle */
    }
    .hamburger.open span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg); /* up + rotate */
    }

    .mobile-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--grey-nav);
        padding: 20px;
        z-index: 1000;
    }

    .mobile-menu.active {
        display: flex;
    }

    .mobile-menu a {
        color: white;
        font-size: 18px;
        margin-bottom: 15px;
        text-decoration: none;
    }

    .mobile-menu a:hover {
        color: var(--green-main);
    }
}
