:root {
    --bg: #050d1f;
    --text: #eaf5ff;
    --muted: #a5bdd9;
    --cyan: #59f7e4;
    --cyan-dark: #2bdac4;
    --grad-cyan: linear-gradient(90deg, #87ffae 0%, #59f7e4 100%);
    --line: rgba(105, 145, 184, 0.2);
    --card: rgba(8, 16, 34, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 10% 10%, #0d1e3d 0%, #040914 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

h1 {
    color: #ffffff;
}

h2,
h3 {
    color: #2bdac4;
}


img,
svg,
video {
    max-width: 100%;
}

body::before {
    content: "";
    position: fixed;
    inset: -20%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at 12% 24%, rgba(89, 247, 228, 0.08), transparent 28%), radial-gradient(circle at 86% 78%, rgba(89, 247, 228, 0.08), transparent 24%);
    animation: atmosphericShift 24s ease-in-out infinite alternate;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1100;
    /* Higher than everything else */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-brand-middle {
    display: none;
}

.site-header.scrolled {
    background: rgba(13, 29, 61, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 6%;
    border-bottom: 1px solid rgba(89, 247, 228, 0.15);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.2);
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.logo-mark {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 0 6px rgba(89, 247, 228, 0.55));
    transition: filter 0.3s ease;
}

.logo-mark img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.logo:hover .logo-mark {
    filter: drop-shadow(0 0 12px rgba(89, 247, 228, 0.85));
}

.fab-img {
    width: 108px;
    height: 108px;
    object-fit: contain;
    border-radius: 0;
    pointer-events: none;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
    transition: transform 0.2s ease;
}

/* ── Floating Action Buttons ── */
.fab {
    position: fixed;
    bottom: 8px;
    width: 70px;
    height: 70px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    background: transparent;
    box-shadow: none;
    transition: opacity 0.2s ease;
    overflow: visible;
}

.fab:hover {
    opacity: 1;
}

.fab-label {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: rgba(4, 14, 34, 0.92);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--line);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fab:hover .fab-label,
.fab:focus .fab-label {
    opacity: 1;
}

.fab-whatsapp {
    left: 28px;
    color: #fff;
    text-decoration: none;
}

.fab-bot {
    right: 28px;
    color: var(--cyan);
}

.fab.is-click-animating {
    animation: fabOrbit 0.85s ease-in-out 1;
}

.bot-chat {
    position: fixed;
    right: 24px;
    bottom: 92px;
    width: min(350px, calc(100vw - 28px));
    height: 420px;
    border-radius: 14px;
    border: 1px solid rgba(89, 247, 228, 0.34);
    background: linear-gradient(180deg, rgba(7, 16, 38, 0.98), rgba(7, 12, 28, 0.98));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4), 0 0 24px rgba(89, 247, 228, 0.14);
    z-index: 2100;
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bot-chat.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.bot-chat-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 48px 12px 14px;
    border-bottom: 1px solid rgba(89, 247, 228, 0.25);
    background: linear-gradient(90deg, rgba(11, 35, 74, 0.95), rgba(8, 23, 53, 0.9));
}

.bot-chat-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #51ffb8;
    box-shadow: 0 0 0 4px rgba(81, 255, 184, 0.18);
}

.bot-chat-title-wrap h3 {
    font-size: 0.94rem;
    color: #e7f4ff;
    margin: 0;
}

.bot-chat-title-wrap p {
    font-size: 0.72rem;
    color: #9aeed7;
    margin: 0;
}

.bot-close {
    position: absolute;
    right: 10px;
    top: 8px;
    border: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(89, 247, 228, 0.16);
    color: var(--cyan);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.bot-chat-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-chat-body::-webkit-scrollbar {
    width: 7px;
}

.bot-chat-body::-webkit-scrollbar-thumb {
    background: rgba(89, 247, 228, 0.38);
    border-radius: 999px;
}

.bot-msg {
    max-width: 90%;
    padding: 9px 11px;
    border-radius: 11px;
    font-size: 0.86rem;
    line-height: 1.45;
}

.bot-msg-agent {
    align-self: flex-start;
    background: rgba(89, 247, 228, 0.1);
    border: 1px solid rgba(89, 247, 228, 0.28);
    color: #dcf9ff;
}

.bot-msg-user {
    align-self: flex-end;
    background: rgba(89, 247, 228, 0.14);
    border: 1px solid rgba(89, 247, 228, 0.3);
    color: #ffe9dd;
}

.bot-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 10px;
}

.bot-q {
    border: 1px solid rgba(89, 247, 228, 0.34);
    background: rgba(6, 23, 45, 0.9);
    color: #cfe8ff;
    font-size: 0.75rem;
    padding: 7px 9px;
    border-radius: 999px;
    cursor: pointer;
}

.bot-q:hover {
    border-color: rgba(89, 247, 228, 0.7);
    color: var(--cyan);
}

.bot-chat-input {
    display: flex;
    gap: 8px;
    padding: 0 12px 10px;
}

.bot-chat-input input {
    flex: 1;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(89, 247, 228, 0.28);
    background: rgba(6, 15, 35, 0.95);
    color: var(--text);
    padding: 0 12px;
    font-family: 'Poppins', sans-serif;
}

.bot-send {
    border: 0;
    min-width: 70px;
    border-radius: 10px;
    background: linear-gradient(120deg, var(--cyan), #86ffe9);
    color: #071224;
    font-weight: 700;
    cursor: pointer;
    padding: 0 12px;
}

.bot-wa-link {
    display: block;
    margin: 0 12px 12px;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(77, 214, 144, 0.5);
    background: linear-gradient(120deg, #1f9f64, #29d07e);
    color: #041b12;
    font-weight: 700;
    text-align: center;
    line-height: 40px;
}

@keyframes fabOrbit {
    0% {
        transform: translate(0, -8px);
    }

    25% {
        transform: translate(8px, 0);
    }

    50% {
        transform: translate(0, 8px);
    }

    75% {
        transform: translate(-8px, 0);
    }

    100% {
        transform: translate(0, -8px);
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.98rem;
    color: var(--muted);
}

.nav a {
    transition: color 0.25s ease;
}

.nav a:hover {
    color: var(--text);
}

.nav .nav-login {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, var(--cyan), #86ffe9);
    color: #071224;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(89, 247, 228, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav .nav-login:hover {
    color: #071224;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    margin: 7px 0;
}

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 0 8%;
    position: relative;
    overflow: hidden;
}

#tubesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.overlay-left,
.overlay-bottom {
    position: absolute;
    inset: 0;
}

.overlay-left {
    background: linear-gradient(90deg, #070b0a 0%, rgba(7, 11, 10, 0.82) 26%, rgba(7, 11, 10, 0) 64%);
}

.overlay-bottom {
    background: linear-gradient(180deg, rgba(3, 8, 20, 0.42) 0%, rgba(3, 8, 20, 0.14) 36%, rgba(3, 8, 20, 0) 70%);
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    display: none;
    pointer-events: none;
    z-index: 1;
}

.hero-grid-lines span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-grid-lines span:nth-child(1) {
    left: 25%;
}

.hero-grid-lines span:nth-child(2) {
    left: 50%;
}

.hero-grid-lines span:nth-child(3) {
    left: 75%;
}

.hero-center-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-center-glow svg {
    width: 100%;
    height: 100%;
}

.grid-glow {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(89, 247, 228, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(89, 247, 228, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 45% 50%, black 0%, transparent 70%);
    z-index: 1;
    animation: gridPulse 7s ease-in-out infinite;
}

.hero-content {
    max-width: 980px;
    position: relative;
    z-index: 3;
    margin-top: 42px;
    animation: heroRise 1s ease 0.1s both;
}

.liquid-glass-card {
    width: 200px;
    height: 200px;
    margin: 0 auto 8px;
    border-radius: 24px;
    transform: translateY(-50px);
    position: relative;
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.liquid-glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.18));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.h1-switcher {
    position: relative;
    /* Fluid height: tracks the slide font-size with headroom for line-height */
    height: clamp(2rem, 3.8vw, 3.8rem);
    margin-bottom: 12px;
}

.slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    line-height: 1.05;
    font-family: 'Poppins', sans-serif;
    /* Fluid: 1.6rem on small screens → 3rem on large desktop */
    font-size: clamp(1.6rem, 3.5vw, 3rem);
}

.slide span {
    color: var(--cyan);
    text-shadow: 0 0 22px rgba(89, 247, 228, 0.4);
}

.slide-1 {
    animation: swapOne 10s infinite;
}

.slide-2 {
    animation: swapTwo 10s infinite;
}

.hero-content>p {
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    max-width: 760px;
    margin: 70px auto 20px;
    line-height: 1.65;
}

.cta-container {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-cyan,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-cyan {
    background: linear-gradient(120deg, var(--cyan), #86ffe9);
    color: #071224;
    box-shadow: 0 10px 32px rgba(89, 247, 228, 0.24);
}

.btn-outline {
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.btn-cyan:hover,
.btn-outline:hover {
    transform: translateY(-3px);
}

.hover-pop {
    animation: microPop 0.35s ease;
}

.hero-metrics {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15px, 1fr));
    gap: 15px;
}

.hero-metrics div {
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(11, 22, 46, 0.45);
}

.hero-metrics strong {
    display: block;
    font-size: 1.5rem;
    color: var(--cyan);
    margin-bottom: 0px;
    font-family: 'Poppins', sans-serif;
}

.hero-metrics span {
    color: var(--muted);
    font-size: 0.88rem;
}

.section {
    padding: 72px 8%;
    position: relative;
    z-index: 2;
}

.section-head {
    max-width: 760px;
    margin: 0 auto 22px;
    text-align: center;
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(89, 247, 228, 0.28);
}

.eyebrow {
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.section h2 {
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
    font-size: clamp(1.75rem, 4vw, 3rem);
}

.analysis {
    padding-top: 36px;
}

.analysis-shell {
    position: relative;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(85, 232, 243, 0.18);
    background: linear-gradient(180deg, rgba(9, 17, 38, 0.96), rgba(8, 14, 31, 0.98));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 60px rgba(85, 232, 243, 0.08);
    overflow: hidden;
}


.shell-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, transparent 0%, rgba(85, 232, 243, 0.55) 20%, rgba(85, 232, 243, 0.18) 80%, transparent 100%);
}

.analysis-card {
    width: min(920px, 100%);
    margin: 26px auto 0;
    padding: 26px 28px 24px;
    text-align: center;
}

.analysis-card h2 {
    font-size: clamp(1.2rem, 3.8vw, 3rem);
    color: var(--cyan);
    text-shadow: 0 0 22px rgba(85, 232, 243, 0.42);
    line-height: 1.1;
}

.analysis-card p {
    max-width: 760px;
    margin: 16px auto;
    color: rgba(233, 244, 255, 0.9);
    font-size: clamp(1rem, 1vw, 1.8rem);
    line-height: 1.55;
}

.analysis-form {
    margin-top: 4px;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 16px;
}

.fields-grid input {
    width: 100%;
    min-height: 54px;
    border-radius: 12px;
    border: 1px solid rgba(85, 232, 243, 0.28);
    background: rgba(11, 20, 45, 0.86);
    color: var(--text);
    padding: 0 18px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.fields-grid input::placeholder {
    color: rgba(233, 244, 255, 0.7);
}

.fields-grid input:focus {
    border-color: rgba(105, 245, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(85, 232, 243, 0.12);
}

.analysis-btn {
    width: 100%;
    min-height: 56px;
    margin-top: 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--cyan), #86ffe9);
    color: #0b1734;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 0 0 rgba(99, 241, 248, 0), 0 12px 26px rgba(85, 232, 243, 0.12);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.analysis-btn:hover,
.analysis-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(99, 241, 248, 0.4), 0 12px 30px rgba(85, 232, 243, 0.18);
}

.analysis-btn.pulse {
    animation: buttonPulse 0.7s ease-out;
}

.button-icon {
    font-weight: 800;
    letter-spacing: -2px;
}

.analysis-output {
    margin: 8px auto 0;
    min-height: 82px;
    max-width: 660px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(85, 232, 243, 0.18);
    background: rgba(7, 14, 31, 0.76);
    color: #d9ebff;
    line-height: 1.6;
    text-align: left;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.analysis-output.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Your Original Code --- */
.service-showcase {
    padding-top: 30px;
}

.services-subtitle {
    max-width: 720px;
    margin: 10px auto 0;
    color: var(--muted);
    line-height: 1.55;
}

.service-grid-neon,
.combo-grid {
    display: grid;
    gap: 18px;
}

.service-grid-neon {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.service-card-neon {
    border: 1px solid rgba(89, 247, 228, 0.35);
    border-radius: 12px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(6, 13, 31, 0.96), rgba(7, 18, 41, 0.92));
    box-shadow: 0 0 18px rgba(89, 247, 228, 0.12);
}

.mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 24px;
    border: 1px solid rgba(89, 247, 228, 0.55);
    border-radius: 999px;
    color: var(--cyan);
    font-size: 0.72rem;
    margin-bottom: 10px;
}

.service-card-neon h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.service-card-neon p {
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 10px;
    min-height: 68px;
}

.service-card-neon ul,
.combo-card ul {
    list-style: none;
    margin-bottom: 12px;
}

.service-card-neon li,
.combo-card li {
    color: #c4d7f2;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    padding-left: 12px;
}

.service-card-neon li::before,
.combo-card li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--cyan);
}

@media (min-width: 481px) {
    .service-grid-neon.one-time-grid {
        display: flex;
        justify-content: center;
    }

    .service-grid-neon.one-time-grid .service-card-neon {
        flex: 1;
        max-width: 400px;
    }
}

/* --- ADD THIS FOR MOBILE VIEW --- */
@media (max-width: 400px) {
    .service-grid-neon {
        /* Changes from 3 columns to 1 column on mobile */
        grid-template-columns: 1fr;
        padding: 0 15px;
        /* Adds side spacing so cards don't touch screen edges */
    }

    .service-card-neon p {
        min-height: auto;
        /* Removes the forced height so text doesn't overlap */
    }

    .service-showcase {
        padding-top: 20px;
    }
}

.neon-action,
.combo-action {
    display: inline-flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 700;
}

.neon-action {
    border: 1px solid rgba(89, 247, 228, 0.7);
    color: var(--cyan);
    background: rgba(89, 247, 228, 0.08);
}

.combo-section {
    margin-top: 42px;
}

.combo-head {
    margin-bottom: 24px;
}

.combo-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.combo-card {
    border: 1px solid rgba(89, 247, 228, 0.35);
    border-radius: 12px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(5, 14, 34, 0.96), rgba(8, 18, 42, 0.9));
    box-shadow: 0 0 20px rgba(89, 247, 228, 0.12);
}

.combo-card.featured {
    border-color: rgba(89, 247, 228, 0.85);
    box-shadow: 0 0 24px rgba(89, 247, 228, 0.25);
}

.combo-tag {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    color: var(--cyan);
    border: 1px solid rgba(89, 247, 228, 0.6);
    border-radius: 999px;
    padding: 4px 10px;
}

.combo-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.combo-card strong {
    display: block;
    font-size: 1.75rem;
    color: var(--cyan);
    margin-bottom: 10px;
}

.combo-action {
    background: linear-gradient(120deg, var(--cyan), #86ffe9);
    color: #041126;
}

.custom-solution {
    text-align: center;
    margin-top: 26px;
}

.custom-solution h3 {
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.custom-solution p {
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto 14px;
}

.trusted-brands {
    padding-top: 28px;
}

.portfolio-intro {
    max-width: 720px;
    margin: 12px auto 0;
    color: #d9e8ff;
    line-height: 1.6;
}

.trusted-brands .section-head h2,
.about .section-head h2 {
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(89, 247, 228, 0.28);
}

.portfolio-marquee {
    position: relative;
    overflow: hidden;
    padding: 12px 0;
}

.portfolio-marquee::before,
.portfolio-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 54px;
    pointer-events: none;
    z-index: 2;
}

.portfolio-marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(6, 15, 34, 0.98), rgba(6, 15, 34, 0));
}

