body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8f9fa;
    color: #343a40;
}

header {
    background-image: url("picture/cover.jpeg");
    background-size: cover; /* Ensures the image covers the entire header */
    background-position: center; /* Centers the image */
    color: rgb(240, 236, 236);
    padding: 35px 0;
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-pic {
    width: 150px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.header-text h1 {
    margin: 0;
    font-size: 2.8em;
}

.header-text p {
    margin: 10px 0 0;
    font-size: 1.3em;
}

nav {
    background-color: #343a40;
    color: white;
}

nav .container {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

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

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #6a11cb;
}

.container {
    width: 85%;
    margin: 0 auto;
    padding: 30px 0;
}

h2 {
    border-bottom: 3px solid #6a11cb;
    display: inline-block;
    margin-bottom: 20px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skills-list li {
    background-color: #6a11cb;
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.skills-list li:hover {
    background-color: #2575fc;
}

.project-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.3s ease-out;
}

.project-card img:hover {
    transform: scale(1.1);
}

.project-info {
    flex: 1;
}

.project-info h3 {
    margin: 0 0 10px;
}

.project-info p {
    margin: 5px 0;
}

.project-info a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #6a11cb;
    transition: color 0.3s;
}

.project-info a:hover {
    color: #2575fc;
}

.education-list {
    list-style: none;
    padding: 0;
}

.education-list li {
    background-color: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 20px 0;
}

#download-resume {
    padding: 12px 30px;
    background-color: white;
    color: #6a11cb;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

#download-resume:hover {
    background-color: #6a11cb;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    padding-top: 7%;
    padding-right: 15px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
     position: relative;
}

.close {
    color: white;
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 35px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #6a11cb;
    text-decoration: none;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .container {
        width: 90%;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .project-card {
        flex-direction: column;
    }

    .project-card img {
        margin: 0 0 15px 0;
    }
}

@media screen and (min-width: 769px) {
    .project-card {
        flex-direction: row;
    }

    .project-card img {
        width: 200px;
        height: auto;
        margin-right: 20px;
    }
}
