/**
 * ==============================================================================
 * Walstar Technologies · Public Showcase Unified Stylesheet
 * File: public/assets/css/front.css
 * Target: Public Landing Page, Project Showcase, Detail View, Modal & Nav
 * ==============================================================================
 */

:root {
    --walstar-primary: #046bd2;
    --walstar-primary-hover: #0357ab;
    --walstar-primary-light: rgba(4, 107, 210, 0.08);
    --walstar-secondary: #0a192f;
    --walstar-accent: #e87817;
    --walstar-accent-hover: #d16810;
    --walstar-cyan: #35bfd7;
    --walstar-bg: #f8fafd;
    --walstar-surface: #ffffff;
    --walstar-border: #e2e8f0;
    --walstar-border-subtle: #edf2f7;
    --walstar-text: #0f172a;
    --walstar-text-muted: #64748b;
    --walstar-dark: #0a192f;
    --walstar-dark-surface: #102a43;
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
body {
    font-family:
        "Plus Jakarta Sans",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    background-color: var(--walstar-bg);
    color: var(--walstar-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.025em;
}

code,
pre,
.font-mono {
    font-family: "JetBrains Mono", monospace;
}

/* ==========================================================================
   Public Header & Floating Island Navbar (Reference: Nexus Studio Design)
   ========================================================================== */
.front-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    padding: 1rem 1rem 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.floating-island-nav {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.25rem;
    border-radius: 1rem;
    pointer-events: auto;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.floating-island-nav.is-scrolled {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 12px 40px -20px rgba(4, 107, 210, 0.35);
}

/* Nexus Brand Logo */
.nexus-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.nexus-logo-icon {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(
        135deg,
        var(--walstar-primary),
        var(--walstar-cyan)
    );
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px -10px rgba(4, 107, 210, 0.85);
    color: #ffffff;
    font-weight: 800;
    transition: transform 0.3s ease;
}

.nexus-brand-logo:hover .nexus-logo-icon {
    transform: scale(1.05);
}

.nexus-logo-inner-square {
    width: 9px;
    height: 9px;
    border-radius: 2.5px;
    background-color: #ffffff;
    transition: transform 0.3s ease;
}

.nexus-brand-logo:hover .nexus-logo-inner-square {
    transform: rotate(45deg);
}

.nexus-logo-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--walstar-accent);
    border: 2px solid #ffffff;
}

.nexus-brand-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--walstar-dark);
    line-height: 1.1;
}

.nexus-brand-title span {
    color: var(--walstar-primary);
}

/* Nav Links */
.floating-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.floating-nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--walstar-text-muted);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.floating-nav-link:hover,
.floating-nav-link.active {
    color: var(--walstar-primary);
    background-color: var(--walstar-primary-light);
}

/* CTA Button (Sleek dark button with hover lift, matching Nexus 'Book a demo') */
.btn-nexus-cta {
    background-color: var(--walstar-dark);
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.55rem 1.15rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition:
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.25s ease,
        box-shadow 0.25s ease;
    border: 1px solid transparent;
}

.btn-nexus-cta:hover {
    transform: translateY(-2px);
    background-color: var(--walstar-primary);
    box-shadow: 0 10px 24px -8px rgba(4, 107, 210, 0.5);
    color: #ffffff !important;
}

.btn-nexus-cta:active {
    transform: translateY(0);
}

/* Mobile Toggle Button */
.btn-floating-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--walstar-border);
    background: rgba(255, 255, 255, 0.85);
    color: var(--walstar-dark);
    display: grid;
    place-items: center;
    padding: 0;
    transition: all 0.2s ease;
}

.btn-floating-toggle:hover {
    background: #ffffff;
    border-color: var(--walstar-primary);
    color: var(--walstar-primary);
}

/* Mobile Dropdown Island Card */
.mobile-island-drawer {
    max-width: 1140px;
    margin: 0.5rem auto 0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    pointer-events: auto;
}

.mobile-island-link {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--walstar-text);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.mobile-island-link:hover {
    background-color: var(--walstar-primary-light);
    color: var(--walstar-primary);
}

/* ==========================================================================
   Hero Section & Technical Grid Background
   ========================================================================== */
.grid-bg {
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
}

.grid-mask {
    -webkit-mask-image: radial-gradient(
        ellipse 75% 55% at 50% 0%,
        #000 35%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 75% 55% at 50% 0%,
        #000 35%,
        transparent 100%
    );
}

.hero-section {
    position: relative;
    padding: 7.25rem 0 3.5rem;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(53, 191, 215, 0.08) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(232, 120, 23, 0.06) 0%,
            transparent 40%
        );
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 5.75rem 0 2.5rem;
    }
}

.hero-gradient-text {
    background: linear-gradient(
        135deg,
        var(--walstar-primary) 0%,
        #29a8df 55%,
        var(--walstar-accent) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.live-beacon-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(4, 107, 210, 0.2);
    box-shadow: 0 4px 16px -4px rgba(4, 107, 210, 0.2);
    backdrop-filter: blur(8px);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--walstar-primary);
}

.beacon-pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--walstar-accent);
    display: inline-block;
}