.portfolio-marquee::after {
    right: 0;
    background: linear-gradient(270deg, rgba(6, 15, 34, 0.98), rgba(6, 15, 34, 0));
}

.portfolio-track {
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    flex-wrap: nowrap;
    animation: portfolioTicker 28s linear infinite;
}

.portfolio-marquee:hover .portfolio-track {
    animation-play-state: paused;
}

.portfolio-headline-list {
    display: grid;
    gap: 14px;
}

.portfolio-line {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(89, 247, 228, 0.22);
}

.portfolio-line h3 {
    font-size: 1.05rem;
    color: var(--cyan);
    letter-spacing: 0.03em;
    margin: 0;
}

.brand-work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 20px;
}

.work-card {
    border: 1px solid rgba(89, 247, 228, 0.34);
    border-radius: 12px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(5, 14, 34, 0.94), rgba(8, 17, 40, 0.9));
    box-shadow: 0 0 18px rgba(89, 247, 228, 0.16);
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.work-tag {
    color: var(--cyan);
    font-size: 0.78rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.work-card h3 {
    font-size: 1.85rem;
    margin-bottom: 0;
}

.portfolio-copy {
    color: #d3e1fb;
    line-height: 1.65;
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.portfolio-logo {
    width: 176px;
    height: 176px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid rgba(89, 247, 228, 0.28);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.portfolio-logo:hover {
    transform: translateY(-4px) scale(1.07);
    border-color: rgba(89, 247, 228, 0.7);
    background: rgba(89, 247, 228, 0.1);
    box-shadow: 0 10px 26px rgba(89, 247, 228, 0.22);
}

.portfolio-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

@keyframes portfolioTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 7px));
    }
}

