@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* =========================================================
   TG WEB STUDIO
   MAIN DESIGN SYSTEM
========================================================= */

:root {
    --black: #050608;
    --black-2: #090b0f;
    --black-3: #10131a;

    --white: #f5f7fa;
    --white-soft: #c6cbd3;
    --gray: #737a85;
    --gray-dark: #4b515b;

    --red: #ff2147;
    --red-dark: #c9002c;

    --cyan: #00e5ff;
    --cyan-dark: #00a9bd;

    --line: rgba(255, 255, 255, 0.1);
    --line-soft: rgba(255, 255, 255, 0.06);

    --max-width: 1400px;

    --display: Space Grotesk, sans-serif;
    --body: DM Sans, sans-serif;
    --mono: DM Sans, sans-serif;

    --transition: 0.3s ease;
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--black);
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(0, 229, 255, 0.055),
            transparent 27%
        ),
        radial-gradient(
            circle at 5% 35%,
            rgba(255, 33, 71, 0.05),
            transparent 28%
        ),
        var(--black);

    color: var(--white);

    font-family: DM Sans, sans-serif;

    font-size: 16px;

    line-height: 1.5;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================================================
   LOADER
========================================================= */

.loader {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #030405;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body[data-site-ready="true"] .loader {
    display: none !important;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 82px;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5vw;

    border-bottom: 1px solid transparent;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        backdrop-filter 0.3s ease;
}

.site-header.scrolled {
    background: rgba(5, 6, 8, 0.88);

    backdrop-filter: blur(20px);

    border-color: var(--line);
}

.logo {
    display: flex;
    align-items: center;

    gap: 12px;

    color: var(--white);

    font-family: Space Grotesk, sans-serif;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: -0.03em;
}

.logo-box {
    position: relative;

    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: grid;
    place-items: center;

    background:
        linear-gradient(
            135deg,
            var(--red),
            var(--red-dark)
        );

    color: white;

    font-family: Space Grotesk, sans-serif;

    font-size: 12px;

    font-weight: 700;

    box-shadow:
        0 0 25px rgba(255, 33, 71, 0.18);
}

.logo-box::after {
    content: "";

    position: absolute;

    right: -3px;
    bottom: -3px;

    width: 6px;
    height: 6px;

    background: var(--cyan);
}

.nav {
    display: flex;
    align-items: center;

    gap: 28px;
}

.nav a {
    color: var(--white-soft);

    font-family: DM Sans, sans-serif;

    font-size: 11px;

    font-weight: 600;

    transition: color var(--transition);
}

.nav a:hover {
    color: var(--cyan);
}

.nav .nav-cta {
    padding: 12px 18px;

    color: #fff;

    background:
        linear-gradient(
            100deg,
            var(--red),
            #ff405f
        );

    font-weight: 700;

    box-shadow:
        0 8px 25px rgba(255, 33, 71, 0.15);
}

.nav .nav-cta:hover {
    color: #fff;

    background:
        linear-gradient(
            100deg,
            #ff405f,
            var(--red)
        );
}

.menu-toggle {
    display: none;
}

/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {
    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;

    padding: 145px 5vw;
}

