@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Grandstander:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Reenie+Beanie&display=swap');

* {
    margin: 0px;
    padding: 0px;
    font-family: Dm sans;
    box-sizing: border-box;
    &::selection {
        background-color: var(--mainColor);
        color: var(--backgroundColor);
    }
    &::before , &::after{
        box-sizing: border-box;
    }
}

:root {

    --textColor: white;
    --backgroundColor: #0B0B0B;
    --mainColor: #ffbf00;

    --ls: 4rem;
    --fs--200: 1.2rem;
    --fs--400: 1rem;
    --fs--700: 5rem;
    --fs--xl: 8rem;

}

@media only screen and (min-width: 0px) {
    :root {
        --fs--xl: 3rem;
        --fs--200: 0.65rem;
        --ls: 1.5rem;
        --fs--400: 0.5rem;
        --fs--700: 2rem;
    }
}

@media only screen and (min-width: 768px) {
    :root {
        --fs--xl: 4.5rem;
        --ls: 2rem; 
        --fs--200: 0.85rem;
        --fs--400: 0.7rem;
        --fs--700: 3rem;
    }
}

@media only screen and (min-width: 1024px) {
    :root {
        --fs--xl: 5.5rem;
        --ls: 2.5rem; 
        --fs--200: 0.95rem;
        --fs--400: 0.8rem;
        --fs--700: 4rem;
    }
}

@media only screen and (min-width: 1281px) {
    :root {
        --ls: 3rem; 
        --fs--xl: 7rem;
        --fs--200: 0.8rem;
        --fs--400: 1rem;
        --fs--700: 5rem;
    }
}

@media only screen and (min-width: 1600px) {
    :root {
        --fs--xl: 8.5rem;
        --ls: 3.5rem; 
        --fs--200: 1.2rem;
        --fs--400: 1rem;
    }
}

.btn, .nav li a, .icons i , .info_wrapper h1 span , .nav li{
    transition-property: color, background-color , border;
    transition: 500ms ease-in;
}

.btn, .nav li a, .icons i , .info_wrapper h1 span{
    &:hover {
        transition: 150ms ease-in;
    }
}

.btn {
    font-weight: bold;
    text-align: center;
    margin: 0px 2em;
    padding: 10px 20px;
    background-color: transparent;
    cursor: pointer;
    border: 1px solid var(--mainColor);
    color: var(--mainColor);
    border-radius: 5px;
    font-size: 1rem;
    &:hover {
        background-color: var(--mainColor);
        color: var(--backgroundColor);
    }
    &:active {
        scale: 1.1;
    }
}

html {
    scroll-behavior: smooth;
    &::-webkit-scrollbar {
        background-color: var(--backgroundColor);
        width: 0.8em;
    }
    &::-webkit-scrollbar-thumb { 
        cursor: grab;
        background-color: var(--mainColor);
    }
    &::-webkit-scrollbar-thumb:active {
        cursor: grabbing;
    }
}

body {
    position: relative;
    background-color: var(--backgroundColor);
    color: var(--textColor);
    
}

header {
    position: absolute;
    top: 1rem;
    right: 3%;
    height: 4rem;
    &::before {
        position: absolute;
        content: "";
        width: inherit;
        height: inherit;
        filter: blur(10px);
    }
    & .nav {
        margin: 0em 3em;
        user-select: none;
        display: flex;
        align-items: center;
        & li {
            list-style: none;
            cursor: pointer;
            & a {
                text-align: center;
                display: inline-block;
                font-weight: bold;
                width:8rem;
                transition-property: color, transform;
                text-decoration: none;
                color: var(--textColor);
                position: relative;
                &:hover {
                    color: var(--mainColor);
                    transform: translateY(-15%);
                };
                &:active {
                    scale: 1.1;
                };
                &:focus-visible {
                    color: var(--mainColor);
                } 
            }
        }
    }
}

.home {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    & .info_wrapper {
        margin: 1em 2em;    
        text-align: center;
        & h1 {
            text-align: left ;
        }
    }
}

.paragraghInfo {
    letter-spacing: normal;
    font-weight: 400;
    font-size: var(--fs--400);
    display: inline-block;
    margin-top: 5px;
    &::after {
        content: "";
        display: none;
    }
}

.notAnimated {
    position: relative;
    transition: all 1s;
    transform-origin: top;
    transform: scaleY(1);
    max-width: max-content;
    display: inline-block;
        
    &::before {
        position: absolute;
        content: '';
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-color: #0f0f0f;
        transform-origin: bottom;
        transition: all 1.5s;
        }
}

.animated {
    &::before {
        transform: scaleY(0);
        }
}

.welcomeText {
    position: relative;
    font-family: Grandstander;
    display: block;
    font-size: var(--fs--xl);
    font-weight: bolder;
    transition: transform 2s ease-in , color 2s ease-in;
    
    &::after {
        position: absolute;
        content: attr(data-parentText);
        color: #5a5a5a;
        z-index: -1;
    }
    
    &:nth-child(1) {
        display: inline-block;
        letter-spacing: var(--ls);
    }
    
    &:nth-child(3) {
        letter-spacing: 10px;
    }
}