.view-all-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    text-align: center;
}

.view-all-wrap .btn-outline {
    min-width: 220px;
    animation: portfolioButtonFloat 3.2s ease-in-out infinite;
    box-shadow: 0 10px 28px rgba(89, 247, 228, 0.12);
}

.view-all-wrap .btn-outline:hover {
    box-shadow: 0 14px 34px rgba(89, 247, 228, 0.2);
}

.about-intro {
    max-width: 740px;
    margin: 10px auto 0;
    color: #deebff;
    font-size: 1.05rem;
    line-height: 1.55;
}

.founder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.founder-card {
    border: 1px solid rgba(89, 247, 228, 0.34);
    border-radius: 12px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(5, 14, 34, 0.94), rgba(8, 17, 40, 0.9));
    box-shadow: 0 0 18px rgba(89, 247, 228, 0.16);
}

.founder-card h3 {
    color: var(--cyan);
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.founder-card p {
    color: #d4e3fc;
    margin-bottom: 8px;
}

.founder-card small {
    color: #a8bedf;
    font-size: 0.9rem;
}

.client-say {
    padding-top: 24px;
}

.client-say .section-head h2 {
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(89, 247, 228, 0.28);
}

.client-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.client-marquee::before,
.client-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 2;
    pointer-events: none;
}

