/* ========================================================
   BUSINESS PAGE — Page-specific CSS
   fasterpen/assets/css/business.css
   ======================================================== */

/* B2B BENTO BOX CARDS (Premium Glassmorphism) */
.b2b-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(25, 39, 78, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.b2b-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(6, 81, 237, 0.1);
    border-color: rgba(6, 81, 237, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.b2b-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(6, 81, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 81, 237, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.b2b-card:hover::before {
    opacity: 1;
}

.b2b-card-content {
    position: relative;
    z-index: 10;
}

/* GENERAL UI STYLES */
.hero-blueprint {
    background-color: #19274e;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.marker-highlight {
    position: relative;
    display: inline-block;
    color: white;
    z-index: 1;
}

.marker-highlight::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: -2%;
    width: 0%;
    height: 30%;
    background-color: #0651ed;
    z-index: -1;
    transform: rotate(-1deg);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.reveal-up.active .marker-highlight::before {
    width: 104%;
}

.magnetic-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.3s ease;
    will-change: transform;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    transform: translate(-50%, -50%) scale(0);
    width: 200%;
    padding-bottom: 200%;
    border-radius: 50%;
    background-color: #00f0ff;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.magnetic-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.magnetic-btn:hover {
    color: #19274e;
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.3);
}

/* GLOBAL NEXUS HOVER EFFECT (For global.gif) */
.nexus-container {
    perspective: 1000px;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.nexus-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.nexus-image {
    transition: filter 0.4s ease, transform 0.4s ease;
    z-index: 2;
    position: relative;
}

.nexus-container:hover .nexus-image {
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.6)) brightness(1.1);
    transform: scale(1.05) translateZ(50px);
}

/* Holographic Rings */
.nexus-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    border: 1px solid rgba(0, 240, 255, 0);
    border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    z-index: 1;
}

.nexus-container:hover .nexus-ring-1 {
    width: 110%;
    height: 110%;
    border-color: rgba(0, 240, 255, 0.3);
    border-width: 2px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    animation: spin-nexus 10s linear infinite;
}

.nexus-container:hover .nexus-ring-2 {
    width: 130%;
    height: 130%;
    border-color: rgba(6, 81, 237, 0.2);
    border-style: dashed;
    animation: spin-nexus 15s linear reverse infinite;
}

@keyframes spin-nexus {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
