/**
 * ==============================================================================
 * 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-width: 2.5px;
        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 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: #e4e8f0;
    border: 3.5px solid #ffffff;
    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),
        border-color 0.28s ease;
}

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

.orbital-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    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 */
.bento-thumb-wrapper,
.project-card .card-thumb-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: #0a192f;
    height: 220px;
}

.bento-card-featured .bento-thumb-wrapper {
    height: 100%;
    min-height: 290px;
}

@media (max-width: 991.98px) {
    .bento-card-featured .bento-thumb-wrapper {
        min-height: 220px;
        height: 220px;
    }
}

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

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

/* 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;
    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(16px) scale(0.9);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 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);
}

.back-to-top-btn:hover {
    transform: translateY(-4px) scale(1.06);
    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.96);
}

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