/* Modern Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    max-width: 100%;
    background: rgba(57, 169, 222, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 900px;
}

.navbar.scrolled {
    background: rgba(57, 169, 222, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width:100%;
    padding:0.5rem 1rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #f8f9fa;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(57, 169, 222, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s ease;
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.3rem;
        padding: 15px 0;
    }
}

/* Legacy nav styles for compatibility */
nav {
    z-index: 9;
    text-align: center;
    color: white;
    margin:0px auto;
    display: flex;
    position:fixed;
    width:100%;
}

#main-links {
    background:#39a9de;
    max-width:100%;
    width:900px;
    padding:15px;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.392);
    position:relative;
}

nav a {
    transition: all 0.3s ease;
    display: inline-block;
    color:white;
    text-decoration: none;
}

nav #home {
    font-size:1.5rem;
}

/* hamburger menu
--------------------*/
#burger {
    cursor: pointer;
    float: left;
    margin-right: 20px;
    position: relative;
    margin-top:10px;
    border: none;
    display: none;
}

#burger + label {
    position: absolute;
    top: 15px;
    left: 20px;
    height: 20px;
    width: 18px;
    z-index: 99;
}

#burger + label span {
    position: absolute;
    width: 100%;
    height: 2px;
    top: 50%;
    margin-top: -1px;
    left: 0;
    background: white;
    transition: .5s;
}

#burger + label span:first-child {
    top: 4px;
}

#burger + label span:last-child {
    top: 16px;
}

#burger + label:hover {
    cursor: pointer;
}

#burger:checked + label span {
    opacity: 0;
    top: 50%;
}

#burger:checked + label span:first-child {
    opacity: 1;
    transform: rotate(45deg);
}

#burger:checked + label span:last-child {
    opacity: 1;
    transform: rotate(-45deg);
}

#burger-menu {
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    position:fixed;
    text-align: left;
    height: 100%;
    top:58px;
    overflow-y: scroll;
    z-index: 6;
    margin: 0px;
    width:900px;
    max-width:100%;
    color: white;
    background:white;
    visibility: hidden;
    margin-left:-14px;
}

#burger-menu a {
    color:black;
    transition: all 0.3s;
    display: block;
    padding: 18px;
    transition: .5s;
    transition-delay: 0s;
    opacity: 0;
    width:100%;
}

#burger-menu hr {
    display: none;
    border-bottom: 2px solid gray;
}

nav input:checked ~ #burger-menu {
    opacity: 1;
    visibility: visible;
}
nav input:checked ~ #burger-menu a {
    opacity: 1;
    transition-delay: .0s;
}
