@charset "utf-8";
/* CSS Document */

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

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between; /* Space between logo & links */
    align-items: center; /* Centers content vertically */
    background-color: black; /* Black background */
    height: 200px; /* Fixed height */
    border-radius: 15px; /* Rounded corners */
    max-width: 90%; /* Prevents full-width stretch */
    margin: 20px auto; /* Centers navbar horizontally */
    padding: 0 30px; /* Adds left & right padding */
}

/* Logo */
.logo img {
    max-height: 150px; /* Fits within the navbar */
    width: auto;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    justify-content: center; /* Centers the nav items */
    align-items: center;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    text-decoration: none;
    color: white !important;
    font-size: 18px;
    padding: 10px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #00bcd4;
    transform: scale(1.05);
}

/* Active Page Highlight */
.nav-links a.active {
    color: #00bcd4;
    font-weight: bold;
    border-bottom: 2px solid #00bcd4;
}

/* Mobile Navigation (Hamburger Menu) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
}

.menu-toggle div {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto; /* Allow height to adjust on mobile */
        max-width: 100%;
        border-radius: 0; /* Removes rounded corners on mobile */
        padding: 15px 0;
    }

    .logo img {
        max-height: 120px; /* Resize logo for smaller screens */
        margin-bottom: 10px; /* Adds spacing */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 200px;
        left: 0;
        background-color: black;
        text-align: center;
        padding: 15px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 15px 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    /* Animation for Menu Toggle */
    .menu-toggle.open div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.open div:nth-child(2) {
        opacity: 0;
    }

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