/* Hamburger Menu Button */
.menu-toggle {
    position: fixed;
    top: 0;
    left: 5mm;
    z-index: 1001;
    background: rgba(30, 33, 37, 0);
    border: none;
    padding: 20px 10px;
    cursor: pointer;
    transition:
        background 0.3s,
        padding-left 0.3s,
        left 0.3s ease;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 45px;
    height: 55px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s;
    border-radius: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -12.5px;
}

.menu-toggle:hover {
    padding-left: 15px;
}

.menu-toggle:hover span {
    width: 30px;
}

.menu-toggle span:nth-child(1) {
    transform: translateY(-8px);
}

.menu-toggle span:nth-child(2) {
    transform: translateY(0);
}

.menu-toggle span:nth-child(3) {
    transform: translateY(8px);
}

/* X transformation when sidebar is open */
.menu-toggle.shifted span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle.shifted span:nth-child(2) {
    opacity: 0;
    transform: translateY(0);
}

.menu-toggle.shifted span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #0c1016;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    background: rgba(26, 51, 104, 0.6);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 2rem;
    transition: max-width 0.3s ease;
}

header .container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: max-width 0.3s ease;
}

.main-content {
    transition: margin-left 0.3s ease;
}

.sidebar.open ~ .main-content .container {
    max-width: 90%;
}

.sidebar.open ~ .main-content header .container {
    max-width: 100%;
}

.sidebar.open ~ .main-content {
    margin-left: 280px;
}

.sidebar.open ~ .main-content .right-logo {
    margin-left: -280px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: whitesmoke;
    font-family: monospace, serif;
    font-size: 16px;
    text-decoration: none;
    transition:
        background 0.3s,
        padding-left 0.3s;
}

.sidebar-menu a:hover {
    background: #505050;
    padding-left: 2rem;
}

.sidebar-menu a.active {
    background: #5f5f77;
    color: whitesmoke;
    font-weight: 600;
    border-left: 4px solid #2c3e50;
}

.overlay {
    display: none;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    color: #adb4e4;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-family: monospace, serif;
}

.content-section h3 {
    color: #adb4e4;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
