/* =========================================================================
   FLOAT DIGITAL - V2 DESIGN SYSTEM
========================================================================= */

:root {
    /* Colors from logo */
    --bg: #070C18;
    /* exact logo background */
    --bg2: #0C1225;
    --bg3: #0F1830;
    --bg4: #141E3A;
    --blue: #4A90F5;
    /* logo gradient start */
    --purple: #8B5CF6;
    /* logo gradient end */
    --blue-l: #6BA8FF;
    --purple-l: #A78BFA;
    --accent-primary: #FF3D00;
    /* Kept as fallback but focusing on gradient */

    /* Gradients */
    --grad: linear-gradient(135deg, #4A90F5 0%, #8B5CF6 100%);
    --grad-r: linear-gradient(135deg, #8B5CF6 0%, #4A90F5 100%);
    --grad-text: linear-gradient(135deg, #6BA8FF 0%, #A78BFA 100%);
    --grad-soft: linear-gradient(135deg, rgba(74, 144, 245, .12) 0%, rgba(139, 92, 246, .12) 100%);
    --glow: rgba(74, 144, 245, 0.28);
    --glow2: rgba(139, 92, 246, 0.28);

    /* Text */
    --text: #F0F4FF;
    --text2: #8892A8;
    --text3: #4A5270;

    /* Borders */
    --bdr: rgba(255, 255, 255, 0.07);
    --bdr-a: rgba(74, 144, 245, 0.38);

    /* Typography */
    --fd: 'Syne', sans-serif;
    /* display / headings */
    --fb: 'DM Sans', sans-serif;
    /* body / UI */

    /* Layout */
    --nav-h: 120px;
    --mw: 1280px;
    --py: clamp(80px, 10vw, 140px);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   RESET & BASE
========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial;
    /* Lenis handles this */
}

body {
    background-color: var(--bg);
    color: var(--text2);
    font-family: var(--fb);
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Noise texture */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 9998;
}

::selection {
    background: var(--blue);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--py) 0;
    position: relative;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bdr), transparent);
}

/* =========================================================================
   TYPOGRAPHY
========================================================================= */
h1,
h2,
h3,
h4,
h5,
h6,
.display-font {
    font-family: var(--fd);
    color: var(--text);
    line-height: 1.1;
    font-weight: 800;
    /* Syne 800 */
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(40px, 7vw, 90px);
    text-transform: uppercase;
    line-height: 1.0;
}

h2 {
    font-size: clamp(38px, 5.5vw, 70px);
}

h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
}

h4 {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 700;
}

.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* =========================================================================
   CUSTOM CURSOR
========================================================================= */
/* Hide default cursor only if pointer device is fine */
@media (pointer: fine) {
    body {
        cursor: none;
    }

    a,
    button,
    input,
    select,
    textarea {
        cursor: none;
    }
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--glow);
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(74, 144, 245, 0.4);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease);
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--blue-l);
    background: rgba(74, 144, 245, 0.05);
}

@media (max-width: 768px) {

    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    body {
        cursor: auto;
    }

    a,
    button,
    input,
    select,
    textarea {
        cursor: pointer;
    }
}

/* =========================================================================
   PAGE LOADER
========================================================================= */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 100px;
    height: auto;
    /* margin-bottom: 24px; */
}

.loader-text {
    font-family: var(--fd);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 20px;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-bar-container {
    width: 200px;
    height: 2px;
    background: var(--bdr);
    position: relative;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--grad);
    animation: loadProgress 1.5s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* =========================================================================
   NAVIGATION
========================================================================= */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s var(--ease);
}

.main-nav.scrolled {
    background: rgba(7, 12, 24, 0.93);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--bdr);
    height: 90px;
    /* shrink per specs */
}

.nav-logo img {
    height: 100px;
    display: block;
    width: auto;
    transition: height 0.3s var(--ease);
}

.main-nav.scrolled .nav-logo img {
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-family: var(--fb);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-transform: capitalize;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad);
    transition: width 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--fb);
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid var(--bdr);
    background: transparent;
    transition: all 0.3s var(--ease);
}

.nav-cta:hover {
    background: var(--grad);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
    cursor: pointer;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s var(--ease);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: var(--fd);
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s var(--ease);
}

.mobile-menu.active a {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active a:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu.active a:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu.active a:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu.active a:nth-child(5) {
    transition-delay: 0.5s;
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

/* =========================================================================
   UI ELEMENTS & UTILITIES
========================================================================= */

/* Section Label */
.section-label {
    display: inline-flex;
    align-items: center;
    font-family: var(--fb);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 24px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--grad);
    margin-right: 12px;
}

/* Glowing Orbs */
.glowing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    pointer-events: none;
}

.orb-blue {
    background: var(--blue);
    opacity: 0.35;
}

.orb-purple {
    background: var(--purple);
    opacity: 0.35;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--fb);
    font-weight: 600;
    font-size: 15px;
    border-radius: 40px;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 10px 30px rgba(74, 144, 245, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(74, 144, 245, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--bdr);
}

.btn-outline:hover {
    border-color: var(--bdr-a);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-4px);
}

