* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

:root {
    --white-color: #ededed;
    --black-color: #141414;
    --total-black-color: #000000;
    --main-color: #00abf0;
    --secondary-color: #de175a;
    --decorative-color: #D4C00B;
    --light-background-color: #141414;
    --dark-background-color: #0d0d0d;
    --transparent-light-background-color: rgba(0, 0, 0, 0.6);
    --transparent-dark-background-color: rgba(0, 0, 0, 0.8);
}

.light-mode {
    --white-color: #000000;
    --black-color: #ededed;
    --total-black-color: #ffffff;
    --light-background-color: #d9d9d9;
    --dark-background-color: #c9c9c9;
    --transparent-light-background-color: rgba(255, 255, 255, 0.6);
    --transparent-dark-background-color: rgba(255, 255, 255, 0.8);
}

html {
    font-size: 66%;
    overflow-x: hidden;
}

body {
    color: var(--white-color);
}

/* ==============================================================================================================================> Header Design */
.header {
    position: fixed;
    display: flex;
    align-items: center;
    top: 0;
    left: 0;
    padding: 2rem 9%;
    width: 100%;
    background: transparent;
    z-index: 100;
    transition: .3s;
}

.header.sticky {
    background: var(--transparent-dark-background-color);
    backdrop-filter: blur(8px) saturate(100%);
    padding: 1.4rem 2%;
}

.logo {
    margin-right: auto;
    font-size: 3.5rem;
    line-height: 1.2;
    background-image: url(../images/logo/01-logo-corto.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.light-mode .logo {
    filter: invert(100%);
}

.logo span {
    visibility: hidden;
}

.navbar a {
    margin-left: 3.5rem;
    font-size: 2rem;
    font-weight: 500;
    color: var(--white-color);
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    display: none;
    font-size: 3.6rem;
    color: var(--white-color);
    cursor: pointer;
}

#lightMode-icon {
    margin-left: 3.5rem;
    font-size: 2.4rem;
    color: var(--white-color);
    cursor: pointer;
}

/* =============================================================================================================================> Section Design */
section {
    min-height: 100vh;
    padding: 10rem 9%;
}

/* ========================================================================================================================> Home Section Design */

.home {
    display: flex;
    align-items: center;
    padding: 0 9%;
    height: -webkit-fill-available;
    background: url('../images/background/01-home-desktop-dark.webp');
    background-size: cover;
    background-position: right;
}

.light-mode .home {
    background: url('../images/background/02-home-desktop-light.webp');
    background-size: cover;
    background-position: right;
}

.home-content {
    max-width: 48rem;
}

.home-content .presentation {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white-color);
}

.home-content .presentation span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h1 span {
    color: var(--main-color);
}

.home-content .text-animate {
    width: 40rem;
    font-size: 3rem;
    font-weight: 600;
    color: transparent;
    -webkit-text-stroke: 0.1rem var(--secondary-color);
    background-image: linear-gradient(var(--secondary-color), var(--secondary-color));
    background-repeat: no-repeat;
    background-clip: text;
}

.home-content .text-animate {
    animation: homeBgText 6s linear infinite;
    animation-delay: 2s;
}

.home-content p {
    margin: 2rem 0 0 0;
    font-size: 2rem;
}

.light-mode .home-content p {
    font-weight: 600;
}

.home-sci {
    position: absolute;
    display: flex;
    justify-content: space-between;
    bottom: 4rem;
    width: 18rem;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.8rem;
    color: var(--decorative-color);
    background: transparent;
    border: .25rem solid var(--decorative-color);
    border-radius: 1.2rem 1.2rem 1.2rem 0;
    overflow: hidden;
    z-index: 1;
    transition: .5s;
}

.home-sci a:hover {
    color: var(--white-color);
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--decorative-color);
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before {
    width: 100%;
}

.home-sci a i span {
    display: none;
}

/* =======================================================================================================================> About Section Design */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    gap: 2rem;
    background: var(--dark-background-color);
}

.heading {
    position: relative;
    margin-bottom: 3rem;
    font-size: 4.5rem;
    line-height: 1;
    text-align: center;
}

span {
    color: var(--main-color);
}

.about-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 23rem;
    height: 23rem;
    border-radius: 50%;
    background: url('../images/about/01-about.webp');
    background-size: cover;
    border: .2rem solid var(--decorative-color);  
}

.about-img .circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 13rem;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: .2rem solid rgba(255, 26, 104, 0.2);
    border-bottom: .2rem solid rgba(255, 26, 104, 0.2);
    border-left: .2rem solid var(--secondary-color);
    border-right: .2rem solid var(--secondary-color);
    transform: translate(-50%, -50%) rotate(0);
    animation: aboutSpinner 8s linear infinite;
}

