body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000000;
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 20%;
    height: 100vh;
    background-color: #0d1b2a;
    color: white;
    transition: transform 0.3s ease;
    overflow-y: auto;
    /* Allow vertical scrolling */
    scrollbar-width: thin;
    /* Set scrollbar to thin for Firefox */
    scrollbar-color: transparent transparent;
    /* Hide scrollbar color for Firefox */
}

/* For WebKit browsers (Chrome, Safari, etc.) */
.sidebar::-webkit-scrollbar {
    width: 0;
    /* Hide scrollbar */
    height: 0;
    /* Hide scrollbar */
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: transparent;
    /* Hide scrollbar thumb */
}

.profile-img {
    width: 180px;
    height: 180px;
    animation: fadeIn 1s ease-in-out;
    border: 3px solid rgb(240, 236, 236);
    border-radius: 50%;
}

.social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 1.5rem;
}

.nav-link {
    color: white;
    margin-top: 20px;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: #00d9ff;
}

/* Main Content Styling */
.main-content {
    width: 80%;
    height: auto;
    position: relative;
    color: white;
    background: url('img/l.jpg') no-repeat center center/cover;
    border-radius: 5px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    animation: fadeIn 1s ease-in-out;
}

/* Animation for fading in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Personal Info Styling */
.personal-info {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 5px;
    margin-right: 30px;
    color: rgb(0, 0, 0);
    width: 350px;
    height: auto;
}

/* Form Styling */
form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: bold;
}

.form-control {
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

button[type="submit"] {
    background-color: #00d9ff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #007bff;
}

/* Hamburger Icon Styling */
.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    color: white;
}

/* Sidebar Hidden by Default on Small Screens */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 150px;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 998;
        transition: transform 0.6s ease, width 0.6s ease;
        /* Transition for width */
    }

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

    .main-content {
        width: 100%;
        height: auto;
        padding: 10px;
        flex-direction: column;
    }

    .personal-info {
        margin-bottom: 20px;
        width: 100%;
    }

    form {
        width: 100%;
    }

    .hamburger {
        display: block;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 70%;
        height: 100%;
        /* Ensure height is 100% for proper scrolling */
    }

    .main-content {
        width: 100%;
        height: auto;
        padding: 10px;
        flex-direction: column;
    }

    .personal-info {
        margin-bottom: 20px;
        width: 100%;
    }

    form {
        width: 100%;
    }
}