body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

/* Navigation Menu */

#user-details {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: auto;
}

.profile-img {
    text-align: center;
    margin-bottom: 20px;
}
.mahi {
    display: flex;
    justify-content: center; /* Centers the content horizontally */
    align-items: center; /* Centers the content vertically */
    flex-grow: 1; /* Ensures the `.mahi` div expands to fill available space */
}

.profile-img img {
    border-radius: 50%;
    border: 2px solid #4CAF50;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

button:hover {
    background-color: #45a049;
}

.hidden {
    display: none;
}

input[type="text"],
input[type="email"],
input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

label {
    font-weight: bold;
}


/* Responsive Design */
@media (max-width: 768px) {
.footer-content {
justify-content: center; /* Center items on smaller screens */
flex-wrap: wrap;
}

footer p {
margin-bottom: 10px;
}
}


/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
  }
  
  footer p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .footer-content {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
  }
  
  .footer-link:hover {
    color: #FFEB3B; /* Yellow on hover */
  }
  
  .footer-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
  }
  
  .footer-link:hover .footer-icon {
    transform: rotate(360deg); /* Icon rotation */
    transition: transform 0.5s ease-in-out;
  }

/* Heading Styling */
h1 {
    text-align: center;
    color: white;
}

/* User Details Container */
#user-details {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto 20px;
}

/* Profile Image Styling */
.profile-img {
    text-align: center;
    margin-bottom: 20px;
}

.profile-img img {
    border-radius: 50%;
    border: 3px solid #4CAF50;
    width: 150px;
    height: 150px;
}

/* Button Styling */
button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    margin: 10px 0;
}

button:hover {
    background-color: #45a049;
}

/* Input Fields Styling */
input[type="text"],
input[type="email"],
input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Label Styling */
label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* Edit Fields Section */
#edit-fields {
    margin-top: 20px;
}


/* Logout Button */
#logout-btn {
    display: block;
    width: 200px;
    margin: 20px auto;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    #user-details {
        padding: 15px;
    }

    button {
        width: 100%;
    }
}
/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #34495e;
    padding: 20px;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

header h1 {
    font-size: 2rem;
    margin: 0;
}

.menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    padding: 10px;
    transition: transform 0.3s ease;
    position: absolute;
    right: 50px; /* Positioning the button on the right side */
}


.menu-toggle:hover {
    transform: scale(1.1);
}

/* Sidebar Navigation */
nav {
    position: fixed;
    top: 50px;
    left: -250px; /* Initially off-screen */
    width: 250px;
    height: 100%;
    background: white;
    
    padding-top: 60px;
    transition: left 0.3s ease-in-out;
    z-index: 90;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    padding: 15px 20px;
    text-align: left;
}

nav ul li a {
    color: rgb(5, 33, 104);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 10px;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

nav ul li a:hover {
    background-color: #dce2e7;
    padding-left: 30px; /* Slightly shift the text for a more interactive feel */
}

/* Projects List */
#projectsContainer {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#projectsContainer div {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projectsContainer div:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#projectsContainer button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #4caf50;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#projectsContainer button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    z-index: 1000;
}

.modal h2 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #4caf50;
    font-size: 1.8rem;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.modal input:focus {
    border-color: #4caf50;
    outline: none;
}

.modal button {
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal .close-btn {
    background-color: #f44336;
    color: white;
}

.modal .close-btn:hover {
    background-color: #d32f2f;
}

.modal button[type="submit"] {
    background-color: #4caf50;
    color: white;
}

.modal button[type="submit"]:hover {
    background-color: #45a049;
}

/* Mobile and Tablet Responsiveness */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        padding-top: 50px;
    }

    nav ul {
        justify-content: center; /* Center the nav links */
    }

    #projectsContainer {
        margin-top: 80px;
    }
}

@media (max-width: 600px) {
    nav {
        left: -250px; /* Initially off-screen */
    }

    nav ul {
        display: flex;
        flex-direction: column;
        padding-top: 20px;
    }

    nav ul li {
        padding: 15px;
        font-size: 1rem;
    }

    nav ul li a {
        font-size: 1.1rem;
        padding: 12px 20px;
    }

    .menu-toggle {
        display: block;
    }
}