/* global rules  Start*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --container-padding : 0 90px;
    --button-padding : 13px 30px;
    --primary-color : #FD6F00;
    --secondary-background : #1E1E1E;
    --card-color : #242424;
    --linear-primary-color : linear-gradient(to right ,#FA6E00 ,#E60026);
    --linear-secondary-color : linear-gradient(to right ,#FD6F00 ,#E46400);
    --text-primary-color : #959595;
    --text-third-color : #DFDFDF;
    --transition-global : all 0.3s ease;
}

body {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #121212;
}

@media screen and (max-width: 915px) {
    :root {
        --container-padding : 0 45px;
    }
}

/* Icons Style */

.icons {
    padding: 15px 0;
}
.icons a {
    text-decoration: none;
}

.icons a span{
    position: relative;
    margin-right: 8px;
    display: inline-block;
    width: calc(28px + 8px);
    aspect-ratio: 1;
    border: 1px solid #575757;
    border-radius: 50%;
    i {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        color: #ffffff;
        font-size: 28px;
    }
}

/* Header Style Start */

header {
    padding: var(--container-padding);
}

header nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

header nav .toggle-btn {
    display: none;
    border: none;
}
header nav .logo {
    color: transparent;
    font-size: large;
    font-weight: bold;
    background-image: var(--linear-primary-color);
    --wepkit-background-clip: text;
    background-clip: text;
}

header nav ul {
    display: flex;
    align-items: stretch;
    list-style: none;
    color: var(--text-primary-color);
    li.active {
        color: var(--primary-color);
    }
    a {
        text-decoration: none;
        color: inherit;
    }
}

header nav ul li {
    margin-left: 20px;
    cursor: pointer;
}

header nav button:last-child {
    color: #ffffff;
    padding: var(--button-padding);
    background: linear-gradient(to right ,#FD6F00 ,#E46400);
    border-radius: 4px;
    border: 0;
}

/*             Media Header               */

@media screen and (max-width : 790px) {
    header nav {
        .logo {
            transform: translateX(43px)
        }
        .links {
            width: 100%;
            position: absolute;
            background-color: var(--card-color);
            flex-direction: column;
            text-align: center;
            gap: 0.5rem;
            left: 50%;
            top: 0;
            transform: translate(-50%,60%);
            transition: var(--transition-global);
            opacity: 0;
            visibility: hidden;
            &.active {
                visibility: visible;
                opacity: 1;
            }
            li {
                margin: 0;
            }
        }
        .toggle-btn {
            cursor: pointer;
            display: block;
            width: 30px;
            background-color: transparent;
            span {
                display: block;
                margin: 5px 0;
                width: 100%;
                height: 2px;
                background-color: var(--text-third-color);
                transition: var(--transition-global);
            }
            span:nth-child(2) {
                width: 50%;
            }
            &:hover span {
                width: 100%;
            }
        }
    }
}
/* cross style */
.cross {
    overflow: hidden;
    span {
        &:first-child {
            transform: skewY(45deg);
        }
        &:last-child {
            transform: skewY(-45deg);
        }
        &:nth-child(2) {
            display: none;
        }
    }
}

/* Header Style End */

/* Section Style Start */

section {
   height: calc(100vh - 96px);
   padding: var(--container-padding); 
   padding-top: 70px;
   overflow: hidden;
}
section .left {
    float: left;
    padding-top: 2rem;
}

section .left p {
    color: #707070;
}
section .left span {
    color: #959595;
    padding: 10px 0;
}
section .left h1 {
    color: transparent;
    padding: 15px 0;
    font-size: 42px;
    font-weight: bold;
    background-image: linear-gradient(to right , #984300 0%, #FD6F00 46%, #CA5900 100%);
    --wepkit-background-clip: text;
    background-clip: text;
}
section .left .clickable {
    padding: 15px 0;
}
section .left .clickable button {
    padding: var(--button-padding);
    border-radius: 4px;
    border: 0;
}
section .left .clickable button:first-child {
    color: #ffffff;
    background-image: var(--linear-secondary-color);
}
section .left .clickable button:last-child {
    margin-left: 24px;
    background-color: transparent;
    border: 1px solid var(--text-primary-color);
    color: var(--text-primary-color);
}

section .right {
    float: right;
    padding-top: 20px;
}

section .right .elipse {
    display: inline-block;
    background-color: #161617;
    padding: 150px;
    border-radius: 50%;
    background-image: url(../assets/avatar.svg);
    background-size: 100%;
    background-position: center center;
    background-repeat: no-repeat;
}

/*           Media Section             */
@media screen and (max-width : 915px) {
    section {
        height: auto;
        padding-bottom: 2rem;
        .left {
            padding-top: 0;
            float: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            h1 {
                font-size: 34px;
            }
        }
        .right {
            float: none;
            align-self: center;
            padding-bottom: 30px;
        }
        display: flex;
        flex-direction: column;
    }
}

@media screen and (max-width : 790px) {
    section .left{
        padding-top: 70px;
    }
}

@media screen and (max-width : 700px) {
    section .left .box-sec {
        width: 100%;
    }
}


/* Section Style End */

/* Portfolio Style Start */
.portfolio {
    height: calc(100vh - 96px);
    padding: var(--container-padding);
    padding-top: 70px;
    color: #ffffff;
}
.portfolio h2 {
    text-align: center;
}
.portfolio .content {
    display: grid;
    grid-template-columns: repeat(3 ,auto);
    margin-left: 5rem;
    padding-top: 50px;
    padding-bottom: 30px;
    gap: 50px;
}
.portfolio .content .card {
    background-color: var(--card-color);
    width: fit-content;
    border-radius: 8px;
}
.portfolio .content .card img {
    width: 240px;
    aspect-ratio: 1;
}
.portfolio .content .card .desc {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 5px;
    p {
        color: var(--text-primary-color);
    }
}

/*                Media Portfolio               */
@media screen and (max-width : 915px) {
    .portfolio {
        height: auto;
    }
    .portfolio .content {
        grid-template-columns: 1fr 1fr;
        margin-left: 0;
        place-items: center;
    }
    
}
@media screen and (max-width : 790px) {
    .portfolio .content {
        grid-template-columns: 1fr;
    }
    .portfolio .filter {
        flex-wrap: wrap;
    }
}
/* Portfolio Style End */

/* Footer Style Start */
footer {
    text-align: center;
    padding: var(--container-padding);
    background-color: var(--secondary-background);
}
footer h3 {
    padding: 20px 0;
    color: transparent;
    background-image: var(--linear-primary-color);
    --wepkit-background-clip: text;
    background-clip: text;
}
footer .info {
    position: relative;
    display: flex;
    color: var(--text-third-color);
    justify-content: space-evenly;
    padding-bottom: 50px;
    &::after {
        content: "";
        position: absolute;
        background-color: var(--text-third-color);
        opacity: 0.4;
        width: 50%;
        height: 1px;
        bottom: 30%;
    }
}
/* Footer Style End */