.section-number {
    display: block;

    margin-bottom: 20px;

    color: var(--cyan);

    font-family: DM Sans, sans-serif;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.section-heading {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 80px;

    align-items: end;

    margin-bottom: 75px;
}

.section-heading h2 {
    font-family: Space Grotesk, sans-serif;

    font-size: clamp(50px, 7vw, 105px);

    line-height: 0.88;

    letter-spacing: -0.075em;

    font-weight: 700;
}

.section-heading h2 em {
    color: var(--red);

    font-style: normal;
}

.section-heading > p {
    max-width: 470px;

    color: var(--gray);

    font-size: 14px;

    line-height: 1.9;
}

/* =========================================================
   REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(28px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}

/*
   Dynamically-created portfolio cards should never
   remain invisible if the observer has not caught them.
*/

.portfolio-card.reveal {
    opacity: 1;

    visibility: visible;

    transform: none;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding:
        160px 5vw 120px;

    overflow: hidden;
}

.hero-grid {
    position: absolute;

    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(0, 229, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(0, 229, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 75px 75px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );
}

.hero-grid::before {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    top: -230px;
    right: -180px;

    border-radius: 50%;

    background: var(--cyan);

    filter: blur(180px);

    opacity: 0.055;
}

.hero-grid::after {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    left: -160px;
    bottom: -200px;

    border-radius: 50%;

    background: var(--red);

    filter: blur(170px);

    opacity: 0.05;
}

.hero-content {
    position: relative;

    z-index: 2;

    width: 100%;
}

.eyebrow {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 28px;

    color: var(--gray);

    font-family: DM Sans, sans-serif;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: var(--cyan);

    box-shadow:
        0 0 18px var(--cyan);
}

.hero-title {
    max-width: 1200px;

    color: var(--white);

    font-family: Space Grotesk, sans-serif;

    font-size:
        clamp(
            65px,
            10.5vw,
            160px
        );

    line-height: 0.82;

    letter-spacing: -0.09em;

    font-weight: 700;
}

.hero-title span {
    display: block;
}

.hero-title em {
    display: block;

    margin-left: 8vw;

    color: var(--red);

    font-style: normal;
}

.hero-description {
    max-width: 600px;

    margin-top: 48px;
    margin-left: 8vw;

    color: var(--white-soft);

    font-size: 15px;

    line-height: 1.85;
}

.hero-actions {
    display: flex;

    gap: 12px;

    margin-top: 35px;
    margin-left: 8vw;
}

.button {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 20px;

    padding: 0 22px;

    font-family: DM Sans, sans-serif;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.button span {
    font-size: 17px;
}

.button:hover {
    transform: translateY(-4px);
}

.button-primary {
    color: #fff;

    background:
        linear-gradient(
            100deg,
            var(--red),
            #ff405f
        );

    box-shadow:
        0 12px 35px rgba(255, 33, 71, 0.17);
}

.button-primary:hover {
    color: var(--black);

    background: var(--cyan);

    box-shadow:
        0 12px 35px rgba(0, 229, 255, 0.2);
}

.button-outline {
    color: var(--white);

    border: 1px solid var(--line);

    background:
        rgba(255, 255, 255, 0.015);
}

.button-outline:hover {
    border-color: var(--cyan);

    color: var(--cyan);

    background:
        rgba(0, 229, 255, 0.035);
}

.hero-side {
    position: absolute;

    right: 5vw;
    bottom: 125px;

    display: flex;
    align-items: center;

    gap: 17px;
}

.hero-line {
    width: 80px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--cyan)
        );
}

.hero-side-text {
    display: flex;

    gap: 12px;

    color: var(--gray);

    font-family: DM Sans, sans-serif;

    font-size: 8px;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.hero-side-text span {
    color: var(--red);
}

.scroll-indicator {
    position: absolute;

    left: 5vw;
    bottom: 40px;

    display: flex;
    align-items: center;

    gap: 15px;

    color: var(--gray);

    font-family: DM Sans, sans-serif;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}

.scroll-line {
    width: 65px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--cyan),
            transparent
        );
}

/* =========================================================
   STATS
========================================================= */

.stats-section {
    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);
}

.stat {
    min-height: 165px;

    padding: 35px 5vw;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    font-family: Space Grotesk, sans-serif;

    font-size: 48px;

    line-height: 1;

    letter-spacing: -0.07em;
}

.stat:nth-child(1) strong,
.stat:nth-child(3) strong {
    color: var(--red);
}

.stat:nth-child(2) strong,
.stat:nth-child(4) strong {
    color: var(--cyan);
}

