/* Two Column Layout */
.main-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar with Background */
.sidebar {
    width: 28%;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #333;
    background-attachment: fixed;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Profile Image Container */
.profile-image-container {
    position: relative;
    z-index: 2;
    margin-bottom: 1.25rem;
}

.sidebar-profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: block;
}

.sidebar-profile-image:hover {
    transform: scale(1.03);
}

.sidebar-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    width: 100%;
    max-width: 350px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sidebar Profile Info */
.sidebar-profile {
    margin-bottom: 1.5rem;
}

.sidebar-name {
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sidebar-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.sidebar-profile-link {
    text-decoration: none;
    display: inline-block;
}

.sidebar-profile-link:hover .sidebar-name {
    color: rgba(255, 255, 255, 0.9);
}

/* Sidebar Navigation */
.sidebar-nav {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    margin-bottom: 0.5rem;
}

.sidebar-nav-link {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.sidebar-nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-nav-link:hover::after {
    transform: scaleX(1);
}

.sidebar-nav-link.active {
    color: white;
    font-weight: 700;
}

.sidebar-nav-link.active::after {
    transform: scaleX(1);
    background-color: white;
}

/* Main Content */
.site-main {
    flex: 1;
    margin-left: 28%;
    width: 72%;
    min-height: 100vh;
    background-color: var(--bg-color);
    padding-top: 0;
}

.main-content {
    padding: 3rem 1.5rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-nav-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    position: relative;
    margin: 0 auto;
}

.mobile-nav-icon::before,
.mobile-nav-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
}

.mobile-nav-icon::before {
    top: -8px;
}

.mobile-nav-icon::after {
    top: 8px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .site-main {
        margin-left: 0;
        width: 100%;
        padding-top: 0;
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .sidebar-profile-image {
        width: 150px;
        height: 150px;
    }

    .sidebar-name {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .sidebar-social {
        gap: 0.4rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 100%;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .sidebar-social {
        gap: 0.3rem;
        max-width: 280px;
        margin: 1.5rem auto 0;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .social-link i {
        font-size: 1rem;
    }

    .social-icon {
        width: 16px;
        height: 16px;
    }
}

/* Social Media Links */
.sidebar-social {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link i {
    color: white;
}

.social-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Dark Mode */
.dark-mode .sidebar {
    background-color: #1a1a1a;
}

.dark-mode .sidebar-nav-link {
    color: white;
}

.dark-mode .sidebar-nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.dark-mode .sidebar-nav-link.active {
    color: white;
    font-weight: 700;
}

.dark-mode .social-link {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .social-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Header */
.mobile-header {
    display: none;
    background-color: #333;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-attachment: fixed;
    margin-top: 0;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.mobile-header.hide {
    transform: translateY(-100%);
}

.mobile-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.mobile-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.mobile-profile-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-profile-info {
    flex: 1;
}

.mobile-profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.mobile-profile-tagline {
    font-size: 0.875rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.mobile-profile-link {
    text-decoration: none;
}

.mobile-profile-link:hover .mobile-profile-name {
    color: rgba(255, 255, 255, 0.9);
}

/* Utility Classes */
.d-lg-none {
    display: none;
}

@media (max-width: 991px) {
    .d-lg-none {
        display: block;
    }

    .mobile-header {
        display: block;
    }

    .main-content {
        padding-top: 5rem; /* Mobile header height compensation */
    }
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

@media (max-width: 991px) {
    .mobile-overlay {
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}