.beacon-pulse-dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background-color: var(--walstar-accent);
    opacity: 0.6;
    animation: beacon-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beacon-ping {
    75%,
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

.hero-glow-1 {
    position: absolute;
    top: 0;
    right: 25%;
    width: 600px;
    height: 350px;
    background: rgba(53, 191, 215, 0.12);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-2 {
    position: absolute;
    top: 30%;
    left: -80px;
    width: 450px;
    height: 450px;
    background: rgba(232, 120, 23, 0.08);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   Hero Action CTA Buttons · Proportional Studio Sizing & Smooth Hover Physics
   ========================================================================== */
.btn-hero-primary,
.btn-hero-secondary {
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    border-radius: 12px;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition:
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #ff7a1a 0%, #e87817 100%);
    border: 1px solid rgba(232, 120, 23, 0.9);
    color: #ffffff !important;
    box-shadow: 0 4px 14px -3px rgba(232, 120, 23, 0.45);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f96700 0%, #d86808 100%);
    border-color: #d86808;
    color: #ffffff !important;
    box-shadow:
        0 12px 26px -6px rgba(232, 120, 23, 0.55),
        0 0 0 1px rgba(232, 120, 23, 0.2);
}

.btn-hero-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px -2px rgba(232, 120, 23, 0.4);
}

.btn-hero-primary .hero-btn-icon,
.btn-hero-primary i {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-block;
}

.btn-hero-primary:hover .hero-btn-icon,
.btn-hero-primary:hover i.bi-arrow-down {
    transform: translateY(3px);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: var(--walstar-dark, #0a192f) !important;
    box-shadow: 0 2px 8px -2px rgba(10, 25, 47, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: var(--walstar-primary, #046bd2);
    color: var(--walstar-primary, #046bd2) !important;
    box-shadow:
        0 10px 24px -8px rgba(4, 107, 210, 0.28),
        0 0 0 1px rgba(4, 107, 210, 0.15);
}

.btn-hero-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(10, 25, 47, 0.04);
}

.btn-hero-secondary .hero-btn-icon,
.btn-hero-secondary i {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-block;
}

.btn-hero-secondary:hover .hero-btn-icon,
.btn-hero-secondary:hover i.bi-chevron-right {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .hero-cta-group {
        width: 100%;
    }
    .hero-cta-group .btn-hero-primary,
    .hero-cta-group .btn-hero-secondary {
        width: 100%;
    }
}

/* ==========================================================================
   Orbital 3D Carousel Banner (Walstar Showcase Hero)
   ========================================================================== */
.orbital-hero-section {
    position: relative;
    height: 100vh;
    min-height: 820px;
    overflow: hidden;
    background: #f6f7fa;
    color: #0e1424;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.orbital-hero-section:active {
    cursor: grabbing;
}

.orbital-bg-glow {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1400px;
    height: 900px;
    transform: translate(-50%, -35%);
    background: radial-gradient(
        closest-side,
        rgba(36, 83, 240, 0.08),
        transparent
    );
    pointer-events: none;
    z-index: 1;
}

.orbital-ring {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

.orbital-ring.ring-outer {
    width: min(1300px, 88vw);
    height: 300px;
    border: 1px dashed #d3d8e3;
}

.orbital-ring.ring-inner {
    width: min(920px, 62vw);
    height: 200px;
    border: 1px solid #e3e6ed;
}

.orbital-stage {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

.orbital-card {
    position: absolute;
    left: 50%;
    top: 0;
    width: 220px;
    margin-left: -110px;
    pointer-events: auto;
    cursor: pointer;
    will-change: transform, opacity;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    contain: layout style;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.orbital-card:focus-visible {
    outline: none;
}

@media (max-width: 1199.98px) {
    .orbital-card {
        width: 190px;
        margin-left: -95px;
    }
}

/* Tablet & mobile: vertical orbit; cards loop over (back) and under (front) the headline.
   front-effects.js sets the headline's top/bottom margins to fit the cards. */
@media (max-width: 991.98px) {
    .orbital-hero-section {
        height: auto;
        min-height: 0;
        padding: 5.5rem 0 1.25rem;
    }
    /* Vertical orbit track lines behind the cards */
    .orbital-ring.ring-outer,
    .orbital-ring.ring-inner {
        border: 1.5px dashed #c3cadb;
        background: radial-gradient(
            closest-side,
            rgba(36, 83, 240, 0.05),
            transparent
        );
    }
}

@media (max-width: 767.98px) {
    .orbital-card {
        width: 132px;
        margin-left: -66px;
    }
    .orbital-card-frame {
        border-radius: 12px;
    }
    .orbital-card-meta {
        padding-top: 6px;
    }
    .orbital-card-title {
        font-size: 12px;
    }
    .orbital-card-metric {
        font-size: 11px;
    }
}

.orbital-card-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #e4e8f0;
    border: 0;
    box-shadow: 0 25px 50px -18px rgba(14, 20, 36, 0.28);
    transition:
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.orbital-card:hover .orbital-card-frame,
.orbital-card:focus-visible .orbital-card-frame {
    transform: translateY(-4px) scale(1.025);
    box-shadow: 0 30px 65px -16px rgba(36, 83, 240, 0.42);
}

.orbital-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    pointer-events: none;
}

.orbital-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 10px 4px 0;
}

.orbital-card-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #0e1424;
}

.orbital-card-metric {
    font-size: 13px;
    font-weight: 700;
    color: #e06a0c;
    white-space: nowrap;
    font-family: "JetBrains Mono", monospace;
}

.orbital-center-text {
    position: absolute;
    left: 50%;
    top: calc(50% - 20px);
    transform: translate(-50%, -50%);
    z-index: 50;
    width: min(840px, calc(100% - 48px));
    text-align: center;
    pointer-events: none;
}

.orbital-center-text * {
    pointer-events: auto;
}

.orbital-pill-beacon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    border: 1px solid #e1e4eb;
    background: #ffffff;
    font-size: 13px;
    color: #3a4359;
    box-shadow: 0 4px 14px rgba(10, 25, 47, 0.05);
}

.orbital-pill-beacon .beacon-badge {
    background: rgba(36, 83, 240, 0.1);
    color: #2453f0;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.orbital-headline {
    font-size: clamp(34px, 3.6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 700;
    margin: 10px 0 50px;
    color: #0e1424;
    font-family: "Outfit", sans-serif;
    text-wrap: balance;
}

.btn-hero-primary {
    background: #f07a1a;
    border: 1px solid #e06a0c;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 999px;
    box-shadow: 0 8px 24px -6px rgba(240, 122, 26, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition:
        transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.btn-hero-primary:hover {
    background: #e06a0c;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(240, 122, 26, 0.6);
}

.btn-hero-primary:active {
    transform: translateY(0);
}

.btn-hero-secondary {
    background: #ffffff;
    border: 1px solid rgba(14, 20, 36, 0.16);
    color: #0e1424 !important;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition:
        transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
        background 0.25s ease,
        border-color 0.25s ease;
}

.btn-hero-secondary:hover {
    background: rgba(14, 20, 36, 0.05);
    border-color: rgba(14, 20, 36, 0.3);
    transform: translateY(-2px);
}

.btn-hero-secondary:active {
    transform: translateY(0);
}

.orbital-bottom-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 70;
    padding: 0 24px;
    pointer-events: none;
}

.orbital-bottom-inner {
    max-width: 1296px; /* matches the container-xl content width below */
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 32px;
    padding-top: 18px;
    border-top: 1px solid #e1e4eb;
    background: #f6f7fa;
}

.orbital-domain-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e1e4eb;
    color: #3a4359;
    border-radius: 999px;
    padding: 6px 8px 6px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex: none;
    transition:
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
    text-decoration: none;
    pointer-events: auto;
}

.orbital-domain-btn:hover {
    border-color: #2453f0;
    color: #2453f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 83, 240, 0.15);
}

.orbital-domain-count {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #f2f4f8;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    color: #6b7590;
}

.orbital-domain-btn:hover .orbital-domain-count {
    background: rgba(36, 83, 240, 0.1);
    color: #2453f0;
}

.orbital-domain-row {
    justify-content: center;
}

/* Impact stat strip: one panel split into cells by 1px grid gaps */
.metrics-counter-section {
    position: relative;
    z-index: 2;
    padding: 1.75rem 0 3rem;
    background: linear-gradient(180deg, #f6f7fa 0%, #ffffff 100%);
}

.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--walstar-border);
    border: 1px solid var(--walstar-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(10, 25, 47, 0.04),
        0 18px 40px -24px rgba(4, 107, 210, 0.25);
}

.metric-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.6rem 1.75rem;
    background: #ffffff;
    transition: background-color 0.25s ease;
}

.metric-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--metric-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-item:hover {
    background: #fbfcfe;
}

.metric-item:hover::before {
    transform: scaleX(1);
}

.metric-icon {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: var(--metric-color);
    background: color-mix(in srgb, var(--metric-color) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--metric-color) 18%, #ffffff);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.metric-item:hover .metric-icon {
    transform: translateY(-2px) rotate(-4deg);
}

.metric-value {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--metric-color);
}

.metric-label {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--walstar-text-muted);
}

@media (max-width: 991.98px) {
    .metrics-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .metric-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.15rem;
    }
    .metric-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 1.1rem;
    }
    .metric-value {
        font-size: 1.6rem;
    }
    .metric-label {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Infinite Tech Stack Marquee (Reference: Nexus Studio)
   ========================================================================== */
.marquee-section {
    position: relative;
    padding: 2.25rem 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(226, 232, 240, 0.65);
    border-bottom: 1px solid rgba(226, 232, 240, 0.65);
}

.marquee-mask {
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 12%,
        #000 88%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        #000 12%,
        #000 88%,
        transparent 100%
    );
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 1rem;
    padding: 5px;
    animation: marquee-scroll 34s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

.marquee-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid var(--walstar-border);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--walstar-text);
    white-space: nowrap;
    transition: all 0.25s ease;
}

