@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --box-unit: 60px
}

* {
    margin: 0;
    padding: 0;
    font-family: Inter;
    scroll-behavior: smooth;
}

.inter {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "slnt" 0;
}

/* Style the horizontal scrollbar track */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
    /* Width of the scrollbar track */
}

/* Style the horizontal scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
    background-color: #D72121;
    /* Color of the thumb */
    border-radius: 6px;
    /* Rounded corners of the thumb */
}

/* Style the horizontal scrollbar track when being hovered */
::-webkit-scrollbar-track {
    /* background: linear-gradient(152.28deg, #281D64 -11.68%, #D9D9D9 -11.68%, #281D64 -2.2%, #6D2FCC 26.47%, #B768EE 61.37%, #7AB7EE 101.11%, #D9D9D9 105.59%); */
    background-color: #202020;
    /* Color when hovered */
}

a {
    text-decoration: none;
    color: white
}

html {
    color: white;
}

/* navbar */
.animate-txt {
    padding-top: 0.06em;
    color: #D72121;
    position: relative;
}

.animate-txt span {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    animation: flip 3s infinite;
    animation-delay: calc(.3s * var(--i));
}

@media screen and (max-width: 600px) {
    .animate-txt span {
        font-size: 0.8em;
    }
}

@keyframes flip {
    0%,
    80% {
        transform: rotateY(360deg);
    }
}

nav {
    transition: 0.5s;
    z-index: 2;
    /* background-color: rgba(32, 32, 32, 0.3); */
    background-color: transparent;
    backdrop-filter: blur(10px);
    background-image: linear-gradient(120deg, rgba(58, 58, 58, 0.3), rgba(0, 0, 0, 0.3));
    /* background-size: 1px 1px; */
    display: flex;
    opacity: 0;
    /* pointer-events: none; */
    position: fixed;
    justify-content: space-between;
    width: 100vw;
    padding: 1.3em 2.5em;
}

nav>h1 {
    color: #D72121;
    font-size: 2em;
}

.menu_icons_container {
    display: none;
}

.phone_nav_contents {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 3em;
    gap: 6em;
    background-color: #202020;
    width: 100vw;
    height: 100vh;
    top: 65px;
    position: fixed;
    z-index: 5;
    transition: 0.8s;
    transform: translateY(-120%);
    /* flex-direction: column;
    position: fixed;
    background-color: #202020;
    height: 75vh;
    width: 60vh;
    font-size: 1.3em;
    padding: 2em;
    padding-bottom: 6em;
    left: 0;
    top: 80;
    transition: 0.8s;
    transform: translateY(-120%);
    align-items: center;
    justify-content: space-between; */
}

.nav_contents {
    display: flex;
    width: max-content;
    gap: 20px;
    /* background-color: red; */
    align-items: center;
    justify-content: space-between;
    width: 22em;
    margin-right: 4em;
}

.nav_contents>a,
.phone_nav_contents>a {
    color: white;
    text-decoration: none;
    transition: 0.4s;
}

.nav_contents>a:hover,
.phone_nav_contents>a:hover {
    color: #D72121;
}

.open_icon {
    /* background-color: red; */
    position: relative;
    right: 30px;
}


@media screen and (max-width: 547px) {
    nav {
        padding: 0.8em 0em;
    }

    nav > h1 {
        padding-left: 0.8em;
    }

    .nav_contents {
        display: none;
    }

    .menu_icons_container {
        display: flex;
    }

    #open_nav {
        display: flex;
    }

    #close_nav {
        display: none;
    }

    .open_icon {
        width: 2.5em;
        cursor: pointer;
    }

}

.rest {
    background-image: linear-gradient(rgb(0, 0, 0), rgb(38, 37, 37), rgb(0, 0, 0));
        /* background-image: linear-gradient(rgb(0, 0, 0), rgb(44, 42, 42), rgb(0, 0, 0)); */
    padding-left: 3em;
    padding-right: 3em;
}

@media screen and (max-width: 500px) {
    .rest {
        padding-left: 1em;
        padding-right: 1em;
    }
}
body {
    display: flex;
    flex-direction: column;
}

