/* VisionAQ Prints - ASCII Hero Banner Styles */

/* ASCII Hero Banner */
.ascii-hero-banner,
.hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9;
    background: #ffffff !important;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-appearance: none;
}

/* Container for particles */
.ascii-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y pinch-zoom;
    pointer-events: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
}

/* Individual ASCII particles */
.ascii-particle {
    position: absolute;
    font-size: 23px;
    font-weight: bold;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    pointer-events: none;
    contain: layout style paint;
    z-index: 2;
    color: #404040 !important;
}

/* Hero section wrapper */
.hero-section {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 70px;
    padding-bottom: 0;
    background: #ffffff !important;
}

/* ASCII Background Layer */
.ascii-bg-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ascii-bg-particle {
    position: absolute;
    font-size: 12px;
    font-weight: 300;
    color: rgba(150, 150, 150, 0.25);
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: opacity 0.3s ease;
    left: 0;
    top: 0;
    font-family: monospace;
}

/* Desktop background particles */
.ascii-particle.background {
    font-size: 7px;
    font-weight: 500;
    opacity: 1;
    visibility: visible;
}

/* Desktop foreground particles (logo dots) */
.ascii-particle.foreground {
    font-size: 23px !important;
    color: #404040 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure hidden canvas stays hidden */
#textCanvas,
.hero-section canvas,
.hero-banner canvas {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -9999 !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .ascii-hero-banner,
    .hero-banner {
        aspect-ratio: 3/1;  /* Much more horizontal rectangle */
        max-height: 40vh;   /* Reduced from 70vh */
        min-height: 250px;  /* Reduced from 500px */
        overflow: visible;
    }
    
    .ascii-particle {
        font-size: 17px !important;
        font-weight: 900 !important;
        color: #404040 !important;
    }
    
    .ascii-particle.background {
        font-size: 5px !important;
        font-weight: 500 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .ascii-particle.foreground {
        font-size: 17px !important;
        color: #404040 !important;
        opacity: 1 !important;
    }
}