/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* Navbar Styles */
nav {
    background: rgb(10, 10, 10, 0.9);
    color: white;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top:0;
    width: 100%;
    z-index: 10;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

nav .logo {
    font-size: 24px;
    font-weight: bold;
    color: red;
}

/* Navbar Links */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li {
    font-size: 16px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

/* Red color hover effect */
nav ul li a:hover {
    color: red !important; /* Change text color to red on hover */
}

/* Toggle Button (for Mobile) */
#menu-toggle {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

#menu-toggle span {
    display: block;
    height: 3px;
    background-color: white;
    transition: transform 0.3s, opacity 0.3s;
}

/* Mobile View */
@media (max-width: 768px) {
    #menu-toggle {
        display: flex; /* Show the toggle button on mobile */
    }

    nav ul {
        display: none; /* Initially hide the menu on mobile */
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: rgb(10, 10, 10, 0.95);
        width: 100%;
        padding: 10px 0;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    }

    nav ul.visible {
        display: flex; /* Show the menu when toggled */
    }

    nav ul li {
        text-align: center;
        padding: 10px 0;
    }

    #menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
