
/* =========================
   NAVIGATION SYSTEM (SIGNATURE)
========================= */

nav {
    height: 80px;
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);

    z-index: 9999;
}

/* =========================
   LEFT (BRAND)
========================= */

.nav-left .brand {
    display: flex;
    align-items: center;
    gap: 10px;

    
    letter-spacing: 1px;
}

.nav-logo {
    height: 60px;   /* safe upscale from 28px */
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* =========================
   CENTER (DESKTOP CORE)
========================= */

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 28px;

    align-items: center;
}

/* nav links */
nav a {
    color: var(--text);
    font-size: 0.95rem;
    letter-spacing: 0.2px;

    position: relative;
    padding: 6px 0;

    transition: transform 0.25s var(--ease-out),
                opacity 0.25s var(--ease-out);
}

/* hover feel = precision movement */
nav a:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* active state */
nav a.active {
    font-weight: 600;
}

/* subtle underline system */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 0%;
    height: 1px;

    background: rgba(255,255,255,0.25);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* =========================
   RIGHT (TOOLS)
========================= */

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* reset buttons */
.lang-btn,
.hamburger {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;

    font-size: 18px;

    transition: var(--transition);
}

.lang-btn:hover,
.hamburger:hover {
    opacity: 0.7;
}

/* hamburger hidden desktop */
.hamburger {
    display: none;
}

/* =========================
   LANGUAGE MENU (CLEAN POPUP)
========================= */

.lang-menu {
    display: none;

    position: absolute;
    right: 10px;
    top: 60px;

    background: rgba(17,17,17,0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;

    padding: 10px;

    flex-direction: column;
    gap: 8px;

    min-width: 120px;
    z-index: 10000;
}

.lang-menu.open {
    display: flex;
}

/* =========================
   MOBILE NAV SYSTEM
========================= */

@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

    .nav-center {
        display: none;
    }

    /* dropdown when open */
    body.nav-open .nav-center {
        display: flex;

        position: absolute;
        top: 70px;
        right: 18px;

        flex-direction: column;
        gap: 12px;

        background: rgba(17,17,17,0.95);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;

        padding: 14px;
        min-width: 200px;

        backdrop-filter: blur(10px);
    }

    .nav-right {
        gap: 10px;
    }
}

/* smoother perceived nav presence */
nav {
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* subtle hover calmness */
nav a:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

/* =========================
   FINAL NAV STABILITY PASS
========================= */

nav {
    box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

/* ensure no jitter on hover */
nav a {
    transform: none !important;
}

/* keep interaction subtle */
nav a:hover {
    transform: none;
    opacity: 0.78;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px 25px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);

    z-index: 9999;
}

/* IMPORTANT: center alignment stability */
.nav-center {
    display: flex;
    gap: 24px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* right side always pinned */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* mobile */
@media (max-width: 768px) {

    .nav-center {
        display: none;
        position: absolute;
        top: 70px;
        right: 20px;
        left: auto;
        transform: none;

        flex-direction: column;
        background: rgba(17,17,17,0.95);
        border: 1px solid #2a2a2a;
        padding: 14px;
        border-radius: 12px;
    }

    nav.menu-open .nav-center {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}
.secondary-nav {
    position: fixed;
    top: 70px;
    right: 20px;

    width: 220px;

    background: rgba(17,17,17,0.95);
    border: 1px solid #2a2a2a;
    border-radius: 12px;

    padding: 12px;

    display: none;
    flex-direction: column;
    gap: 10px;

    z-index: 9999;
}

.secondary-nav a {
    color: white;
    font-size: 14px;
    opacity: 0.85;
}

.secondary-nav a:hover {
    opacity: 1;
}

.secondary-title {
    font-size: 12px;
    opacity: 0.5;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* OPEN STATE (we will toggle later with JS) */
/*nav.secondary-open .secondary-nav {
    display: flex;
}*/
.site-footer {
    margin-top: 6rem;
    padding: 4rem 2rem 2rem;

    border-top: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(to bottom, rgba(10,10,10,1), rgba(8,8,8,1));

    color: rgba(255,255,255,0.75);
}

/* GRID LAYOUT */
.footer-grid {
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

/* BRAND BLOCK */
.footer-grid strong {
    font-size: 1rem;
    letter-spacing: 1px;
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-grid p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 280px;
}

/* LINKS */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: 0.2s ease;
    border-bottom: none;
}

.footer-links a:hover {
    color: white;
    transform: translateX(2px);
}

/* COPYRIGHT */
.site-footer > div:last-child {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* MOBILE */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }
}
.secondary-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s ease;
}

.secondary-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}
.secondary-nav {
    position: absolute;
    top: 70px;
    right: 20px;

    width: 220px;

    background: rgba(15,15,15,0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;

    padding: 14px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;

    transition: 0.2s ease;

    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
nav.secondary-open .secondary-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.section-divider {
    height: 1px;
    width: 100%;
    background: rgba(255,255,255,0.08);
    margin: var(--space-6) 0;
}
.site-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-6) var(--space-4);
    margin-top: var(--space-7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-5);
    max-width: 1100px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.75;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    margin-top: var(--space-5);
    opacity: 0.5;
    font-size: 0.85rem;
}