header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 50px;
    background: rgba(60, 47, 47, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

body.dark header {
    background: rgba(26, 26, 26, 0.2);
}

header img#logo {
    height: 50px;
    transition: transform 0.3s ease;
}

header img#logo:hover {
    transform: scale(1.1);
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    z-index: 1003;
}

nav a {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    font-weight: 600;
    text-align: center;
}

body.light nav a {
    color: #f5e8c7;
}

body.dark nav a {
    color: #fdfdfd;
}

nav a:hover {
    background: #ffcd00;
    color: #ffffff;
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: rgba(60, 47, 47, 0.66);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

body.dark .dropdown-content {
    background: rgba(26, 26, 26, 0.7);
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
}

.dropdown-content a:hover {
    background: #ffcd00;
    color: #ffffff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.mobile-hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    background: linear-gradient(135deg, #ffcd00, #77450f);
    color: #1a1a1a;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse 2s infinite;
    z-index: 10002;
}

.mobile-hamburger:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s, transform 0.3s;
}

body.light .theme-toggle {
    color: #f5e8c7;
}

body.dark .theme-toggle {
    color: #ffcd00;
}

.theme-toggle:hover {
    transform: scale(1.2);
}

.mobile-theme-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px 15px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

body.light .mobile-theme-toggle {
    color: #f5e8c7;
}

body.dark .mobile-theme-toggle {
    color: #fdfdfd;
}

.mobile-theme-toggle:hover {
    background: #ffcd00;
    color: #ffffff;
}

.mobile-logo {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

.mobile-logo img {
    height: 50px;
}

@media (max-width: 768px) {
    header {
        display: contents;
    }

header img#logo {
        display: none;
    }

    .mobile-hamburger {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
    }

    nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 310px;
        height: 100%;
        background: rgb(60 47 47 / 10%);
        backdrop-filter: blur(5px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px 0 0 10px;
        padding: 100px 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 10001;
    }

    nav.active {
        display: flex;
        transform: translateX(0);
        opacity: 1;
        animation: slideInRight 0.3s ease forwards;
		flex-direction: column;
        align-items: flex-start;
    }

    nav:not(.active) {
        transform: translateX(100%);
        opacity: 0;
        animation: slideOutRight 0.3s ease forwards;
    }

    body.dark nav {
        background: rgb(192 138 0 / 10%);
    }

    nav a {
        font-size: 1.2em;
        padding: 12px 20px;
        width: 100%;
        text-align: left;
        border-radius: 10px;
        background: linear-gradient(135deg, #ffcd00, #77450f);
        color: #1a1a1a;
        margin-bottom: 10px;
        transition: transform 0.3s, box-shadow 0.3s;
        box-sizing: border-box;
    }

    nav a:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
        filter: brightness(1.2);
    }

    .dropdown-content {
        position: static;
		margin-top: 20px;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        box-shadow: none;
        padding-left: 10px;
        padding-right: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: block;
    }

    .dropdown-content.active {
        max-height: 200px;
    }

    .dropdown-content a {
        padding: 10px 15px;
        font-size: 1em;
        background: none;
        color: #f5e8c7;
    }

    .dropdown-content a:hover {
        background: #ffcd00;
        color: #1a1a1a;
    }

    .theme-toggle {
        display: none;
    }

    .mobile-theme-toggle {
        display: block;
        margin-top: 20px;
        width: 100%;
        text-align: left;
        padding: 12px 20px;
        font-size: 1em;
        border-radius: 10px;
        background: linear-gradient(135deg, #ffcd00, #77450f);
        color: #1a1a1a;
        transition: transform 0.3s, box-shadow 0.3s;
        box-sizing: border-box;
    }

    .mobile-theme-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    }

    .mobile-logo {
        display: block;
    }
}

@media (max-width: 480px) {
    nav {
        width: 240px;
    }

    nav a {
        font-size: 1.1em;
        padding: 10px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-theme-toggle {
        padding: 10px 20px;
        width: 100%;
        box-sizing: border-box;
    }
}