/* header.css */

html, body {
    padding: 0;
    margin: 0;
}

/* General Reset */
header, nav, ul, li, a {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

header {
    position: sticky;
    top: 0; /* Sticks the header to the top of the viewport */
    z-index: 1000; /* Ensures the header stays above other elements */
    background-color: inherit; /* Keeps the existing background style */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow for elegance */
}

/* Navbar Wrapper */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    /*background: linear-gradient(to bottom left, #d3d3d3, #a9a9a9);*/
    background: rgba(0, 0, 0);    
    color: #fff;
    position: relative;
    z-index: 1000;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #00d4ff;
    text-transform: uppercase;
    cursor: pointer;
}

/* Logo */
.logo img {
    height: 50px;
    width: 50px;
}

/* Desktop Menu */
.menu {
    display: flex;
    gap: 20px;
}

.menu ul {
    display: flex;
    gap: 30px;
}

.menu li a {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.menu li a:hover {
    background-color: rgba(200, 200, 200, 0.2);
}

/* Hamburger Menu for Small Screens */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2000;
}

.hamburger-btn div {
    width: 30px;
    height: 4px;
    background-color: #fff;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 250px;
    height: 100%;
    /*background: linear-gradient(to bottom left, #a9a9a9, #d3d3d3);*/
    background: rgba(0, 0, 0, 0.8);    
    padding: 20px;
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    z-index: 1500;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.sidebar a {
    color: #fff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #888;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .hamburger {
        display: block;
    }
    
    .logo {
        font-family: 'Orbitron', sans-serif;
        font-size: 1rem;
        color: #00d4ff;
        text-transform: uppercase;
        cursor: pointer;
    }    
}

@media (min-width: 769px) {
    .sidebar {
        display: none;
    }

    .overlay {
        display: none;
    }
}
