/* =========================================================
   MERKISYS — MAIN CSS
========================================================= */

:root {

    --bg: #020810;
    --bg-soft: #06111f;
    --surface: #071525;
    --surface-2: #0b1b2d;

    --text: #f5f7fa;
    --text-soft: #aeb9c8;
    --text-muted: #718096;

    --border: rgba(255,255,255,.10);

    --blue: #087eea;
    --blue-bright: #168cff;
    --blue-dark: #005dcc;

    --shadow: 0 25px 70px rgba(0,0,0,.35);

    --nav-height: 82px;
}


/* ================= LIGHT THEME ================= */

[data-theme="light"] {

    --bg: #f7f9fc;
    --bg-soft: #eef3f8;
    --surface: #ffffff;
    --surface-2: #f1f5f9;

    --text: #111827;
    --text-soft: #4b5563;
    --text-muted: #6b7280;

    --border: rgba(15,23,42,.12);

    --shadow: 0 25px 60px rgba(15,23,42,.10);
}


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    background: var(--bg);
    color: var(--text);

    overflow-x: hidden;

    transition:
        background .35s ease,
        color .35s ease;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}


/* ================= PROGRESS ================= */

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;

    width: 0%;
    height: 3px;

    background: var(--blue);

    z-index: 9999;
}


/* ================= LOADER ================= */

#loading-screen {

    position: fixed;
    inset: 0;

    background: #020810;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    z-index: 10000;

    transition:
        opacity .6s ease,
        visibility .6s ease;
}

.logo {
    width: 180px;
    height: 70px;

    display: flex;
    align-items: center;

    border-radius: 25px;

    background: transparent;
    overflow: hidden;
}

.logo-image {
    width: 180px;
    height: 65px;

    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    display: block;

    background: transparent;
}

/* LIGHT THEME */
[data-theme="light"] .logo-image {
    filter: none;
}

/* Mobile */
@media (max-width: 768px) {
    .logo-image {
        width: 145px;
    }
}

.loader-logo {
    color: #ffffff;

    display: flex;
    align-items: center;

    gap: 14px;

    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
}

.loader-ring {

    width: 36px;
    height: 36px;

    border-radius: 50%;

    border:
        3px solid rgba(255,255,255,.15);

    border-top-color: var(--blue);

    animation:
        loaderSpin .8s linear infinite;
}

.loader-line {

    width: 160px;
    height: 2px;

    margin-top: 24px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--blue),
            transparent
        );

    animation: loaderLine 1.3s ease infinite;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderLine {
    0% {
        transform: scaleX(.2);
        opacity: .3;
    }

    50% {
        transform: scaleX(1);
        opacity: 1;
    }

    100% {
        transform: scaleX(.2);
        opacity: .3;
    }
}


/* ================= NAVBAR ================= */

.navbar {

    position: fixed;

    top: 0;
    left: 0;
    width: 100%;

    height: var(--nav-height);

    z-index: 1000;

    background:
        rgba(2,8,16,.65);

    border-bottom:
        1px solid transparent;

    backdrop-filter:
        blur(14px);

    transition:
        background .3s ease,
        border .3s ease;
}

[data-theme="light"] .navbar {
    background:
        rgba(255,255,255,255);
}

.navbar.scrolled {

    border-bottom:
        1px solid var(--border);

    box-shadow:
        0 8px 30px rgba(0,0,0,.08);
}


