.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    overflow-y: auto;
    transition: transform 0.5s ease;
    transform: translateX(0);
    z-index: 100;
}

.sidebar.hide {
    transform: translateX(-100%);
}

.sidebar.hide ~ .main {
    left: 0;
}

.sidebar.open ~ .main {
    left: 290px;
}

.hamburger{
    font-size: 28px;
    padding: 10px 15px;
    cursor: pointer;
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.hamburger.hidden{
    display: none;
}
  
.close-btn{
    font-size: 28px;
    text-align: right;
    cursor: pointer;
    margin-bottom: 10px;
    width: fit-content;
    margin-left: auto;
}
  
.profile{
    text-align: center;
    position: relative;
}
  
.profile img{
    width: 53%;
    border-radius: 50%;
}
  
.profile h3{
    margin: 10px 0 0;
}
  
.profile p{
    font-size: 14px;
    padding-top: 4px;
    margin: 0;
}

.social-links {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-links a {
    font-size: 28px;
    transition: color 0.3s;
}

.social-link-linkedin{
    color: var(--theme-social-linkedin);
}

.social-link-github{
    color: var(--theme-social-github);
}

.social-link-researchgate{
    color: var(--theme-social-researchgate);
}

.social-links a:hover {
    color: #6366f1;
}

.menu{
    list-style: none;
    padding: 0;
    margin: 13px 0;
}
  
.menu li{
    list-style: none;
    border-radius: 6px;
}

.menu li a{
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.menu li:hover{
    background: #4f46e5;
    color: white;
}

.active{
    background: #4338ca;
    color: white;
}


.main {
    transition: left 0.5s ease, filter 0.5s ease, width 0.5s ease;
}

@media (min-width: 990px) {
    .sidebar:not(.hide) ~ .main {
        width: calc(100% - 290px);
    }
}

/* Behavior for small screens */
@media (max-width: 990px) {          
    body.sidebar-open #main {
      pointer-events: none; 
      filter: brightness(var(--brightness-disabled));
    }
  
    /* optional overlay if you prefer a visual scrim and an extra click target */
    .scrim {
        position: fixed; /* covers viewport */
        inset: 0;
        background: transparent;
        z-index: 900;
        left: 0px;
        visibility: hidden;
        width: 100%;
        height: 100%;
    }

    body.sidebar-open .scrim {
        visibility: visible;
        left: 290px;
    }
  
    /* optional: lock scroll while open */
    body.sidebar-open { overflow: hidden;}
}


@media (max-width: 1240px){
    .content-section {
        max-width: 750px;
    }
}

@media (max-width: 1100px){
    .content-section {
        max-width: 650px;
    }
}

@media (max-width: 900px) {
    .content-section {
        max-width: 600px;
    }
}

@media (max-width: 750px) {
    .content-section {
        max-width: calc(95%);
    }
}