/* font-family: "Open Sans", sans-serif; */

/* A- Start Global Variables */
:root {
    --bgc-header: #BD5D38;
    --bgc-frame: #CA7D60;
    --header-font-color: #E1B6A5;
    --heading-font-color: #343A40; /* fallback color value #BD5D38 */
    --heading-sub-font-color: #6C757D; /* fallback color value #BD5D38 */   
    --bgc-fa-color: #495057;
}
/* A- End Global Variables */

/* B- Start Reset All Elements */
*, 
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: unset;
}
/* B- End Reset All Elements */

/* C- Start Body and container*/
body {
    font-family: "Open Sans", sans-serif;
}

.container {
    width: 100%;
    max-width: 1320px;
    background-color: #fff;
}
/* C- End Body and container */

/* D- Start Standard Media Queries */
@media (min-width: 576px) {
    .container {
        width: 540px;
    }
}
@media (min-width: 768px) {
    .container {
        width: 720px;
    }
}
@media (min-width: 992px) {
    .container {
        width: 940px;
    }
}
@media (min-width: 1200px) {
    .container {
        width: 1140px;
    }
}
@media (min-width: 1400px) {
    .container {
        width: 1320px;
    }
}
/* D- End Standard Media Queries */

/* E- Start Font Size and Typography */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
    font-size: clamp(1.75rem, 4vw, 2.50rem);
}
h3 {
    font-size: clamp(1.50rem, 3.5vw, 2rem);
}
h4 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}
p {
    line-height: 1.6;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
}
/* E- End Font Size and Typography */





body {
    display: flex;
    flex-flow: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 25px;
    position: relative;
    /* Scroll Bar */
    scrollbar-width: 12px;
    scrollbar-color: var(--bgc-header) #fff;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 12px;
}


::-webkit-scrollbar-thumb {
    background-color: var(--bgc-header);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--bgc-frame);
}

::-webkit-scrollbar-trace {
    background-color: #fff;
}



header.main {
    padding-inline: 1rem;
    padding-top: 6rem;
    flex-basis: 15%;
    height: 100vh;
    min-width: 250px;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    gap: 35px;
    background-color: var(--bgc-header);
    position: sticky;
    top: 0;
    left: 0;
}

header.main .image {
    display: flex;
    justify-content: center;
    align-items: center;
}

header.main .image a {
    outline: none;
}

header.main .image a img {
    width: 180px;
    aspect-ratio: 4 / 4;
    object-fit: contain;
    border-radius: 50%;
    border: 8px solid var(--bgc-frame);
    
}