.about-content {
    text-align: center;
}

.about-content h3 {
    margin-top: 24px;
    font-size: 2.8rem;
}

.about-content p {
    margin: 2rem 0 3rem;
    font-size: 2rem;
    text-align: start;
}

.btn-box {
    display: inline-block;
    width: 15rem;
}

.btn-box .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18rem;
    height: 4.5rem;
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 0.1rem;
    background: transparent;
    border: .2rem solid var(--secondary-color);
    border-radius: 1.2rem 1.2rem 1.2rem 0;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box .btn:hover {
    color: var(--black-color);
}

.btn-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secondary-color);
    z-index: -1;
    transition: .5s;
}

.btn-box .btn:hover::before {
    width: 100%;
}

/* ===================================================================================================================> Education Section Design */
.education {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 8rem;
    min-height: auto;
    background: var(--light-background-color);
}

.education .education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.education-row .education-column {
    flex: 1 1 40rem;
}

.education-column .title {
    margin: 0 0 1.5rem 2rem;
    font-size: 2.8rem;
}

.education-box .education-content {
    position: relative;
    padding-left: 2rem;
}

.education-box .education-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--decorative-color);
    border-radius: .6rem 0 .6rem .6rem;
}

.education-content .content {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: .2rem solid var(--white-color);
    border-radius: 0 1.2rem 1.2rem 1.2rem;
    overflow: hidden;
    z-index: 1;
}

.education-content .content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--dark-background-color);
    z-index: -1;
    transition: .5s;
}

.education-content .content:hover::before {
    width: 100%;
}

.education-content .content .year {
    padding-bottom: .5rem;
    font-size: 1.8rem;
    color: var(--white-color);
}

.education-content .content .year i {
    padding-right: .5rem;
}

.education-content .content h5 {
    font-size: 2.4rem;
    color: var(--secondary-color);
}

.education-content .content p {
    padding-top: .5rem;
    font-size: 2rem;
}

.content .certificate a {
    position: relative;
    display: inline-flex;
    margin-top: 1rem;
    padding-left: 1rem;
    font-size: 2rem;
    color: var(--white-color);
    background: transparent;
    border: .2rem solid var(--white-color);
    border-radius: 0 .6rem .6rem .6rem;
    transition: .5s;
}

.content .certificate a:hover {
    color: var(--black-color);
}

.content .certificate a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--white-color);
    z-index: -1;
    transition: .5s;
}

.content .certificate a:hover::before {
    width: 100%;
}

.content .certificate a i {
    padding: .3rem 1rem 0 .6rem;
    margin-left: 0.2rem;
    font-size: 2.4rem;
}

/* ======================================================================================================================> Skills Section Design */
.skills {
    min-height: auto;
    background: var(--dark-background-color);
}

.skills h2 {
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.skills .skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.skills-row .skills-column {
    flex: 1 1 40rem;
}

.skills-column .title {
    margin: 0 0 1.5rem;
    font-size: 2.8rem;
}

.skills-box .skills-content {
    position: relative;
    padding: .5rem 1.5rem;
    border: .2rem solid var(--white-color);
    border-radius: 0 1.2rem 1.2rem 1.2rem;
    overflow: hidden;
    z-index: 1;
}

.skills-box .skills-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--light-background-color);
    z-index: -1;
    transition: .5s;
}

.skills-box .skills-content:hover::before {
    width: 100%;
}

.skills-content .progress {
    padding: 1rem 0;
}

.skills-content .progress h4 {
    font-size: 2rem;
}

.skills-content .progress .bar {
    height: 2.5rem;
    margin: 1rem 0;
    padding: 0.5rem;
    border-radius: .6rem;
    border: .2rem solid var(--white-color);
}