.client-marquee {
    position: relative;
    width: 100%;
    overflow-x: auto;
    /* Allow manual scroll */
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.client-marquee::-webkit-scrollbar {
    display: none;
}

.client-track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: max-content;
    animation: feedbackTicker 28s linear infinite;
    will-change: transform;
}

.client-marquee:hover .client-track,
.client-marquee:active .client-track {
    animation-play-state: paused;
}

.client-card {
    width: min(350px, 80vw);
    /* Increased size slightly */
    position: relative;
    padding-top: 55px;
    /* Half logo height */
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-brand-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #0d1526;
    border: 4px solid var(--cyan);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.client-brand-logo img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.client-copy {
    background: var(--cyan);
    color: #041126;
    border-radius: 25px 25px 12px 12px;
    padding: 60px 20px 25px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 15px 40px rgba(89, 247, 228, 0.25);
}

.client-copy .quote {
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 18px;
    color: #041126 !important;
    min-height: auto;
}

.quote-icon-start,
.quote-icon-end {
    color: #fff;
    font-size: 1.8rem;
    position: absolute;
    opacity: 0.9;
}

.quote-icon-start {
    top: 20px;
    left: 15px;
}

.quote-icon-end {
    bottom: 20px;
    right: 15px;
}

.client-copy h3 {
    font-size: 1.15rem;
    margin-bottom: 2px;
    color: #041126 !important;
    /* UI Dark Blue */
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.client-copy h3 span {
    display: block;
    font-size: 0.85rem;
    color: #041126 !important;
    /* UI Dark Blue */
    opacity: 0.85;
    font-weight: 500;
    text-transform: none;
    margin-top: 2px;
}

.stars {
    color: #fff !important;
    font-size: 1.1rem;
    /* Increased star size */
    margin-top: 10px;
    letter-spacing: 2px;
}

.client-card h3 {
    color: var(--cyan);
    font-size: 1.18rem;
    margin-bottom: 2px;
}

.client-card span {
    color: #a8bedf;
    font-size: 0.92rem;
}

@keyframes feedbackTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 10px));
    }
}