header.main nav {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

header.main nav span {
    display: none;
}

header.main nav span + a{
    display: none;
}

header.main ul {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

header.main ul li a {
    text-transform: uppercase;
    font-size: clamp(1rem, 3vw, 1.15rem);
    font-weight: 600;
    color: var(--header-font-color);
}

header.main ul li.active a {
    color: #FFF;
}

header.main ul li a:hover {
    color: #fafafa;
    /* #E1B6A5 */
}


/* End Header */


/* Start main.Container */
main.container {
    flex-basis: 85%;
    position: relative;
    padding-top: 6rem;
}

main section {
    padding-inline: 2rem;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
}

main section::before {
    content: '';
    width: calc(100% + 32px);
    height: 1.8px;
    background-image: linear-gradient(to right, transparent 0.7%, #EEE 0.7%, #EEE 100%);
    position: absolute;
    bottom: 0;
    left: -32px;
}


main section:last-child {
    border-bottom: none;
}

main.container section:first-child {
    padding-top: 4rem;
    padding-bottom: 6rem;
}

main.container section:nth-child(n+2) {
    padding-block: 6rem;
}
section.about article {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

/* Start Section About */
section.about article .row:first-child {
    transform: scaleY(1.8);
}
section.about article .row:first-child h1 {
    text-transform: uppercase;
    letter-spacing: -3px;
    color: var(--heading-font-color);
    margin: 0;
}

section.about article .row:first-child h1 span {
    color: var(--bgc-header);
}

section.about article .row:first-child p {
    text-transform: capitalize; 
    color: var(--heading-font-color);
    margin-top: -8px;
    padding-inline:10px;
}

section.about article .row:first-child p span {
    padding-right: 8px;
    position: relative;
}

section.about article .row:first-child p span:not(:first-child)::before {
    content: '';
    width: 4px;
    height: 4px;
    background-color: var(--heading-font-color);
    border-radius: 50%;
    position: absolute;
    top: 12.5px;
    left: -8px;
    transform: translateY(-50%);
}

section.about article .row:first-child p span:last-of-type::after {
    content: '';
    width: 4px;
    height: 4px;
    background-color: var(--heading-font-color);
    border-radius: 50%;
    position: absolute;
    top: 12.5px;
    right: -10px;
    transform: translateY(-50%);
}

section.about article .row:first-child p a {
    padding-left: 10px;
    color: var(--bgc-header);
    font-size: inherit;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
}

section.about article .row:first-child p a::before {
    content: '';
    width: 100%;
    height: 2.5px;
    background-image: linear-gradient(to right, var(--bgc-header) 29%, transparent 29%, transparent 38%, var(--bgc-header) 38%, var(--bgc-header) 93%, transparent 93%, transparent 100%) ;
    position: absolute;
    bottom: -2px;
    left: 11px;
}

section.about article .row:nth-child(2) p {
    padding-inline: 10px;
    color: var(--heading-sub-font-color);
    font-size: clamp(1rem, 3vw, 1.25rem);
}

section.about article .row:last-child {
    padding-inline: 10px;
}

section.about article .row:last-child ul{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

section.about article .row:last-child ul li a i {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--bgc-fa-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
    font-size: 30px;
}

section.about article .row:last-child ul li a i:hover {
    background-color: var(--bgc-header);
}


/* Start all Sections */
main section:nth-child(n+2) {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}
main section:nth-child(n+2) h2 {
    flex-basis: 100%;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: var(--heading-font-color);
    margin-bottom: 20px;
    transform: scaleY(1.5);
}

main section:nth-child(n+2) article {
    flex-basis: 100%;
    width: 100%;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

main section:not(:first-of-type) article header {
    flex-basis: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

main section:not(:first-of-type) article header .title {
    text-transform: uppercase;
    letter-spacing: -2px;
    color: var(--heading-font-color);
    margin-bottom: 20px;
    transform: scaleY(1.2);
}
main section:not(:first-of-type) article header .title h3 {
    font-weight: bolder;
}

main section:not(:first-of-type) article header .title span {
    font-size: clamp(1rem, 3.5vw, 1.30rem);
    color: var(--heading-sub-font-color);
}

main section:not(:first-of-type) article header .date {
    align-self: flex-start;
    color: var(--bgc-frame);
}

main section:not(:first-of-type) article p {
    flex-basis: 82%;
    width: 82%;
    color: var(--heading-font-color);
}


/* Start Eductaion Section */
main section.education article {
    gap: 0;
}

main section.education article p {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: flex-start;
}


/* Start Skills Section */
main section.skills h3 {
    text-transform: uppercase;
    letter-spacing: -2px;
    font-size: clamp(1rem, 3.5vw, 1.30rem);
    color: var(--heading-sub-font-color);
    font-weight: 600;
    margin-bottom: 20px;
    transform: scaleY(1.5);
}

main section.skills article {
    gap: 40px;
}
main section.skills article .programming ul{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
}

main section.skills article .programming ul li i {
    font-size: 40px;
    color: var(--heading-font-color);
}


main section.skills article .workflow ul {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}


main section.skills article .workflow ul li {
    padding-left: 45px;
    color: var(--heading-sub-font-color);
    position: relative;
}

main section.skills article .workflow ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 7 Free';
    font-weight: 900;
    font-size: 15px;
    position: absolute;
    top: 0;
    left: 20px;
}


/* Start interests Section */
main section.interests article p {
    flex-basis: 100%;
    width: 100%;
}

/* Start Section Awards */
main section.awards article ul {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

main section.awards article ul li {
    padding-left: 45px;
    color: var(--heading-sub-font-color);
    position: relative;
}


main section.awards article ul li::before {
    content: '\f091';
    font-family: 'Font Awesome 7 Free';
    font-weight: 900;
    font-size: 15px;
    color: #FFC107;
    position: absolute;
    top: 0;
    left: 20px;
}

@media (max-width: 992px) {
    body {
        display: flex;
        flex-flow: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        position: relative;
    }


    header.main {
        padding-inline: 1rem;
        padding-block: 25px;
        flex-basis: 15%;
        max-height: 70px;
        width: 100%;
        display: flex;
        flex-flow: column;
        justify-content: space-between;
        align-items: flex-start;
        background-color: var(--bgc-header);
        position: sticky;
        top: 0;
        left: 0;
        z-index: 10;
    }

    header.main .image { 
        display: none;
    }

    header.main nav {
        flex-basis: 100%;
        width: 100%;
        display: flex;
        flex-flow: column;
        justify-content: space-between;
        align-items: flex-start;
        position: relative;
    }

    header.main nav span {
        display: inline-block;
        color: #fafafa;
        font-size: clamp(1rem, 2.5vw, 1.125rem);
    }

    header.main nav span + a {
        display: inline-block;
    }
    
    header.main nav span + a::before {
        content: '';
        width: 40px;
        height: 20px;
        background-color: transparent;
        border-top: 3px solid #EEE;
        position: absolute;
        top: 21px;
        right: 10px;
        transform: translateY(-50%);
    }

    header.main nav span + a::after {
        content: '';
        width: 40px;
        height: 20px;
        background-color: transparent;
        border-top: 3px solid #EEE;
        border-bottom: 3px solid #EEE;
        position: absolute;
        top: 12.5px;
        right: 10px;
        transform: translateY(-50%);
    }
    header.main nav ul {
        transition: all 0.4s ease-in-out 0s;
    }

    header.main nav a ~ ul {
        display: none;
        animation: fire 0.4s ease-out 0s 1 alternate-reverse both;
    }

    header.main nav .active ~ ul {
        padding-top: 25px;
        flex-basis: 100%;
        padding-inline: 1rem;
        width: calc(100% + 2rem);
        margin-left: -1rem;
        display: flex;
        flex-flow: column;
        justify-content: flex-start;
        align-items: flex-start;
        background-color: var(--bgc-header);
        gap: 20px;
        animation: fire 0.4s ease-in 0s 1 alternate both;
    }   

    main.container { 
        flex-basis: 100%;
        width: 100%;
    }

    main section {
        padding-inline: 1rem;
        display: flex;
        flex-flow: column;
        justify-content: flex-start;
        align-items: flex-start;
        position: relative;
    }

        main section::before {
        content: '';
        width: calc(100% + 16px);
        height: 1.8px;
        background-color: #EEE;
        position: absolute;
        bottom: 0;
        left: -16px;
    }
}

@media (max-width: 576px) {
    main.container {
        padding-top: 2rem;
    }

    main.container section:nth-child(n+1) {
        padding-block: 4.375rem;
    }


    section.about article .row:first-child p {
        margin-top: -5px;
        width: 100%;
        margin-left: 1px;
        display: flex;
        flex-flow: row wrap;
        justify-content: flex-start;
        align-items: flex-start;
    }

     section.about article .row:first-child p *, a {
        font-size: 11px;
    }


    section.about article .row:first-child p span {
        flex-basis: 75%;
        padding: 0;
        margin-top: -1px;
    }
    section.about article .row:first-child p span::before { 
        display: none;
    }

    section.about article .row:first-child p span:last-of-type::after {
        display: none;
    }

    section.about article .row:first-child p a { 
        padding: 0;
        margin-top: -1px;
        font-size: 11px;
    }

    section.about article .row:first-child p a::before {
        background-image: linear-gradient(to right, var(--bgc-header) 29%, transparent 29%, transparent 38%, var(--bgc-header) 38%, var(--bgc-header) 100%);
        position: absolute;
        left: 0px;
    }

    section.about article .row:last-child ul li a i {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--bgc-fa-color);
        display: flex;
        justify-content: center;
        align-items: center;
        color: #FFF;
        font-size: 25px;
    }

    section.about article .row:nth-child(2) p {
        width: 100%;
        padding-inline: 10px;
        color: var(--heading-sub-font-color);
        font-size: clamp(1rem, 3vw, 1.25rem);
        margin-top: 30px;
    }

    section.about article .row:last-child ul {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
    }

    
    main section:nth-child(n+2) article { 
        gap: 25px;
    }
    main section:not(:first-of-type) article header {
        flex-basis: 100%;
        width: 100%;
        display: flex;
        flex-flow: column;
        justify-content: space-between;
        align-items: flex-start;
    }

    main section:not(:first-of-type) article header .date {
        margin-top: -10px;
    }

}

@keyframes fire {
        0% {
            display: none;
            padding-block: 0;
        }
        100% {
            padding-block: 25px;
        }
}





