html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', 'Open Sans', sans-serif;
    background: #fafafa;
}

#outer-container {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Sidebar ── */
.sidenav {
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #A5BAE0;
    overflow-x: hidden;
    padding-top: 20px;
}

.sidenav a {
    padding: 6px 8px;
    text-decoration: none;
    font-size: 18px;
    text-transform: uppercase;
    color: #ffffff;
    display: block;
    text-align: center;
}

.sidenav a:hover {
    color: #9C76C8;
}

.propic {
    margin-top: 25px;
    margin-left: 50px;
    margin-bottom: 25px;
    height: 150px;
    width: 150px;
    border-radius: 50%;
    overflow: hidden;
}

.propic img {
    height: 100%;
    object-position: 50% 50%;
    transform: scale(1.61) translate(15%, 15%) rotate(0.22rad); /* do not touch */
}

.name {
    font-family: 'Open Sans', sans-serif;
    margin-top: 10px;
    padding: 6px 8px 6px 30px;
    font-size: 24px;
    color: #ffffff;
    text-align: center;
}

.email {
    font-family: 'Consolas', 'Menlo', 'Monaco', 'Courier New', monospace;
    margin-top: 0;
    margin-bottom: 25px;
    padding: 6px 8px 6px 30px;
    font-size: 12px;
    color: #ffffff;
    text-align: center;
}

.email-mobile {
    display: none;
}

/* ── Main Content ── */
.main {
    margin-left: 250px;
    padding: 10px 10px;
}

.footer {
    position: absolute;
    bottom: 15px;
    width: 250px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.mobile-footer {
    display: block;
    text-align: center;
    color: #999999;
    font-size: 13px;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #eeeeee;
}

/* ── Scrollbar ── */
::-webkit-scrollbar-thumb:vertical {
    background: #555555;
}

::-webkit-scrollbar {
    width: 3px;
}

/* ── Hamburger (hidden on desktop) ── */
.hamburger {
    display: none;
}

.mobile-nav-dropdown {
    display: none;
}

/* ── Mobile Responsive ── */
@media screen and (max-width: 768px), screen and (max-height: 500px) {
    .sidenav {
        height: auto;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10;
        padding: 12px 15px;
        display: flex;
        align-items: center;
        overflow: visible;
        box-sizing: border-box;
    }

    .propic {
        margin: 0;
        margin-right: 10px;
        height: 40px;
        width: 40px;
        flex-shrink: 0;
    }

    .propic img {
        height: 40px;
        width: 40px;
        border-radius: 20px;
    }

    .name-group {
        margin-right: auto;
        min-width: 0;
        overflow: hidden;
    }

    .name {
        font-size: 20px;
        margin: 0;
        padding: 0;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .email-desktop {
        display: none;
    }

    .email-mobile {
        display: none;
    }

    .sidenav a {
        display: none;
    }

    .footer {
        display: none;
    }

    html {
        scroll-padding-top: 70px;
    }

    .main {
        margin-left: 0;
        margin-top: 60px;
    }

    .hamburger {
        display: block;
        position: fixed;
        top: 10px;
        right: 12px;
        z-index: 20;
        background: none;
        border: none;
        color: #ffffff;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
        padding: 6px 10px;
    }

    .mobile-nav-dropdown {
        display: none;
        position: fixed;
        top: 64px;
        right: 0;
        background-color: rgba(165, 186, 224, 0.92);
        min-width: 180px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        z-index: 20;
    }

    .mobile-nav-dropdown.open {
        display: block;
    }

    .mobile-nav-dropdown a.mobile-nav-link {
        display: block;
        padding: 12px 20px;
        font-size: 16px;
        text-transform: uppercase;
        color: #ffffff;
        text-decoration: none;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mobile-nav-dropdown a.mobile-nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }
}