.stat span {
    margin-top: 9px;

    color: var(--gray);

    font-family: DM Sans, sans-serif;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

/* =========================================================
   SERVICES
========================================================= */

.services-section {
    border-bottom: 1px solid var(--line);
}

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service-card {
    position: relative;

    min-height: 285px;

    padding: 30px;

    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.018),
            transparent
        );

    transition:
        background 0.35s ease,
        transform 0.35s ease;
}

.service-card::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--red),
            var(--cyan)
        );

    transition:
        width 0.4s ease;
}

.service-card:hover {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(0, 229, 255, 0.05),
            transparent 35%
        ),
        var(--black-2);

    transform: translateY(-4px);
}

.service-card:hover::after {
    width: 100%;
}

.service-number {
    color: var(--gray);

    font-family: DM Sans, sans-serif;

    font-size: 9px;

    font-weight: 600;
}

.service-icon {
    position: absolute;

    top: 25px;
    right: 28px;

    color: var(--cyan);

    font-size: 25px;

    text-shadow:
        0 0 20px rgba(0, 229, 255, 0.25);
}

.service-card:nth-child(3n) .service-icon {
    color: var(--red);
}

.service-card h3 {
    margin-top: 75px;

    color: var(--white);

    font-family: Space Grotesk, sans-serif;

    font-size: 24px;

    line-height: 1.1;

    letter-spacing: -0.045em;
}

.service-card p {
    max-width: 340px;

    margin-top: 15px;

    color: var(--gray);

    font-size: 12px;

    line-height: 1.8;
}

/* =========================================================
   WORK / PORTFOLIO
========================================================= */

.work-section {
    width: 100%;
    max-width: none;

    padding-left: 5vw;
    padding-right: 5vw;
}

.work-heading {
    width: 100%;
    max-width: var(--max-width);

    margin-left: auto;
    margin-right: auto;
}

.portfolio-controls {
    width: 100%;
    max-width: var(--max-width);

    margin:
        0 auto 45px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;
}

.filter-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.filter-button {
    padding: 10px 13px;

    border: 1px solid var(--line);

    background: transparent;

    color: var(--gray);

    cursor: pointer;

    font-family: DM Sans, sans-serif;

    font-size: 8px;

    font-weight: 600;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.filter-button:hover,
.filter-button.active {
    color: var(--black);

    background: var(--cyan);

    border-color: var(--cyan);
}

.search-box {
    position: relative;

    width: 250px;

    flex: 0 0 250px;
}

.search-box input {
    width: 100%;
    height: 42px;

    padding:
        0 40px 0 14px;

    outline: none;

    border: 1px solid var(--line);

    background: var(--black-2);

    color: var(--white);

    font-family: DM Sans, sans-serif;

    font-size: 11px;

    transition:
        border-color var(--transition);
}

.search-box input:focus {
    border-color: var(--cyan);
}

.search-box input::placeholder {
    color: var(--gray-dark);
}

.search-box span {
    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--cyan);
}

/* =========================================================
   PORTFOLIO GRID
========================================================= */

.portfolio-grid {
    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

    align-items: start;
}

/* =========================================================
   PORTFOLIO CARD
========================================================= */

.portfolio-card {
    width: 100%;

    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--line);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            rgba(255, 255, 255, 0.008)
        );

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(0, 229, 255, 0.32);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 35px rgba(0, 229, 255, 0.04);
}

/* =========================================================
   PROJECT VISUAL
========================================================= */

.project-visual {
    position: relative;

    width: 100%;

    height: 300px;

    padding: 16px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(0, 229, 255, 0.14),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(255, 33, 71, 0.12),
            transparent 30%
        ),
        #0a0c10;
}

.project-visual::before {
    content: "";

    position: absolute;

    right: -70px;
    bottom: -70px;

    width: 200px;
    height: 200px;

    border: 1px solid
        rgba(0, 229, 255, 0.15);

    transform: rotate(45deg);

    pointer-events: none;
}

