body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #f3f4f7, #c2e9fb);
    min-height: 100vh;
}

header {
    width: 100%;
    padding: 20px;
    background: #343a40;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-title {
    font-size: 24px;
    font-weight: bold;
    color: gold;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #007bff;
    color: white;
    transition: background 0.3s ease;
}

button:hover {
    background: #0056b3;
}

.link-button {
    background: #28a745;
}

.link-button:hover {
    background: #218838;
}

#profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 700px;
    width: 100%;
    margin-top: 20px;
}

.profile-photo {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
}

#loading {
    display: none;
    font-size: 20px;
    margin: 20px 0;
}

#project-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    width: 90%;
    margin-top: 20px;
    overflow: hidden; /* Ensure no horizontal scrolling */
}

.project {
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

footer {
    margin-top: auto;
    padding: 20px;
    background: #343a40;
    color: white;
    text-align: center;
    width: 100%;
}

.form-container {
    display: none;
    margin: 20px 0;
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.btn-submit {
    background: #28a745;
}

.btn-submit:hover {
    background: #218838;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000; /* High enough to stay above other elements */
}

.modal-content {
    position: relative; /* Ensure positioning for the absolute button */
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 80%; /* For scrolling */
    overflow-y: auto;
}


.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-view-project {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10; /* Ensure the button appears on top */
}

.btn-close:hover {
    background: #c82333;
}

.btn-view-project {
    background: #007bff;
    color: white;
}

.btn-view-project:hover {
    background: #0056b3;
}


.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #c82333;
}