@keyframes portfolioButtonFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.connect-section {
    padding-top: 18px;
}

.connect-section .section-head h2 {
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(89, 247, 228, 0.28);
}

.connect-intro {
    max-width: 720px;
    margin: 10px auto 0;
    color: #d9e7ff;
}

.connect-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
}

.connect-form-wrap,
.contact-info-wrap {
    border: 1px solid rgba(89, 247, 228, 0.34);
    border-radius: 12px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(5, 14, 34, 0.94), rgba(8, 17, 40, 0.9));
    box-shadow: 0 0 18px rgba(89, 247, 228, 0.16);
}

.connect-form-wrap h3,
.contact-info-wrap h3 {
    color: var(--cyan);
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.connect-form label {
    display: block;
    color: #c4d7f2;
    font-size: 0.86rem;
    margin-bottom: 10px;
}

.form-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.connect-form input,
.connect-form textarea {
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(89, 247, 228, 0.34);
    background: rgba(6, 15, 35, 0.88);
    color: #e9f4ff;
    font-family: 'Poppins', sans-serif;
    padding: 0 12px;
    margin-top: 6px;
}

.connect-form textarea {
    min-height: 110px;
    padding-top: 10px;
}

.service-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
}

.service-chips span {
    border: 1px solid rgba(89, 247, 228, 0.45);
    border-radius: 6px;
    padding: 7px 10px;
    color: #def0ff;
    font-size: 0.82rem;
    background: rgba(89, 247, 228, 0.06);
}

