* {
    margin: 0;
    padding: 0;
}

body {
    background-color: rgb(0, 0, 33);
    color: white;
    font-family: "Poppins", sans-serif;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; /* Make the section smaller */
    background-color: rgb(1, 1, 55);
    padding: 0 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links ul {
    display: flex;
    align-items: center;
}

.nav-links ul li {
    list-style: none;
    margin: 0 15px;
}

.nav-links ul li a {
    text-decoration: none;
    color: white;
}

.nav-links ul li a:hover {
    color: rgb(167, 167, 250);
}

.left {
    font-size: 1.5rem;
}

.firstsection {
    display: flex;
    justify-content: space-around;
    margin: 35px 0;
    align-items: center;

}

.firstsection>div {
    width: 30%;
}

.leftsection {
    font-size: 2.5rem;
}

.leftsection .button {
    padding: 50px;
}

.leftsection .btn {
    padding: 12px;
    background: rgb(1, 1, 55);
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
}

.leftsection .btn:hover {
    background: rgb(74, 0, 143);
}

.rightsection {
    width: 20%;
}

.rightsection img {
    width: 130%;
    height: auto;
}
.purple {
    color: rgb(170, 107, 228);
}

#element {
    color: rgb(170, 107, 228);
}

hr {
    border: 0;
    background: #9c97f1;
    height: 1.0px;
    margin: 40px 84px;
}

.aboutsection {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 40px 0;
}

.aboutsection .about {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: rgb(170, 107, 228);
}

.aboutsection div {
    font-size: 1.2rem;
    max-width: 800px;
    line-height: 1.6;
    padding: 0 20px; /* Add padding for gap */
}

.projectsection {
    height: auto;
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
}

.projectsection .project {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: rgb(170, 107, 228);
}

.projectsection .project-details {
    display: flex;
    justify-content: space-around;
    width: 80%;
    margin-bottom: 40px;
}

.projectsection .project-details img {
    width: 45%;
    height: auto;
    border: 2px solid rgb(170, 107, 228);
    border-radius: 10px;
}

.projectsection .project-details .description {
    width: 45%;
    margin-top: 40px;
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.6;
}

.certificatesection {
    height: auto;
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
}

.certificatesection .certificate {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: rgb(170, 107, 228);
}

.certificatesection .frames {
    display: flex;
    justify-content: space-around;
    width: 80%;
}

.certificatesection .frames img {
    width: 45%;
    height: auto;
    border: 2px solid rgb(170, 107, 228);
    border-radius: 10px;
}

.skillsection {
    height: auto;
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
}

.skillsection .skill {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: rgb(170, 107, 228);
}

.skillsection .skills {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin-bottom: 40px;
}

.skillsection .skills .skill-details {
    width: 45%;
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.6;
    list-style: none;
    background-color: rgb(1, 1, 55);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.skillsection .skills .skill-details h3 {
    color: rgb(170, 107, 228);
    margin-bottom: 10px;
}

.skillsection .skills .skill-details ul {
    padding-left: 20px;
}

.skillsection .skills .skill-details ul li {
    margin-bottom: 10px;
}

footer {
    height: 140px;
    background-color: rgb(22 22 32);
    text-align: center;

}

footer div {
    text-align: center;
    position: relative;
    top: 35px;
}

footer div.contact {
    text-align: center;
    position: relative;
    top: 20px;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgb(1, 1, 55);
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 1;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
    }

    .nav-links ul li {
        margin: 10px 0;
    }

    .nav-links ul li a {
        font-size: 1.2rem;
    }

    .left {
        font-size: 1.8rem;
        text-align: center;
    }

    .firstsection {
        flex-direction: column;
        text-align: center;
    }

    .firstsection > div {
        width: 90%;
    }

    .rightsection img {
        width: 80%;
    }

    .leftsection .button {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .projectsection .project-details {
        flex-direction: column;
        align-items: center;
    }

    .projectsection .project-details img,
    .projectsection .project-details .description {
        width: 90%;
        margin-bottom: 20px;
    }

    .certificatesection .frames {
        flex-direction: column;
        align-items: center;
    }

    .certificatesection .frames img {
        width: 90%;
        margin-bottom: 20px;
    }

    .skillsection .skills {
        flex-direction: column;
        align-items: center;
    }

    .skillsection .skills .skill-details {
        width: 90%;
        margin-bottom: 20px;
    }

    footer {
        height: auto;
        padding: 20px 0;
    }

    footer div {
        position: static;
        margin-bottom: 10px;
    }

    footer div.contact {
        margin-bottom: 20px; /* Add gap between "Contact Me" and logos */
    }
}