:root {
    --green: #63795d;
    --green-dark: #17231b;
    --green-light: #a9b99e;
    --cream: #f0ede4;
    --cream-dark: #dfdbcf;
    --white: #faf9f5;
    --black: #111611;
    --gray: #777d76;
    --line: rgba(17,22,17,.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--cream);
    color: var(--black);
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}


/* LOADER */

.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--green-dark);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 1s cubic-bezier(.77,0,.18,1);
}

.loader.hide {
    transform: translateY(-100%);
}

.loader-logo {
    font-size: 42px;
    font-weight: 700;
}

.loader-line {
    width: 0;
    height: 2px;
    background: var(--green-light);
    margin-top: 20px;
    animation: load 1.4s ease forwards;
}

@keyframes load {
    to {
        width: 150px;
    }
}


/* HEADER */

.header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    padding: 25px 5%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.logo div {
    display: flex;
    flex-direction: column;
}

.logo strong {
    font-size: 19px;
    font-weight: 700;
}

.logo small {
    font-size: 8px;
    opacity: .65;
    margin-top: 2px;
}

.nav {
    display: flex;
    gap: 35px;
    margin-right: auto;
    margin-left: 8%;
}

.nav a {
    font-size: 12px;
    opacity: .8;
    transition: .3s;
}

.nav a:hover {
    opacity: 1;
    color: var(--green-light);
}

.header-btn {
    border: 1px solid rgba(255,255,255,.5);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 11px;
}

.header-btn span {
    margin-right: 10px;
}


/* HERO */

.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    background:
        url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=2200&q=90")
        center/cover;
    animation: zoom 8s ease forwards;
}

@keyframes zoom {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(8,16,10,.9),
            rgba(8,16,10,.35),
            rgba(8,16,10,.1)
        );
}

.hero-content {
    width: min(1300px, 90%);
    margin: auto;
    position: relative;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 11px;
    letter-spacing: 2px;
    color: #d7dfd2;
}

.hero-label span {
    width: 60px;
    height: 1px;
    background: #d7dfd2;
}

.hero h1 {
    max-width: 900px;
    font-size: clamp(70px, 10vw, 150px);
    line-height: .95;
    font-weight: 300;
    margin-top: 30px;
    letter-spacing: -5px;
}

.hero h1 em {
    color: var(--green-light);
    font-style: normal;
    font-weight: 700;
}

.hero-content > p {
    width: 450px;
    max-width: 100%;
    margin-top: 45px;
    color: #d3dad2;
    font-size: 14px;
    line-height: 2.2;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.btn-main,
.btn-outline {
    padding: 15px 24px;
    border-radius: 50px;
    font-size: 12px;
    transition: .4s;
}

.btn-main {
    background: var(--green-light);
    color: var(--black);
}

.btn-main:hover {
    background: white;
    transform: translateY(-4px);
}

.btn-main span,
.btn-outline span {
    margin-right: 15px;
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.5);
}

.btn-outline:hover {
    background: white;
    color: var(--black);
}

.hero-bottom {
    position: absolute;
    bottom: 25px;
    right: 5%;
    left: 5%;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.25);
    padding-top: 15px;
    font-size: 9px;
    opacity: .65;
}


/* GENERAL */

.section {
    padding: 140px 0;
}

.container {
    width: min(1250px, 90%);
    margin: auto;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 75px;
    font-size: 10px;
}

.section-head span {
    color: var(--green);
}

.section-head small {
    color: var(--gray);
}

.section-head a {
    margin-right: auto;
}


/* INTRO */

.intro-grid {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 100px;
}

.intro-grid h2 {
    font-size: clamp(55px, 7vw, 100px);
    line-height: 1;
    font-weight: 300;
    letter-spacing: -4px;
}

.intro-grid h2 span {
    display: block;
    color: var(--green);
    font-weight: 700;
}

.intro-grid p {
    color: var(--gray);
    line-height: 2.3;
    font-size: 14px;
}

.text-link {
    display: inline-flex;
    gap: 15px;
    margin-top: 30px;
    border-bottom: 1px solid;
    padding-bottom: 8px;
    font-size: 11px;
}


/* PROJECTS */

