/* Matrix Effect Background */
.matrix-hero {
    position: relative;
    overflow: hidden;
}

.matrix-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
}

.matrix-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Animated lines effect */
.matrix-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
    pointer-events: none;
    overflow: hidden;
}

.matrix-line {
    position: absolute;
    left: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        rgba(34, 197, 94, 0) 0%,
        rgba(34, 197, 94, 0.5) 50%,
        rgba(34, 197, 94, 0) 100%
    );
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(34, 197, 94, 0.6);
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.2;
    letter-spacing: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .matrix-line {
        font-size: 10px;
        letter-spacing: 1px;
    }
    
    .matrix-container {
        opacity: 0.08;
    }
}

/* Content positioning */
.matrix-content {
    position: relative;
    z-index: 10;
}

/* Floating animation for individual characters */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.matrix-char {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

/* Pulsing effect for code lines */
@keyframes pulse-code {
    0%, 100% {
        opacity: 0.08;
        text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
    }
    50% {
        opacity: 0.15;
        text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    }
}

.matrix-code-line {
    animation: pulse-code 4s ease-in-out infinite;
}

/* Gradient overlay to blend with blue background */
.matrix-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at 50% 50%,
        rgba(30, 58, 110, 0) 0%,
        rgba(15, 32, 64, 0.3) 100%
    );
    z-index: 5;
    pointer-events: none;
}