.AboutME {
    height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.profilePicContainer {
    & div {
        scale: 0;
        border-radius: 50%;
        padding: 2px;
        background-color: #ffbf00;
        & img {
            user-select: none;
            width: clamp(7rem , 20vw + 1rem , 20rem);
        }
    }
}

.about {
    & h1 {
        font-size: var(--fs--700);
        padding: 1rem;
        margin-left: 2rem;
        line-height: 100%;
        & span {
            font-family: Grandstander;
        }
        & span:nth-child(1) {
            color: var(--mainColor);
        }
    }
    & section {
        display: flex;
    
        & ul {
            display: inline-block;
            margin: 0.5rem 4rem;
            & li {
                font-size: var(--fs--200);
                color:#b1b1b1;
                margin: 1rem 0rem;
                &::marker {
                    color: var(--mainColor);
                }
                & strong {
                    color: var(--textColor);
                }
            }
        }}
}



.sklTitle {
    font-family: Grandstander;
    text-align: center;
    font-size: clamp(2rem , var(--fs--700) , 5rem);
    margin: 7rem 0px;
}

.sklContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    & section {
        margin: 0% 10%;
        & div {
            scale: 0;
            transform: rotate(45deg);
            border: 1px solid var(--mainColor);
            background-color: #333333;
            border-radius: 20%;
            margin-bottom: 40%;
            filter: drop-shadow(2px 2x 5px black);
            display: flex;
            justify-content: center;
            align-items: center;
            & h3 {
                font-family: DM sans;
                transform: rotate(-45deg);
                color: var(--mainColor);
            }
            
        }
    }
    
}

.ContactMe {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    & h2 {
        margin: 4rem 0rem;
        font-size: clamp(1.5rem , var(--fs--700) , 3rem);
        font-family: Grandstander;
    }
    & form {
        width: 50%;
        display: flex;
        flex-direction: column;
        & div {
            position: relative;
            margin: 1em 0em;
            & input, & textArea {
                width: 100%;
                padding: 15px;
                font-size: 18px;
                border-radius: 5px;
                resize: none;
                background-color: #0f0f0f;
                color: var(--textColor);
                border: 1px solid var(--textColor);
                &:focus {
                    border: 1px solid #ffbf00;
                    outline: none;
                }
                &:focus + *, &:valid + *{
                    top: 0%;
                    color: var(--textColor);
                    font-size: 16px;
                } 
                &.inputEmail:not(:placeholder-shown) + label {
                    top: 0%;
                    color: var(--textColor);
                    font-size: 16px;
                }
            }
            & input {
                border-radius: 50px;
            }
            & label {
                background-color: #0f0f0f;
                padding: 0px 10px ;
                border-radius: 50px;
                transition: all 500ms ease;
                position: absolute;
                top: 50%;
                left: 3%;
                color: var(--textColor);
                font-size: 14px;
                transform: translateY(-50%);
                pointer-events: none;
            }
        }

        & button {
            width: 100%;
            margin: 0px;
        }
    }

}

.inputAnimate {
    scale: 0;
}

footer {
    width: 100%;
    height: 20vh;
    height: 20svh;
    display: flex;
    justify-content: end;
    align-items: end;
    color: var(--mainColor);
    margin: 2rem 0rem 0rem 0rem;
    & h3 {
        font-family: Reenie Beanie;
        font-size: 1rem;
    }
}


@media only screen and (min-width: 0px) {

    header {
        & button {
            position: relative;
            display: block;
            background-color: transparent;
            border: none;
            margin-right: 1em;
            & i {
                color: var(--textColor);
                font-size: 2em;
            }
            & div {
                display: none;
                position: absolute;
                width: 10em;
                top: 50%;
                right: 0%;
                transform: translateY(10%) ;
                border-radius: 5px;
                z-index: 1;
                background-color: #3f3f3f;
                & a {
                    display: block;
                    padding: 10px;
                    color: var(--textColor);
                    text-decoration: none;
                    border-bottom: 1px solid black;
                }
            }
        }

        & .nav {
            display: none;
        }

    }
    .welcomeText {
        &::after {
            inset: 5px 5px;
        }
        &:nth-child(2) {
            letter-spacing: 0.3rem;
        }
        &:nth-child(3) {
            letter-spacing: 5px;
        }
    }
    .paragraghInfo {
        width: 100px ;
    }
    .AboutME {
        flex-direction: column;
        justify-content: space-evenly;
    }
    .about {
        & section {
            display: flex;
            flex-direction: column;
            align-items: start;
        }
    }
    .sklContainer {
        & section {
            & div {
                width: 5rem;
                height: 5rem;
                & h3 {
                    font-size: 0.8rem;
                }
            }
        }
    }
    .ContactMe {
        & form {
            width: 90%;
        }
    }
}

@media only screen and (min-width: 768px) {
    header{
        & button {
            & i {
                font-size: 2.5em;
            }
        }
    }
    .welcomeText {
        &::after {
            inset: 7px 7px;
        }
    }
    .paragraghInfo {
        width: 150px ;
    }
    .ContactMe {
        & form {
            width: 50%;
        }
    }
}

@media only screen and (min-width: 1024px) {
    header {
        & button {
            display: none;
        }
        & .nav {
            display: flex;
        }
    }
    .welcomeText {
        &:nth-child(2) {
            letter-spacing: 0.5rem;
        }
        &:nth-child(3) {
            letter-spacing: 10px;
        }
    }
    .paragraghInfo {
        width: 180px ;
    }
    .about {
        & section {
            display: flex;
            flex-direction: row;
            justify-content: center;
        }
    }
}

@media only screen and (min-width: 1281px) {
    .AboutME {
        flex-direction: row;
        align-items: center;
    }
    .sklContainer {
        & section {
            & div {
                width: 7rem;
                height: 7rem;
                & h3 {
                    font-size: 1rem;
                }
            }
        }
    }
    
}

@media only screen and (min-width: 1600px) {
    .welcomeText {
        &::after {
            inset: 10px 10px;
        }
    }
    .paragraghInfo {
        width: 180px ;
    }
}

.animate__animated.animate__zoomIn,
.animate__animated.animate__zoomInLeft, 
.animate__zoomInRight {
    animation-duration: 1s;
}
