/* ============================================
   LAYOUT - NAVBAR, FOOTER, GRID
   ============================================ */

/* Navbar */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

nav .logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(to right, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.5px;
    text-shadow: 0 0 15px rgba(0, 212, 212, 0.2);
}

nav .nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav .nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: var(--transition);
    opacity: 0.8;
    position: relative;
}

nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    box-shadow: var(--neon-shadow);
}

nav .nav-links a:hover {
    opacity: 1;
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

nav .nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: var(--transition);
    box-shadow: 0 0 5px rgba(255,255,255,0.2);
}

/* Footer */
footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 30px;
}

/* Responsive Navbar */
@media (max-width: 900px) {
    nav .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.85);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 1000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    nav .nav-links.active {
        transform: translateY(0);
    }
    nav .nav-links a {
        font-size: 1.5rem;
    }
    .hamburger { display: flex; z-index: 1002; }

    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}
