/* ==============================================
   Index Page Specific Styles
   Hero Section - Space Theme & Honeycomb Animation
   ============================================== */

/* Hero Section - Space Theme */
.hero-section {
    background: radial-gradient(ellipse at center, rgba(26, 26, 42, 1) 0%, rgba(10, 10, 15, 1) 100%);
}

/* Honeycomb Background */
.honeycomb-bg-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.honeycomb-bg-svg {
    width: 100%;
    height: auto;
    opacity: 0;
    animation: honeycombFadeIn 1.5s ease-out 0.2s forwards;
}

@keyframes honeycombFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

/* Honeycomb Main Path */
.honeycomb-main {
    fill: none;
    stroke: url(#honeycomb-gradient);
    stroke-width: 3;
    filter: url(#soft-glow);
}

/* Honeycomb Glow */
.honeycomb-glow {
    fill: none;
    stroke: url(#honeycomb-gradient);
    stroke-width: 10;
    filter: blur(15px);
    opacity: 0.4;
}

/* Flowing Light Effect */
.honeycomb-flow {
    fill: none;
    stroke: url(#flow-gradient);
    stroke-width: 5;
    stroke-dasharray: 100 500;
    animation: flowLight 15s linear infinite;
}

@keyframes flowLight {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -20000;
    }
}

/* Nodes */
.node {
    fill: #FFD100;
    opacity: 0;
    animation: nodeAppear 0.6s ease-out forwards;
}

.node:nth-child(1) { animation-delay: 1.0s; }
.node:nth-child(2) { animation-delay: 1.3s; }
.node:nth-child(3) { animation-delay: 1.6s; }
.node:nth-child(4) { animation-delay: 1.9s; }
.node:nth-child(5) { animation-delay: 2.2s; }
.node:nth-child(6) { animation-delay: 2.5s; }
.node:nth-child(7) { animation-delay: 2.8s; }
.node:nth-child(8) { animation-delay: 3.1s; }

@keyframes nodeAppear {
    0% {
        opacity: 0;
        r: 0;
    }
    60% {
        opacity: 1;
        r: 50;
    }
    100% {
        opacity: 1;
        r: 35;
    }
}

/* Node Pulse */
.node-pulse {
    fill: none;
    stroke: #FFDA33;
    stroke-width: 2;
    opacity: 0;
    animation: nodePulseAnim 3s ease-in-out infinite;
}

@keyframes nodePulseAnim {
    0%, 100% {
        opacity: 0;
        r: 35;
        stroke-width: 2;
    }
    50% {
        opacity: 0.6;
        r: 60;
        stroke-width: 4;
    }
}

/* Node Glow */
.node-glow {
    fill: #FFD100;
    filter: blur(15px);
    opacity: 0;
    animation: nodeGlowAnim 3s ease-in-out infinite;
}

@keyframes nodeGlowAnim {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD100;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 3s; }
.particle:nth-child(3) { left: 50%; animation-delay: 6s; }
.particle:nth-child(4) { left: 70%; animation-delay: 9s; }
.particle:nth-child(5) { left: 90%; animation-delay: 12s; }

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.8;
        transform: translateY(80vh) scale(1);
    }
    90% {
        opacity: 0.8;
        transform: translateY(20vh) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
}

@media (max-width: 768px) {
    .honeycomb-bg-container {
        width: 200%;
        opacity: 0.25;
    }
}
