
header{
    position: fixed;
    top: 0;
    background-color: #ffffff00;
    backdrop-filter: blur(10px);
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 1000;
}
header .container{padding: 0;}
header a{
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav{
    display: flex;
    gap: 20px;
}
.nav a:hover,
.nav a.active{
    color: var(--primary);
}
/* Header color change when in about section */
header.header-dark a{
    color: #0c0c0c;
}
header.header-dark .mobile-menu-toggle{
    color: #0c0c0c;
}

.header-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}


/* Mobile Header */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    text-align: center;
}

.mobile-sidebar-nav a {
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.15);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.mobile-sidebar-nav a:hover,
.mobile-sidebar-nav a.active,
.mobile-sidebar.dark .mobile-sidebar-nav a:hover,
.mobile-sidebar.dark .mobile-sidebar-nav a.active{
    transform: translateY(-2px);
    color: #ff0000;
    text-decoration: none;
}
.mobile-sidebar-close:hover,
.mobile-sidebar.dark .mobile-sidebar-close:hover{
    color: #ff0000;
}

.mobile-sidebar-close {
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Mobile Sidebar Dark Mode */
.mobile-sidebar.dark {
    background: rgb(238 238 238 / 16%);
}

.mobile-sidebar.dark .mobile-sidebar-nav a {
    color: #333;
}

.mobile-sidebar.dark .mobile-sidebar-close {
    color: #333;
}

@media (max-width: 840px) {
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 16px;
    }
    
    /* Hide desktop navigation */
    .nav {
        display: none !important;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }
}
@media (max-width: 480px) {
    .header-content {
        padding: 15px 16px;
    }
    
    .mobile-menu-toggle {
        font-size: 1.3rem;
    }
}