/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #222;
    background: #fff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --blue: #2196f3;
    --blue-dark: #1685dc;

    --red: #ef1717;

    --dark: #282828;
    --text: #444;
    --muted: #777;

    --light: #f1f1f1;
    --lighter: #f7f7f7;

    --border: #dedede;

    --container: 1120px;

}


/* =========================================================
   GENERAL
========================================================= */

.container {
    width: min(
        calc(100% - 80px),
        var(--container)
    );

    margin-inline: auto;
}

.section-white {
    background: #fff;
}

.section-light {
    background: #f0f0f0;
}

section {
    overflow: hidden;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--blue);
    margin-bottom: 12px;
}

h1,
h2,
h3 {
    line-height: 1.15;
    font-weight: 500;
}

h1 {
    font-size: clamp(42px, 5vw, 68px);
}

h2 {
    font-size: clamp(34px, 4vw, 48px);
}

p {
    color: var(--muted);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    height: 78px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 35px;
}


/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
}

.logo-mark {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border: 4px solid var(--red);

    color: var(--red);
    font-size: 18px;
    font-weight: 700;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 21px;
    line-height: 1;
    font-weight: 500;
}

.logo-text small {
    font-size: 8px;
    color: #888;
    margin-top: 4px;
}


/* Desktop navigation */

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.desktop-nav a {
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    transition: color .2s ease;
}

.desktop-nav a:hover {
    color: var(--blue);
}

.header-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--blue);
    color: #fff;

    padding: 10px 20px;

    font-size: 12px;

    transition: background .2s ease;
}

.header-chat:hover {
    background: var(--blue-dark);
}


/* Mobile menu */

.mobile-menu-button {
    display: none;

    border: 0;
    background: transparent;

    width: 35px;
    height: 35px;

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    width: 22px;
    background: #444;
    margin: 5px auto;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    background: #fff;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    padding-block: 80px;
}

.hero h1 {
    max-width: 650px;
    margin-bottom: 28px;
}

.hero h1 span {
    color: var(--blue);
}

.hero-description {
    max-width: 500px;
    font-size: 16px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* Buttons */

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-width: 145px;
    min-height: 44px;

    padding: 12px 25px;

    font-size: 12px;
    text-transform: uppercase;

    border: 1px solid transparent;

    transition:
        transform .2s ease,
        background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--blue);
    color: #fff;
}

.button-primary:hover {
    background: var(--blue-dark);
}

.button-secondary {
    border-color: var(--blue);
    color: var(--blue);
    background: #fff;
}


/* =========================================================
   ILLUSTRATIONS
========================================================= */

.hero-visual,
.about-visual,
.services-visual {
    min-height: 500px;
    position: relative;
}


/*
   These CSS illustrations reproduce the general
   colorful collage/technology appearance from
   the supplied screenshots without requiring
   external image assets.
*/

.illustration {
    width: 100%;
    height: 100%;
    min-height: 500px;
    position: relative;
}


/* Background shapes */

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-blue {
    width: 150px;
    height: 150px;

    background: #bde7ff;

    top: 90px;
    left: 50px;

    opacity: .8;
}

.shape-green {
    width: 110px;
    height: 65px;

    background: #b7e4bf;

    top: 50px;
    right: 60px;

    border-radius: 60% 40% 60% 40%;
}

.shape-yellow {
    width: 65px;
    height: 65px;

    background: #ffe99b;

    bottom: 100px;
    left: 80px;
}


/* Browser */

.browser-card {
    position: absolute;

    width: 330px;
    height: 230px;

    background: #fff;

    border-radius: 8px;

    box-shadow:
        0 18px 45px rgba(0,0,0,.12);

    top: 150px;
    left: 100px;

    overflow: hidden;

    transform: rotate(-3deg);

    z-index: 5;
}

.browser-top {
    height: 28px;

    background: #f3f3f3;

    display: flex;
    align-items: center;

    gap: 5px;

    padding-left: 12px;
}

