
:root {
    --red: #d71920;
    --red-dark: #ad1018;
    --dark: #17191d;
    --dark-light: #202329;
    --card: #25282e;
    --white: #ffffff;
    --gray: #a5a8af;
    --light: #f4f4f5;
    --font: 'DM Sans', sans-serif;
    --heading: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button, input, textarea {
    font: inherit;
}

.container {
    width: min(1180px, 90%);
    margin: auto;
}

.section {
    padding: 110px 0;
}

.section-label {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 22px;
}

h1, h2, h3 {
    font-family: var(--heading);
}

/* HEADER */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(23, 25, 29, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: .3s;
}

.header.scrolled {
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.nav-wrapper {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-placeholder {
    font-family: var(--heading);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-placeholder span {
    color: var(--red);
}

.logo img {
    max-width: 180px;
    max-height: 55px;
    object-fit: contain;
}

.navigation {
    display: flex;
    gap: 32px;
}

.navigation a {
    color: #d4d5d8;
    font-size: 13px;
    font-weight: 600;
    transition: .3s;
}

.navigation a:hover {
    color: var(--red);
}

.nav-button {
    background: var(--red);
    padding: 13px 19px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    transition: .3s;
}

.nav-button:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.nav-button span {
    margin-left: 8px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px;
    background: white;
    transition: .3s;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 17px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    transition: .3s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-red {
    background: var(--red);
    color: white;
}

.btn-red:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
}

.btn-outline {
    border-color: rgba(255,255,255,.4);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
}

.btn-white {
    background: white;
    color: var(--dark);
}

.btn-white:hover {
    background: var(--dark);
    color: white;
}

/* HERO */

.hero {
    min-height: 760px;
    padding-top: 82px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at 85% 45%, rgba(215,25,32,.19), transparent 40%),
        linear-gradient(120deg, #17191d, #202329);
}

.hero::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    right: -250px;
    top: 0;
    border: 1px solid rgba(215,25,32,.2);
    border-radius: 50%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    opacity: .13;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: linear-gradient(to right, black, transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 50px;
    padding: 90px 0 120px;
}

.eyebrow {
    color: #d1d2d5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.red-dot {
    width: 9px;
    height: 9px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--red);
}

.hero h1 {
    font-size: clamp(42px, 5.3vw, 68px);
    line-height: 1.13;
    font-weight: 800;
    letter-spacing: -2.5px;
    margin-bottom: 25px;
}

.hero h1 span,
.about h2 span,
.section-top h2 span,
.contact h2 span {
    color: var(--red);
}

.hero-text > p {
    max-width: 520px;
    color: #b8bac1;
    font-size: 16px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 40px;
    margin-top: 65px;
}

.hero-features div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hero-features strong {
    color: var(--red);
    font-size: 19px;
    font-family: var(--heading);
}

.hero-features span {
    font-size: 11px;
    color: #b5b7be;
}

.hero-visual {
    min-height: 400px;
    position: relative;
    display: grid;
    place-items: center;
}

.visual-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(215,25,32,.35);
}

.circle-one {
    width: 390px;
    height: 390px;
}

.circle-two {
    width: 470px;
    height: 470px;
    border-style: dashed;
    opacity: .5;
}

.visual-card {
    width: min(320px, 90%);
    min-height: 340px;
    position: relative;
    z-index: 2;
    padding: 40px 35px;
    background: linear-gradient(145deg, #30343b, #1e2025);
    border: 1px solid rgba(255,255,255,.12);
    border-top: 4px solid var(--red);
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
    transform: rotate(-5deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visual-icon {
    font-size: 62px;
    color: var(--red);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
}

.visual-card > span {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
}

.visual-card h3 {
    font-size: 28px;
    line-height: 1.3;
    margin: 15px 0;
}

.visual-line {
    width: 50px;
    height: 3px;
    background: var(--red);
    margin: 10px 0 20px;
}

.visual-card small {
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--gray);
}

.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.1);
}

.hero-bottom .container {
    height: 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #9b9da5;
}

.scroll-text {
    color: var(--red);
}

/* ABOUT */

.about {
    background: var(--light);
    color: var(--dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about h2,
.section-top h2,
.contact h2 {
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.2;
    letter-spacing: -2px;
}

.about-content p {
    font-size: 15px;
    color: #62656c;
    line-height: 1.9;
    margin-bottom: 18px;
}

.text-link {
    display: inline-block;
    margin-top: 18px;
    font-weight: 800;
    font-size: 13px;
    border-bottom: 2px solid var(--red);
    padding-bottom: 7px;
}

.text-link span {
    color: var(--red);
    margin-left: 10px;
}

/* SERVICES */

.services {
    background: var(--dark);
}

.section-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 55px;
}

.section-top > p {
    max-width: 370px;
    color: var(--gray);
    line-height: 1.8;
    font-size: 14px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    background: var(--card);
    padding: 35px 30px;
    min-height: 270px;
    border: 1px solid rgba(255,255,255,.06);
    border-bottom: 3px solid transparent;
    transition: .35s ease;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(215,25,32,.06);
    right: -60px;
    top: -60px;
    transition: .4s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--red);
    background: #2c3037;
    box-shadow: 0 20px 40px rgba(0,0,0,.2);
}

.service-card:hover::before {
    transform: scale(2);
}

.service-number {
    position: absolute;
    right: 28px;
    top: 30px;
    font-size: 12px;
    color: #747780;
    font-weight: 700;
}

.service-icon {
    width: 54px;
    height: 54px;
    background: rgba(215,25,32,.12);
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border-radius: 5px;
}

.service-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: var(--red);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-size: 19px;
    margin-bottom: 13px;
}

.service-card p {
    color: #a9abb2;
    font-size: 13px;
    line-height: 1.8;
}

.service-card > a {
    position: absolute;
    bottom: 28px;
    right: 30px;
    color: var(--red);
    font-size: 22px;
    opacity: 0;
    transition: .3s;
}

.service-card:hover > a {
    opacity: 1;
    transform: translate(3px, -3px);
}

/* CTA */

.cta-section {
    background: var(--red);
    padding: 75px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: "MB";
    position: absolute;
    right: 4%;
    top: -110px;
    font-family: var(--heading);
    font-size: 340px;
    font-weight: 800;
    color: rgba(255,255,255,.06);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-section .section-label {
    color: rgba(255,255,255,.7);
}

.cta-section h2 {
    font-size: 43px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,.8);
    font-size: 14px;
}

/* PROJECTS */

.projects {
    background: #f4f4f5;
    color: var(--dark);
}

.project-placeholder {
    min-height: 340px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #24272d, #343840);
    color: white;
    display: flex;
    align-items: center;
}

.project-placeholder::before {
    content: "";
    position: absolute;
    right: 10%;
    top: -130px;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(215,25,32,.5);
    border-radius: 50%;
}

.project-content {
    position: relative;
    z-index: 1;
}

.project-content > span {
    color: var(--red);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 800;
}

.project-content h3 {
    font-size: 40px;
    margin: 20px 0;
    line-height: 1.2;
}

.project-content p {
    color: #b5b8bf;
    font-size: 14px;
}

.project-symbol {
    position: absolute;
    right: 13%;
    font-size: 170px;
    font-family: var(--heading);
    font-weight: 800;
    color: rgba(255,255,255,.05);
}

/* CONTACT */

.contact {
    background: var(--dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

.contact-info > p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
    margin: 25px 0 40px;
    max-width: 440px;
}

.contact-detail {
    margin-top: 27px;
}

.contact-detail > span {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.contact-detail > a,
.contact-detail > p {
    font-size: 16px;
    color: white;
}

.contact-form {
    background: var(--card);
    padding: 40px;
    border: 1px solid rgba(255,255,255,.08);
}

.contact-form h3 {
    font-size: 25px;
    margin-bottom: 30px;
}

.contact-form label {
    display: block;
    color: #c4c6cb;
    font-size: 12px;
    margin: 20px 0 9px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: #1b1e23;
    border: 1px solid #393d45;
    padding: 14px;
    color: white;
    outline: none;
    border-radius: 3px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--red);
}

.contact-form .btn {
    margin-top: 22px;
    width: 100%;
}

.form-message {
    margin-top: 15px;
    color: #ff777b;
    font-size: 13px;
}

/* FOOTER */

.footer {
    background: #101215;
    padding-top: 45px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 35px;
    gap: 20px;
}

.footer-top p {
    color: var(--gray);
    font-size: 13px;
}

.back-top {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 23px 0;
    display: flex;
    justify-content: space-between;
    color: #777b83;
    font-size: 11px;
}

/* ANIMATIONS */

@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .hero-text,
    .visual-card {
        animation: fadeUp .8s ease both;
    }

    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(25px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* RESPONSIVE */

@media (max-width: 950px) {
    .navigation {
        gap: 17px;
    }

    .nav-button {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr 0.7fr;
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        gap: 40px;
    }
}

@media (max-width: 700px) {
    .section {
        padding: 75px 0;
    }

    .nav-wrapper {
        height: 72px;
    }

    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .navigation {
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: #17191d;
        display: flex;
        flex-direction: column;
        padding: 25px 5%;
        gap: 0;
        border-top: 1px solid #303238;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: .3s;
    }

    .navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navigation a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 85px 0 100px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-visual {
        min-height: 350px;
    }

    .circle-one {
        width: 300px;
        height: 300px;
    }

    .circle-two {
        width: 350px;
        height: 350px;
    }

    .visual-card {
        min-height: 280px;
    }

    .hero-features {
        gap: 22px;
        margin-top: 40px;
    }

    .hero-bottom .container {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .section-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 35px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 250px;
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-section h2 {
        font-size: 36px;
    }

    .project-placeholder {
        padding: 35px 25px;
        min-height: 300px;
    }

    .project-content h3 {
        font-size: 32px;
    }

    .project-symbol {
        font-size: 100px;
        right: 5%;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
    }
}