.scroll_see_txt {
    /* background-color: red; */
    position: absolute;
    right: -0.5em;
    bottom: 13vh;
    transform: rotate(270deg);
    background-image: linear-gradient(-225deg,
                #D72121 0%,
                #6b36a3 29%, 
                #ff1361 67%,
                #fff800 100%);
        background-size: auto auto;
        background-clip: border-box;
        background-size: 200% auto;
        background-clip: text;
        text-fill-color: transparent;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: textclip 2s linear infinite;
        animation-direction: alternate;
        animation-fill-mode: forwards;
        animation-delay: 2s;
        display: inline-block;
        opacity: 0; 
}

@keyframes textclip {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
        background-position: 200% center;
    }
} 

/* CALEB ANIMATION */
.logo-container {
    display: flex;
    height: 100vh;
    position: relative;
    background-color: black;
}

.logo {
    height: max-content;    
    transform: rotate(0deg) translateX(-85px);
    /* width: max-content; */
    /* background-color: brown; */
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: logo-animation 1s ease-out 1s 1 alternate forwards;
    -webkit-animation: logo-animation 1s ease-out 1s 1 alternate forwards;
    /* animation: logo-animation 1s ease-out 1s 1 alternate forwards;
    -webkit-animation: logo-animation 1s ease-out 1s 1 alternate forwards;  */
}

.box {
    height: var(--box-unit);
    width: var(--box-unit);
    animation-name: box-animation;
    animation-delay: 1.7s;
    animation-duration: 0.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
        /* animation-iteration-count: infinite; */
}

.box-red {
    color: red;
    background-color: red;
}
.txt-red {
    color: red;
}

.box-blue{
    background-color: blue;
}
.txt-blue {
    color: blue;
}

.box-green{
    color: green;
    background-color: green;
}
.txt-green {
    color: green;
}

.box-orange {
    background-color: orange;
}
.txt-orange { 
    color: orange;
}

.box-purple {
    background-color: purple
}
.txt-purple {
    color: purple;
}

.logo-txt {
    opacity: 0;
    background-color: transparent;
    /* background-color: #D72121; */
    transform: rotate(270deg) ;
    font-size: 3em;
    animation: logo-txt-animation 1s ease-in 1.7s 1 alternate forwards ;
    /* width: min-content; */
    /* height: max-content; */
}

.hero-txt {
    color: white;
    opacity: 0;
    transform: rotate(270deg);
    position: relative;
    bottom: 170px;
    left: 50px;
    letter-spacing: 1.3px;
    animation: hero-txt-animation 0.5s ease-in 2.5s 1 forwards ;
} 

@keyframes hero-txt-animation {
    100% { 
        opacity: 1;
    }
}

@keyframes logo-txt-animation {
    100% {
        opacity: 1;
    }
}

@keyframes logo-animation {
    0% {
        transform: rotate(0deg) translateX(-85px);
            /* transform: translateX(-70px); */
    }
    100% {
        /* transform: translateX(42vw) translateY(40vh) rotate(90deg); */
        transform: translateX(calc(50vw - 52%)) translateY(calc(50vh - 50%)) rotate(90deg);
        /* align-items: center; */
        /* transform: translateX(42vw) translateY(33vh) rotate(90deg); */
    }    
}

@media screen and (max-width: 700px) {
    @keyframes logo-animation {
        0% {
            transform: rotate(0deg) translateX(-70px);
            /* transform: translateX(-70px); */
        }

        100% {
            /* transform: translateX(42vw) translateY(40vh) rotate(90deg); */
            transform: translateX(calc(50vw - 46%)) translateY(50%) rotate(90deg);
            /* background-color: gold; */
            /* text-align: center; */
            /* align-items: center; */
            /* transform: translateX(5em) translateY(15em) rotate(90deg); */
        }
    }
}

@keyframes box-animation {
    0% {
        margin-top: 0px;
    }
    100% {
        margin-top: 10px;
        background-color: unset;
    }
}

@media screen and (max-width: 450px) {
    .logo {
        /* margin-left: 1%; */
        /* background-color: green; */
        /* transform: translateX(calc(50vw - 52%)) translateY(calc(50vh - 50%)) rotate(90deg); */
    }
    .box {
        width: 47px;
        height: 47px;
    }
    .hero-txt {
        bottom: 140px;
        left: 40px;
    }
}