.browser-top span {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #ccc;
}

.browser-content {
    padding: 20px;
}

.browser-line {
    width: 75%;
    height: 7px;
    background: #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
}

.browser-line.large {
    width: 90%;
    height: 13px;
    background: var(--blue);
}

.browser-line.short {
    width: 45%;
}

.browser-image {
    height: 80px;
    background:
        linear-gradient(
            135deg,
            #ffca70,
            #ff786b,
            #f8a3d0
        );

    margin: 15px 0;
    border-radius: 5px;
}


/* Phone */

.phone-card {
    position: absolute;

    width: 95px;
    height: 175px;

    background: #272727;

    border-radius: 15px;

    right: 45px;
    top: 190px;

    padding: 7px;

    box-shadow:
        0 20px 35px rgba(0,0,0,.15);

    transform: rotate(8deg);

    z-index: 7;
}

.phone-screen {
    width: 100%;
    height: 100%;

    background: #f5f5f5;

    border-radius: 10px;

    padding: 15px 8px;
}

.phone-screen div {
    height: 8px;
    background: var(--blue);
    margin-bottom: 8px;
    border-radius: 3px;
}

.phone-screen div:nth-child(2) {
    background: #eee;
}

.phone-screen div:nth-child(3) {
    height: 55px;
    background: #ffbc6a;
}


/* Decorative people */

.person {
    position: absolute;

    width: 30px;
    height: 100px;

    background: #333;

    border-radius: 15px 15px 5px 5px;

    z-index: 10;
}

.person::before {
    content: "";

    position: absolute;

    width: 28px;
    height: 28px;

    background: #d99870;

    border-radius: 50%;

    top: -22px;
    left: 1px;
}

.person-one {
    bottom: 55px;
    left: 65px;

    transform: rotate(8deg);

    background: var(--blue);
}

.person-two {
    bottom: 65px;
    right: 80px;

    transform: rotate(-8deg);

    background: #ef6b4e;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    padding: 110px 0;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual .browser-card {
    left: 70px;
    top: 130px;
}

.about-visual .phone-card {
    right: 90px;
    top: 170px;
}

.about-content {
    max-width: 500px;
}

.about-content h2 {
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 18px;
}

.text-button {
    display: inline-block;

    margin-top: 15px;

    color: #fff;
    background: var(--dark);

    padding: 12px 28px;

    font-size: 12px;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border: 1px solid #ccc;

    color: #555;

    font-size: 12px;
}


/* =========================================================
   SERVICES
========================================================= */

.services {
    padding: 110px 0;
}

.services-inner {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.services-content {
    max-width: 480px;
}

.services-content h2 {
    margin-bottom: 25px;
}

.services-content p {
    margin-bottom: 30px;
}

.dark-button {
    display: inline-flex;

    padding: 13px 30px;

    background: var(--dark);
    color: #fff;

    font-size: 12px;
    text-transform: uppercase;
}


/* Services graphic */

.services-visual {
    min-height: 400px;
}

.service-orbit {
    position: absolute;

    border: 2px solid #b7e4f8;

    border-radius: 50%;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
}

.orbit-one {
    width: 320px;
    height: 160px;
}

.orbit-two {
    width: 420px;
    height: 210px;

    transform:
        translate(-50%, -50%)
        rotate(30deg);
}

.service-icon {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 90px;
    height: 90px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background: #d9f4ff;

    color: var(--blue);

    font-size: 30px;
    font-weight: 700;
}

.service-card {
    position: absolute;

    width: 80px;
    height: 80px;

    display: grid;
    place-items: center;

    background: #fff;

    box-shadow:
        0 12px 30px rgba(0,0,0,.1);

    font-size: 11px;
    font-weight: 700;

    color: var(--blue);
}

.service-card-one {
    top: 45px;
    left: 120px;
}

.service-card-two {
    right: 90px;
    top: 90px;

    color: #e92727;
}

.service-card-three {
    bottom: 45px;
    left: 180px;

    color: #36a85a;
}


/* =========================================================
   PORTFOLIO
========================================================= */

.portfolio {
    padding: 100px 0;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 50px;

    text-align: center;
}

.section-heading h2 {
    margin-bottom: 18px;
}

.section-heading p:last-child {
    font-size: 14px;
}


.portfolio-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.portfolio-card {
    background: #fff;

    box-shadow:
        0 3px 15px rgba(0,0,0,.05);
}

.portfolio-image {
    height: 190px;

    display: flex;
    align-items: flex-end;

    padding: 15px;

    position: relative;

    overflow: hidden;
}

.portfolio-image::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    top: -70px;
    right: -40px;

    background: rgba(255,255,255,.25);
}

