@import url(../css/reset.css);
@import url(https://fonts.googleapis.com/css?family=DM+Sans:regular,500,600,700,);
@import url(https://fonts.googleapis.com/css?family=Poppins:regular,500,600,700,);

:root {
    --blackpure: #000;
    --black: #171718;
    --white: #fff;
    --black-border: #26292d;
    --purple: #5c62ec;

    --dark-bg: var(--black);
    --dark-border: var(--black-border);
    --hedear-text: var(--white);
    --accent: var(--purple);
    --text-color: var(--black);

    /* light mode */
    --page-bg: var(--white);
    --text-color: var(--black);
       --project-card-bg:var(--white);
    --project-card-text:var(--black);

    --title1:var(--accent);
    --box-shadow: 0 5px 35px 0 rgba(0, 0, 0, 0.2);
    
}

.dark {
    /* dark mode */    
    --page-bg: #252626;
    --text-color: var(--white); 
    --project-card-bg:var(--black);
    --project-card-text:var(--white);
    --box-shadow: 0 5px 35px 0 rgba(0, 0, 0, 10.8); 
    
}

/* .none{
    display: none !important;
} */
html,
body {
    display: flex;
    flex-direction: column;
    font-family: "DM Sans", sans-serif;
    letter-spacing: -0.5px;    
    min-height: 100vh;
    /* light mode */
    background-color: var(--page-bg);
    color: var(--text-color);
}

.container {
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* General */

.section {
    /* color: var(--white); */
    padding: 70px 0;
}

.title1 {
    margin-bottom: 60px;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--accent);
    text-align: center;

}

.titleoutline {
    font-weight: 700;
    font-size: 60px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--accent);
    margin-bottom: 40px;
}

.title2 {
    font-weight: 700;
    font-size: 40px;
    line-height: 1.3;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color);
}

/* Nav */
.nav {
    background-color: var(--dark-bg);
    color: var(--hedear-text);
    border-bottom: 1px solid var(--dark-border);
    padding: 20px 0;
    letter-spacing: normal;

}

.nav-row {

    display: flex;
    align-items: center;
    justify-content: flex-end;
    column-gap: 30px;
    row-gap: 20px;
    flex-wrap: wrap;
}

.logo {
    margin-right: auto;
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    color: var(--hedear-text);
    transition: opacity 0.2s ease-in;

}

.logo:hover {
    opacity: 0.8;

}

.logo:active {
    position: relative;
    top: 1px;

}

.logo strong {
    font-weight: 700;
}

.nav-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 40px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 16px;


}

.nav-list__link {

    color: var(--hedear-text);
    transition: opacity 0.2s ease-in;
}

.nav-list__link:active {
    position: relative;
    top: 1px;
}

.nav-list__link:hover {
    opacity: 0.8;
}

.nav-list__link--active {
    position: relative;
}

.nav-list__link--active:before {
    content: "";
    display: block;
    height: 3px;
    width: 100%;
    position: absolute;
    background-color: var(--accent);
    left: 0;
    top: 100%;
}

/* dark-mode-btn */

.dark-mode-btn {
    position: relative;
    order: 9;
    display: flex;
    justify-content: space-between;
    width: 51px;
    height: 26px;
    border-radius: 50px;
    background-color: #272727;
    padding: 5px;

}

.dark-mode-btn::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: white;
    transition: left 0.2s ease-in;
}

.dark-mode-btn--active::before {
    left: 26px;

}

.dark-mode-btn__icon {
    position: relative;
    z-index: 9;
}

/* Header */

.header {
    text-align: center;
    min-height: 695px;
    padding: 40px 0;
    color: var(--hedear-text);
    background-color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../img/Abstract\ \(2\).png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;

}

.header-wrapper {

    max-width: 760px;
    padding: 0 15px;
}

.header-title {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.header-title strong {
    font-size: 60px;
}

.header-title em {
    color: var(--accent);
    font-style: normal;

}

.header-text {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 40px;
}

.header-text p+p {
    margin-top: 0.5em;
}


/* Btn */
.btn-outline {
    display: flex;
    align-items: center;
    column-gap: 10px;
    height: 48px;
    border-radius: 5px;
    padding: 12px 20px;
    border: 1px solid var(--blackpure);
    color: var(--blackpure);
    margin-bottom: 70px;
    transition: opacity 0.2s ease-in;
    background-color: var(--white);

}

.btn-outline:hover {
    opacity: 0.8;
}

.btn-outline:active {
    position: relative;
    top: 1px;
}

.btn {

    display: inline-block;
    background-color: var(--accent);
    height: 48px;
    padding: 12px 28px;
    color: var(--hedear-text);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.15px;
    border-radius: 5px;
    transition: opacity 0.2s ease-in;

}

.btn:hover {
    opacity: 0.8;
}

.btn:active {
    position: relative;
    top: 1px;
}

/* Projets */


.projects {
    display: flex;
    flex-wrap: wrap;
    column-gap: 30px;
    row-gap: 30px;
    justify-content: center;



}

.project {
    max-width: 370px;
    background-color: var(--project-card-bg);
    box-shadow: var(--box-shadow);
    border-radius: 10px;

   
}


.project__img {
    border-radius: 10px;
}

/* projects details */

.project-details {
    max-width: 865px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project__title {
    padding: 15px 25px 20px;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    color: var(--project-card-text);

}

.project-details__cover {
    max-width: 100%;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 35px 0 rgba(0, 0, 0, 0.25);


}

.project-details-desc {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 30px;
}

/* content-list */

.content-list {
    margin: 0 auto;
    max-width: 570px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-items: center;
    row-gap: 40px;
}

.content-list a {
    color: var(--accent);
}

.content-list__item {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    color: var(--text-color);
}

.content-list__item p+p {
    margin-top: 0.5em;
}

/* Footer */

.footer {
    background-color: var(--dark-bg);
    padding: 60px 0 50px;
    color: var(--white);
    margin-top: auto;
}

.footer__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  column-gap: 30px;

}

.social {
    display: flex;
    align-items: center;
    column-gap: 30px;
    margin-bottom: 27px;

}

.social__copyright {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width:620px) {

    .nav-row {
        justify-content: space-between;
    }

    .dark-mode-btn {
        order: 0;
    }

    .header {
        min-height: unset;
    }

    .header-title {
        font-size: 30px;
    }

    .header-title strong {
        font-size: 40px;
    }

    .section {
        padding: 40px 0;
    }

    .title1 {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .titleoutline {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .projects {
        justify-content: center;
    }

    .project__title {
        font-size: 22px;
    }

    .footer {
        padding: 40px 0 30px;
    }

    .footer__wrapper {

        row-gap: 20px;

    }

    .social__item {
        width: 28px;

    }

    .social {
        column-gap: 20px;
        margin-bottom: 0;
    }

    .content-list {
        row-gap: 30px;
    }

    .title2 {
        font-size: 28px;
    }

    .content-list__item {
        font-size: 16px;
        line-height: 1.5;

    }

    .social__copyright {
        font-size: 14px;
    }

    .project-details-desc {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .btn-outline {
        margin-bottom: 20px;
    }



}