@import url('https://fonts.googleapis.com/css2?family=Dosis&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Dosis', sans-serif;
}

body {
    background: #333;
}
#preloader{
    background: #000;
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease-in-out;
}
.preloader-container{
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
#preloader .ring{
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: -30px;
    border: 4px solid transparent;
    border-top: 4px solid #82CD47;
    animation: animate 4s linear infinite;
}
@keyframes animate{
    0%{
        transform: rotate(0deg);
    }
    100%{
        transform: rotate(360deg);
    }
}
#preloader .ring::before{
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: #82CD47;
    box-shadow: 0 0 0 5px #82CD4733,
    0 0 0 10px #82CD4722,
    0 0 0 20px #82CD4711,
                0 0 20px #82CD47,
                0 0 50px #82CD47;
}
#preloader .ring:nth-child(2){
    animation: animatea 4s linear infinite -1s;
    border-top: 4px solid transparent;
    border-left: 4px solid #6C00FF;
}
#preloader .ring:nth-child(2)::before{
    content: '';
    position: absolute;
    top: initial;
    bottom: 12px;
    left: 12px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: #6C00FF;
    box-shadow: 0 0 0 5px #6C00FF33,
                0 0 0 10px #6C00FF22,
                0 0 0 20px #6C00FF11,
                0 0 20px #6C00FF,
                0 0 50px #6C00FF;
}
@keyframes animatea{
    0%{
        transform: rotate(360deg);
    }
    100%{
        transform: rotate(0deg);
    }
}
#preloader .ring:nth-child(3){
    position: absolute;
    top: -66.66px;
    animation: animate 4s linear infinite -3s;
    border-top: 4px solid transparent;
    border-left: 4px solid #FF597B;
}
#preloader .ring:nth-child(3)::before{
    content: '';
    position: absolute;
    bottom: 12px;
    left: 12px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: #FF597B;
    box-shadow: 0 0 0 5px #FF597B33,
                0 0 0 10px #FF597B22,
                0 0 0 20px #FF597B11,
                0 0 20px #FF597B,
                0 0 50px #FF597B;
}
.preloader-container p{
    position: absolute;
    font-size: 2em;
    color: #fff;
    letter-spacing: 0.15em;
    bottom: -100px;

}
section {
    min-height: 100vh;
    color: #fff;
    width: 100%;
    overflow: hidden;
}

/* nav bar */

/* Nav bar end */
/* Home */
#home,
.skill-container,
.services-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 20px;
    height: 100%;
}

.text-box {
    text-align: center;
}

.text-box h2 {
    font-size: 8vw;
}

.text-box span h4 {
    text-align: right;
    font-size: 3vw;
    color: #FFFFD0;
}

.text-box h2 span {
    color: #A555EC;
}

section img {
    position: absolute;
    height: 15vh;
    width: 15vw;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgb(255, 255, 255, 0.1));
}

#img1 {
    top: 15vh;
    left: 40vw;
}

#img2 {
    bottom: 2vh;
}

#img3 {
    right: 2vw;
    top: 40vh;
}

#img4 {
    right: 20vw;
    bottom: 15vh;
}

#img5 {
    left: 4vw;
    bottom: 30vh;
}

#img6 {
    left: 25vw;
    bottom: 15vh;
}

#img7 {
    right: 4vw;
    top: 4vh;
}

#img8 {
    bottom: 1vh;
    left: 3vw;
}

#img9 {
    bottom: 5vh;
    right: 5vw;
}

#img10 {
    top: 10vh;
    left: 4vw;
}

#img11 {
    top: 14vh;
    right: 30vw;
}

#img12 {
    top: 20vh;
    left: 18vw;
}

#img13 {
    top: 25vh;
    left: 6vw;
}

#img14 {
    top: 25vh;
    right: 16vw;
}

/* Home end */
/* About */
#about {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    min-height: 60vh;
    gap: 3rem;
    padding: 40px 0;
}

#about img {
    position: relative;
    height: 50vh;
    width: 400px;
}

.about-text {
    width: 500px;
    padding: 10px;
}
.about-text h1{
    font-size: 3rem;
}

.about-text p {
    width: 100%;
}


/* About end */
/* Skills */
#skills{
    text-align: center;
    min-height: 50vh;
}
.skill-box {
    position: relative;
    margin: 50px;
}