.projects {
    background: var(--cream-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 90px 30px;
}

.project-card:nth-child(2) {
    margin-top: 140px;
}

.project-image {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(.2,.7,.2,1);
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-hover {
    position: absolute;
    bottom: 25px;
    left: 25px;
    width: 85px;
    height: 85px;
    background: var(--green-light);
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 10px;
    transform: scale(0);
    transition: .5s;
}

.project-card:hover .project-hover {
    transform: scale(1);
}

.project-info {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
}

.project-info > div {
    display: flex;
    align-items: center;
    gap: 20px;
}

.project-info span {
    color: var(--green);
    font-size: 10px;
}

.project-info h3 {
    font-size: 23px;
    font-weight: 500;
}

.project-info small {
    color: var(--gray);
    font-size: 9px;
}


/* SERVICES */

.services {
    background: var(--green-dark);
    color: white;
}

.section-head.dark {
    border-color: rgba(255,255,255,.15);
}

.services-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 70px;
}

.services-title h2 {
    font-size: clamp(55px, 7vw, 100px);
    line-height: .9;
    font-weight: 300;
}

.services-title em {
    color: var(--green-light);
    font-style: normal;
    font-weight: 700;
}

.services-title p {
    color: #919b92;
    width: 300px;
    line-height: 2;
    font-size: 12px;
}

.services-list {
    border-top: 1px solid rgba(255,255,255,.15);
}

.service {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 50px;
    gap: 30px;
    align-items: center;
    padding: 35px 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
    transition: .5s;
}

.service:hover {
    padding-right: 25px;
    color: var(--green-light);
}

.service-number {
    color: #667168;
    font-size: 10px;
}

.service h3 {
    font-size: 24px;
    font-weight: 400;
}

.service p {
    color: #89938b;
    line-height: 2;
    font-size: 11px;
}

.service-arrow {
    font-size: 22px;
}


/* VISUAL */

.visual-section {
    height: 85vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    color: white;
}

.visual-image {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(10,20,12,.3), rgba(10,20,12,.65)),
        url("https://images.unsplash.com/photo-1558521958-0a228e77e984?auto=format&fit=crop&w=2200&q=90")
        center/cover;
    background-attachment: fixed;
}

.visual-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.visual-content span {
    font-size: 10px;
    letter-spacing: 4px;
}

.visual-content h2 {
    font-size: clamp(55px, 8vw, 120px);
    font-weight: 300;
    line-height: 1;
    margin-top: 25px;
}

.visual-content em {
    color: var(--green-light);
    font-style: normal;
    font-weight: 700;
}


/* ABOUT */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 650px;
    object-fit: cover;
}

.image-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 9px;
    letter-spacing: 2px;
}

.about-tag {
    color: var(--green);
    font-size: 11px;
}

.about-content h2 {
    font-size: clamp(55px, 6vw, 85px);
    line-height: 1;
    font-weight: 300;
    margin: 20px 0 45px;
}

.about-content h2 em {
    display: block;
    color: var(--green);
    font-style: normal;
    font-weight: 700;
}

.about-content > p {
    max-width: 520px;
    color: var(--gray);
    font-size: 14px;
    line-height: 2.3;
}

.stats {
    display: flex;
    gap: 60px;
    margin-top: 55px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.stats strong {
    display: block;
    font-size: 40px;
    color: var(--green);
}

.stats span {
    font-size: 9px;
    color: var(--gray);
}


/* CONTACT */

.contact {
    background: #dfdbd0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 130px;
}

.contact-title > span {
    font-size: 13px;
    color: var(--gray);
}

.contact-title h2 {
    font-size: clamp(55px, 7vw, 100px);
    line-height: 1;
    font-weight: 300;
    margin: 25px 0 55px;
}

.contact-title h2 em {
    display: block;
    color: var(--green);
    font-style: normal;
    font-weight: 700;
}

.contact-title > a {
    border-bottom: 1px solid;
    padding-bottom: 8px;
    font-size: 13px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-form label {
    color: var(--gray);
    font-size: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    display: block;
    border: none;
    border-bottom: 1px solid #999;
    background: transparent;
    outline: none;
    padding: 15px 0;
    font-size: 14px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    border: none;
    background: var(--green-dark);
    color: white;
    padding: 20px;
    text-align: right;
    cursor: pointer;
    transition: .4s;
}

.contact-form button:hover {
    background: var(--green);
}

.contact-form button span {
    float: left;
}

.success {
    background: #c8d8c1;
    color: #314530;
    padding: 15px;
    font-size: 11px;
}


/* FOOTER */

footer {
    background: var(--black);
    color: white;
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 80px;
}

.footer-brand p {
    color: #788078;
    margin-top: 25px;
    line-height: 2;
    font-size: 12px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column > span {
    color: #657067;
    font-size: 9px;
    margin-bottom: 10px;
}

.footer-column a {
    color: #abb2ac;
    font-size: 11px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    color: #5f675f;
    font-size: 9px;
}


/* MOBILE */

.menu-btn {
    display: none;
}

@media (max-width: 900px) {

    .nav,
    .header-btn {
        display: none;
    }

    .menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
    }

    .menu-btn span {
        width: 28px;
        height: 1px;
        background: white;
    }

    .hero h1 {
        font-size: 65px;
    }

    .intro-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(2) {
        margin-top: 0;
    }

    .project-image {
        height: 500px;
    }

    .services-title {
        display: block;
    }

    .services-title p {
        margin-top: 30px;
    }

    .service {
        grid-template-columns: 50px 1fr 40px;
    }

    .service p {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 600px) {

    .section {
        padding: 90px 0;
    }

    .hero {
        min-height: 650px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .hero-content > p {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 190px;
    }

    .hero-bottom {
        display: none;
    }

    .project-image,
    .about-image img {
        height: 430px;
    }

    .stats {
        gap: 25px;
    }

    .stats strong {
        font-size: 30px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        display: block;
        line-height: 2.5;
    }
}
