/* variables */

:root
{
    --bg-color : rgba(20, 20, 20, 1);
    --primary-color : rgba(169, 147, 191, 1);
    --para-color : rgba(255, 255, 255, 0.63);
    --Title-color : rgba(255, 255, 255);
    --primary-color-hover : rgb(150, 115, 185);
    --field-color : rgba(255, 255, 255, 0.076);
}

/* ========= variables ======== */

/* Global */

*
{
    padding: 0px;
    margin : 0px;
    box-sizing: border-box;
}

body
{
    font-family: Montserrat, monospace, sans-serif;
    background-color: var(--bg-color);
}

section{
    max-width: 80%;
    min-width: 2%;
    margin: 0 auto;
}

a{
    text-decoration: none;
    color: inherit;
}

ul
{
    list-style: none;
}

.error-border {border: 1px solid red !important;}

.success-border {border: 1px solid green !important;}

.error {
    margin-bottom: 10px;
}


.cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: rgba(128, 128, 128, 0.093);
    animation: borderr 2s linear infinite alternate-reverse;
}


@keyframes borderr {
    0% {
        width: 40px;
        height: 40px;
    } 
    50%
    {
        width: 50px;
        height: 60px;
    }
    70%
    {
        width: 60px;
        height: 50px;
    }
    100%
    {
        width: 70px;
        height: 70px;
    }
}
/* ======== Global ======== */

/*Home header*/

#Home
{
    height: 100vh;
    overflow: hidden;
}

#Home header
{
    position:relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#Home header .logo
{
    display: flex;
    align-items: center;
    column-gap: 10px;
    color: var(--Title-color);
    font-weight: 500;
}

#Home header nav ul{
    display: flex;
    flex-wrap: nowrap;
    column-gap: 40px;
    row-gap: 10px;
    font-size: 14px;
}

#Home header nav ul li {
    font-size: 1em;
    color: var(--para-color);
    padding: 15px;
    border-radius: 20px;
    transition: .2s linear;
}

.Active
{
    color: var(--primary-color)!important;
    font-weight: 600!important;
}

#Home header nav ul li:hover
{
    color: var(--primary-color);
    font-weight: 600;
}

#Home .icons
{
    display: flex;
    gap: 20px;
    align-items: center;
}

#Menu {
    display: none;
}

/*home main*/

h1 {
    font-size: 100px;
    color: var(--Title-color);
    font-weight: 400;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #A993BF;
    width: fit-content;
    animation: blink 1s infinite ;
}

@keyframes blink{
    50%{
        border-color:transparent;
    }
}

#Home main
{
    position: relative;
    width: 100%;
    height: 100%;
    margin-top: 20px;
}

#Home main picture
{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

#Home main::after
{
    content: "";
    position: absolute;
    width: 100%;
    height: 40px;
    background-color: var(--bg-color);
    bottom: 40px;
    filter: blur(20px);
    z-index: 1000;
}


#Home main picture img
{
    max-width: 650px;
    min-width: 200px;
}

.Firstline
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#Home main .Intro{
    position: absolute;
    top: 50px;
    right: 0;
    display: flex;
    width: fit-content;
    gap: 20px;
    align-items: center;
}

.Intro .info 
{
    display: flex;
    flex-direction: column;
    row-gap: 40px;
    color: var(--para-color);
}

.Intro .info p 
{
    color: var(--primary-color);
    letter-spacing: 4px;
}

.Intro .info button
{
    position: relative;
    border: none;
    width: fit-content;
    padding: 10px 20px;
    border-radius: 10px ;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: .3s ease;
}
.Intro .info button::after
{
    content: "";
    background-color: var(--primary-color);
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    filter: blur(30px);
}

.Intro .info button:hover
{
    background-color: var(--primary-color-hover);
}
.Firstline {
    width: 500px;
}

.Secondline {
    height: 120px;
    width: 200px;
}

.Skills
{
    position: absolute;
    bottom: 15%;
}

.skill
{
    width: 300px;
    bottom: 0;
}