.project-visual::after {
    content: "";

    position: absolute;

    left: -30px;
    top: 35px;

    width: 80px;
    height: 80px;

    border-radius: 50%;

    background: var(--red);

    filter: blur(50px);

    opacity: 0.12;

    pointer-events: none;
}

/* =========================================================
   BROWSER MOCKUP
========================================================= */

.browser-link {
    position: relative;

    z-index: 3;

    display: block;

    width: 100%;
    height: 100%;
}

.browser {
    position: relative;

    width: 100%;
    height: 100%;

    min-height: 0;

    overflow: hidden;

    background: #0d1015;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.55);

    transform:
        perspective(1000px)
        rotateX(1deg);

    transition:
        transform 0.4s ease;
}

.portfolio-card:hover .browser {
    transform:
        perspective(1000px)
        rotateX(0deg)
        scale(1.015);
}

.browser-top {
    position: relative;

    z-index: 4;

    width: 100%;
    height: 27px;

    padding: 0 10px;

    display: flex;
    align-items: center;

    gap: 5px;

    background: #151920;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.07);
}

.browser-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #5b616b;
}

.browser-dot:first-child {
    background: var(--red);
}

.browser-dot:last-child {
    background: var(--cyan);
}

/* =========================================================
   BROWSER PREVIEW IMAGE
========================================================= */

.browser-content {
    position: relative;

    width: 100%;

    height: calc(100% - 27px);

    min-height: 0;

    overflow: hidden;
}

.preview-image-content {
    background-repeat: no-repeat;

    background-size: cover;

    background-position: center top;

    background-color: #0d1015;
}

.preview-image-content::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(5, 6, 8, 0.02),
            rgba(5, 6, 8, 0.08)
        );
}

/* =========================================================
   FALLBACK BROWSER
========================================================= */

.browser-content:not(.preview-image-content) {
    padding: 25px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background:
        linear-gradient(
            125deg,
            rgba(0, 229, 255, 0.025),
            transparent 45%
        );
}

.browser-label {
    color: var(--cyan);

    font-family: DM Sans, sans-serif;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}

.browser-title {
    max-width: 80%;

    color: var(--white);

    font-family: Space Grotesk, sans-serif;

    font-size: clamp(22px, 2vw, 32px);

    line-height: 0.92;

    font-weight: 700;

    letter-spacing: -0.07em;
}

.browser-line {
    width: 75%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--red),
            var(--cyan)
        );
}

/* =========================================================
   PROJECT INFO
========================================================= */

.project-info {
    width: 100%;

    padding: 24px;
}

.project-category {
    display: block;

    color: var(--cyan);

    font-family: DM Sans, sans-serif;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.project-info h3 {
    margin-top: 8px;

    color: var(--white);

    font-family: Space Grotesk, sans-serif;

    font-size: 24px;

    line-height: 1.05;

    font-weight: 700;

    letter-spacing: -0.045em;
}

.project-info p {
    margin-top: 12px;

    color: var(--gray);

    font-size: 12px;

    line-height: 1.75;
}

.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 17px;
}

.project-tag {
    padding: 5px 8px;

    border: 1px solid var(--line);

    color: var(--gray);

    font-family: DM Sans, sans-serif;

    font-size: 7px;

    font-weight: 600;
}

.project-footer {
    margin-top: 20px;

    padding-top: 17px;

    border-top: 1px solid var(--line-soft);

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;
}

.project-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--white);

    font-size: 10px;

    font-weight: 700;

    transition: color var(--transition);
}

.project-link:hover {
    color: var(--cyan);
}

.project-link span {
    color: var(--cyan);

    font-size: 14px;
}

.project-status {
    color: var(--gray);

    font-family: DM Sans, sans-serif;

    font-size: 7px;

    font-weight: 600;

    letter-spacing: 0.08em;

    white-space: nowrap;
}

