/* NETSPEED INFRASTRUCTURE TOPOLOGY STYLES */

.topology-wrapper {
    --bg-dark: #111827;
    --bg-card: #1f2937;
    --border-color: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --accent-blue: #3b82f6;
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --radius: 12px;

    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    padding: 4rem 2rem;
    border-radius: 24px;
    margin: 2rem 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.topology-container {
    display: grid;
    grid-template-columns: 280px 120px 1fr 60px 260px;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .topology-container {
        grid-template-columns: 200px 80px 1fr 40px 200px;
    }
}

.col-source,
.col-fabric,
.col-dest,
.col-connectors {
    display: flex;
    flex-direction: column;
}

.col-source {
    padding-top: 90px;
}

.col-fabric {
    padding-top: 30px;
    gap: 40px;
}

.col-dest {
    padding-top: 130px;
    gap: 410px;
}

.col-connectors {
    position: relative;
}

.connector-svg {
    width: 100%;
    height: 800px;
    overflow: visible;
}

/* RADICAL DATA FLOW ANIMATION */
.conn-line {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    opacity: 0.7;
    stroke-dasharray: 10, 15;
    animation: flow 1.5s linear infinite;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

@keyframes flow {
    from {
        stroke-dashoffset: 250;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.line-transit {
    stroke: var(--accent-orange);
}

.line-ix {
    stroke: #6366f1;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.netspeed-card {
    text-align: center;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--accent-blue);
}

.ns-logo-main {
    width: 140px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.as-badge {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    animation: ns-pulse 2s infinite ease-in-out;
}

@keyframes ns-pulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    }

    100% {
        opacity: 0.8;
    }
}

.gateway-group {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gateway-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    height: 80px;
}

.provider-info h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

.provider-info p {
    margin: 0.1rem 0 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.provider-icon {
    color: var(--text-secondary);
    opacity: 0.6;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.gateway-card:hover .provider-icon {
    transform: rotate(15deg) scale(1.2);
    color: var(--accent-blue);
    opacity: 1;
}

.border-tt {
    border-left: 5px solid var(--accent-orange);
}

.border-retn {
    border-left: 5px solid var(--accent-green);
}

.border-gtt {
    border-left: 5px solid var(--accent-blue);
}

.ix-gateway-box {
    border-left: 4px solid #6366f1;
    padding-left: 1.25rem;
}

.ix-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.ix-header span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 8px;
    opacity: 0.6;
}

.ix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ix-module {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0, 0, 0, 1);
}

.ix-module:hover {
    background: #1f2937;
    border-color: #6366f1;
    transform: scale(1.03);
}

.ix-icon {
    font-size: 1.1rem;
}

.ix-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.ix-loc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.peering-pool {
    background: rgba(17, 24, 39, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pool-header {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.partner-chip {
    background: #1f2937;
    color: #f9fafb;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #374151;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.partner-chip:hover {
    background: #374151;
    border-color: var(--accent-blue);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.partner-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.dest-card {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dest-card h4 {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.dest-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.dest-icon-circle {
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent-blue);
    font-size: 1.3rem;
}

.pool-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    color: #6366f1;
    font-size: 1.8rem;
}

.tech-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 5rem;
}

@media (max-width: 768px) {
    .tech-feature-grid {
        grid-template-columns: 1fr;
    }
}

.tech-feature-item {
    border-left: 4px solid var(--accent-blue);
    padding-left: 2rem;
    transition: all 0.3s ease;
}

.tech-feature-item:hover {
    transform: translateX(10px);
    border-left-width: 8px;
}

.tech-feature-item h3 {
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.tech-feature-item p {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.bounce-anim {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}