@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #090909;
    --bg2: #101010;
    --card: #121212;
    --text: #f4f4f4;
    --muted: #8d8d8d;
    --line: #252525;
    --red: #9f2028;
    --red-light: #c52d36;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Vazirmatn", sans-serif;
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 90%);
    margin: auto;
}


/* HEADER */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(9,9,9,.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.nav {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    width: 38px;
    height: 38px;
    border: 1px solid var(--red);
    display: grid;
    place-items: center;
    color: var(--red-light);
}

.menu {
    display: flex;
    gap: 34px;
    font-size: 14px;
    color: #aaa;
}

.menu a {
    transition: .3s;
}

.menu a:hover {
    color: white;
}

.nav-btn {
    border: 1px solid #333;
    padding: 9px 18px;
    font-size: 13px;
    transition: .3s;
}

.nav-btn:hover {
    border-color: var(--red);
    background: var(--red);
}

.mobile-menu {
    display: none;
    background: none;
    color: white;
    border: 0;
    font-size: 25px;
}


/* HERO */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(159,32,40,.18),
        transparent 65%
    );
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    align-items: center;
}

.eyebrow,
.section-number {
    color: var(--red-light);
    font-size: 11px;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(50px, 7vw, 92px);
    line-height: 1.1;
    margin: 25px 0;
    font-weight: 700;
}

.hero h1 span,
.section-head h2 span,
.about-title h2 span,
.about-text span,
.contact h2 span {
    color: var(--red-light);
}

.hero-content > p {
    color: var(--muted);
    max-width: 570px;
    font-size: 17px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 35px;
}

.btn {
    padding: 13px 24px;
    border: 1px solid #333;
    font-size: 14px;
    transition: .3s;
}

.btn.primary {
    background: var(--red);
    border-color: var(--red);
}

.btn.primary:hover {
    background: var(--red-light);
}

.btn.secondary:hover {
    border-color: #777;
}

.hero-meta {
    display: flex;
    gap: 45px;
    margin-top: 60px;
}

.hero-meta div {
    display: flex;
    flex-direction: column;
}

.hero-meta strong {
    font-size: 22px;
}

.hero-meta span {
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
}


/* HERO VISUAL */

.hero-visual {
    position: relative;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    width: 360px;
    height: 470px;
    border: 1px solid #292929;
    background:
        linear-gradient(
            135deg,
            rgba(159,32,40,.15),
            transparent 45%
        ),
        #101010;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    transform: rotate(4deg);
    box-shadow: 30px 30px 100px rgba(0,0,0,.5);
}

.visual-top,
.visual-bottom {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 9px;
    letter-spacing: 2px;
}

.visual-center {
    font-size: 120px;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--red);
}

.floating-text {
    position: absolute;
    font-size: 70px;
    line-height: .9;
    font-weight: 800;
    color: rgba(255,255,255,.035);
    right: -30px;
    bottom: 50px;
}


/* SECTIONS */

.section {
    padding: 140px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;
    margin-bottom: 65px;
}

.section-head h2,
.about-title h2,
.contact h2 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.2;
    margin-top: 15px;
}

.section-head > p {
    max-width: 360px;
    color: var(--muted);
}


/* SERVICES */

.services {
    background: #0d0d0d;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service-card {
    min-height: 330px;
    padding: 40px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: .4s;
}

.service-card:hover {
    background: #141414;
}

.service-number {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #444;
    font-size: 12px;
}

.service-icon {
    color: var(--red-light);
    font-size: 34px;
    margin-bottom: 35px;
}

.service-card h3 {
    font-size: 25px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--muted);
    max-width: 450px;
}

.service-card a {
    display: inline-block;
    margin-top: 25px;
    color: #aaa;
    font-size: 13px;
}


/* WORK */

.work-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 25px;
}

.work-item:first-child {
    grid-row: span 2;
}

.work-image {
    height: 350px;
    background: #151515;
    border: 1px solid #222;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.work-item:first-child .work-image {
    height: 725px;
}

.placeholder {
    background:
        linear-gradient(
            135deg,
            rgba(159,32,40,.12),
            transparent 50%
        ),
        #111;
}

.placeholder span {
    font-size: 12px;
    letter-spacing: 4px;
    color: #555;
}

.work-info {
    display: flex;
    justify-content: space-between;
    padding: 20px 0 35px;
}

.work-info h3 {
    font-size: 19px;
}

.work-info p {
    color: #666;
    font-size: 12px;
}


/* ABOUT */

.about {
    background: #0d0d0d;
}

.about-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 100px;
}

.about-text {
    padding-top: 50px;
}

.big-text {
    font-size: 27px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-text > p:not(.big-text) {
    color: var(--muted);
}

.about-stats {
    display: flex;
    gap: 70px;
    margin-top: 60px;
}

.about-stats div {
    display: flex;
    flex-direction: column;
}

.about-stats strong {
    color: var(--red-light);
}

.about-stats span {
    color: #666;
    font-size: 11px;
}


/* CTA */

.cta {
    padding: 150px 0;
    text-align: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cta > .container > span {
    color: #666;
    font-size: 11px;
    letter-spacing: 3px;
}

.cta h2 {
    font-size: clamp(45px, 7vw, 90px);
    line-height: 1.15;
    margin: 25px 0 45px;
}

.cta h2 em {
    color: var(--red-light);
    font-style: normal;
}

.cta-button {
    display: inline-block;
    border: 1px solid #444;
    padding: 14px 30px;
    transition: .3s;
}

.cta-button:hover {
    background: var(--red);
    border-color: var(--red);
}


/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 100px;
}

.contact p {
    color: var(--muted);
    max-width: 400px;
    margin-top: 25px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    color: #bbb;
    font-size: 14px;
}

.contact-links a:hover {
    color: var(--red-light);
}

.contact-form {
    background: #101010;
    border: 1px solid #222;
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #777;
    font-size: 12px;
    margin-bottom: 8px;
}

input,
textarea {
    width: 100%;
    background: #0b0b0b;
    border: 1px solid #292929;
    color: white;
    padding: 15px;
    font-family: inherit;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--red);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    border: 0;
    background: var(--red);
    color: white;
    font-family: inherit;
    cursor: pointer;
    transition: .3s;
}

.submit-btn:hover {
    background: var(--red-light);
}

.success {
    padding: 15px;
    background: #14301c;
    color: #83d39b;
    margin-bottom: 25px;
}


/* FOOTER */

footer {
    border-top: 1px solid var(--line);
    padding: 30px 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .menu,
    .nav-btn {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero {
        padding-top: 130px;
    }

    .hero-visual {
        height: 450px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: start;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-item:first-child .work-image {
        height: 400px;
    }

    .work-item:first-child {
        grid-row: auto;
    }

    .about-stats {
        gap: 30px;
    }

}

@media (max-width: 600px) {

    .hero h1 {
        font-size: 48px;
    }

    .visual-card {
        width: 280px;
        height: 380px;
    }

    .visual-center {
        font-size: 80px;
    }

    .floating-text {
        font-size: 45px;
    }

    .hero-meta {
        gap: 25px;
    }

    .service-card {
        padding: 30px;
    }

    .contact-form {
        padding: 25px;
    }

    .footer {
        flex-direction: column;
        gap: 10px;
        }
    .animate {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity .7s ease, transform .7s ease;
    }

    .animate.show {
        opacity: 1;
        transform: translateY(0);
    }

    .menu.active {
        display: flex;
    }
}