@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    background-image: url('https://i.postimg.cc/KYMxmn5b/ffc215a8299e5db8fb2cf45dd705729a.jpg');
    background-size: 50%;
    background-position: bottom right;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Lexend Deca', sans-serif;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: white;
    padding: 30px 0;
}

.sidebar-right {
    width: 300px;
    background-color: transparent;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    right: 150px;
}

.sidebar-header {
    text-align: center;
    width: 500px;
}

.profile-pic {
    width: 500px;
    height: 500px;
    object-fit: cover;
    margin-bottom: 20px;
}

.profile-name {
    color: #333;
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 8px;
    margin-left: 100px;
}

.profile-role {
    color: #333;
    font-size: 24px;
    margin-bottom: 12px;
    margin-left: 100px;
}

.profile-groups {
    color: #ffffff;
    font-size: 18px;
    margin-left: 100px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.sidebar a {
    display: block;
    padding: 20px 35px;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border-left: 4px solid transparent;
    transform-origin: center;
}

.sidebar a:hover {
    background-color: #e0e0e0;
    border-left-color: #000;
    color: #000;
    transform: scale(1.1) translateX(50px);
}

.main-content {
    flex: 1;
    padding: 40px;
    margin-left: 100px;
    margin-right: 450px;
}

.main-content h1 {
    color: #333;
    margin-bottom: 20px;
}

.main-content p {
    color: #666;
    line-height: 1.6;
}

.description {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.description p {
    color: #333;
    font-size: 24px;
    line-height: 1.6;
    text-align: left;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 20px 0;
        order: 2;
    }

    .sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .sidebar a {
        padding: 15px 20px;
        font-size: 14px;
        text-align: center;
    }

    .main-content {
        order: 1;
        padding: 20px;
    }

    .sidebar-right {
        width: 100%;
        right: 0;
        padding: 20px 0;
        order: 3;
    }

    .sidebar-header {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .profile-pic {
        width: 300px;
        height: 300px;
        margin-bottom: 10px;
        margin-top: -80px;
    }

    .profile-name {
        font-size: 24px;
        margin-left: 0;
        margin-bottom: 5px;
    }

    .profile-role {
        font-size: 14px;
        margin-left: 0;
        margin-bottom: 5px;
    }

    .profile-groups {
        font-size: 12px;
        margin-left: 0;
    }

    .profile-location {
        font-size: 12px;
        margin-left: 0;
    }

    body {
        background-size: 100%;
        background-position: bottom center;
    }
}

@media (max-width: 640px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 0;
        order: 1;
        background-color: #f9f9f9;
    }

    .sidebar nav {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        gap: 0;
    }

    .sidebar a {
        padding: 15px 0;
        font-size: 13px;
        text-align: center;
        flex: 1;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .sidebar a:hover {
        transform: none;
        border-bottom-color: #000;
        border-left: none;
        background-color: transparent;
    }

    .main-content {
        order: 3;
        padding: 15px;
        margin-right: 0;
        margin-left: 0;
    }

    .main-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .main-content p {
        font-size: 14px;
    }

    .sidebar-right {
        width: 100%;
        right: 0;
        padding: 20px 0;
        order: 2;
        margin-top: 0;
    }

    .sidebar-header {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .profile-pic {
        width: 280px;
        height: 280px;
        margin-top: 0;
    }

    .profile-name {
        font-size: 18px;
        margin-left: 0;
    }

    .profile-role {
        font-size: 12px;
        margin-left: 0;
    }

    .profile-location {
        font-size: 10px;
        margin-left: 0;
    }

    body {
        background-size: 100%;
        background-position: bottom;
        background-attachment: scroll;
    }
}