/* =========================================================================
   IMAGE PLACEHOLDER SYSTEM
   → Replace src="" with your real image path. Remove placeholder class.
========================================================================= */

/* Generic placeholder */
.img-placeholder {
    position: relative;
    background: var(--bg3);
    border: 2px dashed rgba(74, 144, 245, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    transition: border-color 0.3s var(--ease);
    min-height: 200px;
}

.img-placeholder:hover {
    border-color: rgba(74, 144, 245, 0.6);
}

/* Gradient shimmer on placeholder */
.img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 144, 245, 0.04) 0%, rgba(139, 92, 246, 0.06) 100%);
}

/* Camera SVG icon shown inside placeholder */
.img-placeholder-icon {
    width: 48px;
    height: 48px;
    opacity: 0.3;
    position: relative;
    z-index: 1;
}

.img-placeholder-label {
    font-family: var(--fb);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text3);
    position: relative;
    z-index: 1;
}

/* Circular (team avatar) */
.img-placeholder-circle {
    border-radius: 50%;
    aspect-ratio: 1;
}

/* Wide landscape / banner */
.img-placeholder-wide {
    aspect-ratio: 16/9;
    min-height: auto;
}

/* Tall portrait */
.img-placeholder-portrait {
    aspect-ratio: 3/4;
    min-height: auto;
}

/* When a real <img> is placed inside, hide placeholder overlay */
.img-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* =========================================================================
   CLIENT LOGOS SECTION — INFINITE MARQUEE
========================================================================= */
.client-logos-section {
    padding: 64px 0 56px;
    border-top: 1px solid var(--bdr);
    border-bottom: 1px solid var(--bdr);
    background: var(--bg2);
    overflow: hidden;
    position: relative;
}

/* Creative Header */
.client-logos-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.logos-accent-line {
    width: 40px;
    height: 2px;
    background: var(--grad);
    border-radius: 2px;
}

.logos-count {
    font-family: var(--fd);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.logos-text {
    font-family: var(--fb);
    font-size: clamp(13px, 1.5vw, 16px);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text3);
}

/* Marquee Wrapper */
.logos-marquee-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Edge Fade Masks */
.logos-marquee-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.logos-marquee-fade--left {
    left: 0;
    background: linear-gradient(90deg, var(--bg2) 0%, transparent 100%);
}

.logos-marquee-fade--right {
    right: 0;
    background: linear-gradient(270deg, var(--bg2) 0%, transparent 100%);
}

/* Marquee Track */
.logos-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: logoScroll 30s linear infinite;
}

.logos-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes logoScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Glassmorphism Logo Card */
.logo-card {
    flex-shrink: 0;
    width: 190px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    transition: all 0.4s var(--ease);
    overflow: hidden;
    cursor: default;
}

/* Gradient glow border on hover */
.logo-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    padding: 1px;
    background: linear-gradient(135deg, var(--blue), var(--purple), var(--blue-l));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.logo-card:hover::before {
    opacity: 1;
}

.logo-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(74, 144, 245, 0.12), 0 0 60px rgba(139, 92, 246, 0.06);
}

.logo-card img {
    width: 80%;
    height: 60px;
    object-fit: contain;
    opacity: 0.85;
    transition: all 0.3s var(--ease);
}

.logo-card:hover img {
    opacity: 1;
    transform: scale(1.08);
}

.logo-card-name {
    font-family: var(--fb);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text3);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s var(--ease);
}

.logo-card:hover .logo-card-name {
    opacity: 1;
    transform: translateY(0);
}

/* Marquee Mobile Responsive */
@media (max-width: 768px) {
    .client-logos-section {
        padding: 40px 0 36px;
    }

    .client-logos-header {
        flex-direction: column;
        gap: 8px;
    }

    .logos-marquee-fade {
        width: 40px;
    }

    .logo-card {
        width: 140px;
        height: 95px;
        padding: 12px;
    }

    .logo-card img {
        height: 45px;
    }

    .logos-marquee-track {
        gap: 16px;
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    .logo-card {
        width: 120px;
        height: 85px;
    }

    .logo-card img {
        height: 38px;
    }
}

/* Logo placeholder (before real logos added) */
.client-logo-placeholder {
    width: 120px;
    height: 40px;
    background: var(--bg3);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text3);
    letter-spacing: 0.05em;
    opacity: 0.6;
    transition: all 0.3s var(--ease);
}

.client-logo-placeholder:hover {
    border-color: rgba(74, 144, 245, 0.4);
    opacity: 1;
}

/* =========================================================================
   GALLERY GRID
========================================================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 240px 240px;
    gap: 12px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Make first item span 2 rows */
