.menu-tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    padding-left: 60px; /* space so tabs aren't covered by header */
    gap: 16px;
}


.menu-tab {
    background: transparent;
    color: #222;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: none;
    transition: none;
    pointer-events: auto;
}

.menu-tab:hover {
    background: #3b3b3b;
    color: #ffffff;
}
body {
    background-color: #1e1e1e;
    color: #ffffff;
}

h1 {
    color: #cfcfcf;
    text-align: center;
    vertical-align: 10%;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 12%;
    height: 48px;
    background: rgb(59, 108, 255);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%); /* right trapezoid */
    display: flex;
    align-items: center;
    padding-left: 10px;
    color: #cfcfcf;
    cursor: pointer;
    transition: all 0.5s ease; /* smooth transition */
    overflow: hidden;
    border-bottom: 2px solid white;
    z-index: 1000;
}

/* LEFT-FACING ARROW */
.arrow {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 12px solid #cfcfcf; /* ◀ */
    margin-right: 10px;
    transition: transform 0.5s ease;
}

/* Rotate arrow when active */
.header.active .arrow {
    transform: rotate(180deg); /* ▶ */
}

/* Shrink header into circle */
.header.collapsed {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding-left: 0;
    clip-path: none;  /* remove trapezoid */
    justify-content: center;
    border-bottom: none;
}

/* Hide text when collapsed */
.header.collapsed p {
    opacity: 0;
    width: 0;
    margin: 0;
    padding: 0;
    transition: opacity 0.3s ease;
}

/* Menu content hidden by default */

.menu-content {
    margin-top: 0;
    margin-left: 10%; /* match header width */
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100vw - 10%);
    height: 48px;
    padding: 0;
    background: #a0a0a0;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-40px);
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1) 0s, opacity 0.5s cubic-bezier(0.4,0,0.2,1) 0s;
    border-bottom: 2px solid white;
}

.menu-content.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0.25s, 0.25s; /* delay both transform and opacity when showing */
}

.home {
    text-align: left;
    margin-top: 50px;
    width: calc(100vw - 10%);
    height: calc(100vw - 10%);
    top: 0;
    left: 0;
}

.gallery {
    top: 0;
    left: 0;
    margin-top: 100px;
    text-align: center;
    width: calc(100vw - 10%);
    height: calc(100vw - 10%);
}
.gallery-item {
    width: 200px;
    height: 200px;
    margin: 10px;
    background-color: #333;
    display: inline-block;
}

/* Prevent clicks on header while animating to avoid race conditions */
.header.animating {
    pointer-events: none;
    opacity: 0.96;
}