.marquee-pill:hover {
    border-color: var(--walstar-primary);
    color: var(--walstar-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px -4px rgba(4, 107, 210, 0.25);
}

/* ==========================================================================
   Scroll-Triggered Reveal Animations
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay helpers */
.delay-1 {
    transition-delay: 0.08s;
}
.delay-2 {
    transition-delay: 0.16s;
}
.delay-3 {
    transition-delay: 0.24s;
}
.delay-4 {
    transition-delay: 0.32s;
}

/* ==========================================================================
   Capabilities Section
   ========================================================================== */
.capability-card {
    background: #ffffff;
    border: 1px solid var(--walstar-border);
    border-radius: 20px;
    padding: 2.25rem;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.capability-card:hover {
    border-color: var(--walstar-primary);
    box-shadow: 0 20px 40px -15px rgba(4, 107, 210, 0.14);
    transform: translateY(-4px);
}

.capability-card .capability-num {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--walstar-primary);
}

/* ==========================================================================
   Project Cards & Showcase Grid (Interactive Spotlight)
   ========================================================================== */
.spotlight {
    position: relative;
    isolation: isolate;
}

.spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: radial-gradient(
        360px circle at var(--mx, 50%) var(--my, 50%),
        rgba(4, 107, 210, 0.12),
        transparent 65%
    );
    pointer-events: none;
    z-index: 1;
}

.spotlight:hover::before {
    opacity: 1;
}

.project-card,
.bento-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 26px;
    overflow: hidden;
    padding: 0.75rem;
    box-shadow:
        0 4px 20px -2px rgba(15, 23, 42, 0.04),
        0 20px 45px -15px rgba(4, 107, 210, 0.07);
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.project-card:hover,
.bento-card:hover {
    transform: translateY(-6px);
    border-color: rgba(4, 107, 210, 0.4);
    box-shadow: 0 30px 60px -20px rgba(4, 107, 210, 0.22);
}