.gallery-item:first-child {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay on hover */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 12, 24, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.gallery-item:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-item:first-child {
        grid-row: span 1;
        grid-column: span 2;
        height: 200px;
    }

    .gallery-item {
        height: 160px;
    }

    .client-logos-grid {
        gap: 24px 32px;
    }

    .client-logo-item,
    .client-logo-placeholder {
        width: 160px;
        height: 64px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item:first-child {
        grid-column: span 1;
        height: 220px;
    }

    .gallery-item {
        height: 180px;
    }
}

/* =========================================================================
   TEAM SECTION
========================================================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.team-card {
    background: var(--bg3);
    border: 1px solid var(--bdr);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s var(--ease);
}

.team-card:hover {
    border-color: var(--bdr-a);
    transform: translateY(-4px);
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 2px solid var(--bdr);
    position: relative;
}

.team-photo .img-placeholder {
    width: 100%;
    height: 100%;
    min-height: auto;
    border-radius: 50%;
    border: none;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-name {
    font-family: var(--fd);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.team-role {
    font-size: 13px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
}

.team-social a {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.team-social a:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .team-card {
        padding: 20px 16px;
    }
}

/* Scroll Animation Classes */

.reveal {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.vis {
    opacity: 1;
    transform: translateY(0);
}

.rd1 {
    transition-delay: 0.1s;
}

.rd2 {
    transition-delay: 0.2s;
}

.rd3 {
    transition-delay: 0.3s;
}

.rd4 {
    transition-delay: 0.4s;
}

.rd5 {
    transition-delay: 0.5s;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1024px) {

    .grid-3,
    .grid-4,
    .grid-3x2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-3x2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* =========================================================================
   HERO SECTIONS
========================================================================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 0 5%;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top center, rgba(74, 144, 245, 0.15) 0%, transparent 50%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* SVG Grid Decoration */
.hero-svg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px 10px 16px;
    background: rgba(74, 144, 245, 0.06);
    border: 1px solid rgba(74, 144, 245, 0.2);
    border-radius: 50px;
    font-family: var(--fb);
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-l);
    margin-bottom: 28px;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s var(--ease) 1.8s forwards;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    cursor: default;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s var(--ease);
}

.hero-badge::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 51px;
    padding: 1px;
    background: linear-gradient(135deg, var(--blue), var(--purple), var(--blue-l));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.hero-badge:hover::before {
    opacity: 1;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 245, 0.08), transparent);
    animation: badgeShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes badgeShimmer {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 150%;
    }
}

.hero-badge-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(74, 144, 245, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: badgeGlowPulse 3s ease-in-out infinite;
}

@keyframes badgeGlowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.15);
    }
}

.hero-badge:hover {
    background: rgba(74, 144, 245, 0.12);
    border-color: rgba(74, 144, 245, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 144, 245, 0.15);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e, 0 0 16px rgba(34, 197, 94, 0.3);
    animation: dotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px #22c55e, 0 0 16px rgba(34, 197, 94, 0.3);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 4px #22c55e, 0 0 8px rgba(34, 197, 94, 0.15);
    }
}

.badge-star {
    flex-shrink: 0;
    animation: starSpin 6s linear infinite;
}

@keyframes starSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.badge-text {
    font-family: var(--fb);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--blue-l) 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-chevron {
    flex-shrink: 0;
    opacity: 0.5;
    transition: all 0.3s var(--ease);
    color: var(--blue-l);
}

.hero-badge:hover .badge-chevron {
    opacity: 1;
    transform: translateX(3px);
}

50% {
    opacity: 0.5;
    transform: scale(1.5);
}

100% {
    opacity: 1;
    transform: scale(1);
}
}

.hero h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    /* spacing between split lines */
}

/* Split lines — JS animates these via GSAP after loader */
.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: heroLineIn 0.8s var(--ease) forwards;
}

.hero-line:nth-child(1) {
    animation-delay: 2.0s;
}

.hero-line:nth-child(2) {
    animation-delay: 2.2s;
}

.hero-line:nth-child(3) {
    animation-delay: 2.4s;
}

@keyframes heroLineIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-line-grey {
    color: var(--text3);
}

.hero-line-white {
    color: var(--text);
}

.hero p {
    font-size: clamp(16px, 2vw, 22px);
    color: var(--text2);
    max-width: 600px;
    margin: 24px auto 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s var(--ease) 2.6s forwards;
    padding: 0 10px;
    line-height: 1.6;
    height: 3.2em;
    overflow: hidden;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s var(--ease) 2.8s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    /* left: 50%; */
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease) 1.2s forwards;
}

.scroll-text {
    font-family: var(--fb);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text3);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--bdr);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--blue);
    animation: scrollLine 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

/* Page specific Hero variations */
.page-hero {
    height: 60vh;
    min-height: 480px;
}

.page-hero-title {
    margin-top: 60px;
    font-size: clamp(42px, 7vw, 90px);
    line-height: 1;
    text-align: center;
}

.page-hero-sub {
    margin-top: 24px;
}

.breadcrumb {
    position: absolute;
    bottom: 40px;
    left: 5%;
    font-family: var(--fb);
    font-size: 14px;
    color: var(--text2);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text3);
}

/* =========================================================================
   CUSTOM SVG ICON SYSTEM
   Premium circular icon badges with gradient backgrounds and glow effects
========================================================================= */

.icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 144, 245, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(74, 144, 245, 0.25);
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s var(--ease);
    margin-bottom: 24px;
}

.icon-wrap::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 144, 245, 0.4), rgba(139, 92, 246, 0.4));
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
    transition: opacity 0.3s var(--ease);
}

.card:hover .icon-wrap::before,
.icon-wrap:hover::before {
    opacity: 1;
}