.skill .skillTitle
{
    display: block;
    margin-top: 20px;
}

.skill  span
{
    font-size: 12px;
    color: var(--para-color);
}

.visualData
{
    display: flex;
    gap: 10px;
    align-items: center;
}

.bar
{
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    overflow: hidden;
}

.progress {
    width: 0%;
    background:linear-gradient(to bottom,#9d7cff,#c2a9ff);
    height: 100%;
    transition: width 1.5s linear;
}

.Visual 
{
    position: absolute;
    right: 0;
    bottom: 15%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.Visual h2
{
    position: absolute;
    top: 20px;     
    left: 50%;
    transform: translateX(-50%);
    color: var(--Title-color);
    font-size: 70px;
    font-weight: 500;
}

.VisualData
{
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--para-color);
}

.light
{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background-color: var(--primary-color);
    filter: blur(80px);
    z-index: -1;
}

#About
{
    margin-top: 70px;
    height: fit-content;
}
#About main 
{
    display: flex;
    gap: 20px;
    color: var(--para-color);
    position: relative;
}


#About main .aboutImg
{
    width: 600px;
    object-fit: contain;
    margin-top: 90px;
}

h2{
    font-size: 90px;
    color: var(--Title-color);
    font-weight: 400;
    margin-bottom: 20px    
}

#About main p
{
    line-height: 30px;
}

#About main .slider
{
    position: relative;
    margin: 20px 0;
    height: 70px;
    overflow: hidden;
    width: 300px;
}
#About main .slider::after
{
    right: 0;
}

#About main .slider::before,
#About main .slider::after
{
    content: "";
    width: 20px;
    height: 100%;
    position: absolute;
    background-color: var(--bg-color);
    z-index: 10;
    filter: blur(15px);
}

#About main .slider .svgs img
{
    height: 50px;
    width: 50px;
    position: absolute;
    left: -50px;
    animation: infinitLoop 20s linear infinite;
    top: 50%;
    transform: translateY(-50%);
}


@keyframes infinitLoop{
    0%{
        left: -50px;;
    }
    100%
    {
        left: 100%;
    }
}

.img1 { animation-delay: calc(20s / 6 * (6 - 1) * -1)!important;}
.img2 { animation-delay: calc(20s / 6 * (6 - 2) * -1)!important;}
.img3 { animation-delay: calc(20s / 6 * (6 - 3) * -1)!important;}
.img4 { animation-delay: calc(20s / 6 * (6 - 4) * -1)!important;}
.img5 { animation-delay: calc(20s / 6 * (6 - 5) * -1)!important;}
.img6 { animation-delay: calc(20s / 6 * (6 - 6) * -1)!important;}

#About main img.line
{
    position: absolute;
    top: 20px;
}

#About footer
{
    position: relative;
    color: var(--para-color);
    line-height: 30px;
    width: 100%;
}

#About footer::after
{
    content: "";
    position: absolute;
    width: 100%;
    height: 20px;
    background-color:var(--bg-color);
    bottom: 0px;
    filter: blur(20px);
    z-index: 1000;
    left: 0;
}

/* Projects */

#Projects
{
    margin-top: 70px;
}

/*Contact Us*/

#ContactMe
{
    position: relative;
    margin: 70px auto;
    color: var(--para-color);
}

#ContactMe h2{
    text-align: end;
}

#ContactMe main
{
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 20px;
    margin-top: 40px;
}

#ContactMe img.line{
    position: absolute;
    top: 10px;
}

#ContactMe .contactInfo
{
    display: flex;
    flex-direction : column;
    align-items: center;
}

#ContactMe .contactInfo h3
{
    color: var(--primary-color);
    font-size: 25px;
    margin-bottom: 20px;

}

.InfoWithIcon div
{
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 500;
}

.InfoWithIcon
{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    align-self: start;
}

.InfoWithIcon a
{
    color: var(--primary-color);
    text-decoration: underline;
}

#ContactMe .contactForm
{
    background-color: var(--field-color);
    border-radius: 20px;
    padding: 30px;
}

