/* =========================
   GLOBAL SAFETY FIX
========================= */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

/* =========================
   NAVBAR CONTAINER
========================= */
.navbar {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    font-family: "Georgia", serif;
    max-width: 100%;
    width: 100%;
}

/* prevents flex overflow bugs */
.navbar,
.nav-left,
.nav-links {
    min-width: 0;
}

/* =========================
   LEFT SIDE (LOGO + BRAND)
========================= */
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* LOGO */
.navbar img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    max-width: 100%;
}

.navbar img:hover {
    transform: scale(1.05);
}

/* BRAND TEXT */
.nav-brand {
    font-size: 24px;
    font-weight: bold;
    color: #e7d9b1;
    letter-spacing: 1px;
}

/* =========================
   NAV LINKS
========================= */
.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
    flex-wrap: nowrap;
}

/* LINKS */
.nav-links a {
    text-decoration: none;
    color: #e7d9b1;
    font-size: 17px;
    transition: 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #ffcc00;
    transform: translateY(-2px);
}

/* ICON WRAPPER */
.nav-icon {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* ICONS */
.nav-icon img {
    height: 24px;
    width: auto;
    cursor: pointer;
    opacity: 0.9;
    transition: 0.3s ease;
}

.nav-icon img:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* =========================
   MOBILE FIX
========================= */
@media (max-width: 700px) {

    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .nav-left {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        width: 100%;
        margin-top: 10px;
    }

    .nav-links a {
        font-size: 15px;
        padding: 6px 8px;
        white-space: nowrap;
    }

    .navbar img {
        height: 40px;
    }
}