/* styles.css */

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    color: white;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    margin-bottom: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 27px;
    font-weight: bolder;
    color: aqua;
}

.navbar-links {
    list-style: none;
    display: flex;
}

.navbar-links li {
    margin-left: 20px;
    position: relative;
}

.navbar-links a {
    color: aqua;
    text-decoration: none;
    font-size: 16px;
    padding: 3px;
    font-weight: bolder;
    transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Link Hover Effects */
.navbar-links a:hover {
    color: #333;
    background-color: #f1c40f;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: transform 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
        flex-direction: column;
        width: 250px;
        background-color: #333;
        position: absolute;
        top: 60px;
        right: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border-radius: 5px;
    }

    .navbar-links.active {
        display: flex;
        animation: slideDown 0.5s ease forwards;
    }

    .navbar-links li {
        margin: 10px 0;
        text-align: center;
    }

    .navbar-links a {
        padding: 15px;
        font-size: 18px;
        width: 100%;
        display: block;
        border-radius: 5px;
        margin-bottom: 5px;
        /* Space between each item */
        background-color: #444;
        /* Background color of the box */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        /* Shadow effect */
    }

    .navbar-links a:hover {
        background-color: #555;
        /* Darker background on hover */
    }

    .menu-toggle {
        display: flex;
    }

    /* Rotate bars into X when active */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}