/* Hero Tech Visuals - Irregular Neural Network */
.hero-visual-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    perspective: 1000px; /* Enable 3D perspective */
    transform-style: preserve-3d;
}

/* 3D Inner Wrapper for rotation */
.hero-visual-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Smooth follow-up */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 容器悬浮效果 - 整体增强 */
.hero-visual-container:hover .connection-line {
    stroke: rgba(0, 198, 255, 0.5);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 3px rgba(0, 198, 255, 0.4));
}

.hero-visual-container:hover .connection-pulse {
    animation-duration: 1.5s;
    stroke-width: 5;
    filter: drop-shadow(0 0 12px #00C6FF) drop-shadow(0 0 24px rgba(0, 198, 255, 0.8));
}

.hero-visual-container:hover .sparkle {
    animation-duration: 1.5s;
}

.hero-visual-container:hover .floating-particle {
    animation-duration: 5s;
}

/* SVG Connections Layer */
.network-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

/* 基础连接线 - 细线条 */
.connection-line {
    stroke: rgba(0, 198, 255, 0.25);
    stroke-width: 1;
    transition: all 0.3s ease;
}

/* 脉冲粒子效果 - 从中心向外流动 */
.connection-pulse {
    stroke: url(#pulseGradient);
    stroke-width: 4;
    stroke-dasharray: 12 500;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px #00C6FF) drop-shadow(0 0 16px rgba(0, 198, 255, 0.6));
    opacity: 0;
    animation: pulse-travel 2s ease-out infinite;
    transition: filter 0.3s ease, stroke-width 0.3s ease;
}

@keyframes pulse-travel {
    0% { 
        stroke-dashoffset: 0; 
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% { 
        stroke-dashoffset: -500; 
        opacity: 0;
    }
}

/* Icons Common Style */
.tech-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Enhanced 3D Stereo Shadow */
    box-shadow: 
        0 4px 15px rgba(0, 102, 255, 0.2),
        0 8px 25px rgba(0, 102, 255, 0.1),
        inset 0 -2px 5px rgba(0, 102, 255, 0.1);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0, 102, 255, 0.15);
    cursor: pointer;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.tech-icon::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid rgba(0, 198, 255, 0.3);
    pointer-events: none;
    transform: translateZ(-5px);
}

.tech-icon:hover {
    transform: scale(1.3) translateZ(60px) !important;
    box-shadow: 
        0 15px 35px rgba(0, 198, 255, 0.4),
        0 0 50px rgba(0, 102, 255, 0.2),
        inset 0 0 15px rgba(0, 198, 255, 0.2);
    border-color: #00C6FF;
    z-index: 25;
    background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%);
}

.tech-icon:hover img {
    transform: translateZ(25px) scale(1.1);
    filter: drop-shadow(0 10px 10px rgba(0, 198, 255, 0.3));
}