.nav-container {

    max-width: 1450px;

    height: 100%;

    margin: auto;

    padding:
        0 32px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* ================= LOGO ================= */

.logo {
    width: 185px;
    flex-shrink: 0;

    color: #a8adb4;

    display: flex;
    align-items: center;
}

.logo-svg {
    width: 100%;
    height: auto;

    display: block;
}


/* ================= DESKTOP NAV ================= */

.desktop-nav {

    display: flex;

    align-items: center;

    gap: 34px;

    margin-left: auto;
}

.nav-link {

    position: relative;

    color: var(--text-soft);

    font-size: 15px;
    font-weight: 500;

    padding: 30px 0;

    transition:
        color .25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 20px;

    height: 2px;

    background: var(--blue);

    transform:
        scaleX(0);

    transition:
        transform .25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}


/* ================= ACTIONS ================= */

.nav-actions {

    display: flex;

    align-items: center;

    gap: 14px;
}

.theme-toggle {

    width: 50px;
    height: 50px;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background:
        var(--surface);

    color: var(--text);

    cursor: pointer;

    font-size: 20px;

    display: grid;
    place-items: center;

    transition:
        .25s ease;
}

.theme-toggle:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
}

.talk-btn {

    height: 50px;

    padding:
        0 25px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--blue-bright),
            var(--blue-dark)
        );

    color: white;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 12px;

    box-shadow:
        0 10px 30px rgba(8,126,234,.25);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.talk-btn:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 15px 35px rgba(8,126,234,.4);
}


/* ================= HAMBURGER ================= */

.hamburger {
    display: none;

    width: 46px;
    height: 46px;

    border: 1px solid var(--border);

    background: var(--surface);

    border-radius: 12px;

    cursor: pointer;

    padding: 10px;
}

.hamburger span {

    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--text);

    transition: .3s ease;
}

.hamburger.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* ================= MOBILE NAV ================= */

.mobile-nav {

    display: none;

    position: fixed;

    top: var(--nav-height);

    left: 0;

    width: 100%;

    padding: 20px;

    background: var(--surface);

    border-bottom:
        1px solid var(--border);

    transform:
        translateY(-120%);

    transition:
        transform .35s ease;
}

.mobile-nav.open {
    transform: translateY(0);
}

.mobile-link {

    display: block;

    padding: 15px;

    color: var(--text-soft);

    border-bottom:
        1px solid var(--border);
}


/* ================= HERO ================= */

.hero {

    position: relative;

    min-height:
        850px;

    padding-top:
        var(--nav-height);

    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 45%,
            rgba(8,126,234,.13),
            transparent 32%
        ),
        var(--bg);
}

.hero-grid {

    position: absolute;
    inset: 0;

    opacity: .18;

    background-image:
        linear-gradient(
            rgba(8,126,234,.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(8,126,234,.08) 1px,
            transparent 1px
        );

    background-size:
        70px 70px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );
}

#hero-canvas {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;
}


.hero-container {

    position: relative;

    max-width: 1450px;

    min-height: 760px;

    margin: auto;

    padding:
        100px 32px 80px;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;
}


/* ================= HERO CONTENT ================= */

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {

    color: var(--blue);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 25px;
}

.eyebrow span {
    margin: 0 7px;
}

.hero h1 {

    max-width: 760px;

    font-size:
        clamp(48px, 5vw, 78px);

    line-height:
        1.05;

    letter-spacing:
        -3px;

    font-weight: 750;
}

.hero h1 span {
    color: var(--blue-bright);
}

.hero-content p {

    max-width: 650px;

    margin-top: 30px;

    color: var(--text-soft);

    font-size: 19px;

    line-height: 1.7;
}


/* ================= HERO BUTTONS ================= */

.hero-buttons {

    display: flex;

    gap: 18px;

    margin-top: 40px;

    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {

    min-height: 58px;

    padding:
        0 28px;

    border-radius: 11px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    font-weight: 600;

    transition:
        .25s ease;
}

.primary-btn {

    background:
        linear-gradient(
            135deg,
            var(--blue-bright),
            var(--blue-dark)
        );

    color: white;

    box-shadow:
        0 12px 30px rgba(8,126,234,.25);
}

.primary-btn:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 18px 40px rgba(8,126,234,.4);
}

.secondary-btn {

    border:
        1px solid var(--border);

    color: var(--text);

    background:
        rgba(255,255,255,.02);
}

.secondary-btn:hover {

    border-color:
        var(--blue);

    color:
        var(--blue);

    transform:
        translateY(-3px);
}

