* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(0, 0, 33);
    color: white;
    font-family: 'Poppins', sans-serif;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 80px;
    background-color: rgb(16, 16, 106);
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style: none;
    margin: 0 23px;
}

nav ul li a {
    text-decoration: none;
    color: white;
}

nav ul li a:hover {
    color: rgb(153, 153, 226);
    font-size: 1.04rem;
}

/* Toggle Button Styles */
.toggle-btn {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
}

main hr {
    border: 0;
    background-color: #9c97f1;
    height: 1.2px;
    margin: 50px 84px;
}

.left {
    font-size: 1.5rem;
}

.firstsection {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 100px 0;
}

.firstsection > div {
    width: 30%;
}

.leftsection {
    font-size: 2.5rem;
}

.leftsection .buttons {
    padding: 50px 0;
}

.leftsection .btn {
    padding: 12px;
    background: #1e2167;
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
}

.rightsection img {
    width: 80%;
    margin: 50px 0;
}

.purple {
    color: rgb(174, 107, 237);
}

.text-gray {
    color: gray;
}

#element {
    color: rgb(174, 107, 237);
}

.secondsection {
    max-width: 80vw;
    margin: auto;
    height: 450px;
}

.secondsection h1 {
    font-size: 1.9rem;
}

.secondsection .box {
    background: white;
    width: 80vw;
    height: 2px;
    margin: 56px 0;
    display: flex;
}

.secondsection .vertical {
    height: 93px;
    width: 1px;
    background-color: white;
    margin: 0 120px;
}

.image-top {
    width: 23px;
    position: relative;
    top: -22px;
    left: -9px;
}

.vertical-title {
    position: relative;
    top: 75px;
    width: 150px;
    font-size: 14px;
}

.vertical-desc {
    position: relative;
    top: 86px;
    color: gray;
    width: 150px;
    font-size: 9px;
}

/* Add styles to the third section */
.thirdsection {
    max-width: 80vw;
    margin: auto;
    height: 600px;
}

.thirdsection h1 {
    font-size: 1.9rem;
}

.platform-ratings {
    margin-top: 30px;
    display: flex;
    justify-content: space-around;
}

.platform {
    text-align: center;
    padding: 20px;
}

.platform img {
    margin-top: 20px;
    width: 30px;
    height: 30px;
    position: relative;
    top: -22px;
    left: -9px;
}

/* Style the technical skills and certifications */
.technical-skills,
.certifications {
    margin-top: 20px;
    padding: 20px;
}

.technical-skills h2,
.certifications h2 {
    color: #fff;
    margin-bottom: 10px;
}

/* Style the lists */
.technical-skills ul {
    list-style: circle;
    padding: 10px;
    display: flex;
    justify-content: space-around;
}

.certifications,
.technical-skills ul li {
    margin: 5px 0;
    color: #eeeeee;
    list-style: square;
    text-decoration: #9c97f1;
}


.about-me {
    max-width: 80vw;
    margin: auto;
}

.about-me h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.about-me p {
    color: white;
    font-size: 16px;
    line-height: 1.5;
}

.about-me {
    display: flex;
    align-items: center;
}

.ab-img {
    flex: 1;
}

.ab-text {
    flex: 1;
    padding: 20px;
}


/* Add your existing styles here for Projects */

 

.projects {
    max-width: 80vw;
    margin: auto;
    padding: 0px;
}

.projects >h1{
    font-size:1.8rem;
}

.project {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    padding:80px;
}

.project img {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.project:hover img {
    transform: scale(1.1);
    cursor: pointer;
}

.project-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.project-info h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
}

.project-info p {
    color: #fff;
}