/* Featured Bento Card (Wide 2-Span) */
.bento-card-featured {
    border: 1px solid rgba(4, 107, 210, 0.25);
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    box-shadow:
        0 8px 30px -4px rgba(4, 107, 210, 0.08),
        0 24px 50px -15px rgba(4, 107, 210, 0.12);
}

.bento-card-featured:hover {
    border-color: var(--walstar-primary);
}

/* Bento Media Frame - Unified 16:9 Aspect Ratio */
.bento-thumb-wrapper,
.project-card .card-thumb-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: #071328;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

.bento-card-featured .bento-thumb-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: 100%;
    min-height: 240px;
}

@media (max-width: 991.98px) {
    .bento-card-featured .bento-thumb-wrapper {
        min-height: unset;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

.bento-thumb-wrapper img,
.project-card .card-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Featured card: product presented in a browser window on a dark stage */
.bento-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 3.75rem 1.75rem 2.75rem;
    border-radius: 20px;
    overflow: hidden;
    perspective: 1400px;
    background:
        radial-gradient(120% 80% at 50% 110%, rgba(4, 107, 210, 0.55) 0%, transparent 60%),
        radial-gradient(60% 50% at 85% 0%, rgba(53, 191, 215, 0.25) 0%, transparent 70%),
        linear-gradient(160deg, #0a192f 0%, #0f2747 100%);
}

/* faint grid texture */
.bento-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 100%);
    pointer-events: none;
}

.browser-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.6),
        0 0 0 6px rgba(255, 255, 255, 0.04);
    /* flat and still; only the screenshot inside zooms on hover */
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f1f4f9;
    border-bottom: 1px solid #e2e8f0;
}

.browser-dots {
    display: inline-flex;
    gap: 6px;
    flex: none;
}

.browser-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff5f57;
}

.browser-dots i:nth-child(2) {
    background: #febc2e;
}

.browser-dots i:nth-child(3) {
    background: #28c840;
}

.browser-url {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 75%;
    margin: 0 auto;
    padding: 3px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    color: #475569;
}

.browser-url .bi {
    font-size: 9px;
    color: #16a34a;
}

.browser-screen {
    aspect-ratio: 16 / 10;
    background: #0a192f;
    overflow: hidden;
}

.bento-card .browser-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform-origin: center top;
    transition: transform 0.5s ease;
}

.bento-card:hover .browser-screen img {
    transform: scale(1.08);
}

@media (max-width: 767.98px) {
    .bento-showcase {
        min-height: 0;
        padding: 3.5rem 1rem 1.75rem;
    }
}

.bento-card:hover .bento-thumb-wrapper img,
.project-card:hover .card-thumb-wrapper img {
    transform: scale(1.05);
}

/* Standardized 16:9 Case Study & Modal Media Frames */
.case-study-cover {
    aspect-ratio: 16 / 9;
    max-height: 520px;
    width: 100%;
    overflow: hidden;
    background-color: #071328;
}

.case-study-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Subtle Gradient Scrim on Media */
.bento-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 25, 47, 0.08) 0%,
        rgba(10, 25, 47, 0.45) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Floating Badges on Bento Media */
.bento-thumb-category {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    max-width: calc(100% - 28px - 150px); /* leave room for the featured badge */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.15);
}

.card-featured-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 0.3rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(10, 25, 47, 0.82);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 3;
}

.card-quick-action {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--walstar-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(232, 120, 23, 0.4);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 5;
    text-decoration: none;
}

.card-quick-action:hover {
    background-color: #d1670d;
    color: #ffffff;
    transform: scale(1.12);
}

/* Circular Rotating Arrow Action */
.project-card-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background-color: #f8fafd;
    color: var(--walstar-text-muted);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
}

.bento-card:hover .project-card-arrow,
.project-card:hover .project-card-arrow {
    background-color: var(--walstar-dark);
    border-color: var(--walstar-dark);
    color: #ffffff;
    transform: rotate(45deg);
    box-shadow: 0 6px 16px rgba(10, 25, 47, 0.25);
}

/* Bento Inset Metric Callout Pod */
.bento-metric-callout {
    background: #f8fafd;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 0.65rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bento-pulse-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--walstar-accent);
    display: inline-block;
}

.bento-pulse-dot::after {
    content: "";
    position: absolute;
    inset: -2.5px;
    border-radius: 50%;
    background-color: var(--walstar-accent);
    opacity: 0.6;
    animation: beacon-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Card Content Bodies */
.project-card .card-body,
.bento-card .card-body {
    padding: 1.25rem 0.65rem 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Category Filter Pills (Nexus Studio & Bento Style) */
.filter-pill {
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--walstar-text-muted);
    background: #ffffff;
    border: 1px solid var(--walstar-border);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.filter-pill:hover {
    color: var(--walstar-primary);
    border-color: rgba(4, 107, 210, 0.35);
    background: rgba(4, 107, 210, 0.05);
}

.filter-pill.active {
    background: var(--walstar-dark) !important;
    color: #ffffff !important;
    border-color: var(--walstar-dark) !important;
    box-shadow: 0 8px 24px -6px rgba(10, 25, 47, 0.55);
}

/* No Scrollbar Utility */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.tech-tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: #083a5e;
    background-color: #ebf8fe;
    border: 1px solid #d6eefb;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    display: inline-block;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.bento-card:hover .tech-tag {
    background-color: #e0f2fe;
    border-color: #bae6fd;
}

/* ==========================================================================
   Single Case Study View & Detail Elements
   ========================================================================== */
.case-study-hero {
    background: linear-gradient(135deg, var(--walstar-secondary), #102a43);
    color: #ffffff;
    padding: 4.5rem 0 3.5rem;
    border-radius: 20px;
}

.case-study-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #ffffff;
}

.challenge-card {
    background: #f0f5fa;
    border: 1px solid #dfe8f3;
    border-radius: 14px;
    padding: 1.5rem;
}

.solution-card {
    background: rgba(4, 107, 210, 0.05);
    border: 1px solid rgba(4, 107, 210, 0.2);
    border-radius: 14px;
    padding: 1.5rem;
}

.impact-card {
    background: rgba(232, 120, 23, 0.05);
    border: 1px solid rgba(232, 120, 23, 0.2);
    border-radius: 14px;
    padding: 1.5rem;
}

.testimonial-box {
    background: var(--walstar-secondary);
    color: #ffffff;
    border-radius: 18px;
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
}

.testimonial-box::before {
    content: '"';
    font-family: "Outfit", sans-serif;
    font-size: 5.5rem;
    line-height: 1;
    color: var(--walstar-accent);
    opacity: 0.25;
    position: absolute;
    top: 5px;
    left: 20px;
    pointer-events: none;
}

/* ==========================================================================
   Interactive Quick View Modal
   ========================================================================== */
.modal-content-custom {
    border-radius: 20px;
    border: 1px solid var(--walstar-border);
    box-shadow: 0 25px 60px rgba(10, 25, 47, 0.25);
    overflow: hidden;
}

.modal-header-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--walstar-border);
    padding: 1rem 1.5rem;
}