.play-icon {

    width: 28px;
    height: 28px;

    border:
        1px solid currentColor;

    border-radius: 50%;

    display: grid;
    place-items: center;

    font-size: 10px;
}


/* ================= EARTH ================= */

.earth-wrapper {

    position: relative;

    width: 600px;
    height: 600px;

    margin: auto;

    display: grid;

    place-items: center;
}

.earth-glow {

    position: absolute;

    width: 80%;
    height: 80%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0,136,255,.25),
            rgba(0,80,180,.08) 45%,
            transparent 70%
        );

    filter:
        blur(25px);

    animation:
        globeGlow 4s ease-in-out infinite;
}

@keyframes globeGlow {

    50% {
        transform: scale(1.08);
        opacity: .7;
    }
}

.earth {

    position: relative;

    width: 440px;
    height: 440px;

    border-radius: 50%;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 38% 35%,
            #087eea,
            #04376c 40%,
            #020c18 72%
        );

    box-shadow:
        inset -35px -20px 70px rgba(0,0,0,.8),
        inset 20px 10px 50px rgba(0,140,255,.2),
        0 0 80px rgba(0,126,234,.3);

    border:
        1px solid rgba(20,150,255,.6);

    animation:
        earthPulse 5s ease-in-out infinite;
}

@keyframes earthPulse {

    50% {
        box-shadow:
            inset -35px -20px 70px rgba(0,0,0,.8),
            0 0 110px rgba(0,126,234,.45);
    }
}


/* globe longitude / latitude */

.earth::before,
.earth::after {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: 50%;
}

.earth::before {

    background:
        repeating-linear-gradient(
            90deg,
            transparent 0 45px,
            rgba(0,150,255,.22) 46px,
            transparent 47px 90px
        );

    transform:
        perspective(300px)
        rotateY(18deg);
}

.earth::after {

    background:
        repeating-linear-gradient(
            0deg,
            transparent 0 55px,
            rgba(0,150,255,.18) 56px,
            transparent 57px 110px
        );

    transform:
        rotateX(15deg);
}


/* glowing dots */

.earth-dots {

    position: absolute;

    inset: 0;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,.9) 1px,
            transparent 2px
        );

    background-size:
        25px 25px;

    opacity: .35;

    animation:
        dotsMove 8s linear infinite;
}

@keyframes dotsMove {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-25px);
    }
}


.earth-ring {

    position: absolute;

    width: 530px;
    height: 170px;

    border:
        1px solid rgba(0,140,255,.5);

    border-radius: 50%;

    transform:
        rotate(-20deg);

    animation:
        ringRotate 7s linear infinite;
}

.ring-two {

    width: 570px;
    height: 220px;

    transform:
        rotate(70deg);

    border-color:
        rgba(0,120,255,.25);

    animation-duration:
        11s;
}

@keyframes ringRotate {

    to {
        transform:
            rotate(-20deg)
            rotate(360deg);
    }
}


/* ================= SCROLL CUE ================= */

.scroll-cue {

    position: absolute;

    bottom: 30px;

    left: 50%;

    transform:
        translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;

    color: var(--text-muted);

    font-size: 13px;
}

.scroll-cue b {

    font-size: 24px;

    color: var(--text);
}

/* ================= SECTIONS ================= */

.section {

    padding:
        130px 32px;
}

.section-container {

    max-width: 1350px;

    margin: auto;
}

.section-heading {

    max-width: 800px;

    margin-bottom: 60px;
}

.section-label {

    display: inline-block;

    color: var(--blue);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2.5px;

    margin-bottom: 18px;
}

.section-heading h2 {

    font-size:
        clamp(38px, 4vw, 58px);

    line-height: 1.1;

    letter-spacing: -2px;
}

.section-heading h2 span {
    color: var(--blue);
}

.section-heading p {

    margin-top: 22px;

    color: var(--text-soft);

    line-height: 1.7;

    font-size: 17px;
}


