body {
    font-family: Arial, sans-serif;
    height: 155.78%;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

html {
    scroll-behavior: smooth;
}

#home {
    position: relative;
    width: 100%;
    height: 100%;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;

}

header {
    position: fixed;
    top: 2%;
    z-index: 1000;
    color: #1a1a1a;
    width: 80%;
    margin: 0.5% auto;
    display: flex;
    justify-content: space-between;
    align-content: space-between;
    flex-direction: row;
    background: white;
}

header h1 {
    position: absolute;
    margin: 0;
    font-size: 2vw;
    left: 12%;
}

nav ul {
    position: absolute;
    right: 1.3%;
    display: flex;
    gap: 3vw;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1.2vw;
}

nav ul a {
    padding: .5vw .5vw;
    border-radius: 15px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
}

nav li a:hover {
    color: #ffffff;
    background-color: #1a1a1a;
}

#home .desktopImage {
    position: absolute;
    top: 0;
    right: 0;
    width: 42%;
    height: 48vw;
    z-index: -1;
}

.mobileImage {
    display: none;
}

.image-container svg {
    width: 70vw;
    z-index: -1;
}

#hero-text {
    position: absolute;
    top: 8.5vw;
    left: 8%;
    color: #1a1a1a;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

#hero-text h2 {
    font-size: 1.2vw;
    font-weight: bold;
    margin-top: 300%;
    margin: 0 0 10px 0;
    color: #0515fc;
}

#hero-text h1 {
    font-size: 5vw;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bolder;
    margin: 0 0 20px 0;
}

#hero-text p {
    font-size: 2vw;
    line-height: 2;
}

#hero-text .github {
    font-size: 1.5vw;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    background-color: #0515fc;
    width: 7vw;
    text-align: center;
    height: 2vw;
    padding-top: .5vw;
    border-radius: 10px;
}

#hero-text .github:hover {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 2px solid #0515fc;
    transition: 0.3s;
}

#about {
    position: relative;
    color: black;
    margin-top: 60%;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    flex-direction: row;
}


#about .heading {
    position: absolute;
    top: 14vw;
    left: 10%;
    font-size: 4vw;
    font-weight: bolder;
    color: #1a1a1a;
    font-family: 'Times New Roman', Times, serif;
}

.about-text {
    font-size: 1.9vw;
    color: #1a1a1a;
    width: 50%;
    position: absolute;
    top: 20.5vw;
    left: 10%;
    text-align: justify;
    line-height: 1.5;
}

#about .desktopImage {
    width: 42vw;
    height: 42vw;
    position: absolute;
    top: 8vw;
    right: 0%;
}

.about-text a {
    text-decoration: none;
    display: flex;
    position: absolute;
    top: 115%;
    width: 10vw;
    height: 3vw;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 15px;
    font-weight: bold;
    color: #ffffff;
    background-color: #0515fc;
}

.about-text a:hover {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 2px solid #0515fc;
    transition: 0.3s;
}

/* Projects section */

#projects {
    position: relative;
    min-height: 100%;
    margin-top: 130%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

#projects .heading {
    padding-top: 15vw;
    font-size: 4vw;
    font-weight: bolder;
    color: #1a1a1a;
    left: 50%;
    font-family: 'Times New Roman', Times, serif;
}

#projects div {
    width: 70%;
    height: 20vw;
    display: flex;
    border-radius: 20px;
    background-color: #ffffff;
    border: #1a1a1a 4px solid;
}

#projects div img {
    width: 30vw;
    height: 20vw;
    border-radius: 20px;
}

#projects div span {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    top: auto;
    border-radius: 20px;
    font-size: 1.2vw;
    padding: 20px 20px;
}

#projects span p {
    width: 80%;
    text-align: justify;
    align-self: center;
}

#projects span .tech {
    font-weight: 700;
    position: absolute;
    top: 65%;
    left: 5vw
}

#projects div .text a {
    margin: 8% auto;
    color: #ffffff;
    text-decoration: none;
    background: #0515fc;
    width: 10vw;
    line-height: 3vw;
    font-size: 1.2vw;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
}

#projects div span a:hover {
    background-color: #ffffff;
    color: #1a1a1a;
    border: #0515fc 2px solid;

}

#projects div h1 {
    font-size: 2vw;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    text-align: center;
}

#bloodBank-db {
    flex-direction: row-reverse;
}

#youtube-project {
    flex-direction: row-reverse;
}

/* Contact Section */
#contact {
    position: relative;
    height: 100%;
    margin-top: 50px;
    background: #535151;
    color: #ffffff;
    text-align: center;
    padding: 50px 20px;
}

#contact .heading {
    font-size: 4vw;
    font-weight: bolder;
    color: #ffffff;
    font-family: 'Times New Roman', Times, serif;
}