.portfolio-image span {
    position: relative;
    z-index: 2;

    color: #fff;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-one {
    background:
        linear-gradient(135deg, #3eb3e8, #2065bd);
}

.project-two {
    background:
        linear-gradient(135deg, #ef716b, #d53659);
}

.project-three {
    background:
        linear-gradient(135deg, #49b875, #207b56);
}

.project-four {
    background:
        linear-gradient(135deg, #9870dc, #4b4eac);
}

.portfolio-info {
    padding: 18px;
}

.portfolio-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.portfolio-info p {
    font-size: 12px;
}

.portfolio-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 35px;
}

.portfolio-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #ccc;
}

.portfolio-dots span.active {
    background: var(--blue);
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    padding: 100px 0;
}

.contact-inner {
    max-width: 700px;
}

.contact .section-heading {
    margin-bottom: 45px;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 10px;
    text-transform: uppercase;

    color: #777;
}

.form-group input,
.form-group textarea {
    display: block;

    width: 100%;

    border: 1px solid transparent;

    background: #e9e9e9;

    padding: 13px 15px;

    outline: none;

    resize: vertical;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.form-group input {
    height: 45px;
}

.form-group textarea {
    min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    background: #fff;
    border-color: var(--blue);
}

.form-submit {
    width: 100%;
    border: 0;
    cursor: pointer;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #f0f0f0;
    padding-top: 70px;
}

.footer-inner {
    display: grid;

    grid-template-columns:
        1.2fr
        .8fr
        1.2fr
        .8fr;

    gap: 50px;

    align-items: start;
}

.footer-logo {
    min-width: auto;
}

.footer-navigation {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-navigation a {
    font-size: 12px;
    color: #777;
}

.footer-navigation a:hover {
    color: var(--blue);
}

.footer-contact p {
    font-size: 11px;
    margin-bottom: 15px;
}

.footer-button {
    display: inline-flex;

    justify-content: center;

    padding: 12px 25px;

    background: var(--blue);
    color: #fff;

    font-size: 11px;
}

.footer-bottom {
    margin-top: 60px;

    padding: 18px 0;

    background: #292929;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p,
.footer-bottom a {
    font-size: 10px;
    color: #aaa;
}

.footer-bottom-inner div {
    display: flex;
    gap: 20px;
}


/* =========================================================
   MOBILE BOTTOM BAR
========================================================= */

.mobile-bottom-bar {
    display: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .desktop-nav {
        gap: 15px;
    }

    .header-chat {
        display: none;
    }

    .hero-inner,
    .about-inner,
    .services-inner {
        gap: 40px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    body {
        padding-bottom: 62px;
    }


    .container {
        width: min(
            calc(100% - 24px),
            520px
        );
    }


    /* Header */

    .site-header {
        height: 60px;
        position: sticky;
    }

    .header-inner {
        justify-content: space-between;
    }

    .logo {
        min-width: auto;
    }

    .logo-mark {
        width: 27px;
        height: 27px;

        border-width: 3px;

        font-size: 15px;
    }

    .logo-text strong {
        font-size: 18px;
    }

    .logo-text small {
        display: none;
    }

    .desktop-nav,
    .header-chat {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }


    /* Hero */

    .hero {
        min-height: auto;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;

        gap: 0;
    }

    .hero-content {
        order: 2;

        text-align: center;

        padding:
            55px 10px
            35px;
    }

    .hero-visual {
        order: 1;

        width: calc(100% + 24px);
        margin-left: -12px;

        min-height: 220px;

        background: #f1f1f1;
    }

    .hero-visual .illustration {
        min-height: 220px;

        transform: scale(.65);

        transform-origin: center center;
    }

    .hero .eyebrow {
        display: none;
    }

    .hero h1 {
        font-size: 27px;
        line-height: 1.25;

        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 12px;
        line-height: 1.7;

        margin-inline: auto;

        max-width: 370px;

        margin-bottom: 25px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;

        gap: 8px;
    }

    .hero-buttons .button {
        width: 100%;
    }


    /* About */

    .about {
        padding: 55px 0;
    }

    .about-inner {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .about-visual {
        width: 100%;
        min-height: 220px;

        order: 1;
    }

    .about-visual .illustration {
        min-height: 220px;

        transform: scale(.65);
        transform-origin: center top;
    }

    .about-content {
        order: 2;

        text-align: center;

        padding-inline: 15px;
    }

    .about-content h2 {
        font-size: 29px;
    }

    .about-content p {
        font-size: 12px;
    }

    .social-links {
        justify-content: center;
    }


    /* Services */

    .services {
        padding: 55px 0;
    }

    .services-inner {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .services-content {
        text-align: center;

        order: 1;

        padding-inline: 15px;
    }

    .services-content h2 {
        font-size: 29px;
    }

    .services-content p {
        font-size: 12px;
    }

    .services-visual {
        order: 2;

        width: 100%;
        min-height: 260px;
    }

    .service-orbit {
        transform:
            translate(-50%, -50%)
            scale(.65);
    }

    .orbit-two {
        transform:
            translate(-50%, -50%)
            rotate(30deg)
            scale(.65);
    }


    /* Portfolio */

    .portfolio {
        padding: 55px 0;
    }

    .section-heading {
        padding-inline: 15px;

        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .section-heading p {
        font-size: 12px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .portfolio-image {
        height: 125px;
    }

    .portfolio-info {
        padding: 10px;
    }

    .portfolio-info h3 {
        font-size: 12px;
    }

    .portfolio-info p {
        font-size: 9px;
    }


    /* Contact */

    .contact {
        padding: 55px 0 70px;
    }

    .contact .section-heading {
        margin-bottom: 30px;
    }

    .contact-form {
        padding-inline: 0;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: 9px;
    }

    .form-group input {
        height: 42px;
    }

    .form-group textarea {
        min-height: 120px;
    }


    /* Footer */

    .site-footer {
        padding-top: 45px;
    }

    .footer-inner {
        display: flex;
        flex-direction: column;

        align-items: center;

        text-align: center;

        gap: 25px;
    }

    .footer-navigation {
        align-items: center;
    }

    .footer-contact p {
        font-size: 10px;
    }

    .footer-button {
        width: 100%;
    }

    .footer-bottom {
        margin-top: 40px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;

        text-align: center;
    }


    /* Mobile bottom navigation */

    .mobile-bottom-bar {
        position: fixed;

        display: grid;
        grid-template-columns: repeat(3, 1fr);

        left: 0;
        right: 0;
        bottom: 0;

        height: 62px;

        background: #282828;

        z-index: 2000;
    }

    .mobile-bottom-bar a {
        display: flex;

        flex-direction: column;

        justify-content: center;
        align-items: center;

        gap: 3px;

        color: #fff;

        font-size: 9px;
    }

    .bottom-icon {
        font-size: 8px;
        color: #ccc;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 24px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-image {
        height: 180px;
    }

}