/* ================= ABOUT ================= */

.about-grid {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 20px;
}

.about-card {

    padding: 35px;

    min-height: 250px;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: 18px;

    transition:
        transform .3s ease,
        border .3s ease;
}

.about-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(8,126,234,.5);
}

.about-card > span {

    color: var(--blue);

    font-size: 13px;

    font-weight: 700;
}

.about-card h3 {

    margin-top: 40px;

    font-size: 24px;
}

.about-card p {

    margin-top: 15px;

    color: var(--text-soft);

    line-height: 1.7;
}


/* ================= SERVICES ================= */

.services-section {
    background: var(--bg-soft);
}

.services-layout {

    display: grid;

    grid-template-columns:
        320px 1fr;

    gap: 30px;
}

.service-tabs {

    display: flex;

    flex-direction: column;

    gap: 7px;
}

.service-tab {

    text-align: left;

    padding: 17px 20px;

    background:
        transparent;

    color: var(--text-soft);

    border:
        1px solid transparent;

    border-radius: 10px;

    cursor: pointer;

    transition: .25s ease;
}

.service-tab:hover,
.service-tab.active {

    background:
        var(--surface);

    color:
        var(--text);

    border-color:
        var(--border);
}

.service-tab.active {

    color:
        var(--blue);

    box-shadow:
        inset 3px 0 var(--blue);
}

.service-detail {

    min-height: 430px;

    padding: 55px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius: 20px;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.service-detail h3 {

    font-size: 40px;

    margin-bottom: 20px;
}

.service-detail p {

    color: var(--text-soft);

    font-size: 17px;

    line-height: 1.8;

    max-width: 700px;
}

.service-detail ul {

    margin-top: 30px;

    list-style: none;

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 15px;
}

.service-detail li {

    padding: 15px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    color: var(--text-soft);
}

.service-detail li::before {

    content: "✓";

    color: var(--blue);

    margin-right: 10px;
}


/* ================= SOLUTIONS ================= */

.solution-tabs {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 30px;
}

.solution-tab,
.filter-btn {

    padding:
        12px 20px;

    border:
        1px solid var(--border);

    border-radius: 30px;

    background:
        var(--surface);

    color:
        var(--text-soft);

    cursor: pointer;

    transition: .25s ease;
}

.solution-tab:hover,
.solution-tab.active,
.filter-btn:hover,
.filter-btn.active {

    background:
        var(--blue);

    border-color:
        var(--blue);

    color:
        white;
}

.solution-content {

    padding: 50px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius: 20px;

    transition:
        opacity .25s ease;
}

.solution-content h3 {

    font-size: 34px;

    margin-bottom: 15px;
}

.solution-content > p {

    max-width: 750px;

    color: var(--text-soft);

    line-height: 1.7;
}

.solution-columns {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 40px;

    margin-top: 35px;
}

.solution-block h4 {

    margin-bottom: 15px;

    color: var(--blue);
}

.solution-block ul {

    list-style: none;

    display: grid;

    gap: 10px;
}

.solution-block li {

    color: var(--text-soft);

    padding: 10px 0;

    border-bottom:
        1px solid var(--border);
}


/* ================= TECHNOLOGY ================= */

.tech-section {
    background: var(--bg-soft);
}

.tech-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 16px;
}

.tech-card {

    min-height: 130px;

    display: grid;

    place-items: center;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius: 15px;

    font-size: 18px;

    font-weight: 600;

    transition: .3s ease;
}

.tech-card:hover {

    transform:
        translateY(-7px);

    border-color:
        var(--blue);

    color:
        var(--blue);
}


/* ================= PROJECTS ================= */

.project-filters {

    display: flex;

    gap: 10px;

    margin-bottom: 35px;

    flex-wrap: wrap;
}

.project-grid {

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 20px;
}

.project-card {

    min-height: 300px;

    padding: 35px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius: 18px;

    transition:
        .3s ease;
}

.project-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(8,126,234,.5);
}

