/* Tech-Themed Decorative Elements for Hero Banner */

/* Animated gradient background */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(85, 53, 117, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(85, 53, 117, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
    z-index: 0;
}

/* Floating geometric shapes */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.tech-shape {
    position: absolute;
    opacity: 0.1;
    animation: float-shape 20s ease-in-out infinite;
}

.tech-shape.circle {
    width: 80px;
    height: 80px;
    border: 3px solid #553575;
    border-radius: 50%;
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.tech-shape.square {
    width: 60px;
    height: 60px;
    border: 3px solid #553575;
    transform: rotate(45deg);
    top: 60%;
    right: 25%;
    animation-delay: 2s;
}

.tech-shape.triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #553575;
    top: 40%;
    left: 10%;
    animation-delay: 4s;
}

.tech-shape.hexagon {
    width: 70px;
    height: 40px;
    background: #553575;
    position: absolute;
    top: 70%;
    left: 20%;
    animation-delay: 6s;
}

.tech-shape.hexagon::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 20px solid #553575;
}

.tech-shape.hexagon::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-top: 20px solid #553575;
}

/* Binary code rain effect */
.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.binary-column {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(85, 53, 117, 0.15);
    white-space: nowrap;
    animation: fall linear infinite;
}

.binary-column:nth-child(1) { left: 5%; animation-duration: 15s; animation-delay: 0s; }
.binary-column:nth-child(2) { left: 15%; animation-duration: 18s; animation-delay: 2s; }
.binary-column:nth-child(3) { left: 25%; animation-duration: 12s; animation-delay: 4s; }
.binary-column:nth-child(4) { left: 35%; animation-duration: 20s; animation-delay: 1s; }
.binary-column:nth-child(5) { left: 45%; animation-duration: 16s; animation-delay: 3s; }
.binary-column:nth-child(6) { left: 55%; animation-duration: 14s; animation-delay: 5s; }
.binary-column:nth-child(7) { left: 65%; animation-duration: 19s; animation-delay: 2s; }
.binary-column:nth-child(8) { left: 75%; animation-duration: 17s; animation-delay: 4s; }
.binary-column:nth-child(9) { left: 85%; animation-duration: 13s; animation-delay: 1s; }
.binary-column:nth-child(10) { left: 95%; animation-duration: 21s; animation-delay: 3s; }

/* Grid pattern overlay */
.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(85, 53, 117, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85, 53, 117, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

/* Animated circuit lines */
.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(85, 53, 117, 0.2), transparent);
    height: 2px;
    animation: circuit-flow 8s linear infinite;
}

.circuit-line:nth-child(1) {
    top: 20%;
    width: 300px;
    left: -300px;
    animation-delay: 0s;
}

.circuit-line:nth-child(2) {
    top: 50%;
    width: 400px;
    left: -400px;
    animation-delay: 2s;
}

.circuit-line:nth-child(3) {
    top: 80%;
    width: 250px;
    left: -250px;
    animation-delay: 4s;
}

/* Floating data particles */
.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(85, 53, 117, 0.3);
    border-radius: 50%;
    animation: particle-float 15s ease-in-out infinite;
}

.particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; left: 40%; animation-delay: 2s; }
.particle:nth-child(3) { top: 50%; left: 60%; animation-delay: 4s; }
.particle:nth-child(4) { top: 70%; left: 80%; animation-delay: 6s; }
.particle:nth-child(5) { top: 20%; left: 70%; animation-delay: 1s; }
.particle:nth-child(6) { top: 60%; left: 30%; animation-delay: 3s; }
.particle:nth-child(7) { top: 40%; left: 90%; animation-delay: 5s; }
.particle:nth-child(8) { top: 80%; left: 50%; animation-delay: 7s; }

/* Animations */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

@keyframes float-shape {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.2; }
}

@keyframes fall {
    0% { top: -100%; }
    100% { top: 100%; }
}

@keyframes circuit-flow {
    0% { left: -400px; }
    100% { left: 100%; }
}

@keyframes particle-float {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    25% { transform: translate(20px, -20px); opacity: 0.5; }
    50% { transform: translate(-10px, -40px); opacity: 0.3; }
    75% { transform: translate(30px, -20px); opacity: 0.5; }
}

/* Ensure hero content stays above decorations */
.hero-content {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero::before,
    .hero::after {
        width: 300px;
        height: 300px;
    }
    
    .tech-shape {
        transform: scale(0.7);
    }
    
    .binary-column {
        font-size: 10px;
    }
}