#contact form {
    display: flex;
    flex-direction: column;
    gap: 5vw;
    max-width: 600px;
    margin: 10% auto;
}
#contact input,textarea, button {
    width: 48%;
    padding: 10px;
    font-size: 1.2vw;
    border: none;
    border-radius: 15px;
}
#contact input{
    height: 40px;
}

#contact .contactInfo {
    display: flex;
    gap: 4%;
    justify-content: center;
}
#contact textarea {
    height: 150px;
    width: 97%;
    resize: vertical;
}

#contact input:focus::placeholder {
    font-size: 1vw ;
    transform: translateY(-20px);
}
#contact textarea:focus::placeholder {
    color: transparent;
}
#contact button {
    width: 20%;
    background-color: #0515fc;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    margin: 0 auto;
}
#contact button:hover {
    background-color: #535151;
    color: #ffffff;
    border: 2px solid #0515fc;
}

#contact .socials {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
#contact .social-link {
    color: #ffffff;
    font-size: 2vw;
    text-decoration: none;
    transition: color 0.3s;
}
#contact .social-link:hover {
    color: #0515fc;
}
@media (max-width: 900px) {
    header h1 {
        font-size: 3vw;
        font-weight: 700;
        left: 5%;
    }

    nav ul {
        font-size: 2vw;
    }

    nav ul a {
        padding: .5vw .5vw;
        border-radius: 15px;
        text-decoration: none;
        color: #1a1a1a;
        font-weight: 700;
    }

    #home .desktopImage {
        display: none;
    }

    #home .mobileImage {
        display: block;
        position: absolute;
        top: 50px;
        right: 0;
        align-self: center;
        width: 50%;
        height: 50vw;
        z-index: -1;
    }

    #home #hero-text {
        position: absolute;
        top: 10vh;
        max-width: 70%;
    }

    #home #hero-text h2 {
        font-size: 4vw;
    }

    #home #hero-text h1 {
        font-size: 6vw;
        margin-top: 20px;
    }

    #home #hero-text .headings {
        max-width: 45%;
    }

    #home #hero-text p {
        font-size: 3vw;
        line-height: 1.5;
        font-weight: 700;
    }

    #home #hero-text .github {
        font-size: 3vw;
        width: 30vw;
        height: 6vw;
        line-height: 6vw;
    }

    #about {
        margin-top: 500px;
    }
    
    #about .mobileImage {
        display: block;
        position: absolute;
        top: 0;
        right: 5%;
        width: 100%;
        height: 50vw;

    }
    #about .about-text {
        width: 80%;
        top: 70vw;
        left: 10%;
    }
    #about .heading {
        font-size: 4vw;
        top: 60vw;
        left: 10%;
    }

    #about .about-text {
        font-size: 3vw;
        font-weight: 600;
    }

    #about a{
        font-size: 3vw;
        width: 30vw;
        height: 6vw;
        line-height: 6vw;
        top: 130%;
        left: 35%;
    }
    #about .desktopImage {
        display: none;
    }


    #projects {
        margin-top: 1100px;
    }
    #projects .heading {
        font-size: 4vw;
        padding-top: 20vw;
    }
    #projects div {
        flex-direction: column;
        height: auto;
    }

    #projects div img {
        width: 100%;
        height: auto;
        border-radius: 20px 20px 0 0;
    }

    #projects div span {
        position: static;
        border-radius: 0 0 20px 20px;
        border: #020024 2px solid;
        font-size: 3vw;
        padding: 20px 10px;
    }

    #projects span p {
        width: 100%;
        font-size: 3vw;
        text-align: justify;
        align-self: center;
    }

    #projects span .tech {
        position: static;
        font-weight: 700;
        margin-top: 10px;
    }

    #projects div h1 {
        font-size: 4vw;
    }

    #projects div .text a {
        font-size: 3vw;
        width: 40vw;
        height: 6vw;
        line-height: 6vw;
    }

    #contact input, textarea, button {
        width: 80%;
        font-size: 3vw;
    }
    #contact input {
        height: 30px;
    }
    #contact input:focus::placeholder {
        font-size: 2vw ;
        transform: translateY(-20px);
    }
    #contact .contactInfo {
        display: flex;
        flex-direction: column;
        gap: 5vw;
        width: 120%;
    }
    #conatct textarea {
        height: 120px;
        width: 12vw;
    }
    #contact .social-link {
        font-size: 4vw;
    }

}

@media (min-width:900px) and (max-width:1400px) {
    #projects div span {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        top: auto;
        border-radius: 20px;
        border: #020024 2px solid;
        font-size: 1.2vw;
        padding: 20px 20px;
    }
}

footer {
    position: relative;
    margin-top: 200px;
    margin-bottom: 0px;
    text-align: center;
    padding: 15px;
    background-color: #111;
    color: #aaa;
    font-size: 14px;
}