.project-info a {
    color: #9c97f1;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}


.footer {
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.footer .footer-first {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer .footer-first h3 {
    color: #fff;
    margin-bottom: 10px;
}

.footer .footer-first label {
    color: #fff;
    margin-bottom: 5px;
}

.footer .footer-first input {
    width: 20%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 3px;
    border: none;
}

.footer .footer-first textarea {
    width: 20%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 3px;
    border: none;
}

.footer .footer-first button.send-button {
    background-color: #ff5733;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.footer .footer-second ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding: 20px;
}

.footer .footer-second ul li {
    margin: 0 10px;
}

.footer .footer-second ul li a {
    color: #fff;
    text-decoration: none;
}

.footer .footer-second ul li a:hover {
    text-decoration: underline;
}

/* Style the footer rights text */
.footer-rights {
    text-align: center;
    color: gray;
    padding: 12px 0;
}


 

/* Media Query for Phones */
@media (max-width: 576px) {
    body {
        font-size: 14px;
        width: 100vw;
        margin: 0;
    }

    nav {
        flex-direction: row;
        text-align: left;
        width: 100vw;
        /* height: auto; */
    }

    nav ul {
        flex-direction: row;
        align-items: right;
    }

    nav ul li {
        margin: 10px 0;
    }

    .toggle-btn {
        display: block;
    }

    .navbar ul {
        display: none;
        flex-direction: row;
        text-align: left;
        position: absolute;
        width: 100%;
        background-color: rgb(16, 16, 106);
        padding-left: 20px;
        transition: height 0.3s ease;
        height: 0;
    }

    .navbar ul.show {
        display: flex;
        height: auto;
    }

    .navbar ul li {
        margin: 2px;
        padding: 5px;
    }
    
    .left {
        font-size: 1.1rem;
    }
    .firstsection {
        flex-direction: column;
        /* width: 100%; */
    }

    .rightsection img {
        width: 100%;
        margin: 50px 0px;
    }

    .leftsection  {
        font-size: 1.8rem;
        
    }

    .leftsection .buttons {
        padding: 20px 0;
    }

    .leftsection .btn {
        font-size: 16px;
    }

    .secondsection {
        max-width: 100vw;
        height: 500px;
        padding: 10px;
        width: 100%;
    }

    .secondsection .vertical {
        height: 93px;
        width: 1px;
        background-color: white;
        margin: 0 80px;
    }

    .secondsection h1 {
        font-size: 1.5rem;
    }

    .box div{
        width: 30vw;
        margin: 10px 0;
        display: flex;
        flex-direction: column;
        align-items: left;
    }

    .vertical {
        width: 30vw;
        margin: 0;
        text-align: left;
        /* display: inline-block; */
    }

    .vertical-title,
    .vertical-desc {
        width: 100%;
        text-align: left;
        margin: 10px 0;
    }

    .image-top {
        width: 20px;
        position: relative;
        top: 0;
        left: 0;
    }

    .thirdsection{
        width: 100vw;
        height: auto;
    }
    .platform img {
        width: 20px;
        height: 20px;
    }

    .technical-skills ul {
        padding: 5px;
        flex-direction: column;
    }

    .technical-skills ul li,
    .certifications ul li {
        font-size: 12px;
        padding: 5px;
        flex-direction: column;
    }

    .about-me h2 {
        font-size: 18px;
    }

    .about-me{
        flex-direction: column;
        margin: top 5px; 
        text-align:center;
    }

    .about-me img{
         width: 200px;
         text-align: center;
    }

    .about-me p {
        font-size: 14px;
        text-align: left;
    }

    .footer .footer-first input,
    .footer .footer-first textarea {
        width: 30%;
    }

    .footer .footer-first button.send-button {
        padding: 8px 16px;
    }
}
/* Add your existing styles here for Projects */

@media (max-width: 768px) {
    .projects {
        flex-direction: column;
        padding: 0px; /* Adjust padding for better spacing on smaller screens */
    }

    .project {
        margin-top: 50px;
        flex-direction: column;
        text-align: center;
        height:80vw;
        padding: 5px; /* Adjust padding for better spacing on smaller screens */
    }

    .project img {
         
        text-align: center;
        width: 100px; /* Make images full width on smaller screens */
    }

    .project-info {
        margin-top: 80px;
        text-align: left;
        padding: 20px; /* Adjust padding for better spacing on smaller screens */
    }

    .project-info h2 {
        margin-top: 120px;
        font-size: 1.2rem; /* Decrease heading font size on smaller screens */
    }

    .project-info p {
        font-size: 14px; /* Decrease paragraph font size on smaller screens */
    }

    .project-info a {
        font-size: 14px; /* Decrease link font size on smaller screens */
    }
}