.connect-submit {
    width: 100%;
    margin-top: 4px;
}

.info-card {
    border: 1px solid rgba(89, 247, 228, 0.34);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    background: rgba(5, 14, 34, 0.68);
}

.info-card h4 {
    color: var(--cyan);
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.info-card p {
    color: #d4e3fc;
    line-height: 1.5;
}

.office-hours p {
    font-size: 0.92rem;
}

.corner-glow {
    position: absolute;
    right: 22px;
    bottom: 18px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85, 232, 243, 0.55) 0%, rgba(85, 232, 243, 0.12) 42%, transparent 72%);
    filter: blur(0.5px);
    box-shadow: 0 0 28px rgba(85, 232, 243, 0.38);
}

.about-grid,
.card-grid,
.timeline,
.results-grid {
    display: grid;
    gap: 18px;
}

.about-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.about-grid article,
.card,
.timeline article,
.result,
.contact-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
}

.about-grid h3,
.card h3,
.timeline h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

.about-grid p,
.card p,
.timeline p,
.result p,
.contact-panel p {
    color: var(--muted);
    line-height: 1.7;
}

.card-grid {
    grid-template-columns: repeat(4, minmax(210px, 1fr));
}

.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: auto -20% -50% -20%;
    height: 65%;
    background: radial-gradient(circle, rgba(89, 247, 228, 0.18), transparent 70%);
}

.timeline {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.timeline span {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(89, 247, 228, 0.14);
    color: var(--cyan);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 12px;
}

.results-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.result strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    color: var(--cyan);
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-panel {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.contact-panel h2 {
    margin-bottom: 14px;
}

.contact-panel p {
    max-width: 680px;
    margin: 0 auto 16px;
}

.site-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--line);
    padding: 28px 8% 28px;
    color: var(--muted);
    background: transparent;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(89, 247, 228, 0.22);
}

.footer-brand-block {
    flex: 1.2;
    min-width: 260px;
    max-width: 360px;
}

