/**
 * InnoSource Technology - Hero Animation Styles
 * Animated orbits, floating icons, particles
 */

/* ============================================
   HERO ANIMATION CONTAINER
   ============================================ */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-animation {
    position: absolute;
    top: 0;
    right: 5%;
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5; /* More transparent so text is readable */
    filter: blur(0.5px); /* Slight blur for better text readability */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-animation-content {
    position: relative;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* ============================================
   GRID BACKGROUND
   ============================================ */

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
}

/* ============================================
   ROTATING ORBITS
   ============================================ */

.orbit-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 213, 111, 0.2);
    will-change: transform;
}

.orbit-1 {
    width: 80%;
    height: 80%;
    border-style: solid;
}

.orbit-2 {
    width: 60%;
    height: 60%;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.1);
}

.orbit-3 {
    width: 40%;
    height: 40%;
    border-style: solid;
}

/* ============================================
   CENTER GLOW ELEMENT
   ============================================ */

.center-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.glow-pulse {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 213, 111, 0.3) 0%, transparent 70%);
    -webkit-filter: blur(30px);
    filter: blur(30px);
    -webkit-animation: glowPulse 5s ease-in-out infinite;
    animation: glowPulse 5s ease-in-out infinite;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}

.center-icon {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--color-bg-darker);
    border: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 40px rgba(0, 213, 111, 0.5),
        inset 0 0 20px rgba(0, 213, 111, 0.1);
    -webkit-animation: centerIconPulse 6s ease-in-out infinite;
    animation: centerIconPulse 6s ease-in-out infinite;
}

.center-icon svg {
    color: var(--color-accent);
    filter: drop-shadow(0 0 8px rgba(0, 213, 111, 0.5));
}

/* Brain AI Animation */
.brain-icon .brain-path {
    stroke: var(--color-accent);
    stroke-width: 1.5;
    fill: none;
    -webkit-animation: brainPulse 3s ease-in-out infinite;
    animation: brainPulse 3s ease-in-out infinite;
}

.brain-icon .neural-node {
    fill: var(--color-accent);
    stroke: none;
}

.brain-icon .node-1 { -webkit-animation: neuralPulse 2s ease-in-out infinite 0s; animation: neuralPulse 2s ease-in-out infinite 0s; }
.brain-icon .node-2 { -webkit-animation: neuralPulse 2s ease-in-out infinite 0.2s; animation: neuralPulse 2s ease-in-out infinite 0.2s; }
.brain-icon .node-3 { -webkit-animation: neuralPulse 2s ease-in-out infinite 0.4s; animation: neuralPulse 2s ease-in-out infinite 0.4s; }
.brain-icon .node-4 { -webkit-animation: neuralPulse 2s ease-in-out infinite 0.6s; animation: neuralPulse 2s ease-in-out infinite 0.6s; }
.brain-icon .node-5 { -webkit-animation: neuralPulse 2s ease-in-out infinite 0.8s; animation: neuralPulse 2s ease-in-out infinite 0.8s; }
.brain-icon .node-6 { -webkit-animation: neuralPulse 2s ease-in-out infinite 1s; animation: neuralPulse 2s ease-in-out infinite 1s; }
.brain-icon .node-7 { -webkit-animation: neuralPulse 2s ease-in-out infinite 1.2s; animation: neuralPulse 2s ease-in-out infinite 1.2s; }
.brain-icon .node-8 { -webkit-animation: neuralPulse 2s ease-in-out infinite 1.4s; animation: neuralPulse 2s ease-in-out infinite 1.4s; }

@-webkit-keyframes brainPulse {
    0%, 100% {
        opacity: 0.6;
        stroke-width: 1.5;
    }
    50% {
        opacity: 1;
        stroke-width: 2;
    }
}

@keyframes brainPulse {
    0%, 100% {
        opacity: 0.6;
        stroke-width: 1.5;
    }
    50% {
        opacity: 1;
        stroke-width: 2;
    }
}

@-webkit-keyframes neuralPulse {
    0%, 100% {
        opacity: 0.4;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        opacity: 1;
        -webkit-transform: scale(1.4);
        transform: scale(1.4);
        -webkit-filter: drop-shadow(0 0 6px var(--color-accent));
        filter: drop-shadow(0 0 6px var(--color-accent));
    }
}

@keyframes neuralPulse {
    0%, 100% {
        opacity: 0.4;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        opacity: 1;
        -webkit-transform: scale(1.4);
        transform: scale(1.4);
        -webkit-filter: drop-shadow(0 0 6px var(--color-accent));
        filter: drop-shadow(0 0 6px var(--color-accent));
    }
}

@-webkit-keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        -webkit-transform: translate(-50%, -50%) scale(1);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        -webkit-transform: translate(-50%, -50%) scale(1.1);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        -webkit-transform: translate(-50%, -50%) scale(1);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        -webkit-transform: translate(-50%, -50%) scale(1.1);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@-webkit-keyframes centerIconPulse {
    0%, 100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }
}

@keyframes centerIconPulse {
    0%, 100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }
}

/* ============================================
   FLOATING TECH ICONS
   ============================================ */