.icon-wrap svg {
    width: 28px;
    height: 28px;
}

/* Size variants */
.icon-wrap-sm {
    width: 44px;
    height: 44px;
}

.icon-wrap-sm svg {
    width: 20px;
    height: 20px;
}

.icon-wrap-lg {
    width: 80px;
    height: 80px;
}

.icon-wrap-lg svg {
    width: 36px;
    height: 36px;
}

/* Color variants for section variety */
.icon-blue {
    background: linear-gradient(135deg, rgba(74, 144, 245, 0.2) 0%, rgba(74, 144, 245, 0.05) 100%);
    border-color: rgba(74, 144, 245, 0.35);
}

.icon-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.35);
}

.icon-teal {
    background: linear-gradient(135deg, rgba(32, 201, 184, 0.2) 0%, rgba(74, 144, 245, 0.1) 100%);
    border-color: rgba(32, 201, 184, 0.3);
}

/* =========================================================================
   MARQUEE
========================================================================= */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 24px 0;
    border-top: 1px solid var(--bdr);
    border-bottom: 1px solid var(--bdr);
    position: relative;
    background: var(--bg2);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    font-family: var(--fd);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 40px;
    color: var(--text2);
}

.marquee-divider {
    margin: 0 40px;
    color: var(--blue);
}

.marquee-item.gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Needs twice the content */
}

/* Note: we will duplicate content in HTML for seamless loop */

/* =========================================================================
   CARDS (Universal logic)
========================================================================= */
.card {
    background: var(--bg3);
    border: 1px solid var(--bdr);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.card:hover {
    border-color: var(--bdr-a);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(74, 144, 245, 0.09);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0%;
    background: var(--grad);
    transition: height 0.4s var(--ease);
}

.card:hover::before {
    height: 100%;
}

.card-number {
    font-family: var(--fd);
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    opacity: 0.5;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--grad-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 32px;
}

.card-title {
    font-family: var(--fd);
    font-size: 24px;
    margin-bottom: 16px;
}

.card-text {
    color: var(--text2);
    line-height: 1.7;
}

.card-link {
    display: inline-block;
    margin-top: 24px;
    font-family: var(--fb);
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-link:hover {
    text-decoration: underline;
}

/* =========================================================================
   PROCESS TIMELINE
========================================================================= */
.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 60px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--bdr), var(--bdr) 10px, transparent 10px, transparent 20px);
    z-index: 1;
}

.process-line-fill {
    position: absolute;
    top: 36px;
    left: 0;
    height: 2px;
    background: var(--grad);
    width: 0%;
    z-index: 2;
    transition: width 0.1s linear;
}

.process-step {
    width: 180px;
    text-align: center;
    position: relative;
    z-index: 3;
}

.process-step-num {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--bdr);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fd);
    font-weight: 800;
    font-size: 28px;
    color: var(--text2);
    transition: all 0.4s var(--ease);
}

.process-step.active .process-step-num {
    border-color: var(--purple);
    color: var(--text);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.process-step-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.process-step-desc {
    font-size: 14px;
    color: var(--text2);
}

@media (max-width: 768px) {
    .process-timeline {
        flex-direction: column;
        gap: 40px;
    }

    .process-timeline::before {
        top: 0;
        bottom: 0;
        left: 36px;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(0deg, var(--bdr), var(--bdr) 10px, transparent 10px, transparent 20px);
    }

    .process-line-fill {
        top: 0;
        left: 36px;
        width: 2px;
        height: 0%;
    }

    .process-step {
        width: 100%;
        display: flex;
        align-items: flex-start;
        text-align: left;
        gap: 24px;
    }

    .process-step-num {
        margin: 0;
        flex-shrink: 0;
    }

    .process-step-content {
        padding-top: 10px;
    }
}

/* =========================================================================
   CASE STUDIES
========================================================================= */
.case-card {
    background: var(--bg3);
    border: 1px solid var(--bdr);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-6px);
    border-color: var(--bdr-a);
    box-shadow: 0 24px 60px rgba(74, 144, 245, 0.09);
}

.case-card-body {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.case-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 24px;
    align-self: flex-start;
}

.case-card h3 {
    margin-bottom: 12px;
}

.case-problem {
    font-size: 14px;
    color: var(--text2);
    margin-bottom: 32px;
    line-height: 1.5;
}

.case-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    border-top: 1px solid var(--bdr);
    padding-top: 24px;
}

.case-result-val {
    font-family: var(--fd);
    font-size: 24px;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.case-result-label {
    font-size: 12px;
    color: var(--text3);
    text-transform: uppercase;
}

/* Modal for details */
.case-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7, 12, 24, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.case-modal.active {
    opacity: 1;
    pointer-events: all;
}

.case-modal-content {
    background: var(--bg2);
    border: 1px solid var(--bdr);
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px;
    position: relative;
    transform: translateY(40px);
    transition: transform 0.4s var(--ease);
}

.case-modal.active .case-modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--bdr);
    color: var(--text);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    /* custom cursor */
}

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 30px;
    background: transparent;
    border: 1px solid var(--bdr);
    color: var(--text2);
    font-family: var(--fb);
    font-size: 14px;
    transition: all 0.3s var(--ease);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
}

