@import "./reset.css";
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Poppins:wght@400;500;700&display=swap');

/*
font-family: 'DM Sans', sans-serif;
font-family: 'Poppins', sans-serif;
*/

:root {
    --black:#171718;
    --black-border: #26292D;
    --white: #FFFFFF;
    --violet: #5C62EC;

    --dark-bg: var(--black);
    --dark-border: var(--black-border);
    --header-text: var(--white);
    --accent: var(--violet);
    --black-text: var(--black);


    /* light mode */

    --page-bg:var(--white);
    --text-color: var(--black);

    --title-1: var(--accent);

    --project-card-bg: var(--white);
    --project-card-text: var(--black);

    --box-shadow: var(0px 5px 35px rgba(0, 0, 0, 0.25));
}

.dark {
    /*dark mode */
    --page-bg: #141416;
    --text-color: var(--white);
    --title-1: var(--white);
    --project-card-bg: var(--black);
    --project-card-text: var(--white);

    --box-shadow: var(0px 5px 35px rgba(0, 0, 0, 0.8));
}

html, body {
    font-family: 'DM Sans', sans-serif;
    letter-spacing: -0.5px;
    background-color: var(--page-bg);
    color: var(--text-color);
}

/*general*/

.section {
    padding: 70px 0;
}

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

.title-2 {
    font-weight: 700;
    font-size: 40px;
    line-height: 1.3;
    margin-bottom: 20px;
}

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

/*nav*/

.nav {
    padding: 20px 0;
    margin: 0 auto;
    background-color: var(--dark-bg);
    color: var(--header-text);
    border-bottom: 1px solid #26292D;
    letter-spacing: normal;
}

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

.logo {
    margin-right: auto;
    color: var(--header-text);
    font-size: 24px;
    font-family: 'Poppins', sans-serif;
}

.logo strong {
    font-weight: 700;
}

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


.nav-list__link {
color: var(--header-text);
transition: opacity 0.2s ease-in;
}

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

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

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


/* dark-mode btn */

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

.dark-mode-btn__icon {
    position: relative;
}

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

.dark-mode-btn__active::before {
    left: 26px;
}

/*header*/

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

.header__wrapper {
    max-width: 660px;
    padding: 0 15px;
}

.header__title {
    font-weight: 700;
    font-size: 40px;
    line-height: 140%;
    margin-bottom: 20px;
}

.header__title strong {
    font-size: 60px;
    font-weight: 700;
}

.header__title span {
    color: var(--accent);
}

.header__text {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 40px;
}

.header__text p + p {
    line-height: 0.5em;
}


/*btn*/

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

.btn:hover {
    opacity: 0.8;
}

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

.btn-outline {
    height: 48px;
    padding: 12px 20px;
    border: 1px solid #000000;
    border-radius: 5px;
    background-color: var(--white);
    color: var(--black);
    display: flex;
    column-gap: 10px;
    align-items: center;
    transition: opacity 0.2s ease-in;
    font-weight: 500;
}

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

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


/*projects*/

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

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

.project__image {
    border-radius: 10px;
}

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


/*project details*/

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

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

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

/* content list*/

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

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

.content-list__item p + p {
    margin-top: 0.5em;
    font-size: 18px;
    line-height: 1.5;
}

/* footer*/

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

.footer__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 27px;
}

.social {
    display: flex;
    column-gap: 30px;
    align-items: center;
}

.copyright p + p {
    margin-top: 1.5em;
}


@media (max-width: 620px) {
    .header {
        min-height: unset;
    }
    .header__title {
        font-size: 30px;
    }
    .header__title strong {
        font-size: 40px;
    }
    .nav-row {
        justify-content: space-between;
    }
    .dark-mode-btn {
        order: 0;
    }
    .section {
        padding: 40px 0;
    }
    .title-1 {
        margin-bottom: 40px;
        font-size: 40px;
    }
    .project__title {
        font-size: 22px;
    }
    .footer {
        padding: 40px 0 30px;
    }
    .social__item {
        width: 28px;
    }
    .social {
        column-gap: 20px;
    }
    .footer__wrapper {
        row-gap: 20px;
    }
    .title-2 {
        font-size: 30px;
        margin-bottom: 10px;
        text-align: justify;
    }
    .title-2-p{
        text-align: justify;
        
    }
    .content-list {
        row-gap: 20px;
    }
    .project-details__desc {
        font-size: 20px;
        margin-bottom: 20px;
    }
}