.floating-icon {
    position: absolute;
    transition: transform 0.3s ease;
}

.icon-1 { left: 20%; top: 25%; }
.icon-2 { left: 80%; top: 25%; }
.icon-3 { left: 20%; top: 75%; }
.icon-4 { left: 80%; top: 75%; }

.icon-orbit {
    position: absolute;
    width: 120px;
    height: 120px;
    left: -60px;
    top: -60px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    animation: iconOrbitRotate 40s linear infinite;
}

.icon-badge {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--color-bg-darker);
    border: 1px solid rgba(0, 213, 111, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 213, 111, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-badge:hover {
    box-shadow: 0 0 30px rgba(0, 213, 111, 0.4);
    transform: scale(1.1);
}

.icon-badge:hover .icon-label {
    opacity: 1;
}

.icon-badge svg {
    color: var(--color-accent);
}

.icon-label {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 10px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes iconOrbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   PARTICLES
   ============================================ */

.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
    animation: particleRise linear infinite;
    opacity: 0;
}

@keyframes particleRise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-500px) translateX(var(--drift, 0));
        opacity: 0;
    }
}

.particle:nth-child(odd) {
    --drift: 20px;
}

.particle:nth-child(even) {
    --drift: -20px;
}

/* ============================================
   BINARY RAIN
   ============================================ */

.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
    isolation: isolate;
}

.binary-column {
    position: absolute;
    top: -150px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.25;
    line-height: 1.8;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-animation: binaryFall linear infinite;
    animation: binaryFall linear infinite;
    animation-play-state: running;
    animation-fill-mode: both;
    text-shadow: 0 0 8px rgba(0, 213, 111, 0.4), 0 0 15px rgba(0, 213, 111, 0.2);
    will-change: transform, opacity;
}

@-webkit-keyframes binaryFall {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        -webkit-transform: translateY(600px);
        transform: translateY(600px);
        opacity: 0;
    }
}

@keyframes binaryFall {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        -webkit-transform: translateY(600px);
        transform: translateY(600px);
        opacity: 0;
    }
}

/* ============================================
   SPARKLES
   ============================================ */

.sparkle {
    position: absolute;
    color: var(--color-accent);
    font-size: 12px;
    animation: sparkleAnimation 5s ease-in-out infinite;
    filter: drop-shadow(0 0 4px var(--color-accent));
}

.sparkle-1 {
    left: 15%;
    top: 20%;
    animation-delay: 0s;
}

.sparkle-2 {
    left: 33%;
    top: 45%;
    animation-delay: 0.6s;
}

.sparkle-3 {
    left: 51%;
    top: 70%;
    animation-delay: 1.2s;
}

.sparkle-4 {
    left: 69%;
    top: 20%;
    animation-delay: 1.8s;
}

.sparkle-5 {
    left: 87%;
    top: 45%;
    animation-delay: 2.4s;
}

@keyframes sparkleAnimation {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* ============================================
   STATUS BADGES
   ============================================ */

.status-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-bg-darker);
    border: 1px solid rgba(0, 213, 111, 0.3);
    border-radius: 6px;
    font-size: 10px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: badgeFloat 6s ease-in-out infinite;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.badge-1 {
    top: 30%;
    left: -20px;
    animation-delay: 0s;
}

.badge-2 {
    top: 15%;
    right: 10%;
    animation-delay: 1.3s;
}

.badge-3 {
    bottom: 25%;
    left: 10px;
    animation-delay: 2.6s;
}

.status-badge svg {
    color: var(--color-accent);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-10px) translateX(5px);
    }
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        opacity: 0.5;
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1400px) {
    .hero-animation {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 1200px) {
    .hero-animation {
        width: 300px;
        height: 300px;
        right: 2%;
    }

    .icon-badge {
        width: 44px;
        height: 44px;
    }

    .center-icon {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 992px) {
    .hero-animation {
        width: 260px;
        height: 260px;
    }

    .status-badge {
        font-size: 8px;
        padding: 6px 8px;
    }

    .icon-label {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Mobile-friendly version */
    .hero-animation {
        width: 200px;
        height: 200px;
        right: 50%;
        top: 5%;
        transform: translateX(50%);
        opacity: 0.35; /* More transparent on mobile */
        filter: blur(1px); /* More blur on mobile for better readability */
    }

    .icon-badge {
        width: 36px;
        height: 36px;
    }

    .icon-badge svg {
        width: 16px;
        height: 16px;
    }

    .center-icon {
        width: 52px;
        height: 52px;
    }

    .center-icon svg {
        width: 24px;
        height: 24px;
    }

    .glow-pulse {
        width: 70px;
        height: 70px;
    }

    .status-badge {
        display: none; /* Hide badges on mobile for cleaner look */
    }

    .sparkle {
        font-size: 8px;
    }

    .particle {
        width: 2px;
        height: 2px;
    }

    .binary-column {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    /* Disable most animations for accessibility, but keep binary rain */
    .orbit,
    .floating-icon,
    .sparkle,
    .status-badge,
    .particle {
        animation: none !important;
        transition: none !important;
    }

    /* Binary rain stays animated even with reduced motion */
    /* Users with motion sensitivity can still see the effect subtly */
}