.skills-content .progress .bar span {
    display: block;
    height: 100%;
    border-radius: .3rem;
    background: var(--secondary-color);
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(1) .bar span {
    width: 80%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(2) .bar span {
    width: 70%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(3) .bar span {
    width: 40%;
    background: var(--decorative-color);
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(4) .bar span {
    width: 10%;
    background: var(--decorative-color);
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(5) .bar span {
    width: 75%;
    /* background: var(--decorative-color); */
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(1) .bar span {
    width: 80%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(2) .bar span {
    width: 45%;
    background: var(--decorative-color);
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(3) .bar span {
    width: 55%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(4) .bar span {
    width: 35%;
    background: var(--decorative-color);
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(5) .bar span {
    width: 75%;
}

/* ===================================================================================================================> Portfolio Section Design */
.portfolio {
    min-height: auto;
    padding-bottom: 6rem;
    background: var(--light-background-color);
}

.portfolio h2 {
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.portfolio .portfolio-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.portfolio-container .portfolio-box {
    position: relative;
    display: flex;
    border-radius: 0 1.2rem 1.2rem 1.2rem;
    overflow: hidden;
}

.portfolio-box img {
    width: 100%;
    transition: .5s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    bottom: 0;
    left: 0;
    padding: 2rem;
    width: 100%;
    height: 100%;
    color: var(--white-color);
    background: linear-gradient(rgba(0, 0, 0, 0.5), var(--secondary-color));
    opacity: 0;
    transition: .5s ease;
}

.portfolio-box:nth-child(4) .portfolio-layer,
.portfolio-box:nth-child(5) .portfolio-layer,
.portfolio-box:nth-child(6) .portfolio-layer {
    background: linear-gradient(rgba(0, 0, 0, 0.5), var(--decorative-color));
}

.portfolio-box:hover .portfolio-layer {
    opacity: 1;
}

.portfolio-layer .portfolio-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    background: var(--transparent-light-background-color);
    border-radius: 0 1.2rem 1.2rem 1.2rem;
}

.portfolio-layer .portfolio-content a h3 {
    font-size: 3rem;
    color: var(--white-color);
}

.portfolio-layer .portfolio-content a h3 i {
    font-size: 2.8rem;
    border: .2rem solid var(--white-color);
}

.portfolio-layer .portfolio-content h4 {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 400;
    color: var(--white-color);
}

.portfolio-layer .portfolio-content i {
    margin: 0.3rem 1rem 0 1rem;
    font-size: 4rem;
    color: var(--white-color);
}

.portfolio-layer .portfolio-content i span {
    display: none;
}

/* ======================================================================================================================> Footer Section Design */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--dark-background-color);
}

.footer-text p {
    font-size: 1.8rem;
    color: var(--white-color);
}

.footer-text p span {
    margin: 1rem;
    padding: 1rem;
    font-size: 2rem;
    color: transparent;
    background-image: url(../images/logo/01-logo-corto.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.light-mode .footer-text p span {
    filter: invert(100%);
}

.footer-iconTop a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: transparent;
    border: .2rem solid var(--secondary-color);
    border-radius: 1.2rem 1.2rem 1.2rem 0;
    z-index: 1;
    overflow: hidden;
}

.footer-iconTop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secondary-color);
    z-index: -1;
    transition: .5s;
}

.footer-iconTop a:hover::before {
    width: 100%;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--secondary-color);
    transition: .5s;
}

.footer-iconTop a:hover i {
    color: var(--black-color);
}

.footer-iconTop a i span {
    display: none;
}

/* BREAKPOINTS <================================================================================================================================ */
@media (max-width: 1380px) {

    html {
        font-size: 63%;
    }

}

@media (max-width: 1320px) {

    .portfolio .portfolio-container {
        grid-template-columns: repeat(1, 1fr);
    }

}

@media (max-width: 1280px) {

    .navbar a {
        margin-left: 1.5rem;
    }
    
    #lightMode-icon {
        margin-left: 1.5rem;
    }

}

@media (max-width: 990px) {

    .header {
        padding: 2rem 4%;
    }

    .home {
        padding: 4%;
    }

    .footer {
        padding: 2rem 4%;
    }

}

@media (max-width: 850px) {

    html {
        font-size: 62%;
    }

    .header {
        padding: 1.4rem 4%;
    }

    .header.sticky {
        padding: 1.4rem 4%;
    }

    #lightMode-icon {
        margin-left: 0;
        padding-top: .1rem;
    }

    #menu-icon {
        display: block;
        margin-left: 1rem;
    }

    .navbar {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        padding: 7.5rem 4% 2rem 4%;
        background: var(--decorative-color);
        z-index: -1;
        transition: .25s ease;
        transition-delay: .25s;
    }

    .navbar.active {
        left: 0;
        transition-delay: 0s;
    }

    .navbar .active-nav-one,
    .navbar .active-nav-two {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--secondary-color);
        border-top: .1rem solid rgba(0, 0, 0, 0.2);
        z-index: -1;
        transition: .25s ease;
        transition-delay: 0s;
    }

    .navbar .active-nav-two {
        background: var(--total-black-color);
        transition: .5s ease;
        transition-delay: 0s;
    }

    .navbar.active .active-nav-one,
    .navbar.active .active-nav-two {
        left: 0;
        transition-delay: .25s;
    }

    .navbar.active .active-nav-two {
        transition-delay: .5s;
    }

    .navbar a {
        display: block;
        margin: 3rem 0;
        font-size: 2rem;
        transform: translateX(-20rem);
        transition: .25s ease;
        transition-delay: 0s;
    }

    .navbar.active a {
        transform: translateX(0);
        transition-delay: .25s;
    }

    .about-img {
        width: 22rem;
        height: 22rem;
    }
    
    .about-img .circle-spin {
        padding: 12.5rem;
    }
    
}

@media (max-width: 730px) {

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        margin-top: 2rem;
        text-align: center;
    }

}

@media (max-width: 660px) {

    html {
        font-size: 56%;
    }

    .home {
        background: url('../images/background/03-home-mobile-dark.webp');
        background-position: center;
    }
    
    .light-mode .home {
        background: url('../images/background/04-home-mobile-light.webp');
        background-position: center;
    }

    .about-img {
        width: 21rem;
        height: 21rem;
    }
    
    .about-img .circle-spin {
        padding: 12rem;
    }
            
}

@media (max-width: 580px) {

    .portfolio {
        padding-bottom: 4rem;
    }
    
    .portfolio-layer .portfolio-content a h3 {
        font-size: 2.4rem;
    }
    
    .portfolio-layer .portfolio-content a h3 i {
        font-size: 2.4rem;
    }
    
    .portfolio-layer .portfolio-content h4 {
        font-size: 1.8rem;
    }
    
    .portfolio-layer .portfolio-content i {
        margin: 0.3rem .5rem 0 .5rem;
        font-size: 3rem;
    }
    
}

@media (max-width: 500px) {

    html {
        font-size: 54%;
    }
    
    .about-img {
        width: 20rem;
        height: 20rem;
    }
    
    .about-img .circle-spin {
        padding: 11.5rem;
    }

}

@media (max-width: 470px) {

    html {
        font-size: 53%;
    }

    .home-content .presentation {
        font-size: 2.8rem;
    }

    .home-content h1 {
        font-size: 4.5rem;
    }

    .home-content .text-animate {
        font-size: 2.8rem;
    }    

    .heading {
        font-size: 4rem;
    }

    .portfolio-box .portfolio-layer {
        padding: 1rem;
    }
    
}

@media (max-width: 430px) {

    html {
        font-size: 50%;
    }

    .about-img {
        width: 18rem;
        height: 18rem;
    }
    
    .about-img .circle-spin {
        padding: 10.5rem;
    }

}

@media (max-width: 410px) {

    .home-content .presentation {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 4.1rem;
    }

    .home-content .text-animate {
        font-size: 2.6rem;
    }

    .heading {
        font-size: 3.8rem;
    }

    .about-content h3 {
        font-size: 2.2rem;
    }    

    .portfolio-layer .portfolio-content {
        padding: .5rem;
    }

    .portfolio-layer .portfolio-content a h3 {
        font-size: 2rem;
    }
    
    .portfolio-layer .portfolio-content a h3 i {
        font-size: 2rem;
    }

    .portfolio-layer .portfolio-content h4 {
        font-size: 1.6rem;
    }

    .portfolio-layer .portfolio-content i {
        font-size: 2.6rem;
    }

}

@media (max-width: 360px) {

    .home-content h1 {
        font-size: 3.8rem;
    }

    .heading {
        font-size: 3.6rem;
    }

    .home-content p {
        max-width: 34rem;
    }

    .portfolio-layer .portfolio-content a h3 {
        font-size: 1.8rem;
    }
    
    .portfolio-layer .portfolio-content a h3 i {
        font-size: 1.8rem;
    }
    .portfolio-layer .portfolio-content h4 {
        display: none;
    }

}

@media (max-width: 350px) {

    .home-content h1 {
        font-size: 3.6rem;
    }

    .home-content h2 {
        font-size: 4rem;
    }

    .home-content h2 {
        font-size: 4rem;
    }

}

/* KEYFRAMES ANIMATION <======================================================================================================================== */
@keyframes homeBgText {

    0%,
    10%,
    100% {
        background-position: -40rem 0;
    }

    65%,
    85% {
        background-position: 0 0;
    }

}

@keyframes homeCursorText {

    0%,
    10%,
    100% {
        width: 0;
    }

    65%,
    78%,
    85% {
        width: 100%;
        opacity: 1;
    }

    75%,
    81% {
        opacity: 0;
    }

}

@keyframes aboutSpinner {

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }

}