@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes slideLeft {
    from{
        transform: translateX(-200px);
    }
    to{
        transform: translateX(0);
    }
}
@keyframes slideRight {
    from{
        transform: translateX(200px);
        filter: blur(10px);
    }
    to{
        filter: blur(0px);
        transform: translateX(0);
    }
}

@keyframes popUp {
    from{
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.1) translateY(100);
    }
    to{
        opacity: 1;
        filter: blur(0px);
        transform: scale(1) translateY(0);
    }
}

.hero {
    height: 100vh;
    background: linear-gradient(40deg, rgba(2, 11, 42, 0.464), rgba(8, 6, 152, 0.563));
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 128px;

    ::before {
        content: '';
        position: absolute;
        top: 40px;
        right: 0;
        width: 170px;
        height: 170px;
        background: radial-gradient(rgba(3, 22, 147, 0.8), transparent);
        border-radius: 50%;
        filter: blur(64px);
        mix-blend-mode: lighten;
    }

    ::after {
        content: '';
        position: absolute;
        bottom: -50px;
        left: -5vw;
        width: 270px;
        height: 270px;
        background: radial-gradient(rgba(149, 0, 242, 0.192), transparent);
        border-radius: 50%;
        filter: blur(264px);
        mix-blend-mode: lighten;
    }
}

.hero {
    .hero-content {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    h1 {
        font-size: 2rem;
        color: #fff;
        text-align: center;
    }

    p {
        font-size: 5vw;
        color: #fff;
        text-align: center;
        font-weight: 700;
        background: linear-gradient(40deg, rgb(136, 1, 246), rgba(241, 2, 14, 0.97), rgba(208, 239, 4, 0.997), rgba(2, 233, 241, 0.947));
        background-size: 200% 200%;
        animation: gradientAnimation 1s ease infinite;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        height: 8vw;
    }

    button {
        padding: 8px 16px;
        border-radius: 20px;
        background: linear-gradient(40deg, rgba(83, 9, 144, 0.936), rgba(241, 2, 14, 0.936));
        color: white;
        font-weight: 600;
        font-size: 18px;
        border: none;
        cursor: pointer;
        transition: all 0.3s;
        width: 170px;
    }

    button:hover {
        background: linear-gradient(40deg, rgba(241, 2, 14, 0.912), rgba(142, 228, 12, 0.973));
        box-shadow: 0 0 20px 10px rgba(232, 3, 113, 0.3);
    }

    .mainImg {
        width: 15vw;
        transform: translateX(10px) translateY(20px);
    }

    .imageContainer {
        overflow: hidden;
        width: 18vw;
        height: 18vw;
        border-radius: 50%;
        background: linear-gradient(40deg, rgba(243, 45, 1, 0.984), rgba(5, 1, 237, 0.836), rgba(1, 186, 237, 0.836), rgba(1, 237, 111, 0.836));
        margin-right: 100px;
        filter: drop-shadow(0 0 200px rgba(161, 1, 84, 0.962));
        transition: all 0.3s;
        transform:  translate(0);
        animation: slideLeft 1s ease-in-out;
    }

    .imageContainer:hover {
        transform: scale(1.2);
    }
}

.about {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 128px;
    background: linear-gradient(40deg, #AE759F, #bc96e6);
    position: relative;

    h1 {
        font-size: 80px;
        font-weight: 900;
        animation: slideLeft linear both;
        animation-timeline: view();
        animation-range: 5% 64%;

        span {
            -webkit-text-fill-color: transparent;
            -webkit-text-stroke: 2px #fff;
        }
    }

    p {
        font-size: 18px;
        color: #dddddd;
        animation: slideRight linear both;
        animation-timeline: view();
        animation-range: 5% 40%;
    }

    span {
        font-weight: 700;
    }
}

.projects {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 128px;
    background: linear-gradient(40deg, #080698, #AE759F);
    position: relative;

    h1 {
        font-size: 80px;
        font-weight: 900;
        animation: slideLeft linear both;
        animation-timeline: view();
        animation-range: 5% 65%;
    }

}


.masonry-container {
    column-count: 5;
    column-gap: auto;
    width: 85vw;
    height: 70vh;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    position: relative;
    animation: popUp linear both;
    animation-timeline: view();
    animation-range: 5% 30%;
}

.masonry-item img {
    display: block;
    width: 100%;
}

.masonry-item img:hover {
    filter: brightness(0.5);
}

.masonry-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    pointer-events: none;
    white-space: nowrap;
    font-size: 1rem;
    text-align: center;
}

.contact {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 128px;
    background: linear-gradient(-40deg, #624ebf, #5f4050);
    position: relative;
    gap: 100px;

    h1 {
        font-size: 80px;
        font-weight: 900;
        animation: popUp linear both;
    animation-timeline: view();
    animation-range: 5% 50%;
    }

    h1::after{
        content: "Let's Work Together";
        font-size: 1.2rem;
        font-weight: 400;
        color: #ddd;
        position: absolute;
        bottom: 0;
        left: 20px;
    }

}


.contact-form {
    background: none;
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    animation: slideRight linear both;
    animation-timeline: view();
    animation-range: 5% 40%;

    label {
        display: block;
        font-size: 1.2rem;
        color: #ddd;
        margin-bottom: 5px;
    }

    input,
    textarea {
        width: 100%;
        font-size: 1.1rem;
        padding: 10px;
        margin-bottom: 20px;
        border: none;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        resize: none;
    }

    input:focus,
    textarea:focus {
        outline: none;
    }

    button {
        width: 100%;
        padding: 10px;
        border: none;
        border-radius: 50px;
        background: linear-gradient(40deg, rgba(128, 35, 204, 0.936), rgba(241, 2, 14, 0.936));
        color: white;
        font-weight: 600;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.3s;
    }

    button:hover {
        background: linear-gradient(40deg, rgba(241, 2, 14, 0.912), rgba(142, 228, 12, 0.973));
        box-shadow: 0 0 20px 10px rgba(232, 3, 114, 0.9);
    }
}

@media screen and (max-width: 940px) {
    .hero {
        padding: 0 16px;
        flex-direction: column;
        gap: 20px;
    }

    .hero > .hero-content{
        width: 100%;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 2rem;
        height: 60px;
    }

    .hero button {
        width: 150px;
    }

    .hero .mainImg {
        width: 50vw;
        transform: translateX(-20px) translateY(20px);
    }

    .hero .imageContainer {
        width: 52vw;
        height: 52vw;
        margin: 0;
    }

    .about{
        padding: 64px 32px;
    }
    .about h1 {
        font-size: 40px;
    }
    .about p {
        font-size: 0.9rem;
    }

    .projects h1 {
        font-size: 40px;
    }
    .projects{
        padding: 128px 16px;
    }

    .masonry-container {
        column-count: 2;
        width: 100%;
        height: 80%;
    }

    .masonry-item {
        width: 100%;
    }

    .masonry-title {
        font-size: 0.6rem;
    }

    .contact h1 {
        font-size: 40px;
    }
    .contact h1::after {
        bottom: -15px;
    }

    .contact-form {
        padding: 20px;
        width: 90%;
    }
    .contact{
        flex-direction: column;
        padding: 128px 16px;
    }
    
}