/* =========================================================
   NO RESULTS
========================================================= */

.no-results {
    display: none;

    width: 100%;
    max-width: var(--max-width);

    margin: 50px auto;

    padding: 50px 20px;

    text-align: center;

    color: var(--gray);

    border: 1px solid var(--line);
}

.no-results.show {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.no-results strong {
    color: var(--white);
}

/* =========================================================
   LOADING / ERROR
========================================================= */

.portfolio-loading {
    width: 100%;

    grid-column: 1 / -1;

    padding: 60px 20px;

    text-align: center;

    color: var(--gray);

    border: 1px solid var(--line);

    font-size: 12px;
}

.portfolio-server-error {
    width: 100%;

    grid-column: 1 / -1;

    padding: 60px 20px;

    text-align: center;

    color: var(--gray);

    border:
        1px solid
        rgba(255, 33, 71, 0.25);

    background:
        rgba(255, 33, 71, 0.03);
}

.portfolio-server-error strong {
    display: block;

    margin-bottom: 10px;

    color: var(--red);

    font-family: Space Grotesk, sans-serif;

    font-size: 20px;
}

.preview-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--gray);

    font-family: DM Sans, sans-serif;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

/* =========================================================
   WHY SECTION
========================================================= */

.why-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.why-layout {
    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    gap: 100px;

    align-items: start;
}

.why-intro h2 {
    font-family: Space Grotesk, sans-serif;

    font-size:
        clamp(
            42px,
            5vw,
            75px
        );

    line-height: 0.9;

    letter-spacing: -0.07em;
}

.why-intro h2 em {
    display: block;

    color: var(--red);

    font-style: normal;
}

.why-intro p {
    max-width: 410px;

    margin-top: 30px;

    color: var(--gray);

    font-size: 13px;

    line-height: 1.8;
}

.reasons-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.reason {
    min-height: 100px;

    padding: 25px;

    display: flex;

    align-items: center;

    gap: 15px;

    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    color: var(--white-soft);

    font-size: 12px;
}

.reason-mark {
    width: 21px;
    height: 21px;

    flex: 0 0 21px;

    display: grid;
    place-items: center;

    color: var(--black);

    background: var(--cyan);

    font-size: 10px;

    font-weight: 800;
}

/* =========================================================
   PROCESS
========================================================= */

.process-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.process-card {
    position: relative;

    min-height: 310px;

    padding: 30px;

    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.012),
            transparent
        );
}

.process-card::after {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 1px;
    height: 0;

    background:
        linear-gradient(
            to bottom,
            var(--cyan),
            transparent
        );

    transition:
        height 0.5s ease;
}

.process-card:hover::after {
    height: 100%;
}

.process-number {
    color: var(--red);

    font-family: DM Sans, sans-serif;

    font-size: 9px;

    font-weight: 700;
}

.process-card h3 {
    margin-top: 105px;

    color: var(--white);

    font-family: Space Grotesk, sans-serif;

    font-size: 25px;

    line-height: 1;

    letter-spacing: -0.05em;
}

.process-card p {
    margin-top: 12px;

    color: var(--gray);

    font-size: 12px;

    line-height: 1.7;
}

/* =========================================================
   CTA
========================================================= */

.cta-section {
    position: relative;

    min-height: 650px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    text-align: center;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cta-background {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 229, 255, 0.09),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(255, 33, 71, 0.08),
            transparent 30%
        );
}

.cta-background::before,
.cta-background::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%)
        rotate(45deg);

    border: 1px solid
        rgba(0, 229, 255, 0.12);
}

.cta-background::before {
    width: 520px;
    height: 520px;
}

.cta-background::after {
    width: 780px;
    height: 780px;

    border-color:
        rgba(255, 33, 71, 0.07);
}

.cta-content {
    position: relative;

    z-index: 2;
}

