/* -------------------- */
/* Sidebar container    */

/* -------------------- */
#sidebar {
    position: fixed;
    top: 0;
    left: 0; /* use transform instead of left negative */
    width: 260px;
    height: 100%;
    background-color: #80858e;
    color: #f3f3f3;
    overflow-y: hidden; /* removes outer scroll bar */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding: 20px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transform: translateX(-100%); /* fully hidden */
}

/* Sidebar inner */
#sidebar .sidebar-inner {
    padding: 15px 15px 15px;
    height: auto;
    overflow-y: visible;
    scrollbar-width: none;
}

#sidebar .sidebar-inner::-webkit-scrollbar {
    display: none;
}    
/* Slide-in */
#sidebar.active {
    transform: translateX(0);
}

/* -------------------- */
/* Remove Hamburger     */
/* -------------------- */
.hamburger {
    display: none;
}

/* -------------------- */
/* Remove overlay       */
/* -------------------- */
.overlay {
    display: none;
}

/* -------------------- */
/* Headings             */
/* -------------------- */
#sidebar h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px;
    position: relative;
    padding-bottom: 3px;
    display: inline-block;
}

#sidebar h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #3b82f6;
}

/* -------------------- */
/* Menu Items with separators */
/* -------------------- */
#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

#sidebar ul li {
    margin: 5px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
}

#sidebar ul li:last-child {
    border-bottom: none;
}

#sidebar ul li a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    color: #374151;
    display: block;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

#sidebar ul li a:hover {
    color: #3b82f6;
    padding-left: 5px;
}

#sidebar .get-in-touch {
    border-top: 1px solid #ddd;
    margin-top: 3px;
    padding-top: 5px;
   
}

/* -------------------- */
/* Contact Section      */
/* -------------------- */
#sidebar .get-in-touch p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
    line-height: 1.4;
}

#sidebar .get-in-touch p i {
    color: #3b82f6;
    margin-right: 5px;
}

#sidebar .contact-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

#sidebar .contact-item i {
    margin-right: 8px;
    color: #3b82f6;
}

#sidebar .contact-item a {
    color: #374151;
    text-decoration: none;
}

#sidebar .contact-item a:hover {
    color: #3b82f6;
}

#sidebar .contact-item.location-item:hover i,
#sidebar .contact-item.location-item:hover span {
    color: #3b82f6;
    cursor: pointer;
}

#sidebar .contact-item a[href^="mailto:"],
#sidebar .contact-item a[href^="tel:"],
#sidebar .contact-item.location-item span {
    border-bottom: 1px dashed #bbb;
    padding-bottom: 2px;
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

#sidebar .contact-item a[href^="mailto:"]:hover,
#sidebar .contact-item a[href^="tel:"]:hover,
#sidebar .contact-item.location-item:hover span {
    color: #3b82f6;
    border-color: #888;
    cursor: pointer;
}

/* -------------------- */
/* Scrollbar Styling    */
/* -------------------- */
#sidebar .sidebar-inner::-webkit-scrollbar {
    width: 6px;
}
#sidebar .sidebar-inner::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}
#sidebar .sidebar-inner::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* Smooth animation */
.projects {
    transition: margin-left 0.3s ease;
}

/* When sidebar is open — move content slightly */
body.sidebar-open .projects {
    margin-left: 15px; /* small gap — adjust 10–20px if needed */
}

/* On small screens (when sidebar overlays) */
@media (max-width: 768px) {
    body.sidebar-open .projects {
        margin-left: 0;
    }
}