/* About section */
.heading {
    font-size: clamp(1.7em, 2.5vw, 2.6em);
    font-weight: 800;
    text-align: center;
}

.about {
    margin-top: 1em;
}

/* .heading span {
    color: rgb(115, 3, 167);
} */

.tag {
    padding-bottom: 1em;
    padding-top: 0.5em;
    font-weight: bold;
}

.abt-img {
    height: 20em;
    width: 20em;
    border: 1px solid rgb(31, 31, 31);
    overflow: hidden;
    display: flex;
    justify-content: center;
    border-radius: 50%;
}

.abt-img img {
    pointer-events: none;
    margin-top: -3em;
}

.about-row {
    display: grid;
    grid-template-columns: auto auto;
    padding-top: 3em;
}

.about-content {
    width: 85%;
    padding-left: 10%;
}

.about-content p {
    font-size: clamp(0.8em, 1.1vw, 1.2em);
    line-height: 33px;
}

.about-content h2 {
    font-size: clamp(1.2em, 1.5vw, 1.6em);
    margin-bottom: 20px;
}

.about-box-container {
    padding-top: 1em;
}

.about-box-container > .about-box {
    display: grid;
    grid-template-columns: auto auto;
}

.about-box > p {
    letter-spacing: 1.3px;
    word-spacing: 5px;
}

.about-box > p > span {
    color: #011aff;
}

.about-box-container > .about-box > p {
    color: white;
}

.about-content button {
    cursor: pointer;
    margin-top: 1em;
    background-color: #011aff;
    color: white;
    padding: 1em 2.5em;
    border: none;
    box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
    border-radius: 5px;
}

.about-content button i {
    transition: 0.3s;
}

.about-content button:hover i {
    transform: translate(7px);
}

.social-icons {
    margin-top: 1em;
    display: flex;
    list-style-type: none;
}

.social-icons>li {
    padding-right: 1em;
    transition: 0.2s;
    animation: bounce 0.15s cubic-bezier(1, 1, 1, 1) calc(.2s * var(--j)) 2 alternate;
    /* animation-delay: calc(.2s * var(--i));
  animation-fill-mode: forwards; */
}

.social-icons>li:hover {
    scale: 1.2;
}