.tech-icon img {
    width: 65%;
    height: 65%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Central Node */
.center-node {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(20px);
    width: 90px;
    height: 90px;
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 
        0 0 40px rgba(0, 102, 255, 0.2),
        0 10px 30px rgba(0, 102, 255, 0.15);
    animation: pulse-center 4s infinite ease-in-out;
    z-index: 15;
}

.center-node:hover {
    transform: translate(-50%, -50%) scale(1.15) translateZ(80px) !important;
    box-shadow: 
        0 20px 60px rgba(0, 198, 255, 0.6),
        0 0 100px rgba(0, 102, 255, 0.3),
        inset 0 0 30px rgba(0, 198, 255, 0.15);
    border-color: #00C6FF;
    animation-play-state: paused;
}

.center-node img {
    width: 70%;
    height: 70%;
}

/* Irregular Positioning with Z-depth */
/* Top Left Area */
.node-1 { top: 15%; left: 20%; transform: translateZ(30px); animation: float-1 10s ease-in-out infinite; }
/* Top Area */
.node-2 { top: 8%; left: 55%; transform: translateZ(-20px); animation: float-2 12s ease-in-out infinite; }
/* Top Right Area */
.node-3 { top: 20%; left: 85%; transform: translateZ(10px); animation: float-3 11s ease-in-out infinite; }
/* Right Area */
.node-4 { top: 50%; left: 90%; transform: translateZ(40px); animation: float-1 13s ease-in-out infinite; }
/* Bottom Right Area */
.node-5 { top: 80%; left: 75%; transform: translateZ(-30px); animation: float-2 10s ease-in-out infinite; }
/* Bottom Area */
.node-6 { top: 88%; left: 45%; transform: translateZ(20px); animation: float-3 12s ease-in-out infinite; }
/* Bottom Left Area */
.node-7 { top: 75%; left: 15%; transform: translateZ(-10px); animation: float-1 11s ease-in-out infinite; }
/* Left Area */
.node-8 { top: 45%; left: 5%; transform: translateZ(35px); animation: float-2 13s ease-in-out infinite; }
/* Upper Left Area */
.node-9 { top: 30%; left: 8%; transform: translateZ(-15px); animation: float-3 11.6s ease-in-out infinite; }
/* Lower Right Area */
.node-10 { top: 65%; left: 88%; transform: translateZ(25px); animation: float-1 12.4s ease-in-out infinite; }
/* Upper Center Area */
.node-11 { top: 5%; left: 35%; transform: translateZ(-25px); animation: float-2 10.6s ease-in-out infinite; }

/* Irregular Floating Animations (Now including 3D drift) */
@keyframes float-1 {
    0%, 100% { transform: translateY(0) translateX(0) translateZ(30px) rotate(0deg); }
    33% { transform: translateY(-10px) translateX(5px) translateZ(45px) rotate(2deg); }
    66% { transform: translateY(5px) translateX(-8px) translateZ(20px) rotate(-1deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0) translateX(0) translateZ(-20px) rotate(0deg); }
    33% { transform: translateY(-8px) translateX(-5px) translateZ(-5px) rotate(-2deg); }
    66% { transform: translateY(12px) translateX(8px) translateZ(-35px) rotate(1deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0) translateX(0) translateZ(10px) rotate(0deg); }
    33% { transform: translateY(-12px) translateX(10px) translateZ(25px) rotate(3deg); }
    66% { transform: translateY(8px) translateX(-12px) translateZ(-5px) rotate(-2deg); }
}

@keyframes pulse-center {
    0% { box-shadow: 0 0 30px rgba(0, 102, 255, 0.2); border-color: rgba(0, 102, 255, 0.3); }
    50% { box-shadow: 0 0 60px rgba(0, 102, 255, 0.5); border-color: rgba(0, 102, 255, 0.8); }
    100% { box-shadow: 0 0 30px rgba(0, 102, 255, 0.2); border-color: rgba(0, 102, 255, 0.3); }
}

/* Star/Sparkle Effect */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #00C6FF 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 2.5s infinite;
    box-shadow: 0 0 10px #00C6FF, 0 0 20px rgba(0, 198, 255, 0.5);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 容器悬浮时闪烁增强 */
.hero-visual-container:hover .sparkle {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 15px #00C6FF, 0 0 30px rgba(0, 198, 255, 0.7);
}

.sparkle-1 { top: 18%; left: 28%; animation-delay: 0s; }
.sparkle-2 { top: 72%; left: 78%; animation-delay: 0.8s; }
.sparkle-3 { top: 38%; left: 12%; animation-delay: 1.6s; }
.sparkle-4 { top: 12%; left: 62%; animation-delay: 0.4s; }
.sparkle-5 { top: 82%; left: 22%; animation-delay: 1.2s; }
.sparkle-6 { top: 28%; left: 88%; animation-delay: 2s; }
.sparkle-7 { top: 58%; left: 5%; animation-delay: 0.6s; }
.sparkle-8 { top: 5%; left: 45%; animation-delay: 1.4s; }

@keyframes twinkle {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.3);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
        box-shadow: 0 0 15px #00C6FF, 0 0 30px rgba(0, 198, 255, 0.8);
    }
}

/* 浮动粒子效果 */
.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00C6FF;
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 8s infinite linear;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* 容器悬浮时浮动粒子增强 */
.hero-visual-container:hover .floating-particle {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 8px #00C6FF;
}

.particle-1 { top: 50%; left: 50%; animation-delay: 0s; --end-x: -120px; --end-y: -150px; }
.particle-2 { top: 50%; left: 50%; animation-delay: 0.7s; --end-x: 100px; --end-y: -180px; }
.particle-3 { top: 50%; left: 50%; animation-delay: 1.4s; --end-x: 180px; --end-y: 50px; }
.particle-4 { top: 50%; left: 50%; animation-delay: 2.1s; --end-x: 120px; --end-y: 160px; }
.particle-5 { top: 50%; left: 50%; animation-delay: 2.8s; --end-x: -80px; --end-y: 180px; }
.particle-6 { top: 50%; left: 50%; animation-delay: 3.5s; --end-x: -170px; --end-y: 80px; }
.particle-7 { top: 50%; left: 50%; animation-delay: 4.2s; --end-x: -150px; --end-y: -80px; }
.particle-8 { top: 50%; left: 50%; animation-delay: 4.9s; --end-x: 60px; --end-y: -120px; }

@keyframes float-particle {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    90% {
        opacity: 0.6;
        transform: translate(calc(-50% + var(--end-x)), calc(-50% + var(--end-y))) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--end-x)), calc(-50% + var(--end-y))) scale(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-visual-container {
        width: 320px;
        height: 320px;
        transform: scale(0.9);
    }
    .tech-icon { width: 40px; height: 40px; }
    .center-node { width: 70px; height: 70px; }
}