#ContactMe .contactForm form
{
    display: flex;
    flex-direction: column;
}

#ContactMe .contactForm form label
{
    color: white;
    font-size: 14px;
    margin-bottom: 15px;
}

#ContactMe .contactForm form input,
#ContactMe .contactForm form textarea
{
    margin-bottom: 20px;
    padding: 15px 10px;
    border-radius: 10px;
    border: 1px solid var(--para-color);
    outline: none;
    background-color: transparent;
    color: var(--para-color);
}


#ContactMe .contactForm form button
{
    padding: 10px 20px;
    width: fit-content;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    background: linear-gradient(to right, rgba(169, 147, 191, 1),
     rgb(152, 107, 196));
     color: white;
}

#ContactMe .ContactIcons
{
    display: flex;
    gap: 70px;
}

#ContactMe .ContactIcons a
{
    position: relative;
}



#ContactMe .ContactIcons a::after
{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 110;
    filter: blur(15px);
}

#ContactMe .mainContact
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#ContactMe .formGroup
{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

#footer
{
    border-top: 1px solid var(--para-color);
    padding: 70px 0;
}

#footer h4{
    color: var(--Title-color);
    font-weight: normal;
}

#footer main
{
    display: grid;
    grid-template-columns: 300px auto auto auto auto;
    max-width: 80%;
    min-width: 2%;
    margin: 0 auto;
    align-items: start;
    gap: 20px;
}

#footer main p 
{
    color: var(--para-color);
    font-size: 13px;
    line-height: 30px;
}


#footer main .head
{
    display: flex;
    gap: 10px;
    align-items: center;
}

#footer main aside
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 250px;
}

#footer main .resources,
#footer main .contact,
#footer main .getIntouch
{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#footer main ul
{
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 40px;
    color: var(--para-color);
    font-size: 13px;
}

#Projects p
{
    margin-top: 20px;
    color: var(--para-color);
    font-size: 20px;
}

#Projects .projects
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}



/* Media Query */

@media screen and (min-width: 1800px)
{
    section {
        max-width: 1600px;
    }

    #footer main
    {
        max-width: 1600px;
    }
}


@media screen and (max-width: 1440px)
{
    section {
        max-width: 95%;
    }

    #footer main
    {
        max-width: 95%;
    }
}

@media screen and (max-width: 1180px)
{
    h1 {
        font-size: 80px;
    }

    h2 {
        font-size: 80px;
    }

    #About main .aboutImg
    {
        width: 400px;

    }

    #About main img.line
    {
        position: absolute;
        top: 0px;
    }

    .Visual h2
    {
        font-size: 50px;
    }

    picture {
        top: 150px;
    }

    picture img
    {
        width: 500px;
    }

    .Skills
    {
        width: 250px!important;
    }
    .skill
    {
        width: 100%;
    }
    .Visual svg
    {
        width: 250px;
    }
}



@media screen and (max-width: 900px) {

    #Home header .logo p {
        display: none;
    }

    picture img{
        width: 350px;
    }
    picture {
        top: 300px;
    }

    .light {
        filter: blur(50px);
    }

    .Secondline{
        display: none;
    }
    h1
    {
        font-size: 70px;
    }

    h2
    {
        font-size: 60px;
    }

    #About p
    {
        font-size: 14px;
    }

    #footer main
    {
        display: grid;
        grid-template-columns: 300px auto auto;
        justify-content: center;
        row-gap: 20px;
    }

    #footer main .resources,
    #footer main .contact,
    #footer main .getIntouch
    {
        gap: 10px;
    }

    #footer main aside
    {
        height: 200px;
    }

    #footer main ul
    {
       gap: 20px;
    }
}

