@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: #F4F6FC;
    color: black;
}

header {
    margin-top: -40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5% 9% 0 9%;
    height: 14rem;
    background-color: transparent;
    filter: drop-shadow(10px);
    transition: background-color 0.3s ease-in-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

header.scrolled {
    background-color: #e2e9ff;
    /* Change to blue when scrolled */
}

.logo {
    width: 160px;
    margin-left: -40px;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav a {
    font-size: 1.8rem;
    color: black;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a:active::after {
    color: #233DFF;
    border-bottom: 3px solid #233DFF;
}

@media(max-width:995px) {
    nav {
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #233DFF;
        border-bottom: 3px solid #233DFF;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #F4F6FC;
        border-top: 0.1rem solid #F4F6FC;
    }

    nav.active {
        display: block;
    }

    nav a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active {
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #233DFF;
    }
}

section {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: #F4F6FC;
}

.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span {
    color: #233DFF;
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p {
    font-size: 1.6rem;
}

.home-img {
    border-radius: 50%;
}




.home-img {
    background-image: url(images/Untitled\ design1.png);
    background-repeat: no-repeat;
    background-position-y: bottom;
    background-position-x: 50%;
    background-size: 580px;
    position: relative;
    width: 32vw;
    height: 400px;
    margin-top: 30%;
}

.home-img img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    cursor: grab;
    transform: translateX(-2%);
    transition: transform 1.5s ease-in-out;
}

.home-img img:hover {
    transform: translateX(13%);
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #233DFF;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #233DFF;
}

.social-icons a:hover {
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #233DFF;
    box-shadow: 0 0 25px #233DFF;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: #F4F6FC;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #233DFF;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #233DFF;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale3d(1.03);
    background-color: #233DFF;
    color: #F4F6FC;
    box-shadow: 0 0 25px #233DFF;
}

.typing-text {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span {
    position: relative;
}

.typing-text span::before {
    content: "Front-End Developer";
    color: #233DFF;
    animation: words 20s infinite;
}

.typing-text span::after {
    content: "";
    background-color: #F4F6FC;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid #F4F6FC;
    right: -8;
    animation: cursor 0.7s infinite;
}

/* ******************About************* */
#About {
    padding: 80px 0;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.image-parent {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: visible;
    width: 30%;
    margin-right: 6%;
    margin-bottom: -43%;
    margin-top: 2%;

}

.coding-image {
    width: 105px;
    /* Adjust as needed */
    height: 105px;
    /* Adjust as needed */
    margin: 5px;
    border-radius: 10px;
    animation: moveImage 8s infinite linear;
}

@keyframes moveImage {
    0% {
        transform: translateX(1) translateY(1);
    }

    25% {
        transform: translateX(100px) translateY(1);
    }

    50% {
        transform: translateX(100px) translateY(100px);
    }

    75% {
        transform: translateX(0) translateY(100px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}

/* Different animation delays for each image */
/* .coding-image:nth-child(1) {
    animation-delay: 0s;
}

.coding-image:nth-child(2) {
    animation-delay: 1s;
}

.coding-image:nth-child(3) {
    animation-delay: 2s;
}

.coding-image:nth-child(4) {
    animation-delay: 3s;
}

.coding-image:nth-child(5) {
    animation-delay: 4s;
}

.coding-image:nth-child(6) {
    animation-delay: 5s;
}

.coding-image:nth-child(7) {
    animation-delay: 6s;
}

.coding-image:nth-child(8) {
    animation-delay: 7s;
} */

.About-col-2 {
    flex-basis: 60%;
    margin-left: 13.5%;
    max-width: 51.5%;
}

.About-col-2 p {
    font-size: 1.5rem;
}

.sub-title {
    font-size: 55px;
    font-weight: 600;
    border-top: 5px solid #233DFF;
    width: fit-content;
    margin: 3em 0 0;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;

}

.tab-links {
    font-size: 18px;
    font-weight: 500;
    margin-right: 50px;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #233DFF;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    margin: 10px 0;
    list-style: none;
    font-size: 14px;
}

.tab-contents ul li span {
    font-size: 16px;
    color: #233DFF;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/* ******Services*********** */

#Services {
    padding: 80px 0;

}

.sub-title-services {
    font-size: 55px;
    font-weight: 600;
    border-top: 5px solid #233DFF;
    width: fit-content;
    margin-top: 3rem;
}

.container-s {
    margin-left: 13%;
    margin-right: 4%;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    margin-top: 50px;

}

.services-list h2 {
    font-size: 25px;
    margin-bottom: 25px;
}

.services-list p {
    font-size: 14px;
}

.services-list a {
    font-size: 12px;
    text-decoration: none;
    color: white;
    margin-top: 20px;
    display: inline-block;
}

.services-list i {
    font-size: 40px;
    margin-bottom: 25px;
}

.services-list div {
    background-color: #30323f;
    padding: 40px;
    border-radius: 12px;
    color: #F4F6FC;
    transition: background 0.5s, transform 0.5s;
    cursor: pointer;
}

.services-list div:hover {
    background: #233DFF;
    transform: translateY(-10px);
}

/* *********Portfolio****** */
#Portfolio {
    padding: 80px 0;
}

.container-p {
    margin-left: 13%;
    margin-right: 4%;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 30px;
    margin-top: 50px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    cursor: pointer;
}

.work:hover {
    transform: scale(1.05);
    transition: transform 0.5s ease-in-out;
}

/* ***************Contact************* */

.row-ltr {
    display: flex;
    flex-flow: row wrap;
}

.container-c {
    margin-left: 13%;
    margin-right: 4%;
}

.contact-left {
    flex-basis: 35%;
}

.contact-left p {
    margin-top: 30px;
    font-size: 14px;
}

.contact-left p i {
    color: #233DFF;
    margin-right: 15px;
    font-size: 25px;
}

.contact-right {
    flex-basis: 60%;
}

.btn2 {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: #233DFF;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #F4F6FC;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #233DFF;
    transition: 0.3s ease;
    cursor: pointer;
    margin-left: 20px;
}

.btn2:hover {
    transform: scale3d(1.03);
    background-color: #F4F6FC;
    color: #233DFF;
    box-shadow: 0 0 25px #abb3e7;
}

.contact-right form {
    width: 100%;
    margin-top: 19%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #e2e9ff;
    padding: 15px;
    margin: 15px 0;
    color: #30323f;
    font-size: 18px;
    border-radius: 6px;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background-color: #abb3e7;
    font-weight: 400;
    margin-top: 20px;
    font-size: 11px;
}

.copyright i {
    color: #233DFF;
}

@keyframes cursor {
    to {
        border-left: 3px solid #233DFF;
    }
}

@keyframes words {

    0%,
    33% {
        content: "Full-Stack Developer";
    }

    34%,
    67% {
        content: "SEO Service Provider";
    }


    68%,
    100% {

        content: "Copywriter";
    }
}

@media (max-width: 1000px) {
    .home {
        gap: 4rem;
    }
}

@media(max-width:995px) {
    .home {
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3 {
        font-size: 2.5rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
}