
/* Add this new rule */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100vw; /* Changed from 100% to 100vw */
    left: 0; /* Add this */
    right: 0; /* Add this */
    top: 0;
    z-index: 1000;
    box-sizing: border-box; /* Add this */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-left, .nav-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-button {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-button:hover {
    background-color: #3498db;
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-button.active {
    background-color: #3498db;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(52,152,219,0.2);
}

/* Keep the body padding for navbar space */
body {
    padding-top: 80px;
    margin: 0;
}

/* Add mobile responsiveness */
@media screen and (max-width: 768px) {
    .nav-bar {
        padding: 1rem;
        position: relative;
    }
    
    .nav-left, .nav-right {
        gap: 1rem;
        padding: 0;
        justify-content: center;
    }
    
    body {
        padding-top: 0 !important;
    }
}