/* ==========================================================================
   Public Footer
   ========================================================================== */
.front-footer {
    background-color: var(--walstar-secondary);
    color: #94a3b8;
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
    margin-top: auto;
    border-top: 1px solid #1e293b;
}

.front-footer h5 {
    color: #ffffff;
}

.front-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.front-footer a:hover {
    color: #ffffff;
}

/* Social icon buttons (own hover so the icon never turns white-on-white) */
.front-footer .footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.front-footer .footer-social-btn:hover,
.front-footer .footer-social-btn:focus-visible {
    color: #ffffff;
    background-color: var(--walstar-primary);
    border-color: var(--walstar-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Polished Scrollbar & Utility Helpers
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f5fa;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.btn-walstar-primary {
    background-color: var(--walstar-primary);
    border-color: var(--walstar-primary);
    color: #ffffff;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-walstar-primary:hover {
    background-color: var(--walstar-primary-hover);
    border-color: var(--walstar-primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(4, 107, 210, 0.28);
}

.btn-walstar-accent {
    background: linear-gradient(135deg, #ff7a1a 0%, #e87817 100%);
    border: 1px solid rgba(232, 120, 23, 0.9);
    color: #ffffff !important;
    font-weight: 600;
    transition:
        transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.btn-walstar-accent:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f96700 0%, #d86808 100%);
    border-color: #d86808;
    color: #ffffff !important;
    box-shadow: 0 10px 24px -6px rgba(232, 120, 23, 0.45);
}

.btn-walstar-accent:active {
    transform: translateY(0);
}

/* ==========================================================================
   Category Badges · Distinctive High-Contrast Color System
   ========================================================================== */
.badge-cat-web {
    background-color: #ebf4fe !important;
    color: #0352a0 !important;
    border: 1px solid #bedaf9 !important;
}

.badge-cat-mobile {
    background-color: #f1eefd !important;
    color: #43329c !important;
    border: 1px solid #d5cef9 !important;
}

.badge-cat-ai {
    background-color: #e2f8fa !important;
    color: #055c68 !important;
    border: 1px solid #b0edf3 !important;
}

.badge-cat-erp {
    background-color: #fef0e2 !important;
    color: #a34800 !important;
    border: 1px solid #fcd4af !important;
}

.badge-cat-ecommerce {
    background-color: #ebfbf3 !important;
    color: #0b6b40 !important;
    border: 1px solid #baf2d2 !important;
}

.badge-cat-saas {
    background-color: #e8eefb !important;
    color: #1a3e8a !important;
    border: 1px solid #c4d6f8 !important;
}

.badge-cat-default {
    background-color: #eef2f6 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}

/* Utility Class Compatibility Aliases */
.bg-blue-50 {
    background-color: #ebf4fe !important;
}
.text-\[\#046BD2\] {
    color: #0352a0 !important;
}
.border-blue-200 {
    border-color: #bedaf9 !important;
}

.bg-indigo-50 {
    background-color: #f1eefd !important;
}
.text-\[\#2C58B1\] {
    color: #43329c !important;
}
.border-indigo-200 {
    border-color: #d5cef9 !important;
}

.bg-sky-50 {
    background-color: #e2f8fa !important;
}
.text-\[\#083A5E\] {
    color: #055c68 !important;
}
.border-sky-200 {
    border-color: #b0edf3 !important;
}

.bg-orange-50 {
    background-color: #fef0e2 !important;
}
.text-\[\#E87817\] {
    color: #a34800 !important;
}
.border-orange-200 {
    border-color: #fcd4af !important;
}

.bg-amber-50 {
    background-color: #ebfbf3 !important;
}
.text-\[\#C95A00\] {
    color: #0b6b40 !important;
}
.border-amber-200 {
    border-color: #baf2d2 !important;
}

.bg-blue-100\/60 {
    background-color: #e8eefb !important;
}
.text-\[\#144690\] {
    color: #1a3e8a !important;
}
.border-blue-300 {
    border-color: #c4d6f8 !important;
}

.bg-slate-100 {
    background-color: #eef2f6 !important;
}
.text-slate-700 {
    color: #334155 !important;
}
.border-slate-200 {
    border-color: #cbd5e1 !important;
}

/* Subtle Bootstrap Utility Badges Enhancement */
.badge.bg-primary-subtle {
    background-color: #ebf4fe !important;
    color: #0352a0 !important;
    border: 1px solid #bedaf9 !important;
}

.badge.bg-success-subtle {
    background-color: #def7ec !important;
    color: #03543f !important;
    border: 1px solid #bcf0da !important;
}

.badge.bg-warning-subtle {
    background-color: #fef0e2 !important;
    color: #a34800 !important;
    border: 1px solid #fcd4af !important;
}

.badge.bg-secondary-subtle {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

.badge.bg-info-subtle {
    background-color: #e0f7fa !important;
    color: #005963 !important;
    border: 1px solid #b2ebf2 !important;
}

/* ==========================================================================
   Half-step Spacing Utilities (used in views; not part of Bootstrap 5)
   ========================================================================== */
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-3\.5 { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }
.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.pt-2\.5 { padding-top: 0.625rem !important; }
.mt-0\.5 { margin-top: 0.125rem !important; }
.mb-1\.5 { margin-bottom: 0.375rem !important; }
.ms-0\.5 { margin-left: 0.125rem !important; }
@media (min-width: 1200px) {
    .p-xl-4\.5 { padding: 2rem !important; }
}

.fw-black { font-weight: 900 !important; }
.tracking-tight { letter-spacing: -0.025em; }
.shadow-2xs { box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.02); }
.hover-white:hover { color: #ffffff !important; }
.hover-primary:hover { color: var(--walstar-primary) !important; }

/* ==========================================================================
   Responsive Refinements (Tablet & Mobile)
   ========================================================================== */
.case-study-page {
    padding-top: 7rem;
}

.case-study-cover {
    aspect-ratio: 16 / 9;
    max-height: 520px;
}

@media (min-width: 768px) {
    .showcase-search-bar {
        min-width: 320px;
    }
}

@media (max-width: 991.98px) {
    /* Hero: headline flows in document order above the orbit band */
    .orbital-center-text {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: auto;
        max-width: 720px;
        margin: 110px auto 150px; /* fallback; JS sizes these to the cards */
        padding: 0 16px;
    }
    .orbital-headline {
        font-size: clamp(28px, 6vw, 48px);
        margin: 14px 0 0;
    }
    .orbital-bottom-bar {
        position: relative;
        bottom: auto;
    }
}

@media (max-width: 767.98px) {
    .orbital-headline {
        font-size: clamp(28px, 8.2vw, 38px);
        margin: 14px 0 0;
    }
    .orbital-pill-beacon {
        gap: 8px;
        font-size: 12px;
        white-space: nowrap;
    }
    .orbital-pill-beacon .beacon-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* Hero: domains become one swipeable row */
    .orbital-bottom-bar {
        padding: 0 16px;
    }
    .orbital-bottom-inner {
        gap: 12px;
        padding-top: 14px;
    }
    .orbital-domain-row {
        flex-wrap: nowrap !important;
        justify-content: flex-start;
        overflow-x: auto;
        width: calc(100% + 32px);
        margin: 0 -16px;
        padding: 2px 16px 4px;
        touch-action: pan-x;
        pointer-events: auto;
        scrollbar-width: none;
    }
    .orbital-domain-row::-webkit-scrollbar {
        display: none;
    }
    .orbital-domain-row > span {
        flex: none;
    }

    /* Sections & cards */
    .capability-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    .marquee-section {
        padding: 1.5rem 0;
    }
    .testimonial-box {
        padding: 1.75rem 1.5rem;
    }
    .case-study-page {
        padding-top: 6.25rem;
    }
    .front-footer {
        padding-top: 3rem;
    }

    /* Quick view modal */
    .modal-header-custom {
        padding: 0.85rem 1rem;
    }
}

@media (max-width: 575.98px) {
    /* Modal goes fullscreen (modal-fullscreen-sm-down) */
    .modal-content-custom {
        border-radius: 0;
        border: 0;
    }
    .modal-header-live {
        display: none !important;
    }
}

@media (max-width: 399.98px) {
    .orbital-pill-beacon .beacon-sub {
        display: none;
    }
    .orbital-pill-beacon {
        padding-right: 6px;
    }
}

/* ==========================================================================
   Sticky Floating Back-to-Top Button
   ========================================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--walstar-primary), var(--walstar-cyan));
    color: #ffffff;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1040;
    box-shadow: 0 8px 24px -4px rgba(4, 107, 210, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px) scale(0.6);
    /* springy overshoot when it pops in */
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* soft glow that ripples out every few seconds */
.back-to-top-btn.is-visible::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    animation: btt-pulse 2.8s ease-out infinite;
}

.back-to-top-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 14px 30px -4px rgba(4, 107, 210, 0.65);
    color: #ffffff;
    background: linear-gradient(135deg, var(--walstar-primary-hover), var(--walstar-cyan));
}

.back-to-top-btn:active {
    transform: translateY(0) scale(0.94);
}

/* Scroll progress ring around the button */
.btt-progress {
    position: absolute;
    inset: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    transform: rotate(-90deg);
    pointer-events: none;
}

.btt-track,
.btt-bar {
    fill: none;
    stroke-width: 3;
}

.btt-track {
    stroke: rgba(4, 107, 210, 0.18);
}

.btt-bar {
    stroke: var(--walstar-accent);
    stroke-linecap: round;
    stroke-dasharray: 150.8; /* 2 * PI * r(24) */
    stroke-dashoffset: 150.8;
    transition: stroke-dashoffset 0.15s linear;
}

/* Arrow: loops upward on hover, launches on click */
.btt-arrow {
    position: relative;
    display: inline-flex;
    height: 1.3em;
    overflow: hidden;
}

.btt-arrow i {
    display: block;
    line-height: 1.3em;
}

.back-to-top-btn:hover .btt-arrow i,
.back-to-top-btn:focus-visible .btt-arrow i {
    animation: btt-arrow-loop 0.9s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.back-to-top-btn.is-launching .btt-arrow i {
    animation: btt-arrow-launch 0.7s cubic-bezier(0.5, 0, 0.75, 0) both;
}

@keyframes btt-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(53, 191, 215, 0.5);
    }
    70%,
    100% {
        box-shadow: 0 0 0 16px rgba(53, 191, 215, 0);
    }
}

@keyframes btt-arrow-loop {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    45% {
        transform: translateY(-120%);
        opacity: 0;
    }
    46% {
        transform: translateY(120%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes btt-arrow-launch {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    55% {
        transform: translateY(-130%);
        opacity: 0;
    }
    56% {
        transform: translateY(130%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top-btn,
    .btt-bar {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    .back-to-top-btn.is-visible::after,
    .back-to-top-btn .btt-arrow i {
        animation: none !important;
    }
}

@media (max-width: 575.98px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* Narrow phones: featured badge collapses to its star so it can't collide
   with the category badge on the card image */
.card-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

@media (max-width: 429.98px) {
    .card-featured-badge {
        padding: 0.3rem 0.45rem;
    }
    .card-featured-badge .featured-label {
        display: none;
    }
    .bento-thumb-category {
        max-width: calc(100% - 28px - 40px);
    }
}

/* ==========================================================================
   Case Study Page · Split Hero with Product Preview
   ========================================================================== */
.cs-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 2.75rem 2.5rem;
    color: #ffffff;
    background:
        radial-gradient(80% 90% at 85% 110%, rgba(4, 107, 210, 0.5) 0%, transparent 60%),
        radial-gradient(50% 60% at 100% 0%, rgba(53, 191, 215, 0.22) 0%, transparent 70%),
        linear-gradient(160deg, #0a192f 0%, #0f2747 100%);
    box-shadow: 0 30px 60px -30px rgba(10, 25, 47, 0.55);
}

/* faint grid texture */
.cs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 50%, #000 20%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 70% at 75% 50%, #000 20%, transparent 100%);
    pointer-events: none;
}

.cs-hero-title {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.cs-hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cs-hero-metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.cs-hero-metric:first-child .cs-hero-metric-value {
    color: #ff9a3d;
}

.cs-hero-metric-label {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Product preview: browser window at the screenshot's natural aspect ratio */
.cs-hero-media {
    position: relative;
    display: block;
    perspective: 1600px;
    text-decoration: none;
}

/* Frame stays flat and still; only the screenshot zooms on hover */
.cs-hero-media .browser-frame {
    transform: none;
    transition: none;
}

.cs-hero-media .browser-screen {
    aspect-ratio: auto;
    max-height: 560px;
    overflow: hidden;
}

.cs-hero-media .browser-screen img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: center top;
    transition: transform 0.5s ease;
}

.cs-hero-media:hover .browser-screen img,
.cs-hero-media:focus-visible .browser-screen img {
    transform: scale(1.08);
}

.cs-zoom-hint {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(10, 25, 47, 0.82);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.cs-hero-media:hover .cs-zoom-hint,
.cs-hero-media:focus-visible .cs-zoom-hint {
    opacity: 1;
    transform: none;
}

/* Touch screens have no hover: keep the hint visible */
@media (hover: none) {
    .cs-zoom-hint {
        opacity: 1;
        transform: none;
    }
}

/* Sidebar follows the reader on desktop */
@media (min-width: 992px) {
    .cs-sidebar {
        position: sticky;
        top: 100px;
    }
}

@media (max-width: 991.98px) {
    .cs-hero {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .cs-hero {
        padding: 1.5rem 1.1rem;
        border-radius: 18px;
    }
    .cs-hero-metric-value {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   App Store / Google Play Badges (official-style black badges)
   ========================================================================== */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 150px;
    padding: 0.45rem 1rem 0.45rem 0.8rem;
    border-radius: 10px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff !important;
    text-decoration: none;
    line-height: 1;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.store-badge:hover,
.store-badge:focus-visible {
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.6);
}

.store-badge-icon {
    flex: none;
    width: 24px;
    height: 24px;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.store-badge-text small {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

.store-badge-text strong {
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Compact size */
.store-badges-sm .store-badge {
    min-width: 0;
    padding: 0.35rem 0.75rem 0.35rem 0.6rem;
    border-radius: 8px;
}

.store-badges-sm .store-badge-icon {
    width: 18px;
    height: 18px;
    font-size: 1.1rem;
}

.store-badges-sm .store-badge-text strong {
    font-size: 0.85rem;
}

/* On light backgrounds the badge needs no light outline */
.store-badges-light .store-badge {
    border-color: #000000;
}

.cs-store-label {
    margin-bottom: 0.55rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* Small "available on" pill in project cards */
.card-platforms {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.78rem;
    line-height: 1.4;
}

/* ==========================================================================
   Quick View Modal · Layout
   ========================================================================== */
.qv-body {
    padding: 1.75rem 2rem 2rem;
}

.qv-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--walstar-text-muted);
    font-weight: 600;
}

.qv-meta .bi {
    color: var(--walstar-primary);
}

.qv-intro {
    margin-bottom: 1.5rem;
    text-align: center;
}

.qv-intro #modalTagline {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.qv-intro h3 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: -0.03em;
}

.qv-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

/* Store badges sit on a white background here */
.qv-actions .store-badge {
    border-color: #000000;
    min-width: 0;
    padding-top: 0.38rem;
    padding-bottom: 0.38rem;
}

/* Screenshot in a browser window, uncropped, gentle zoom on hover */
.qv-preview {
    display: block;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.qv-preview .browser-frame {
    transform: none;
    transition: none;
    border-color: var(--walstar-border);
    box-shadow: 0 18px 40px -22px rgba(10, 25, 47, 0.45);
}

.qv-preview .browser-screen {
    aspect-ratio: auto;
    max-height: 420px;
    overflow: hidden;
}

.qv-preview .browser-screen img {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: center top;
    transition: transform 0.5s ease;
}

.qv-preview:hover .browser-screen img {
    transform: scale(1.06);
}

/* Compact metric row */
.qv-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.qv-metrics.d-none {
    display: none !important;
}

.qv-metric {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #f8fafd;
    border: 1px solid var(--walstar-border);
}

.qv-metric-value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--walstar-primary);
}

.qv-metric:first-child .qv-metric-value {
    color: var(--walstar-accent);
}

.qv-metric-label {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--walstar-text-muted);
}

.qv-section {
    margin-bottom: 1.5rem;
}

.qv-section:last-child {
    margin-bottom: 0;
}

.qv-heading {
    margin-bottom: 0.6rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--walstar-primary);
}

.qv-card-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 575.98px) {
    .qv-body {
        padding: 1.25rem 1rem 1.5rem;
    }
    .qv-actions .btn,
    .qv-actions .store-badge {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* ==========================================================================
   Utilities & Components (moved out of inline styles)
   ========================================================================== */
.fs-tiny { font-size: 0.65rem !important; }
.fs-xxs { font-size: 0.72rem !important; }
.fs-xs { font-size: 0.78rem !important; }
.ls-wide { letter-spacing: 0.08em; }
.min-w-0 { min-width: 0; }

.text-accent { color: var(--walstar-accent) !important; }
.text-cyan { color: var(--walstar-cyan) !important; }
.text-indigo { color: #2c58b1 !important; }
.text-hero-blue { color: #2453f0; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Small status / eyebrow dots */
.dot {
    display: inline-block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-sm { width: 7px; height: 7px; }
.dot-xs { width: 6px; height: 6px; }
.dot-accent { background-color: var(--walstar-accent); }
.dot-primary { background-color: var(--walstar-primary); }
.dot-slate { background-color: #64748b; }

/* Section shells */
.capabilities-section { background-color: #f0f5fa; }
.showcase-section {
    background: linear-gradient(180deg, rgba(248, 250, 253, 0.6) 0%, #ffffff 50%, rgba(248, 250, 253, 0.6) 100%);
}
.bg-page { background-color: var(--walstar-bg); }
.section-intro { max-width: 680px; }
.section-lead { max-width: 620px; }

.eyebrow-pill {
    background-color: rgba(4, 107, 210, 0.06);
    border: 1px solid rgba(4, 107, 210, 0.14);
}

.badge.badge-accent-soft {
    color: var(--walstar-accent) !important;
    border-color: rgba(232, 120, 23, 0.3) !important;
}

.sort-select-wrap { min-width: 140px; }

.empty-state-icon {
    width: 56px;
    height: 56px;
}

.cta-card-gradient {
    background: linear-gradient(135deg, var(--walstar-secondary), #144690);
}

/* Impact strip accent colours */
.metric-primary { --metric-color: var(--walstar-primary); }
.metric-accent { --metric-color: var(--walstar-accent); }
.metric-cyan { --metric-color: #1ba7c0; }
.metric-indigo { --metric-color: #2c58b1; }

/* Project card metric callout value */
.metric-callout-value {
    color: var(--walstar-accent);
    font-size: 0.88rem;
}
.metric-callout-value-lg { font-size: 0.95rem; }

/* Header & footer branding */
.site-logo {
    max-height: 36px;
    width: auto;
}

.brand-tagline-mini {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
}

.footer-logo-img {
    height: auto;
    max-width: 90px;
    padding: 5px;
}

.footer-logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--walstar-primary), var(--walstar-cyan));
}

.footer-logo-dot {
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: var(--walstar-accent);
    border: 1.5px solid #0a192f;
}

.footer-about { max-width: 420px; }

.footer-heading {
    color: var(--walstar-cyan) !important;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Accessible Project Cards
   The title is a real <button>; its ::after stretches over the whole card so
   the card stays clickable, while inner links sit above it.
   ========================================================================== */
.card-open-btn {
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
}

.card-open-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    border-radius: 26px;
}

/* Keyboard focus: ring around the whole card */
.card-open-btn:focus {
    outline: none;
}

.card-open-btn:focus-visible::after {
    outline: 3px solid var(--walstar-primary);
    outline-offset: -3px;
    box-shadow: 0 0 0 6px rgba(4, 107, 210, 0.18) inset;
}

/* Real links inside a card stay clickable above the stretched button */
.bento-card .card-quick-action {
    z-index: 7;
}

.card-inner-link {
    position: relative;
    z-index: 7;
}

/* ==========================================================================
   Mobile Responsiveness Pass
   ========================================================================== */
@media (max-width: 767.98px) {
    /* Orbit: card labels get a backing so overlapping cards never mix text */
    .orbital-card-meta {
        background: #f6f7fa;
        border-radius: 0 0 8px 8px;
        padding: 5px 4px 2px;
        margin-top: -1px;
    }

    /* Category filters: one swipeable row instead of four wrapped rows */
    .filter-pill-row {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        margin: 0 -12px;
        padding: 2px 12px 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .filter-pill-row::-webkit-scrollbar {
        display: none;
    }
    .filter-pill-row .filter-pill {
        flex: none;
        padding: 0.45rem 1rem;
    }
}

@media (max-width: 575.98px) {
    /* Store badges sit side by side instead of stacking */
    .store-badges .store-badge {
        flex: 1 1 130px;
        min-width: 0;
        justify-content: center;
        padding-left: 0.6rem;
        padding-right: 0.7rem;
    }
    .store-badge-text strong {
        font-size: 0.95rem;
    }
}