.project-card.hidden {
    display: none;
}

.project-number {

    color:
        var(--blue);

    font-size: 13px;

    margin-bottom: 80px;
}

.project-card h3 {

    font-size: 28px;
}

.project-card p {

    color:
        var(--text-soft);

    line-height: 1.7;

    margin:
        12px 0 25px;
}

.project-card > span {

    color:
        var(--blue);
}


/* ================= PROCESS ================= */

.process-section {
    background:
        var(--bg-soft);
}

.process-grid {

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 20px;

    position: relative;
}

.process-step {

    position: relative;

    padding: 30px;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius: 16px;

    transition: .3s ease;
}

.process-step.active {

    border-color:
        var(--blue);

    transform:
        translateY(-5px);
}

.process-step b {

    color:
        var(--blue);

    font-size: 14px;
}

.process-step h3 {

    margin-top: 45px;

    font-size: 24px;
}

.process-step p {

    margin-top: 12px;

    color:
        var(--text-soft);

    line-height: 1.6;
}


/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact-section {
    width: 100%;
}

.contact-section .section-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-box {
    width: 100%;
    box-sizing: border-box;

    padding: 60px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 25px;
    box-shadow: var(--shadow);

    overflow: hidden;
}


/* =========================================================
   CONTACT CONTENT
   ========================================================= */

.contact-info {
    width: 100%;
    min-width: 0;

    display: grid;

    /*
       Left side = content
       Right side = form
    */
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);

    column-gap: 70px;

    align-items: center;
}


/* =========================================================
   GET IN TOUCH LABEL
   ========================================================= */

.contact-info .section-label {
    grid-column: 1;
    grid-row: 1;

    display: inline-block;

    margin-bottom: 18px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;

    color: var(--blue);
}


/* =========================================================
   HEADING
   ========================================================= */

.contact-info h2 {
    grid-column: 1;
    grid-row: 2;

    margin: 0;

    max-width: 600px;

    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    font-weight: 700;

    color: var(--text);
}

.contact-info h2 span {
    color: var(--blue);
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.contact-info > p {
    grid-column: 1;
    grid-row: 3;

    max-width: 560px;

    margin: 22px 0 0;

    color: var(--text-soft);

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   CONTACT FORM
   ========================================================= */

#contact-form {
    grid-column: 2;
    grid-row: 1 / 4;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;

    gap: 18px;

    box-sizing: border-box;
}


/* =========================================================
   NAME + EMAIL
   ========================================================= */

#contact-form .form-row {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 18px;

    margin: 0;
}


/* =========================================================
   INPUTS
   ========================================================= */

#contact-form input,
#contact-form textarea {
    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--bg-soft);

    color: var(--text);

    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* =========================================================
   INPUT HEIGHT
   ========================================================= */

#contact-form input {
    min-height: 62px;

    padding: 0 20px;
}


/* =========================================================
   TEXTAREA
   ========================================================= */

#contact-form textarea {
    min-height: 180px;

    padding: 18px 20px;

    resize: vertical;
}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: var(--text-soft);
    opacity: 0.85;
}


/* =========================================================
   FOCUS
   ========================================================= */

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--blue) 12%,
            transparent
        );
}


/* =========================================================
   INVALID INPUT
   ========================================================= */

#contact-form input.invalid,
#contact-form textarea.invalid {
    border-color: #ef4444;

    box-shadow:
        0 0 0 2px
        rgba(239, 68, 68, 0.08);
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

#contact-form .submit-btn {
    width: 100%;

    min-height: 62px;

    margin: 0;

    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    box-sizing: border-box;

    cursor: pointer;
}


/* Arrow */

#contact-form .submit-btn span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-size: 20px;

    transition:
        transform 0.2s ease;
}

#contact-form .submit-btn:hover span {
    transform: translateX(4px);
}


/* Disabled */