.cta-content h2 {
    font-family: Space Grotesk, sans-serif;

    font-size:
        clamp(
            60px,
            9vw,
            130px
        );

    line-height: 0.83;

    letter-spacing: -0.085em;
}

.cta-content h2 em {
    display: block;

    color: var(--cyan);

    font-style: normal;
}

.cta-content p {
    max-width: 530px;

    margin: 30px auto;

    color: var(--gray);

    font-size: 14px;

    line-height: 1.8;
}

/* =========================================================
   FAQ
========================================================= */

.faq-list {
    width: 100%;
    max-width: 920px;

    margin: 0 auto;
}

.faq-item {
    border-top: 1px solid var(--line);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--line);
}

.faq-question {
    width: 100%;

    padding: 25px 0;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    background: transparent;

    color: var(--white);

    cursor: pointer;

    text-align: left;

    font-family: Space Grotesk, sans-serif;

    font-size: 16px;

    font-weight: 600;
}

.faq-question:hover {
    color: var(--cyan);
}

.faq-plus {
    flex: 0 0 auto;

    color: var(--red);

    font-size: 24px;

    transition:
        transform var(--transition);
}

.faq-answer {
    max-height: 0;

    overflow: hidden;

    color: var(--gray);

    font-size: 12px;

    line-height: 1.85;

    transition:
        max-height 0.4s ease;
}

.faq-answer-inner {
    padding-bottom: 0;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-item.open .faq-answer-inner {
    padding-bottom: 25px;
}

.faq-item.open .faq-plus {
    transform: rotate(45deg);

    color: var(--cyan);
}

/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    border-top: 1px solid var(--line);
}

.contact-layout {
    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    gap: 100px;
}

.contact-info h2 {
    font-family: Space Grotesk, sans-serif;

    font-size:
        clamp(
            48px,
            6vw,
            85px
        );

    line-height: 0.87;

    letter-spacing: -0.075em;
}

.contact-info h2 em {
    display: block;

    color: var(--red);

    font-style: normal;
}

.contact-info > p {
    max-width: 460px;

    margin-top: 30px;

    color: var(--gray);

    font-size: 13px;

    line-height: 1.8;
}

.contact-details {
    margin-top: 45px;

    border-top: 1px solid var(--line);
}

.contact-item {
    padding: 18px 0;

    display: flex;
    flex-direction: column;

    gap: 4px;

    border-bottom: 1px solid var(--line);
}

.contact-item span {
    color: var(--cyan);

    font-family: DM Sans, sans-serif;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.contact-item strong {
    font-size: 13px;

    font-weight: 500;
}

.contact-item:hover strong {
    color: var(--cyan);
}

.contact-form-wrapper {
    padding: 36px;

    border: 1px solid var(--line);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.008)
        );

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.2);
}

.contact-form {
    display: flex;

    flex-direction: column;

    gap: 22px;
}

.form-row {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;
}