@media screen and (max-width: 770px) {


    #Home main .Intro
    {
        left: 0;
        top: 150px;
    }

    .Firstline {
        width: 400px;
    }
    .light {
        display: none;
    }

    #Menu {
        display: block;
    }

    #Home header nav ul{
        flex-direction: column;
    }
    #Home header nav{
        width: 200px;
        position: absolute;
        border: 1px solid white;
        background-color: var(--bg-color);
        padding: 10px;
        top: calc(100% + 10px);
        left: 100%;
        border-radius: 20px 0 20px 20px;
        transition: all .7s ease;
        z-index: 1000;
    }
    #Home main picture
    {
        left: calc(100% - 230px);
        top: 0;
        transform: translateX(0);
        height: 230px;
        width: 230px;
        border: 1px solid var(--primary-color);
        overflow: hidden;
        border-radius: 100%;
        display: flex;
        justify-content: center;
        align-items: start;
    }

    #Home main picture img
    {
        width: 300px;
        object-fit: cover;
    }

    #Home main picture::after
    {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        height: 20px;
        width: 100%;
        border-radius: 100%;
        background-color: var(--primary-color-hover);
        filter: blur(40px);
        z-index: -1;
    }

    #Home header nav.open
    {
       left: calc(100% - 200px);
    }

    #About main .aboutImg
    {
        display: none;
    }

    #About main h2
    {
        text-align: end;
    }

    #About main img.line
    {
        top: -10px;
        width: 400px;
    }

    #About footer {
        border-top: 2px solid var(--primary-color);
        margin: 20px 0;
        padding-top: 20px;
        text-align: center;
    }

    #ContactMe main
    {
        grid-template-columns: 100%;
        gap: 30px;
    }

    #ContactMe img.line
    {
        top: -10px;
        width: 400px;
    }

    #ContactMe .contactInfo h3
    {
        font-weight: 400;
        font-size: 20px;
    }

    .InfoWithIcon 
    {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer  .InfoWithIcon 
    {
        align-items: start;
    }

    #ContactMe .contactInfo p
    {
       text-align: center;
       font-size: 14px;
    }

    #ContactMe .mainContact .ContactIcons
    {
        justify-content: center;
    }

    #footer main
    {
        grid-template-columns: 300px auto;
    }
    #footer {padding: 30px 0;}
}

@media screen and (max-width: 600px) 
{
    #Projects h2
    {
        text-align: center;
    }

    #Projects p 
    {
        font-size: 14px;
    }

    #Home main picture
    {
        left: 0;
        position: relative;
        margin: 20px 0;

    }

    #ContactMe h2
    {
        text-align: center;
    }

    #ContactMe img.line
    {
        display: none;
    }
    #About main h2
    {
        text-align: center;
    }
     #About main img.line
    {
        display: none;
    }
    #About main p 
    {
        text-align: center;
    }
    #About main .slider{
        margin: 0 auto;
    }
    #Home
    {
        height: fit-content;
    }
    #Home main
    {
        display: flex;
        flex-direction: column;
        align-items: center;   
    }

    #Home main .Intro
    {
        position: relative;
        width: 100%;
        justify-content: center;
        top: 0;
        margin-top: 10px;
    }

    .Firstline{
        position: relative;
        top: 10px;
        margin-top: 30px;
    }
    #Home main .Intro .info
    {
        align-items: center;
    }

    #Home main .Visual
    {
        position: relative ;
        top: 0 ;

    }
    #Home main .Visual h2
    {
        font-size: 30px;
   
    }
    #Home main .Skills
    {
        position: relative;
        margin-bottom: 20px;
        top: 0;
    }
}

@media screen and (max-width: 450px) {
    h1
    {
        font-size: 40px;
    }
    h2
    {
        font-size: 40px;
    }
    #About p
    {
        font-size: 12px;
    }
    .Firstline
    {
        width: 300px;
    }
    #ContactMe
    {
        padding: 16px;
    }

    #ContactMe .contactInfo p
    {
        font-size: 12px;
    }

    #ContactMe .ContactIcons
    {
        margin: 20px 0px 10px 0;
    }
    #footer main
    {
        grid-template-columns: 250px;
        align-items: center;
        gap: 40px;
        text-align: center;
    }

    #footer main .head 
    {
        justify-content: center;
    }

    #footer main aside {
        text-align: center;
    }

    #footer .InfoWithIcon {
        align-items: center;
        margin: 15px 0;
    }
}