.circles {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circles .points {
    width: 3px;
    height: 15px;
    background: #0007;
    position: absolute;
    border-radius: 3px;
    transform: rotate(calc(var(--i)*var(--rot))) translateY(-70px);
}

.marked {
    animation: glow 0.001s linear forwards;
    animation-delay: calc(var(--i)*0.05s);
}

@keyframes glow {
    0% {
        background: #0007;
        box-shadow: none;
    }

    100% {
        background: var(--bgcolor);
        box-shadow: 0 0 10px var(--bgcolor);
    }
}

.skill-box .skill-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.skill-box .skill-text h2 {
    font-size: 1.5em;
    font-weight: 400;
    letter-spacing: 1px;
}

.skill-box .skill-text small {
    font-size: 1.2em;
    display: block;
}

/* Skills end */
/*Project*/
#portfolio {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    min-height: 70vh;
}

.project-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    transform-style: preserve-3d;
    width: 90%;
    padding: 40px 0;
}

.project-card {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 20px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: 1s ease;
}

.project-card:hover .project-box {
    transform: rotateY(180deg);
}

.project-box .imgBx {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-box .imgBx img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.project-box .contentBx {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transform: rotateY(180deg);
}

.contentBx div {
    transform-style: preserve-3d;
    padding: 20px;
    background: linear-gradient(45deg, #00d8fe, #ffeb3b);
    transform: translateZ(100px);
    border-radius: 30px;
}

.contentBx div h2 {
    color: #111;
    font-size: 20px;
    letter-spacing: 1px;
    font-size: 700;
}

.contentBx div p {
    color: #fff;
    font-size: 16px;
}

.contentBx div a i {
    color: #000;
    font-size: 2em;
}

/*Project end*/
/*Achievements*/
#achievement {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
    font-weight: 400;
}

.timeline-container {
    padding: 2rem;
    margin: 0 auto;
    max-width: 800px;
}

.top-section {
    text-align: center;
    padding: 4rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.top-section h1 {
    font-weight: 400;
    letter-spacing: 1px;
}

.timeline {
    position: relative;
    min-height: 150px;
}

.line {
    position: absolute;
    z-index: 2;
    left: calc(50% - 1px);
    width: 2px;
    top: -50px;
    bottom: -50px;
    background: #fff;
    display: none;
}

.line:before,
.line:after {
    position: absolute;
    display: block;
    content: '';
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    background-color: #fff;
    left: 50%;
    transform: translateX(-50%);
}

.line:after {
    bottom: 0;
}

.timeline-section {
    display: flex;
    opacity: 0;
    transform: translateX(-100%);
    transition: 600ms ease;
    position: relative;
    z-index: 1;
    margin: 50px 0;
    padding: 1rem;
    border-radius: 1rem;
    align-items: center;
    min-height: 300px;
    min-width: 400px;
}

.timeline-section:nth-child(odd) {
    flex-direction: row-reverse;
    transform: translateX(100%);
}

.bead {
    position: absolute;
    display: block;
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    background: #fff;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
}

.timeline-content {
    width: calc(50% - 2rem);
    margin-left: 10px;
}

.timeline-content h3{
    font-size: 1.2rem;
    color: #00d8fe;
}

.show-me:nth-child(n) {
    transform: none;
    opacity: 1;
}

/*Achievements end*/
/*contact*/
#contact{
    font-family: "Poppins", sans-serif;
    min-height: 10vh;
}
.contact-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 90vh;
    padding: 2rem;
    background-color: #333;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form {
    width: 100%;
    max-width: 820px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.contact-form {
    background-color: #111;
    position: relative;
}

.circle {
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 20%, #fff);
    position: absolute;
}

.circle.one {
    width: 130px;
    height: 130px;
    top: 130px;
    right: -40px;
}

.circle.two {
    width: 80px;
    height: 80px;
    top: 10px;
    right: 30px;
}

.contact-form:before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: #111;
    transform: rotate(45deg);
    top: 50px;
    left: -13px;
}

form {
    padding: 2.3rem 2.2rem;
    z-index: 10;
    overflow: hidden;
    position: relative;
}

.title {
    color: #fff;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.7rem;
}

.input-container {
    position: relative;
    margin: 1rem 0;
}

.input {
    width: 100%;
    outline: none;
    border: 2px solid #fafafa;
    background: none;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: 0.3s;
}