#contact-form .submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .contact-box {
        padding: 45px;
    }

    .contact-info {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        column-gap: 40px;
    }

    .contact-info h2 {
        font-size: clamp(36px, 5vw, 50px);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .contact-box {
        padding: 35px 25px;

        border-radius: 20px;
    }

    .contact-info {
        display: flex;
        flex-direction: column;

        align-items: stretch;

        gap: 0;
    }

    .contact-info .section-label {
        margin-bottom: 15px;
    }

    .contact-info h2 {
        max-width: 100%;

        font-size: clamp(36px, 10vw, 50px);
    }

    .contact-info > p {
        max-width: 100%;

        margin-top: 20px;

        margin-bottom: 35px;
    }

    #contact-form {
        width: 100%;

        display: flex;

        gap: 16px;
    }

    #contact-form .form-row {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    #contact-form input {
        min-height: 58px;
    }

    #contact-form textarea {
        min-height: 160px;
    }

    #contact-form .submit-btn {
        min-height: 58px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .contact-box {
        padding: 28px 18px;
    }

    .contact-info h2 {
        font-size: 35px;
    }

    .contact-info > p {
        font-size: 15px;
        line-height: 1.65;
    }

    #contact-form input,
    #contact-form textarea {
        font-size: 15px;
    }
}

/* ================= FOOTER ================= */
/* =====================================================
   MERKISYS FOOTER
===================================================== */

.site-footer {
    background: #ffffff;
    color: #17324d;
    margin-top: 80px;
    border-top: 1px solid #eeeeee;
}


/* Main footer */

.footer-container {
    max-width: 1600px;
    margin: 0 auto;

    padding: 60px 50px 55px;

    display: grid;
    grid-template-columns:
        2.3fr
        1fr
        1fr
        1.1fr;

    gap: 70px;

    box-sizing: border-box;
}


/* =====================================================
   BRAND
===================================================== */

.footer-brand {
    max-width: 650px;
}

.footer-logo {
    width: 200px;
    height: 70px;

    object-fit: contain;
    object-position: left center;

    display: block;

    margin-bottom: 25px;
}


/* Footer description */

.footer-brand p {
    max-width: 650px;

    margin: 0;

    color: #34495e;

    font-size: 17px;
    line-height: 1.55;

    letter-spacing: 0.1px;
}


/* =====================================================
   LINKEDIN
===================================================== */