.footer-logo {
    display: inline-block;
    color: var(--cyan);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.footer-brand-block p {
    line-height: 1.6;
    color: #c3d7f2;
}

.footer-col {
    min-width: 170px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    color: var(--cyan);
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.footer-col a {
    color: #c6d8f1;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--cyan);
}

.footer-bottom {
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(198, 216, 241, 0.45);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c6d8f1;
    font-size: 0.82rem;
    font-weight: 700;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.js-animate .stagger-item {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--stagger-index, 0) * 70ms);
}

.js-animate .stagger-item.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes swapOne {

    0%,
    7% {
        opacity: 0;
        transform: translateY(32px);
    }

    12%,
    43% {
        opacity: 1;
        transform: translateY(0);
    }

    50%,
    100% {
        opacity: 0;
        transform: translateY(-32px);
    }
}

@keyframes swapTwo {

    0%,
    47% {
        opacity: 0;
        transform: translateY(32px);
    }

    54%,
    87% {
        opacity: 1;
        transform: translateY(0);
    }

    94%,
    100% {
        opacity: 0;
        transform: translateY(-32px);
    }
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(0.985);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shellGlow {
    0% {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 60px rgba(85, 232, 243, 0.08);
    }

    35% {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 90px rgba(85, 232, 243, 0.2), 0 0 140px rgba(85, 232, 243, 0.18);
    }

    100% {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 60px rgba(85, 232, 243, 0.08);
    }
}

@keyframes pageGlow {
    0% {
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes atmosphericShift {
    0% {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }

    100% {
        transform: translate3d(2%, 1%, 0) scale(1.05);
    }
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 0.78;
    }
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes microPop {
    0% {
        transform: translateY(0) scale(1);
    }

    45% {
        transform: translateY(-2px) scale(1.015);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js-animate .stagger-item {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .nav {
        position: fixed;
        top: 74px;
        right: 6%;
        width: min(280px, 80vw);
        flex-direction: column;
        align-items: flex-start;
        background: rgba(5, 11, 25, 0.95);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 18px;
        transform: translateY(-14px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav .nav-login {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }

    .nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu-toggle {
        display: inline-block;
    }

    .about-grid,
    .fields-grid,
    .service-grid-neon,
    .brand-work-grid,
    .founder-grid,
    .connect-grid,
    .combo-grid,
    .card-grid,
    .timeline,
    .results-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .site-header {
        padding: 12px 5%;
    }

    .logo {
        gap: 6px;
    }

    .logo-mark img {
        width: 56px;
        height: 56px;
    }

    .section {
        padding: 58px 6%;
    }

    .hero {
        padding: 0 6%;
    }

    .site-header {
        padding: 12px 5%;
    }

    .logo {
        gap: 6px;
    }

    .logo-mark img {
        width: 56px;
        height: 56px;
    }

    .h1-switcher {
        height: clamp(2.8rem, 13vw, 3.6rem);
    }

    .slide {
        font-size: clamp(1rem, 5vw, 1.6rem);
        line-height: 1.1;
    }

    .hero-metrics,
    .fields-grid,
    .service-grid-neon,
    .brand-work-grid,
    .founder-grid,
    .connect-grid,
    .combo-grid,
    .about-grid,
    .card-grid,
    .timeline,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .analysis-card {
        padding: 34px 18px 24px;
    }

    .client-card {
        width: min(calc(100vw - 32px), 420px);
        padding: 18px;
        gap: 16px;
    }

    .client-copy {
        min-width: 0;
    }

    .client-copy {
        min-width: 0;
    }

    .client-brand-logo {
        flex: 0 0 82px;
        width: 82px;
        height: 82px;
        padding: 0;
        border-radius: 50%;
    }

    .client-brand-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .portfolio-track {
        gap: 10px;
    }

    .footer-brand-block,
    .footer-col {
        min-width: 0;
        width: 100%;
        max-width: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .quote {
        min-height: auto;
    }

    .form-two-col {
        grid-template-columns: 1fr;
    }

    .site-footer {
        text-align: center;
    }

    .footer-top {
        justify-content: center;
        text-align: center;
    }

    .footer-brand-block {
        max-width: 100%;
    }

    .footer-col {
        min-width: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .bot-chat {
        right: 10px;
        bottom: 78px;
        width: calc(100vw - 20px);
        height: min(420px, 72vh);
    }
}

@media (min-width: 981px) {
    .hero-grid-lines {
        display: block;
    }
}