/* =========================================================================
   TESTIMONIALS (Swiper)
========================================================================= */
.swiper {
    width: 100%;
    padding-bottom: 60px;
    overflow: visible;
}

.swiper-slide {
    height: auto;
}

.testimonial-card {
    background: var(--bg3);
    border: 1px solid var(--bdr);
    border-radius: 16px;
    padding: 40px;
    height: 100%;
}

.quote-mark {
    font-size: 80px;
    font-family: var(--fd);
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    margin-bottom: -20px;
}

.testimonial-text {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 32px;
    line-height: 1.6;
}

.testimonial-author {
    font-family: var(--fd);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.testimonial-role {
    font-size: 14px;
    color: var(--text3);
}

.stars {
    color: #FFA800;
    letter-spacing: 2px;
    margin-top: 12px;
}

/* =========================================================================
   INDUSTRIES
========================================================================= */
.industry-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.industry-pill {
    padding: 16px 32px;
    border-radius: 40px;
    border: 1px solid var(--bdr);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-family: var(--fd);
    font-weight: 700;
    transition: all 0.3s var(--ease);
    background: var(--bg3);
}

.industry-pill:hover {
    background: var(--grad);
    border-color: transparent;
    transform: scale(1.05);
}

/* =========================================================================
   STATS BAND
========================================================================= */
.stats-band {
    background: var(--bg2);
    border-top: 1px solid var(--bdr);
    border-bottom: 1px solid var(--bdr);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-num {
    font-family: var(--fd);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 16px;
    color: var(--text2);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}

/* =========================================================================
   SERVICES ALTERNATING SECTIONS (services.html)
========================================================================= */
.service-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
    position: relative;
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-bg-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--fd);
    font-size: 200px;
    font-weight: 800;
    opacity: 0.03;
    color: #fff;
    z-index: -1;
    pointer-events: none;
}

.service-content {
    flex: 1;
}

.service-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    background: var(--bg3);
    border: 1px solid var(--bdr);
    border-radius: 24px;
    font-size: 100px;
    /* for emoji placeholder */
}

.service-list {
    margin: 32px 0;
}

.service-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: var(--text);
    font-size: 16px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--blue);
    font-weight: bold;
}

@media (max-width: 768px) {

    .service-row,
    .service-row:nth-child(even) {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .service-bg-num {
        font-size: 120px;
    }

    .service-visual {
        height: 240px;
        width: 100%;
    }
}

/* =========================================================================
   ABOUT (Founder & Team)
========================================================================= */
.founder-section {
    display: flex;
    gap: 80px;
    align-items: center;
}

.founder-img-wrapper {
    flex: 1;
    max-width: 450px;
    position: relative;
}

.founder-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bdr);
    box-shadow: 0 0 60px var(--glow);
}

.founder-info {
    flex: 1;
}

.founder-role {
    font-family: var(--fd);
    color: var(--blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.team-card {
    background: var(--bg3);
    border: 1px solid var(--bdr);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--grad-soft);
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

@media (max-width: 768px) {
    .founder-section {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .founder-img-wrapper {
        margin: 0 auto;
    }
}

/* =========================================================================
   CONTACT FORM & FAQ
========================================================================= */
.contact-layout {
    display: flex;
    gap: 80px;
}

.contact-info {
    flex: 1;
}

.contact-form-wrapper {
    flex: 1;
    background: var(--bg3);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--bdr);
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 24px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-size: 13px;
    color: var(--text3);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input,
select,
textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--bdr);
    color: var(--text);
    padding: 16px;
    border-radius: 8px;
    font-family: var(--fb);
    font-size: 16px;
    transition: all 0.3s var(--ease);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(74, 144, 245, 0.1);
}

.form-error {
    border-color: #ef4444;
}

.error-msg {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.form-group.has-error .error-msg {
    display: block;
}

.btn-full {
    width: 100%;
    margin-top: 16px;
}

/* Checklist mini section */
.why-book {
    margin-top: 48px;
}

.why-book li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.why-book li::before {
    content: '✓';
    color: var(--blue);
    font-weight: bold;
}

/* FAQ */
.faq-wrap {
    margin-top: 80px;
}

.faq-item {
    border-bottom: 1px solid var(--bdr);
}

.faq-q {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}

.faq-icon {
    font-size: 24px;
    color: var(--blue);
    transition: transform 0.3s var(--ease);
}

.faq-a {
    padding-bottom: 24px;
    color: var(--text2);
    display: none;
}

.faq-item.active .faq-a {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }
}

/* =========================================================================
   BOTTOM CTA SECTION
========================================================================= */
.cta-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg2);
    border-top: 1px solid var(--bdr);
}