.linkedin-btn {
    width: 48px;
    height: 48px;

    margin-top: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #b8b8b8;
    border-radius: 50%;

    color: #777;
    text-decoration: none;

    font-size: 20px;
    font-weight: 700;

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

.linkedin-btn:hover {
    color: #ffffff;
    background: #087eea;
    border-color: #087eea;

    transform: translateY(-3px);
}


/* =====================================================
   FOOTER COLUMNS
===================================================== */

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* Headings */

.footer-column h3 {
    margin: 0 0 24px;

    color: #0c385b;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.2;
}


/* Links */

.footer-column > a {
    color: #5c6470;

    text-decoration: none;

    font-size: 17px;
    line-height: 1.5;

    margin-bottom: 17px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-column > a:hover {
    color: #087eea;

    transform: translateX(4px);
}


/* =====================================================
   CONTACT
===================================================== */

.footer-contact p {
    margin: 0 0 28px;

    color: #34495e;

    font-size: 17px;
    line-height: 1.9;
}



.footer-contact .address {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    line-height: 1.7 !important;
}

.footer-contact .contact-info {
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    display: block !important;
}

.footer-contact .contact-info strong {
    display: inline !important;
    width: auto !important;
    margin: 0 5px 0 0 !important;
    padding: 0 !important;
    color: #263b4d;
}

.footer-contact .contact-info {
    white-space: nowrap !important;
}



/* =====================================================
   COPYRIGHT
===================================================== */

.footer-bottom {
    min-height: 84px;

    background: #f5f5f5;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px 30px;

    box-sizing: border-box;

    color: #34495e;

    font-size: 16px;

    text-align: center;
}


.footer-bottom strong {
    margin-left: 6px;
    margin-right: 6px;

    color: #263b4d;
}


/* =====================================================
   DARK THEME
===================================================== */

[data-theme="dark"] .site-footer {
    background: #020b16;
    border-top-color: #122235;
    color: #dce7f2;
}


[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-contact p {
    color: #aebdca;
}


[data-theme="dark"] .footer-column h3 {
    color: #ffffff;
}


[data-theme="dark"] .footer-column > a {
    color: #aebdca;
}


[data-theme="dark"] .footer-column > a:hover {
    color: #168cff;
}


[data-theme="dark"] .footer-contact strong,
[data-theme="dark"] .footer-contact a {
    color: #dce7f2;
}


[data-theme="dark"] .footer-contact a:hover {
    color: #168cff;
}


[data-theme="dark"] .footer-bottom {
    background: #071321;
    color: #aebdca;
}


[data-theme="dark"] .footer-bottom strong {
    color: #ffffff;
}


[data-theme="dark"] .linkedin-btn {
    color: #aebdca;
    border-color: #405162;
}


[data-theme="dark"] .linkedin-btn:hover {
    color: #ffffff;
    border-color: #168cff;
    background: #168cff;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .footer-container {
        grid-template-columns:
            1.7fr
            1fr
            1fr;

        gap: 45px;
    }

    .footer-contact {
        grid-column: span 1;
    }

}


@media (max-width: 768px) {

    .site-footer {
        margin-top: 50px;
    }

    .footer-container {
        grid-template-columns: 1fr;

        padding: 45px 25px;

        gap: 40px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo {
        width: 180px;
        height: 60px;
    }

    .footer-brand p {
        font-size: 15px;
    }

    .footer-column h3 {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .footer-column > a {
        font-size: 15px;
        margin-bottom: 13px;
    }

    .footer-contact p {
        font-size: 15px;
    }

    .footer-bottom {
        min-height: 70px;
        font-size: 14px;
        padding: 18px;
    }

}


@media (max-width: 420px) {

    .footer-container {
        padding: 40px 20px;
    }

    .footer-logo {
        width: 160px;
        height: 55px;
    }

    .footer-brand p {
        font-size: 14px;
    }

    .linkedin-btn {
        width: 44px;
        height: 44px;
    }

}
/* ================= AI AGENT ================= */

#ai-agent-toggle {

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 58px;
    height: 58px;

    border: 0;

    border-radius: 50%;

    background: var(--surface);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 2px var(--blue);

    z-index: 900;

    transition: transform .25s ease, box-shadow .25s ease;

    animation: ai-agent-pulse 2.4s ease-in-out infinite;
}

#ai-agent-toggle:hover {
    transform: translateY(-3px) scale(1.05);
}

#ai-agent-toggle.is-active {
    animation: none;
}

.ai-agent-toggle-logo {
    width: 60%;
    height: 60%;
    object-fit: contain;
    pointer-events: none;
}

@keyframes ai-agent-pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 2px var(--blue);
    }
    50% {
        box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 8px rgba(8,126,234,.18);
    }
}

#ai-agent-panel {

    position: fixed;

    right: 25px;
    bottom: 95px;

    width: 340px;
    max-width: calc(100vw - 40px);
    height: 460px;
    max-height: calc(100vh - 140px);

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow: var(--shadow);

    display: flex;
    flex-direction: column;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(.98);
    transform-origin: bottom right;

    transition: .25s ease;

    z-index: 899;
}

#ai-agent-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-agent-header {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 16px;

    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.ai-agent-header-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bg);
    padding: 4px;
}

.ai-agent-header-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    flex: 1;
}

.ai-agent-header-text strong {
    color: var(--text);
    font-size: .95rem;
}

.ai-agent-header-text span {
    color: var(--blue-bright);
    font-size: .75rem;
}

#ai-agent-close {
    background: transparent;
    border: 0;
    color: var(--text-soft);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 4px;
}

#ai-agent-close:hover {
    color: var(--text);
}

