@charset "UTF-8";
/* Import Fonts */
@import url('https://fonts.googleapis.com/css?family=Lato:400,300');

/* General Styles */
/*** Navbar ***/
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, #202129 50%, rgba(255, 255, 255, 0) 100%);
    padding: 0 20px; /* Padding inside the navbar */
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
}

/* Navbar is visible by default on desktop */
.navbar {
    display: flex; /* Show navbar on desktop */
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Constrain width of the navbar to prevent overflow */
    margin: 0 auto; /* Center the navbar */
    width: 100%;
    flex-wrap: wrap; /* Allow wrapping of items on smaller screens */
    list-style: none;
}

/* Nav Item Styling */
.nav-item {
    padding: 10px 15px;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none; /* Remove default underline */
    font-family: "Lato", sans-serif; /* Keep the original font */
    white-space: nowrap; /* Prevent text from wrapping inside the nav items */
    transition: color 0.3s ease, border-bottom 0.3s ease; /* Smooth transition for hover/active states */
}

/* Remove default link styling */
.nav-item a {
    text-decoration: none; /* Remove default underline from links */
    color: white; /* Set default purple link color */
    border-bottom: none; /* No underline in the normal state */
    font-weight: bold;
}

/* Hover Effect */
.nav-item a:hover {
    color: #3EA1C4; /* Hover color: light blue */
}

/* Active Link Styling */
.nav-item.active a {
    color: #3EA1C4; /* Active color: light blue */
    border-bottom: 2px solid #3EA1C4; /* Underline only for the active link */
}

/* Hamburger Button Styles */
.hamburger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 20;
    margin-right: 20px;
    position: absolute;
    top: 20px; /* Adjusted top spacing */
    right: 20px; /* Adjusted right spacing */
}

.hamburger .bar {
    width: 30px;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger Menu (X) Animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px); /* Ensure proper rotation */
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0; /* Hide the middle bar */
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px); /* Ensure proper rotation */
}

/* Navbar hidden by default on mobile */
@media screen and (max-width: 768px) {
    .navbar {
        display: flex;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, opacity 0.5s ease; /* Animation for sliding down and fading */
        flex-direction: column;
    }

    .navbar.active {
        opacity: 1;
        max-height: 500px; /* Set enough height to fit all menu items when fully opened */
    }

    /* Show the hamburger menu only on mobile */
    .hamburger {
        display: flex; /* Show the hamburger only on mobile */
    }

    .nav-item {
        width: 100%; /* Make nav items full width on mobile */
        text-align: left; /* Align text to the left */
        padding: 10px 20px;
        font-size: 1.1rem;
    }

    .navbar-container {
        height: auto; /* Allow flexible height on mobile */
        background-color: #202129;
    }
}

/* Adjust for very small screens */
@media screen and (max-width: 480px) {
    .navbar-container {
        padding: 10px; /* Adjust padding for very small screens */
        background-color: #202129;
    }

    .nav-item {
        font-size: 0.9rem; /* Reduce text size */
    }
}
