/* BountyHunterAI - Geometric Animations */
/* Cool geometric effects to enhance the cybersecurity theme */

/* Floating Geometric Shapes */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.geometric-shape {
    position: absolute;
    border: 1px solid rgba(0, 255, 136, 0.2);
    animation: float 20s infinite linear;
}

.geometric-shape.triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid rgba(0, 255, 136, 0.1);
    border-top: none;
    animation: triangle-float 25s infinite linear;
}

.geometric-shape.square {
    width: 20px;
    height: 20px;
    background: rgba(0, 255, 136, 0.05);
    transform: rotate(45deg);
    animation: square-float 30s infinite linear;
}

.geometric-shape.circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1), transparent);
    animation: circle-float 35s infinite linear;
}

.geometric-shape.hexagon {
    width: 30px;
    height: 17px;
    background: rgba(0, 255, 136, 0.08);
    position: relative;
    margin: 8.5px 0;
}

.geometric-shape.hexagon:before,
.geometric-shape.hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
}

.geometric-shape.hexagon:before {
    bottom: 100%;
    border-bottom: 8.5px solid rgba(0, 255, 136, 0.08);
}

.geometric-shape.hexagon:after {
    top: 100%;
    border-top: 8.5px solid rgba(0, 255, 136, 0.08);
}

/* Animation Keyframes */
@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes triangle-float {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1.2);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes square-float {
    0% {
        transform: translateY(100vh) rotate(45deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(75vh) rotate(135deg) scale(1.1);
    }
    50% {
        transform: translateY(50vh) rotate(225deg) scale(0.9);
    }
    75% {
        transform: translateY(25vh) rotate(315deg) scale(1.3);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(405deg) scale(0.7);
        opacity: 0;
    }
}

@keyframes circle-float {
    0% {
        transform: translateY(100vh) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    30% {
        transform: translateY(70vh) scale(1.5);
    }
    60% {
        transform: translateY(40vh) scale(0.8);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1.2);
        opacity: 0;
    }
}

/* Interactive Grid Pattern */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-pulse 4s ease-in-out infinite;
}

@keyframes grid-pulse {
    0%, 100% {
        opacity: 0.3;
        background-size: 50px 50px;
    }
    50% {
        opacity: 0.1;
        background-size: 60px 60px;
    }
}

/* Particle System */
.particle-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 255, 136, 0.6);
    border-radius: 50%;
    animation: particle-move 15s infinite linear;
}

.particle:nth-child(odd) {
    animation-duration: 20s;
    background: rgba(0, 255, 136, 0.4);
}

.particle:nth-child(3n) {
    animation-duration: 25s;
    background: rgba(0, 255, 136, 0.3);
    width: 3px;
    height: 3px;
}

@keyframes particle-move {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Cybersecurity Circuit Board Pattern */
.circuit-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background-image: 
        /* Horizontal lines */
        linear-gradient(90deg, transparent 24px, rgba(0, 255, 136, 0.1) 25px, rgba(0, 255, 136, 0.1) 26px, transparent 27px),
        /* Vertical lines */
        linear-gradient(transparent 24px, rgba(0, 255, 136, 0.1) 25px, rgba(0, 255, 136, 0.1) 26px, transparent 27px),
        /* Circuit nodes */
        radial-gradient(circle at 25px 25px, rgba(0, 255, 136, 0.2) 2px, transparent 3px);
    background-size: 50px 50px;
    animation: circuit-glow 6s ease-in-out infinite;
}

@keyframes circuit-glow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

/* Matrix-style Data Rain */
.data-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.data-column {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(0, 255, 136, 0.6);
    white-space: nowrap;
    animation: data-fall 10s infinite linear;
}

.data-column:nth-child(odd) {
    animation-duration: 12s;
    color: rgba(0, 255, 136, 0.4);
}

.data-column:nth-child(3n) {
    animation-duration: 8s;
    color: rgba(0, 255, 136, 0.8);
}

@keyframes data-fall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Interactive Hover Effects */
.geometric-interactive {
    position: relative;
    overflow: hidden;
}

.geometric-interactive::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.2), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: -1;
}

.geometric-interactive:hover::before {
    width: 200px;
    height: 200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geometric-shape {
        transform: scale(0.7);
    }
    
    .grid-pattern {
        background-size: 30px 30px;
    }
    
    .circuit-pattern {
        background-size: 30px 30px;
    }
    
    .data-column {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .geometric-shape,
    .particle,
    .data-column {
        animation: none;
    }
    
    .grid-pattern,
    .circuit-pattern {
        animation: none;
        opacity: 0.2;
    }
}

/* Performance optimizations */
.geometric-bg,
.particle-system,
.data-rain {
    will-change: transform;
    backface-visibility: hidden;
}

.geometric-shape,
.particle,
.data-column {
    will-change: transform, opacity;
}