/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

/* Nav container */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1001;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

/* Hire button */
.hire-btn {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    display: inline-block;
}

.hire-btn:hover,
.hire-btn:focus {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Mobile menu button (hamburger) */
.mobile-menu-btn {
    display: none; /* hidden by default on desktop */
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
    z-index: 1001;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}


/* Mobile menu overlay */
.nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: fadeIn 0.3s ease-in-out;
    z-index: 999;
}

.nav-links.mobile-active a {
    font-size: 1.5rem;
}

/* Close button for mobile menu */
.close-menu {
    display: none;
    position: fixed; /* always top-right */
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002;
}

.nav-links.mobile-active .close-menu {
    display: block;
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none !important; /* hide hamburger on large screens */
    }

    .nav-links {
        display: flex !important; /* show desktop nav links */
        flex-direction: row;
        position: static;
        height: auto;
        background: none;
        align-items: center;
        justify-content: flex-end;
    }

    .close-menu {
        display: none !important;
    }
}


/* Responsive media queries */

/* Tablets & small desktops */
@media (max-width: 991px) {
    .nav-links {
        display: none; /* hide nav links by default on mobile */
    }

     .mobile-menu-btn {
        display: block; /* show hamburger */
    }
}

/* Extra small screens (mobiles) */
@media (max-width: 480px) {
    .header {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hire-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .mobile-menu-btn {
        font-size: 1.3rem;
    }

    .nav-links.mobile-active a {
        font-size: 1.3rem;
    }
}

/* Animation for mobile menu */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
