/* =========================================
   UNIVERSAL SHARED STYLES
   ========================================= */
* {
    box-sizing: border-box;
}

/* Master Font Style: Locked size to prevent jumping */
.site-logo,
.nav-links-home a, 
.nav-links-internal a, 
.nav-links a {
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px; /* Locked size */
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    line-height: 1; /* Standardizes vertical text space */
}

/* LOGO SPECIFIC: Bold and Full Opacity */
.site-logo {
    font-weight: 700;
    opacity: 1;
}

/* LINKS SPECIFIC: Normal weight and slight transparency */
.nav-links-home a, 
.nav-links-internal a, 
.nav-links a {
    font-weight: normal; 
    opacity: 0.8;
}

.nav-links-home a:hover, 
.nav-links-internal a:hover, 
.nav-links a:hover {
    opacity: 1;
}

/* =========================================
   UNIFIED NAVBAR DIMENSIONS (LOCKED)
   ========================================= */
.navbar1, 
.navbar-internal {
    position: fixed;
    top: 10px;
    left: 50%;
    width: 90%;
    height: 54px; /* LOCKED HEIGHT: Prevents size changes between pages */
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    padding: 0 60px; /* Standardized horizontal padding */
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
}

/* =========================================
   HOME PAGE SPECIFIC LAYOUT
   ========================================= */
.navbar1 {
    justify-content: center;
}

.nav-links-home {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%; 
}

/* =========================================
   INTERNAL PAGE SPECIFIC LAYOUT
   ========================================= */
.navbar-internal {
    justify-content: space-between; 
}

.nav-links-internal {
    display: flex;
    gap: 80px; 
    align-items: center;
}

/* =========================================
   TOGGLES (DESKTOP HIDDEN)
   ========================================= */
.menu-toggle, 
.menu-toggle-inner {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2100;
}

.menu-toggle span, 
.menu-toggle-inner span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s ease;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .navbar1, 
    .navbar-internal {
        position: fixed;
        top: 14px;
        right: 14px;
        left: auto;
        width: auto;
        height: auto; /* Allow mobile to shrink to button size */
        transform: none;
        padding: 0;
        background: none;
        backdrop-filter: none;
        border: none;
        border-radius: 0;
        display: block;
    }

    .navbar-internal .site-logo {
        display: none;
    }

    .menu-toggle, 
    .menu-toggle-inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 50%;
    }

    .menu-toggle span, 
    .menu-toggle-inner span {
        width: 18px;
        margin: 2px 0;
    }

    .nav-links-home, 
    .nav-links-internal {
        position: absolute;
        top: 54px;
        right: 0;
        width: 180px;
        display: none; 
        flex-direction: column;
        align-items: center;
        gap: 0;
        background: rgba(0, 0, 0, 0.88);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 18px;
        padding: 8px 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 2050;
    }

    .nav-links-home.active, 
    .nav-links-internal.active {
        display: flex;
    }

    .nav-links-home a, 
    .nav-links-internal a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links-home a:last-child, 
    .nav-links-internal a:last-child {
        border-bottom: none;
    }

    .menu-toggle.active span:nth-child(1), 
    .menu-toggle-inner.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2), 
    .menu-toggle-inner.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3), 
    .menu-toggle-inner.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

.mobile-only-link {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only-link {
        display: block;
    }
}