  /* Navbar Styling */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #181818;
    padding: 15px 30px;
    position: sticky; /* Prevents jumping */
    top: 0;
    z-index: 1000;
}
body.loaded .navbar {
    opacity: 1;
}
.loading .navbar {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    color: white;
    gap: 40px;
  }
  .logo a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center; /* Align items properly */
    gap: 20px;
}

.nav-links li {
    position: relative;
}

/* Normal Navigation Links */
.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s ease-in-out;
    /* padding: 5px 10px; Add some spacing to all links */
}



/* Active Link Indicator */
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #e50914;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}


/* Button */
.nav-btn {
    background: #e50914;
    padding: 8px 15px; /* Adjust padding to make it look proper */
    border-radius: 5px;
    font-weight: bold;
    display: inline-block; /* Ensure it fits properly in nav */
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s ease-in-out;

}

.btn:hover {
    background: #b2070b;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
  }

/* Responsive Navbar */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #181818;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px 0;
        text-align: center;
    }
    .navbar {
                flex-direction: column;    /* Change the hamburger menu to center */
                align-items: center;
            }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }
    .menu-toggle {
                display: block;
                color: white;
                font-size: 28px;
            }

            .nav-links {
                display: none;
                flex-direction: column;
                gap: 10px;
                width: 100%;
                text-align: center;
            }

            .nav-links.active {
                display: flex;
            }

    


}