.form-field {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-field label {
    color: var(--gray);

    font-family: DM Sans, sans-serif;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;

    outline: none;

    border: 1px solid var(--line);

    background: #07090c;

    color: var(--white);

    padding: 14px;

    font-family: DM Sans, sans-serif;

    font-size: 12px;

    resize: vertical;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-field input {
    height: 49px;
}

.form-field select {
    height: 49px;
}

.form-field textarea {
    min-height: 130px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--cyan);

    box-shadow:
        0 0 0 3px
        rgba(0, 229, 255, 0.04);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #505660;
}

.form-submit {
    width: 100%;

    cursor: pointer;
}

.form-note {
    color: var(--gray);

    font-family: DM Sans, sans-serif;

    font-size: 8px;

    text-align: center;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;
    max-width: var(--max-width);

    margin: 0 auto;

    padding: 75px 5vw 25px;

    border-top: 1px solid var(--line);
}

.footer-top {
    display: flex;

    justify-content: space-between;

    gap: 60px;
}

.footer-brand p {
    max-width: 340px;

    margin-top: 20px;

    color: var(--gray);

    font-size: 12px;
}

.footer-links {
    display: flex;

    gap: 100px;
}

.footer-links div {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.footer-links span {
    margin-bottom: 8px;

    color: var(--red);

    font-family: DM Sans, sans-serif;

    font-size: 8px;

    font-weight: 700;
}

.footer-links a {
    color: var(--gray);

    font-size: 11px;

    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    margin-top: 80px;

    padding-top: 20px;

    display: flex;

    justify-content: space-between;

    border-top: 1px solid var(--line);

    color: var(--gray);

    font-family: DM Sans, sans-serif;

    font-size: 8px;

    letter-spacing: 0.08em;
}

/* =========================================================
   BACK TO TOP
========================================================= */

.back-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    z-index: 500;

    display: grid;
    place-items: center;

    background: var(--red);

    color: white;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition:
        opacity var(--transition),
        visibility var(--transition),
        transform var(--transition),
        background var(--transition);
}

.back-top.show {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.back-top:hover {
    background: var(--cyan);

    color: var(--black);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .portfolio-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .why-layout,
    .contact-layout {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .project-visual {
        height: 280px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .site-header {
        height: 70px;

        padding: 0 20px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;

        display: flex;

        flex-direction: column;

        justify-content: center;

        gap: 6px;

        background: transparent;

        cursor: pointer;
    }

    .menu-toggle span {
        width: 23px;
        height: 1px;

        background: white;

        transition:
            transform var(--transition);
    }

    .menu-toggle.active span:first-child {
        transform:
            translateY(3.5px)
            rotate(45deg);
    }

    .menu-toggle.active span:last-child {
        transform:
            translateY(-3.5px)
            rotate(-45deg);
    }

    .nav {
        position: fixed;

        inset:
            70px 0 0;

        padding: 35px 25px;

        flex-direction: column;

        align-items: flex-start;

        gap: 25px;

        background:
            rgba(5, 6, 8, 0.98);

        transform:
            translateX(100%);

        transition:
            transform 0.4s ease;
    }

    .nav.open {
        transform:
            translateX(0);
    }

    .nav a {
        font-size: 18px;
    }

    .nav .nav-cta {
        margin-top: 10px;
    }

    .section {
        padding:
            100px 20px;
    }

    .section-heading {
        grid-template-columns: 1fr;

        gap: 30px;

        margin-bottom: 50px;
    }

    .hero {
        min-height: 850px;

        padding:
            135px 20px 100px;
    }

    .hero-title {
        font-size:
            clamp(
                55px,
                15vw,
                100px
            );
    }

    .hero-title em {
        margin-left: 0;
    }

    .hero-description,
    .hero-actions {
        margin-left: 0;
    }

    .hero-side {
        display: none;
    }

    .scroll-indicator {
        left: 20px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .stat {
        min-height: 125px;

        padding:
            25px 20px;
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(3),
    .stat:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-controls {
        flex-direction: column;

        align-items: stretch;
    }

    .filter-buttons {
        width: 100%;

        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 8px;

        scrollbar-width: none;
    }

    .filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .filter-button {
        flex: 0 0 auto;

        white-space: nowrap;
    }

    .search-box {
        width: 100%;

        flex: none;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .project-visual {
        height: 290px;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-card {
        min-height: 250px;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        gap: 60px;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 22px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .logo > span:last-child {
        max-width: 150px;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;
    }

    .hero-title {
        font-size: 54px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .section-heading h2 {
        font-size: 52px;
    }

    .contact-info h2 {
        font-size: 50px;
    }

    .cta-content h2 {
        font-size: 60px;
    }

    .footer-links {
        gap: 40px;
    }

    .project-visual {
        height: 260px;
    }

    .browser-title {
        font-size: 22px;
    }

    .project-info h3 {
        font-size: 21px;
    }

    .project-footer {
        align-items: flex-start;

        flex-direction: column;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}