/* ==========================================================================
   eBSSL Technology Partner Ecosystem Stylesheet (Hub-and-Spoke Layout)
   Features: Dot Grid Background, Hexagonal Cards, Animated Curved SVG Connectors,
   Pulsing Radar Rings, Brand Glow Hover Effects & Responsive Transitions
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Dot Grid Background & Ambient Lighting
   -------------------------------------------------------------------------- */
.ebssl-ecosystem-dot-grid {
    background-image: radial-gradient(rgba(148, 163, 184, 0.42) 1.25px, transparent 1.25px);
    background-size: 26px 26px;
}

/* Radar Pulse Waves radiating from Central Hub */
@keyframes ebsslRadarRipple {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.ebssl-radar-ring-1 {
    animation: ebsslRadarRipple 3.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

.ebssl-radar-ring-2 {
    animation: ebsslRadarRipple 3.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: 1.2s;
}

.ebssl-radar-ring-3 {
    animation: ebsslRadarRipple 3.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    animation-delay: 2.4s;
}

/* --------------------------------------------------------------------------
   2. Central Hub Architecture & Breathing Aura
   -------------------------------------------------------------------------- */
.ebssl-hub-container {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ebssl-hub-container:hover {
    transform: scale(1.03);
}

@keyframes ebsslBreathingGlow {
    0%, 100% {
        box-shadow: 0 0 35px rgba(0, 132, 255, 0.28), 0 0 70px rgba(0, 132, 255, 0.12);
    }
    50% {
        box-shadow: 0 0 55px rgba(0, 132, 255, 0.48), 0 0 100px rgba(16, 185, 129, 0.22);
    }
}

.ebssl-hub-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(0, 132, 255, 0.3);
    animation: ebsslBreathingGlow 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   3. Hexagonal Logo Cards Geometry & Lighting
   -------------------------------------------------------------------------- */
.ebssl-hex-card-wrapper {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
    will-change: transform, box-shadow;
}

.ebssl-hex-card-wrapper:hover {
    transform: translateY(-6px) scale(1.03);
    z-index: 30;
}

/* Hexagon Shape Container */
.ebssl-hex-badge {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.ebssl-hex-card-wrapper:hover .ebssl-hex-badge {
    transform: rotate(3deg) scale(1.05);
}

/* Brand specific glow states on card hover */
.ebssl-hex-card-wrapper[data-brand="aws"]:hover {
    box-shadow: 0 16px 36px -8px rgba(255, 153, 0, 0.32), 0 0 0 1.5px rgba(255, 153, 0, 0.5);
}

.ebssl-hex-card-wrapper[data-brand="oracle"]:hover {
    box-shadow: 0 16px 36px -8px rgba(248, 0, 0, 0.28), 0 0 0 1.5px rgba(248, 0, 0, 0.5);
}

.ebssl-hex-card-wrapper[data-brand="google"]:hover {
    box-shadow: 0 16px 36px -8px rgba(66, 133, 244, 0.32), 0 0 0 1.5px rgba(66, 133, 244, 0.5);
}

.ebssl-hex-card-wrapper[data-brand="security"]:hover {
    box-shadow: 0 16px 36px -8px rgba(16, 185, 129, 0.32), 0 0 0 1.5px rgba(16, 185, 129, 0.5);
}

.ebssl-hex-card-wrapper[data-brand="azure"]:hover {
    box-shadow: 0 16px 36px -8px rgba(0, 137, 214, 0.32), 0 0 0 1.5px rgba(0, 137, 214, 0.5);
}

.ebssl-hex-card-wrapper[data-brand="laravel"]:hover {
    box-shadow: 0 16px 36px -8px rgba(255, 45, 32, 0.32), 0 0 0 1.5px rgba(255, 45, 32, 0.5);
}

.ebssl-hex-card-wrapper[data-brand="react"]:hover {
    box-shadow: 0 16px 36px -8px rgba(97, 218, 251, 0.4), 0 0 0 1.5px rgba(97, 218, 251, 0.6);
}

.ebssl-hex-card-wrapper[data-brand="payments"]:hover {
    box-shadow: 0 16px 36px -8px rgba(139, 92, 246, 0.35), 0 0 0 1.5px rgba(139, 92, 246, 0.5);
}

/* --------------------------------------------------------------------------
   4. Curved Connecting Lines & Data Packet Pulse Keyframes
   -------------------------------------------------------------------------- */
.ebssl-spoke-line-track {
    stroke: rgba(203, 213, 225, 0.75);
    stroke-dasharray: 4 4;
    transition: stroke 0.35s ease, stroke-width 0.35s ease;
}

.ebssl-spoke-line-pulse {
    stroke-dasharray: 18 220;
    stroke-dashoffset: 240;
    animation: ebsslDataPacketFlow 3.2s linear infinite;
    filter: drop-shadow(0 0 5px rgba(0, 132, 255, 0.65));
}

@keyframes ebsslDataPacketFlow {
    0% {
        stroke-dashoffset: 260;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Reverse flow for left side lines */
.ebssl-spoke-line-pulse.pulse-reverse {
    stroke-dashoffset: 0;
    animation: ebsslDataPacketFlowReverse 3.2s linear infinite;
}

@keyframes ebsslDataPacketFlowReverse {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 260;
    }
}

/* When a card or line is active / hovered */
.ebssl-spoke-line-track.line-active {
    stroke: #0084ff !important;
    stroke-dasharray: none !important;
    stroke-width: 2.5px !important;
    filter: drop-shadow(0 0 8px rgba(0, 132, 255, 0.75));
}

.ebssl-spoke-line-pulse.line-active {
    stroke-width: 3.5px !important;
    animation-duration: 1.6s !important;
}

/* Category Filter Inactive Softening */
.ebssl-hex-card-wrapper.card-softened {
    opacity: 0.28;
    filter: grayscale(0.8) blur(0.5px);
    pointer-events: auto;
}

.ebssl-spoke-line-track.line-softened,
.ebssl-spoke-line-pulse.line-softened {
    opacity: 0.15;
}

/* --------------------------------------------------------------------------
   5. Interactive Category Filter Pills
   -------------------------------------------------------------------------- */
.ebssl-eco-tab {
    transition: all 0.25s ease;
}

.ebssl-eco-tab.active {
    background: #0084ff;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 132, 255, 0.38);
    border-color: #0084ff;
}

.ebssl-eco-tab.active .ebssl-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. High-Precision Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .ebssl-spoke-lines-svg {
        display: none;
    }
}
