#hamburger {
    position: fixed;
    top: 35px;
    left: 20px;
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 10000;
}

#hamburger span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

#hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

#hamburger.active span:nth-child(2) {
    opacity: 0;
}

#hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* SIDE MENU */
#side-menu {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 300px;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 10px 20px 20px 20px;
    transition: transform 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

#side-menu.open {
    transform: translateX(0);
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    padding-left: 15px;
}

#side-menu a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    transition: 0.2s;
}

#side-menu a:hover {
    color: #aaa;
}

/* SOCIALS */
#menu-socials {
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

#menu-socials img {
    width: 48px;
    opacity: 0.8;
    transition: 0.2s;
}

#menu-socials img:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* OVERLAY (DEDUPED) */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 9998;
}

#menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* MENU TITLE (MERGED CLEAN VERSION) */
#menu-title {
    font-size: clamp(36px, 4vw, 60px);
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: white;

    margin: 0 40px 40px 0;
    padding-left: 40px;

    text-align: left;
    white-space: nowrap;
}

/* MENU ITEMS */
.menu-item {
    position: relative;
}

/* SUBMENU */
.submenu {
    display: none;
}

.menu-item:hover .submenu {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
}

.submenu a {
    font-size: 16px;
    opacity: 0.85;
}

.submenu a:hover {
    opacity: 1;
    color: #fff;
}

.menu-item.open .submenu {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
}

.submenu-toggle {
    color: white;
    text-decoration: none;
    font-size: 22px;
    display: block;
}

/* FLYOUT */
#flyout-menu {
    position: fixed;
    left: 0;
    top: 0;

    width: 260px;
    min-width: 200px;

    height: auto;
    min-height: 120px;
    max-height: calc(100vh - 40px);

    overflow-y: auto;
    overflow-x: hidden;

    font-family: Arial, sans-serif;
    font-size: 16px;
    color: white;
    background: rgba(0,0,0,0.9);

    padding: 10px;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 6px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.2s ease;

    align-items: stretch;
    border-radius: 0 14px 14px 0;
}

#flyout-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

#flyout-menu > * {
    width: 100%;
}

#flyout-menu a {
    position: relative;
    color: inherit;
    text-decoration: none;

    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    text-align: center;

    column-gap: 12px;
    padding: 6px 8px;

    width: 100%;
    box-sizing: border-box;
}

#flyout-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.flyout-title {
    text-align: left;
    font-size: 20px;
    padding: 6px 10px;
    opacity: 0.8;
}

.flyout-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    align-self: center;
    padding: 5px;
    flex-shrink: 0;
}

.flyout-text {
    grid-column: 2;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    text-align: center;

    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;

    line-height: 1.2;

    pointer-events: none;
}