.social-icons a {
    font-size: clamp(1.4em, 2vw, 2.1em);
    display: flex;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    color: none;
    /* background-color: red; */
    /* color: #00d9ff; */
    background-color: #09011b;
    width: 1.5em;
    height: 1.5em;
    border-radius: 100%;
    -webkit-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

@media (max-width: 830px) {
    .about-box-container>.about-box {
        display: flex;
        flex-direction: column;
        gap: 10px
    }
    .about-box > p {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .about-row {
        padding-top: 2em;
    }

    .abt-img {
        display: none;
    }

    .about-content {
        width: 95%;
        padding-left: 0%;
    }

    .about-box-container > .about-box {
        display: flex;
        flex-direction: column;
    }

    .about-box-container > .about-box > p {
        padding-bottom: 1em
    }

}

/* Skills Section */
.skills {
    padding-top: 5em;
    /* background: linear-gradient(to bottom, #57059e, #4a00e0); */
    color: white;
    padding-bottom: 2em;
}

.skills .heading {
    color: white;
}

.heading span {
    color: rgb(255, 230, 0);
        animation: footer-txt 1.5s ease-out 0s infinite alternate;
}

.skills svg {
    width: clamp(4em, 10vw, 11em);
    height: clamp(4em, 10vw, 11em);
}

.skills-container {
    display: grid;
    grid-template-columns: auto auto auto auto;
    margin-top: 2em;
    gap: 3em;
}

.skills-item>p {
    padding-left: 1em;
}

.skills-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background-color: green; */
    transition: 0.3s;
    cursor: pointer;
}

.skills-item:hover {
    transform: scale(1.15);
}

@media (max-width: 700px) {
    .skills {
        padding-bottom: 5em;
    }

    .skills-container {
        grid-template-columns: auto auto auto;
    }

    .skills svg {
        display: flex;
        margin-left: auto;
        margin-right: auto;
    }

    .skills-item>p {
        text-align: center;
        padding-left: 0em;
    }
}

/* project section */
.project-section {
    margin-top: 2em;
    /* background-color: aliceblue; */
    /* height: 120em; */
}

.project-container {
    margin-top: 2em;
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 2%;
}

.project-item {
    background-color: rgb(44, 42, 42);
    border-radius: 20px;
    padding-bottom: 5%;
    margin-bottom: 2em;
}

.project-item img {
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.project-details {
    padding-top: 1em;
    padding-left: 1em;
}

.project-details > span {
    background-color: rgb(0, 0, 0);
    font-size: 0.75em;
    border-radius: 0.3em;
    margin-right: 0.5em;
    padding: 0.2em 0.6em;
}

.project-details h2 {
    font-size: clamp(1.1em, 1.5vw, 1.6em);
    margin-bottom: 0.2em;
}

.project-details p {
    font-size: clamp(0.8em, 1.1vw, 1.2em);
    line-height: 25px;
    letter-spacing: 1px;
    padding-top: 0.2em;
    margin-top: 0.2em;
}

.project-icons {
    margin-top: 1em;
    display: flex;
}

.project-icons a {
    display: flex;
    align-items: center;
    /* color: black; */
}

.project-icons a:hover {
    /* background-color: rgb(213, 211, 211); */
}

.project-icons span {
    padding-right: 1.5em;
    padding-left: 0.3em;
    font-size: clamp(0.8em, 1vw, 1.1em)
}

.phone-mobile-container {
    display: flex;
    justify-content: space-between;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

.phone-mobile-container > h2 {
    /* border-bottom: 2px solid rgb(38, 37, 37); */
    /* color: rgb(248, 160, 7); */
    cursor: pointer;
    transition: 0.3s;
}

.andriod_tag {
    color: red;
    /* font-style: italic; */
    font-size: 0.8em;
    padding-left: 0.3em;
}

@media (max-width: 900px) {
    .project-container {
        grid-template-columns: auto auto;
    }
}

@media (max-width: 700px) {
    .phone-mobile-container>h2 {
        font-size: 1.3em;
        margin-top: 0.6em;
    }

    .project-section {
        padding-bottom: 75%;
    }

    .project-container {
        grid-template-columns: auto;
        gap: 3%;
    }

    .project-item {
        border-radius: 20px;
        padding-bottom: 5%;
        margin-bottom: 1em;
        z-index: 1001;
        /* remove should */
    }
}

/* Contact Section */
.content {
    display: grid;
    grid-template-columns: auto auto;
}

.contact {
    /* background: white; */
    min-height: 60vh;
    padding-top: 3em;
}

.contact .container {
    max-width: 1050px;
    width: 100%;
    /* background: #fff; */
    border-radius: 1.5rem;
    /* margin: 2rem 5rem; */
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5em;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.contact .container .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 2rem;
}

.contact .content .image-box {
    max-width: 60%;
    margin-left: 4rem;
}

.contact .content .image-box img {
    width: 90%;
    height: 30rem;
    position: relative;
}

.contact .content form {
    width: 45%;
    margin-right: 3.5rem;
}

form .form-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group .field {
    height: 50px;
    display: flex;
    position: relative;
    margin: 1rem;
    margin: 1rem 0rem 1rem 0rem;
    width: 100%;
}

form i {
    position: absolute;
    top: 50%;
    left: 18px;
    color: rgb(51, 51, 51);
    font-size: 17px;
    pointer-events: none;
    transform: translateY(-50%);
}

form .field input,
form .message textarea {
    width: 100%;
    height: 100%;
    outline: none;
    padding: 0 16px 0 48px;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    border-radius: 5px;
    border: 1px solid rgb(51, 51, 51);
    background: #e5ecfb;
}

.field input::placeholder,
.message textarea::placeholder {
    color: rgb(51, 51, 51);
}

.field input:focus,
.message textarea:focus {
    padding-left: 47px;
    border: 2px solid rgb(115, 3, 167);
}

.field input:focus~i,
.message textarea:focus~i {
    color: rgb(115, 3, 167);
}

form .message {
    position: relative;
    margin: 1rem, 0rem 1rem 0rem;
    width: 100%;
}

form .message i {
    top: 25px;
    font-size: 20px;
    left: 15px;
}

form .message textarea {
    min-height: 130px;
    max-height: 230px;
    max-width: 100%;
    min-width: 100%;
    padding: 12px 20px 0 48px;
}

form .message textarea::-webkit-scrollbar {
    width: 0px;
}

form .button-area {
    display: flex;
    float: right;
    flex-direction: row-reverse;
}

.button-area button {
    margin-top: 1em;
    color: #fff;
    border: none;
    outline: none;
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 5px;
    padding: 0.4em 1.3em;
    background: #2506ad;
    box-shadow: 0px 5px 10px rgba(48, 68, 247, 0.6);
    transition: 0.3s ease;
    font-family: "Nunito", sans-serif;
}

.button-area button:hover {
    background: #421cecf5;
}

.button-area span {
    font-size: 17px;
    padding: 1rem;
    display: none;
}

.button-area button i {
    position: relative;
    top: 6px;
    left: 2px;
    font-size: 1rem;
    transition: 0.3s;
    color: #fff;
}

.button-area button:hover i {
    left: 8px;
}

/* contact section media queries starts */
@media (max-width: 900px) {
    .contact {
        min-height: unset;
    }

    .contact .container {
        margin: 1.5rem 0 2rem 0;
    }

    .contact .container .content {
        /* padding: 18px 12px; */
        padding: 1em 0em 1em 0.5em;
    }

    .contact .content .image-box {
        display: none;
    }

    .contact .content form {
        width: 100%;
        margin-right: 2rem;
    }

    /* .contact .container .content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 2.5rem 2rem;
    } */

    .contact .content .message {
        width: 80%;
        /* margin: 1rem, 0rem 1rem 0rem; */
    }
}

/* contact section media queries ends */

/* footer section starts */
.footer {
    min-height: auto;
    padding-top: 4em;
    /* background: rgb(0, 1, 43); */
}

.footer .box-container {
    /* display: flex;
justify-content: center;
flex-wrap: wrap; */

    display: grid;
    grid-template-columns: auto auto;
}

.f-box h2 {
    font-size: 2em;
    padding-bottom: 0.3em;
    color:#D72121;
    animation: footer-txt 1.5s ease-out 0s infinite alternate ;
}

@keyframes footer-txt {
    0% {
        color: #D72121;
    }
    33% {
        color: #011aff;
    }
    100% {
        color: #ffae00;
    }
}

.f-box h3 {
    padding-bottom: 0.3em;
}

.f-box p {
line-height: 20px;
font-size: 1em;
line-height: 28px;
letter-spacing: 1.5px;
/* padding-top: 1em; */
}
.f-box {
margin-bottom: 2em;
}
.share {
    margin-top: 1em;
    width: 10em;
    display: flex;
    justify-content: space-around;
    margin-bottom: 2em;
}

.share a {
    font-size: 1.3em;
    color: white;
}

.footer .credit {
    padding: 2em;
    text-align: center;
    font-size: 1.3rem;
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    color: #fff;
    border-top: 0.1rem solid #fff3;
}

.footer .credit a {
    color: #ffae00;
}

.footer .fa {
    color: #e90606;
    margin: 0 0.3rem;
    font-size: 1.5rem;
    animation: pound 0.35s infinite alternate;
}

@-webkit-keyframes pound {
    to {
        transform: scale(1.1);
    }
}

@keyframes pound {
    to {
        transform: scale(1.1);
    }
}

@media (max-width: 600px) {
    .footer .box-container {
        display: flex;
        flex-direction: column;
    }

    .f-box {
        margin-bottom: 3em;
    }
}

/* footer section ends */

/* For animation on Scroll */
.hidden {
    opacity: 0;
    /* filter: blur(5px); */
    transform: translateX(-100%);
    transition: all 1.5s;
}

.show {
    opacity: 1;
    /* filter: blur(0); */
    transform: translateX(0);
}

/* For animation on Scroll */