/* Brand Section - Center Positioning */
.brand-selector {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    margin: 0 auto 60px auto !important;
    text-align: center !important;
    width: 100% !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

.brand-btn {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    transform: none !important;
}

/* Network Animation Section */
.network-hero-section {
    position: relative;
    width: 100vw;
    height: 120vh; /* Increased from 100vh to 120vh */
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ffffff !important; /* White background */
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

/* Force network animation to show */
.network-hero-section * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Horizontal Button Layout for Network Animation */
.network-hero-section .node-wrapper,
.network-hero-section .network-node,
.network-hero-section .brand-node,
.network-hero-section .node-button {
    display: inline-flex !important;
    position: relative !important;
    float: none !important;
    clear: none !important;
}

/* Horizontal Container for Network Buttons */
.network-hero-section .nodes-horizontal-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    width: 100% !important;
    height: auto !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;
    pointer-events: none !important;
}

/* Individual Network Buttons - Horizontal Layout */
.network-hero-section .node-wrapper {
    display: inline-flex !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 20px !important;
    float: none !important;
    pointer-events: auto !important;
    z-index: 21 !important;
}

/* Network Button Styling */
.network-hero-section .network-node,
.network-hero-section .brand-node,
.network-hero-section .node-button {
    display: inline-flex !important;
    width: 80px !important;
    height: 80px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
    z-index: 21 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure nodes are visible (override any transparent button styling) */
.network-hero-section .network-node,
.network-hero-section .brand-node,
.network-hero-section .node-button {
    background: rgba(108, 117, 125, 0.92) !important;
    border: 1px solid rgba(44, 62, 80, 0.35) !important;
}

.network-hero-section .network-node:hover,
.network-hero-section .brand-node:hover,
.network-hero-section .node-button:hover {
    background: rgba(44, 62, 80, 0.92) !important;
}

.network-hero-section .node-content,
.network-hero-section .node-icon {
    position: relative !important;
    z-index: 22 !important;
}

.network-hero-section .node-icon {
    color: #ffffff !important;
}
.network-hero-section .network-node:hover,
.network-hero-section .brand-node:hover,
.network-hero-section .node-button:hover {
    background: transparent !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Force Horizontal Layout - Override Vertical Stacking */
.network-hero-section .node-wrapper:nth-of-type(1) {
    order: 1 !important;
}

.network-hero-section .node-wrapper:nth-of-type(2) {
    order: 2 !important;
}

.network-hero-section .node-wrapper:nth-of-type(3) {
    order: 3 !important;
}

/* Hide any vertical positioning */
.network-hero-section .node-wrapper[style*="top"],
.network-hero-section .node-wrapper[style*="bottom"] {
    top: auto !important;
    bottom: auto !important;
}

.network-hero-section .node-wrapper[style*="left"],
.network-hero-section .node-wrapper[style*="right"] {
    left: auto !important;
    right: auto !important;
}

.network-container {
    position: relative;
    width: 100%;
    height: 120vh; /* Increased from 100% to 120vh */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh; /* Increased from 100% to 120vh */
    z-index: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ffffff !important; /* White background */
}

/* Horizontal Nodes Container */
.nodes-horizontal-container {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    width: 100% !important;
    height: 100px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 20 !important;
    pointer-events: none !important;
}

/* Node Wrappers - Independent Positioning */
.node-wrapper {
    position: relative !important;
    pointer-events: auto !important;
    z-index: 21 !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
}

.node-wrapper:hover {
    transform: translateX(-50%) scale(1.1) !important;
    z-index: 22 !important;
}

/* Network Nodes */
.network-node {
    position: relative !important;
    width: 80px !important;
    height: 80px !important;
    background: #6c757d !important; /* Grey color */
    border: none !important; /* Border removed */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 21 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.network-node:hover {
    background: #2c3e50 !important; /* Darker grey on hover */
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Node Content */
.node-content {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Node Icons */
.node-icon {
    color: white !important;
    font-size: 24px !important;
    text-align: center !important;
    z-index: 22 !important;
}

/* Node Popups */
.node-popup {
    position: absolute !important;
    top: -80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    border: 2px solid rgba(99, 124, 140, 0.8) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    min-width: 150px !important;
    z-index: 100 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.node-wrapper:hover .node-popup {
    opacity: 1 !important;
    visibility: visible !important;
    top: -90px !important;
}

.node-popup h4 {
    margin: 0 0 8px 0 !important;
    color: #667e91 !important;
    font-size: 14px !important;
    font-weight: bold !important;
}

.node-popup .discover-more-btn {
    display: block !important;
    width: 100% !important;
    padding: 12px 15px !important;
    background: #6c757d !important;
    background-color: #6c757d !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: all 0.3s ease-in-out !important;
    border: none !important;
}

.node-popup .discover-more-btn:hover {
    background: #5a6268 !important;
    background-color: #5a6268 !important;
    transform: scale(1.05) !important;
}

/* Loop Lines SVG Container */
.network-loop-svg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 15 !important;
    pointer-events: none !important;
    overflow: visible !important;
}

/* Loop Line Paths */
.network-loop-line-bg {
    stroke: rgba(64, 64, 64, 0.4) !important;
    stroke-width: 6 !important;
    fill: none !important;
    filter: drop-shadow(0 0 8px rgba(64, 64, 64, 0.3)) !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.network-loop-line-main {
    stroke: rgba(64, 64, 64, 0.8) !important;
    stroke-width: 4 !important;
    fill: none !important;
    filter: drop-shadow(0 0 6px rgba(64, 64, 64, 0.4)) !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    stroke-dasharray: 20 10 !important;
    animation: dashFlow 2s linear infinite !important;
}

.network-loop-line-accent {
    stroke: rgba(96, 96, 96, 0.7) !important;
    stroke-width: 2 !important;
    fill: none !important;
    filter: drop-shadow(0 0 4px rgba(96, 96, 96, 0.5)) !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* Animated Particles */
.network-particle {
    fill: white !important;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) !important;
    animation: particleFlow 3s linear infinite !important;
}

.network-particle-glow {
    fill: rgba(255, 255, 255, 0.9) !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) !important;
    animation: particleGlow 2s ease-in-out infinite !important;
}

.network-particle-accent {
    fill: white !important;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)) !important;
    animation: particleAccent 2.5s linear infinite !important;
}

/* Loop Line Arrows - Completely Removed */
.network-arrow,
.network-arrow-accent,
.network-loop-svg .network-arrow,
.network-loop-svg .network-arrow-accent,
.network-hero-section .network-arrow,
.network-hero-section .network-arrow-accent,
svg .network-arrow,
svg .network-arrow-accent {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    fill: transparent !important;
    stroke: transparent !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* Animations */
@keyframes dashFlow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -30;
    }
}

@keyframes particleFlow {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes particleGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes particleAccent {
    0% {
        opacity: 0.8;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(180deg);
    }
    100% {
        opacity: 0.8;
        transform: scale(0.8) rotate(360deg);
    }
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes arrowAccent {
    0%, 100% {
        opacity: 0.7;
        filter: drop-shadow(0 0 4px rgba(96, 96, 96, 0.6));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(96, 96, 96, 0.9));
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .network-hero-section,
    #networkSection {
        position: relative !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 70vh !important;
        min-height: 420px !important;
        max-height: 720px !important;
        overflow: hidden !important;
        z-index: 0 !important;
    }

    .network-container {
        position: relative !important;
        height: 100% !important;
        width: 100% !important;
        z-index: 0 !important;
    }

    .network-canvas,
    #networkCanvas {
        height: 100% !important;
        width: 100% !important;
        z-index: 0 !important;
    }

    .network-node {
        width: 60px !important;
        height: 60px !important;
    }

    .network-hero-section .network-node,
    .network-hero-section .brand-node,
    .network-hero-section .node-button {
        background: rgba(108, 117, 125, 0.95) !important;
        border: 1px solid rgba(44, 62, 80, 0.35) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;
    }
    
    .node-icon {
        font-size: 18px !important;
    }
    
    .node-popup {
        min-width: 120px !important;
        padding: 8px 12px !important;
    }
    
    .node-popup h4 {
        font-size: 12px !important;
    }
    
    .node-popup .discover-more-btn {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
}

@media (max-width: 480px) {
    .network-node {
        width: 50px !important;
        height: 50px !important;
    }
    
    .node-icon {
        font-size: 16px !important;
    }
    
    .nodes-horizontal-container {
        height: 80px !important;
    }
}

/* Additional Network Styles */
.network-hero-section {
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.node-wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 15;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.network-node {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.8) !important; /* Updated to match design */
    border: 2px solid rgba(96, 96, 96, 0.9) !important; /* Darker border */
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important; /* Enhanced shadow */
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
    transform: scale(1.0) !important;
}

.node-icon {
    font-size: 24px;
    color: white !important; /* Pure white for better contrast */
    transition: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force canvas to show */
#networkCanvas {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

/* Node Popup - Small Rounded Square */
.node-popup {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translateX(-50%) scale(1);
    width: 250px;
    height: 250px;
    background: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease;
    z-index: 99999;
    pointer-events: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

/* Content area with white background */
.popup-content {
    background: #ffffff !important;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Animated Line Below Popup */
.node-popup::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    animation: linePulse 2s infinite;
}

@keyframes linePulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) scaleX(0.5);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
}

/* Show popup on hover - Keep node visible */
.node-wrapper:hover .node-popup {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    transform: translateX(-50%) scale(1.02);
    margin-top: 10px;
}

/* Ensure node stays visible when popup shows */
.node-wrapper:hover .network-node {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1.1);
    z-index: 16;
    pointer-events: auto;
}

/* Node wrapper hover state */
.node-wrapper:hover {
    z-index: 20;
}

.node-wrapper:hover .node-popup::after {
    animation: linePulse 1.5s infinite;
}

.node-wrapper:hover .node-popup h4::after {
    animation: centerLinePulse 1.5s infinite;
}

.node-popup h4 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.4;
    display: block;
    width: 100%;
    white-space: nowrap;
    text-shadow: none;
    background: transparent;
    position: relative;
}

/* Animated Line Between Heading and Button */
.node-popup h4::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    animation: centerLinePulse 2s infinite;
}

@keyframes centerLinePulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) scaleX(0.5);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
}