#ai-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-msg {
    max-width: 85%;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: .87rem;
    line-height: 1.45;
    word-wrap: break-word;
}

.ai-msg.bot {
    align-self: flex-start;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.ai-msg.user {
    align-self: flex-end;
    background: var(--blue);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ai-msg.typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 12px 14px;
}

.ai-msg.typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: ai-typing 1s infinite ease-in-out;
}

.ai-msg.typing span:nth-child(2) { animation-delay: .15s; }
.ai-msg.typing span:nth-child(3) { animation-delay: .3s; }

@keyframes ai-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

#ai-agent-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

#ai-agent-input {
    flex: 1;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 9px 14px;
    color: var(--text);
    font-size: .87rem;
    outline: none;
}

#ai-agent-input:focus {
    border-color: var(--blue);
}

#ai-agent-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

#ai-agent-send:hover {
    background: var(--blue-bright);
}

@media (max-width: 480px) {
    #ai-agent-panel {
        right: 16px;
        left: 16px;
        width: auto;
        bottom: 90px;
    }

    #ai-agent-toggle {
        right: 16px;
        bottom: 16px;
    }
}


/* ================= REVEAL ================= */

.reveal-section {

    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal-section.visible {

    opacity: 1;

    transform:
        translateY(0);
}


/* ================= TOAST ================= */

#toast {

    position: fixed;

    right: 25px;
    bottom: 25px;

    padding:
        15px 20px;

    border-radius: 10px;

    background:
        var(--surface);

    color:
        var(--text);

    border:
        1px solid var(--border);

    box-shadow:
        var(--shadow);

    transform:
        translateY(30px);

    opacity: 0;

    pointer-events: none;

    transition: .3s ease;

    z-index: 9999;
}

#toast.show {

    transform:
        translateY(0);

    opacity: 1;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1150px) {

    .desktop-nav {
        gap: 18px;
    }

    .nav-link {
        font-size: 14px;
    }

    .earth-wrapper {
        width: 500px;
        height: 500px;
    }

    .earth {
        width: 360px;
        height: 360px;
    }

    .earth-ring {
        width: 450px;
    }

}


@media (max-width: 950px) {

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .hero-container {

        grid-template-columns:
            1fr;

        text-align: center;

        padding-top: 80px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .earth-wrapper {
        width: 450px;
        height: 450px;
        margin-top: -30px;
    }

    .stats-container {

        grid-template-columns:
            repeat(2,1fr);
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .about-grid,
    .tech-grid,
    .process-grid {

        grid-template-columns:
            repeat(2,1fr);
    }

    .services-layout,
    .contact-box {

        grid-template-columns:
            1fr;
    }

}


@media (max-width: 600px) {

    :root {
        --nav-height: 70px;
    }

    .nav-container {
        padding: 0 18px;
    }

    .logo {
        width: 145px;
    }

    .talk-btn {
        display: none;
    }

    .hero {
        min-height: 900px;
    }

    .hero-container {
        padding:
            70px 20px 50px;
    }

    .hero h1 {

        font-size: 43px;

        letter-spacing: -2px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .earth-wrapper {

        width: 330px;
        height: 330px;
    }

    .earth {

        width: 260px;
        height: 260px;
    }

    .earth-ring {
        width: 320px;
        height: 130px;
    }

    .stats-container {

        grid-template-columns:
            1fr;

        margin:
            0 18px;

        padding: 20px;
    }

    .stat-item {

        border-right: 0;

        border-bottom:
            1px solid var(--border);
    }

    .stat-item:last-child {
        border-bottom: 0;
    }

    .section {
        padding:
            90px 20px;
    }

    .about-grid,
    .tech-grid,
    .project-grid,
    .process-grid,
    .solution-columns {

        grid-template-columns:
            1fr;
    }

    .service-detail,
    .solution-content,
    .contact-box {

        padding: 30px;
    }

    .service-detail ul {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        padding:
            45px 20px;
    }

}