textarea.input {
    padding: 0.8rem 1.2rem;
    min-height: 150px;
    border-radius: 22px;
    resize: none;
    overflow-y: auto;
}

.input-container label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    padding: 0 0.4rem;
    color: #fafafa;
    font-size: 0.9rem;
    font-weight: 400;
    pointer-events: none;
    z-index: 1000;
    transition: 0.5s;
}

.input-container.textarea label {
    top: 1rem;
    transform: translateY(0);
}

.btn {
    padding: 0.6rem 1.3rem;
    background-color: #fff;
    border: 2px solid #fafafa;
    font-size: 0.95rem;
    color: #111;
    line-height: 1;
    border-radius: 25px;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    margin: 0;
}

.btn:hover {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.input-container span {
    position: absolute;
    top: 0;
    left: 25px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    padding: 0 0.4rem;
    color: transparent;
    pointer-events: none;
    z-index: 500;
}

.input-container span:before,
.input-container span:after {
    content: "";
    position: absolute;
    width: 10%;
    opacity: 0;
    transition: 0.3s;
    height: 5px;
    background-color: #111;
    top: 50%;
    transform: translateY(-50%);
}

.input-container span:before {
    left: 50%;
}

.input-container span:after {
    right: 50%;
}

.input-container.focus label {
    top: 0;
    transform: translateY(-50%);
    left: 25px;
    font-size: 0.8rem;
}

.input-container.focus span:before,
.input-container.focus span:after {
    width: 50%;
    opacity: 1;
}

.contact-info {
    padding: 2.3rem 2.2rem;
    position: relative;
}

.contact-info .title {
    color: #111;
    font-weight: 700;
}

.text {
    color: #333;
    font-size: 1em;
    margin: 1.5rem 0 2rem 0;
}

.information {
    display: flex;
    color: #555;
    margin: 0.7rem 0;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.icon {
    width: 28px;
    margin-right: 0.7rem;
    position: relative;
}

.information p a {
    text-decoration: none;
    color: #111;
}

.social-media {
    padding: 2rem 0 0 0;
}

.social-media p {
    color: #333;
}

.social-icons {
    display: flex;
    justify-content: space-evenly;
    margin-top: 0.5rem;
}

.social-icons a {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    background: #111;
    color: #fff;
    text-align: center;
    line-height: 35px;
    margin-right: 0.5rem;
    transition: 0.3s;
}

.social-icons a:hover {
    transform: scale(1.05);
}

.contact-info:before {
    content: "";
    position: absolute;
    width: 110px;
    height: 100px;
    border: 22px solid #1abc9c;
    border-radius: 50%;
    bottom: -77px;
    right: 50px;
    opacity: 0.3;
}


/*contact end*/
/*footer*/
footer {
    position: relative;
    color: #333;
    background: #fff;
    width: 100%;
    min-height: 100px;
    padding: 20px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

footer .social_icon,
.menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.social_icon li,
.menu li {
    list-style: none;
}

.social_icon li a {
    font-size: 2em;
    color: #333;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
}

.social_icon li a:hover {
    transform: translateY(-10px);
}

.menu li a {
    font-size: 1.1em;
    color: #333;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
    text-decoration: none;
    opacity: 0.75;
}

.menu li a:hover {
    opacity: 1;
}

footer .wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("../img/wave.png");
    background-size: 1000px 100px;
}

footer #wave1 {
    z-index: 100;
    opacity: 1;
    bottom: 0;
    animation: animate1 30s linear infinite;
}

@keyframes animate1 {
    0% {
        background-position-x: 0px;
    }

    100% {
        background-position-x: 1000px;
    }
}

footer #wave2 {
    z-index: 99;
    opacity: 0.5;
    bottom: 10px;
    animation-delay: -5s;
    animation: animate2 15s linear infinite;
}

@keyframes animate2 {
    0% {
        background-position-x: 0px;
    }

    100% {
        background-position-x: -1000px;
    }
}

footer #wave3 {
    z-index: 98;
    opacity: 0.2;
    bottom: 15px;
    animation-delay: -2s;
    animation: animate1 30s linear infinite;
}

@keyframes animate3 {
    0% {
        background-position-x: 0px;
    }

    100% {
        background-position-x: -1000px;
    }
}

footer #wave4 {
    z-index: 97;
    opacity: 0.7;
    bottom: 20px;
    animation-delay: -5s;
    animation: animate2 15s linear infinite;
}