.node-popup p {
    display: none;
}

.discover-more-btn {
    background: #ffffff;
    color: #000000;
    padding: 10px 15px;
    border-radius: 0;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    letter-spacing: 0.2px;
    text-shadow: none;
}

.discover-more-btn::before {
    display: none;
}

.discover-more-btn span {
    position: relative;
    z-index: 2;
}

.discover-more-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    color: #000000;
    text-decoration: none;
    text-shadow: none;
}

.popup-highlights {
    display: none;
}

.popup-highlight {
    display: none;
}

/* Network Animation Canvas Styles - WHITE BACKGROUND */
#networkCanvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 1 !important;
    background: #ffffff !important; /* White background */
}

/* Enhanced Network Canvas for Animation - WHITE BACKGROUND */
.network-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background: #ffffff !important; /* White background */
}

/* Network Animation Connection Points - WHITE BACKGROUND */
.network-connection-point {
    position: absolute !important;
    width: 12px !important;
    height: 12px !important;
    background: rgba(120, 120, 120, 0.8) !important; /* Darker for white */
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

.network-connection-point::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 6px !important;
    height: 6px !important;
    background: rgba(255, 255, 255, 0.9) !important; /* White center */
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Brand Node Positioning for Animation - WHITE BACKGROUND */
.brand-node {
    position: relative !important;
    z-index: 10 !important;
}

/* Network Animation Enhanced Visibility - WHITE BACKGROUND */
.network-hero-section {
    background: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Canvas Animation Layer - WHITE BACKGROUND */
.canvas-animation-layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background: #ffffff !important; /* White background */
}