.cta-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(74, 144, 245, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-h2 {
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text3);
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

@media (max-width: 480px) {
    .cta-btns {
        flex-direction: column;
    }
}

/* =========================================================================
   FOOTER
========================================================================= */
.footer {
    background: var(--bg);
    padding: 80px 0 32px;
    border-top: 1px solid var(--bdr);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    height: 100px;
    /* margin-bottom: 0px; */
}

.footer-tagline {
    color: var(--text2);
    margin-bottom: 32px;
    max-width: 300px;
}

.social-icons {
    display: flex;
    gap: 16px;
    font-size: 20px;
}

.social-icons a {
    opacity: 0.7;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer h4 {
    margin-bottom: 24px;
    font-size: 16px;
}

.footer ul li {
    margin-bottom: 16px;
}

.footer ul a {
    color: var(--text2);
}

.footer ul a:hover {
    color: var(--blue);
}

.footer-contact li {
    display: flex;
    gap: 12px;
    color: var(--text2);
    align-items: flex-start;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--bdr);
    color: var(--text3);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* =========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
========================================================================= */

/* ---- Tablet (max 1024px) ---- */
@media (max-width: 1024px) {
    .container {
        padding: 0 6%;
    }

    .service-row {
        gap: 48px;
        margin-bottom: 80px;
    }

    .founder-section {
        gap: 48px;
    }
}

/* ---- Mobile (max 768px) ---- */
@media (max-width: 768px) {

    :root {
        --py: clamp(60px, 8vw, 100px);
    }

    .container {
        padding: 0 20px;
    }

    /* ---- Navigation Fix ---- */
    .main-nav {
        background: rgba(7, 12, 24, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--bdr);
        height: 80px;
        padding: 0 20px;
    }

    /* Logo size on mobile */
    .nav-logo img {
        height: 60px;
    }

    .main-nav.scrolled .nav-logo img {
        height: 104px;
    }

    /* ---- Hero Fix ---- */
    .hero {
        padding: 100px 20px 60px;
        height: auto;
        min-height: 86svh;
        justify-content: center;
    }

    .hero-badge {
        font-size: 10px;
        letter-spacing: 0.04em;
        padding: 7px 12px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        max-width: 95vw;
    }

    .hero h1 {
        gap: 4px;
        font-size: clamp(36px, 7vw, 60px);
    }

    .hero p {
        font-size: 16px;
        margin: 16px auto 28px;
        padding: 0 5px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Scroll Indicator */
    .scroll-indicator {
        bottom: 10px;
    }

    /* ---- Page Hero (inner pages) ---- */
    .page-hero {
        height: auto;
        min-height: 320px;
        padding: 100px 20px 60px;
    }

    .page-hero-title {
        font-size: clamp(36px, 9vw, 64px);
        margin-top: 20px;
    }

    /* ---- Section headings ---- */
    .section-heading {
        font-size: clamp(28px, 7vw, 48px);
    }

    /* ---- Cards ---- */
    .card {
        padding: 24px;
    }

    .card-number {
        font-size: 40px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 20px;
    }

    /* ---- Stats Band ---- */
    .stats-band {
        padding: 48px 0;
    }

    /* ---- Marquee ---- */
    .marquee-item {
        font-size: 22px;
        margin: 0 24px;
    }

    .marquee-divider {
        margin: 0 20px;
    }

    /* ---- Process Timeline ---- */
    .process-timeline {
        flex-direction: column;
        gap: 32px;
        margin-top: 40px;
    }

    .process-timeline::before {
        top: 0;
        bottom: 0;
        left: 30px;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(0deg, var(--bdr), var(--bdr) 10px, transparent 10px, transparent 20px);
    }

    .process-line-fill {
        top: 0;
        left: 30px;
        width: 2px;
        height: 0%;
    }

    .process-step {
        width: 100%;
        display: flex;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }

    .process-step-num {
        margin: 0;
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .process-step-content {
        padding-top: 8px;
        flex: 1;
    }

    /* ---- Services (alternating) ---- */
    .service-row,
    .service-row:nth-child(even) {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 60px;
    }

    .service-bg-num {
        font-size: 100px;
    }

    .service-visual {
        height: 180px;
        width: 100%;
        font-size: 70px;
        border-radius: 16px;
    }

    .service-content h2 {
        font-size: clamp(28px, 7vw, 44px);
    }

    /* ---- Case Studies ---- */
    .case-results {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .case-result-val {
        font-size: 18px;
    }

    .filter-bar {
        gap: 8px;
        margin-bottom: 32px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* ---- Testimonial / Swiper ---- */
    .testimonial-card {
        padding: 24px;
    }

    .testimonial-text {
        font-size: 16px;
    }

    /* ---- Founder Section ---- */
    .founder-section {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .founder-img-wrapper {
        margin: 0 auto;
        max-width: 280px;
    }

    /* ---- Contact ---- */
    .contact-layout {
        flex-direction: column;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* ---- CTA Section ---- */
    .cta-section {
        padding: 80px 20px;
    }

    .cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .cta-btns .btn {
        width: 100%;
        max-width: 280px;
    }

    /* ---- FAQ ---- */
    .faq-q {
        font-size: 15px;
        padding: 18px 0;
    }

    /* ---- Industries ---- */
    .industry-pill {
        font-size: 14px;
        padding: 12px 20px;
    }

    /* ---- Hide glowing orbs on mobile to save rendering ---- */
    .glowing-orb {
        display: none;
    }
}

/* ---- Small phones (max 480px) ---- */
@media (max-width: 480px) {

    h1 {
        font-size: clamp(32px, 10vw, 52px);
    }

    h2 {
        font-size: clamp(26px, 8vw, 40px);
    }

    .hero-badge {
        font-size: 10px;
        letter-spacing: 0;
        padding: 6px 10px;
    }

    .hero h1 {
        gap: 2px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 16px;
    }

    .stat-num {
        font-size: clamp(36px, 10vw, 56px);
    }

    .card {
        padding: 20px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .mobile-menu a {
        font-size: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .founder-img-wrapper {
        max-width: 220px;
    }

    .case-card-body {
        padding: 24px;
    }

    .industry-grid {
        gap: 10px;
    }
}

/* =========================================================================
   NEW-ERA ANIMATIONS & ENHANCEMENTS
========================================================================= */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--grad);
    z-index: 10000;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(74, 144, 245, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Gradient Shimmer Text */
.text-shimmer {
    background: linear-gradient(90deg, var(--blue), var(--purple), var(--blue-l), var(--purple-l), var(--blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 3s linear infinite;
}

@keyframes shimmerText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Glassmorphism Card Hover */
.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 245, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
    z-index: 0;
}

.card:hover::before {
    opacity: 1;
}

.card>* {
    position: relative;
    z-index: 1;
}

/* Animated Gradient Border on CTA Buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--blue), var(--purple), var(--blue-l), var(--purple-l));
    background-size: 300% 300%;
    animation: gradientBorder 4s ease infinite;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating Animation for Gallery Items */
@keyframes floatSubtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.gallery-item {
    animation: floatSubtle 6s ease-in-out infinite;
}

.gallery-item:nth-child(2) {
    animation-delay: -1s;
}

.gallery-item:nth-child(3) {
    animation-delay: -2s;
}

.gallery-item:nth-child(4) {
    animation-delay: -3s;
}

.gallery-item:nth-child(5) {
    animation-delay: -4s;
}

/* Pulse Glow for Stats */
.stat-num {
    text-shadow: 0 0 20px rgba(74, 144, 245, 0.15);
    animation: statPulse 3s ease-in-out infinite;
}

@keyframes statPulse {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(74, 144, 245, 0.15);
    }

    50% {
        text-shadow: 0 0 40px rgba(74, 144, 245, 0.3), 0 0 60px rgba(139, 92, 246, 0.15);
    }
}

/* Smooth Image Reveal */
.gallery-item img,
.case-card-thumb {
    animation: imageReveal 0.8s var(--ease) both;
}

@keyframes imageReveal {
    from {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Client Logo Infinite Scroll Animation (optional class) */
.client-logos-grid {
    position: relative;
}

.client-logo-item {
    animation: logoFloat 5s ease-in-out infinite;
}

.client-logo-item:nth-child(2) {
    animation-delay: -0.8s;
}

.client-logo-item:nth-child(3) {
    animation-delay: -1.6s;
}

.client-logo-item:nth-child(4) {
    animation-delay: -2.4s;
}

.client-logo-item:nth-child(5) {
    animation-delay: -3.2s;
}

.client-logo-item:nth-child(6) {
    animation-delay: -4s;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Enhanced Service Card Entrance */
.service-row {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.service-row.vis {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Section Divider Gradient Line */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
    opacity: 0.4;
}

/* Team Card Glow on Hover */
.team-card:hover {
    box-shadow: 0 8px 32px rgba(74, 144, 245, 0.15), 0 0 0 1px rgba(74, 144, 245, 0.2);
}

/* Footer link hover effect */
.footer-grid ul a {
    position: relative;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-grid ul a:hover {
    color: var(--blue);
    padding-left: 8px;
}

/* Star Twinkle for hero badge icon */
@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.hero-badge .badge-star {
    animation: twinkle 2s ease-in-out infinite;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .scroll-progress {
        height: 2px;
    }

    .gallery-item {
        animation: none;
    }

    .client-logo-item {
        animation: none;
    }

    /* Better mobile footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* Team grid mobile */
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .team-card {
        padding: 20px 16px;
    }

    .team-photo {
        width: 80px;
        height: 80px;
    }

    .team-name {
        font-size: 16px;
    }

    .team-role {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .client-logo-item {
        width: 120px;
        height: 50px;
    }
}

/* =========================================================================
   CREATIVE POLISH � ROUND 2
========================================================================= */

/* Card Shine Sweep on Hover */
.card::after,
.case-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(115deg,
            transparent 40%,
            rgba(74, 144, 245, 0.05) 45%,
            rgba(139, 92, 246, 0.08) 50%,
            rgba(74, 144, 245, 0.05) 55%,
            transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease);
    pointer-events: none;
    z-index: 0;
}

.card:hover::after,
.case-card:hover::after {
    transform: translateX(100%);
}

/* Mobile Menu � Add a CTA button at the bottom */
.mobile-menu::after {
    content: 'Book a Call ?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--grad);
    color: #fff;
    font-family: var(--fb);
    font-weight: 600;
    font-size: 16px;
    border-radius: 40px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(74, 144, 245, 0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease) 0.6s;
}

.mobile-menu.active::after {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--blue), var(--purple));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--blue-l), var(--purple-l));
}

/* Smooth Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* (old badgePulse removed) */

/* Testimonial Card Glassmorphism */
.testimonial-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(74, 144, 245, 0.15);
}

/* Industry Pill � Gradient Border on Hover */
.industry-pill {
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.industry-pill:hover {
    color: var(--text);
    background: rgba(74, 144, 245, 0.08);
    border-color: var(--blue);
    transform: translateY(-2px);
}

/* Process Step Active Glow */
.process-step.active .process-step-num {
    box-shadow: 0 0 20px rgba(74, 144, 245, 0.3), 0 0 40px rgba(139, 92, 246, 0.1);
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 768px) {

    .nav-cta,
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    .filter-btn,
    .pill {
        min-height: 44px;
        padding: 10px 18px;
    }

    /* Prevent horizontal scroll on any element */
    .hero-svg-grid {
        display: none;
    }

    /* Hero padding for taller nav */
    .hero {
        padding-top: 120px;
    }

    .page-hero {
        padding-top: 120px;
    }

    /* Case card images on mobile */
    .case-card-thumb {
        height: 160px;
    }

    /* Stats grid � prevent text overflow */
    .stat-num {
        word-break: break-word;
    }

    /* Testimonial swiper dots spacing */
    .swiper-pagination {
        padding-top: 20px;
    }

    /* Footer logo mobile */
    .footer-logo {
        height: 100px;
    }

    /* Loader logo mobile */
    .loader-logo {
        width: 70px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .hero h1 {
        font-size: clamp(28px, 9vw, 44px);
    }

    .hero-badge {
        font-size: 9px;
        padding: 5px 8px;
    }

    .section-heading {
        font-size: clamp(24px, 7vw, 36px);
    }

    .btn {
        padding: 12px 20px;
        font-size: 13px;
    }

    .filter-btn {
        font-size: 12px;
        padding: 8px 14px;
    }

    .nav-logo img {
        height: 48px;
    }

    .main-nav.scrolled .nav-logo img {
        height: 104px;
    }
}

/* Print styles */
@media print {

    .main-nav,
    .cursor-dot,
    .cursor-ring,
    .scroll-progress,
    .page-loader,
    .hero-canvas,
    .mobile-menu,
    .hamburger {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease);
    box-shadow: 0 8px 24px rgba(74, 144, 245, 0.25);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(74, 144, 245, 0.35);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* =========================================================================
   FINAL MOBILE RESPONSIVE FIXES
========================================================================= */

/* --- Fix 1: Stats band wrapping on mobile --- */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 16px;
    }

    .stat-num {
        font-size: clamp(28px, 8vw, 42px);
        white-space: nowrap;
    }

    .stat-label {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 12px;
    }

    .stat-num {
        font-size: clamp(24px, 7vw, 36px);
    }
}

/* --- Fix 2: CTA section heading clipping --- */
@media (max-width: 768px) {
    .section-padding h2 {
        overflow: visible;
        line-height: 1.15;
    }

    .section-padding {
        overflow: visible;
    }
}

/* --- Fix 3: Card numbers too big vs icons on mobile --- */
@media (max-width: 480px) {
    .card-number {
        font-size: 28px;
    }

    .card-icon {
        width: 42px;
        height: 42px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-text {
        font-size: 14px;
    }
}

/* --- Fix 4: Industry pills too cramped on mobile --- */
@media (max-width: 768px) {
    .industry-grid {
        gap: 10px;
        justify-content: center;
    }

    .industry-pill {
        font-size: 13px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .industry-pill {
        font-size: 12px;
        padding: 8px 14px;
    }
}

/* --- Fix 5: Footer alignment on mobile --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: left;
    }

    .footer h4 {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .footer ul li {
        margin-bottom: 12px;
    }

    .footer-contact li {
        font-size: 14px;
    }
}

/* --- Fix 6: Scrolled nav logo too big on mobile (user set 104px) --- */
@media (max-width: 768px) {
    .main-nav.scrolled .nav-logo img {
        height: 50px;
    }
}

/* --- Fix 7: Service rows on mobile --- */
@media (max-width: 768px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 64px;
    }

    .service-visual {
        height: 220px;
        border-radius: 12px;
    }

    .service-content {
        text-align: center;
    }

    .service-content h3 {
        font-size: 22px;
    }
}

/* --- Fix 8: Testimonial cards on mobile --- */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 24px;
    }

    .testimonial-text {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* --- Fix 9: Case study cards on mobile --- */
@media (max-width: 768px) {
    .case-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .case-card-body {
        padding: 20px;
    }
}

/* --- Fix 10: Contact form on mobile --- */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-q {
        font-size: 16px;
        padding: 20px 0;
    }
}

/* --- Fix 11: About page team grid on very small screens --- */
@media (max-width: 380px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* --- Fix 12: Prevent any horizontal overflow globally --- */
html,
body {
    overflow-x: hidden;
}



/* Typewriter Cursor */
.type-cursor {
    display: inline-block;
    color: var(--blue);
    font-weight: 100;
    animation: cursorBlink 0.8s step-end infinite;
    margin-left: 2px;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Hero line perspective for 3D letter animation */
.hero-line {
    perspective: 800px;
}