/* 
=================================================================
FUTURISTIC SVG MOTION (2026 TECHNOLOGY)
Author: Antigravity AI
Description: High-end motion effects inspired by After Effects.
=================================================================
*/

.futuristic-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    /* Reduced by 50px */
    height: 225px;
    /* Reduced to maintain ratio */
    margin: -10px auto 0;
    overflow: hidden;
    z-index: 10;
    border-radius: 12px;
    perspective: 1000px;
    cursor: pointer;
}

/* Magic Reveal Tool Styles */
.magic-reveal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.magic-reveal.revealed {
    opacity: 1;
    visibility: visible;
}


.hero-custom-order-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    /* Smooth follow for parallax */
}

/* Base SVG Layer */
.hero-custom-order-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

/* --- HUD Overlay Layers --- */

/* Scanning HUD Line */
.hud-scanning-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 255, 255, 0.8),
            rgba(0, 255, 255, 1),
            rgba(0, 255, 255, 0.8),
            transparent);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
    z-index: 5;
    pointer-events: none;
    animation: h-scan 4s infinite linear;
    transform: rotate(5deg);
}

@keyframes h-scan {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

/* Tech Grid Overlay */
.tech-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px, 40px 40px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 4;
}

/* Glitch Overlay */
.glitch-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 255, 0.1);
    mix-blend-mode: overlay;
    opacity: 0;
    pointer-events: none;
    z-index: 6;
    animation: glitch-pulse 8s infinite steps(1);
}

@keyframes glitch-pulse {

    0%,
    95%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    96% {
        opacity: 0.8;
        transform: scale(1.02) skewX(2deg);
    }

    97% {
        opacity: 0;
        transform: scale(1);
    }

    98% {
        opacity: 0.5;
        transform: scale(0.98) skewX(-2deg);
    }

    99% {
        opacity: 0.2;
        transform: scale(1.05);
    }
}

/* Digital Noise Particles */
.digital-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/60-lines.png');
    opacity: 0.05;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: color-dodge;
}

/* Floating Corner Accents */
.corner-accent {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 255, 0.4);
    pointer-events: none;
    z-index: 7;
    transition: all 0.5s ease;
}

.corner-tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.futuristic-container:hover .corner-accent {
    width: 30px;
    height: 30px;
    border-color: rgba(0, 255, 255, 1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Interactive Hover Glow */
.futuristic-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 8;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.futuristic-container:hover::after {
    opacity: 1;
}

/* --- Glitch-Out Effect (The 2026 Futuristic Vibe) --- */
#welcome-logos-img {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    /* Squashes the image horizontally while distorting color by default */
    transform: scaleX(2) scaleY(0.01);
    filter: hue-rotate(90deg) brightness(3);
}

.futuristic-container:hover #welcome-logos-img {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
    filter: hue-rotate(0deg) brightness(1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .futuristic-container {
        max-width: 90vw;
        height: auto;
        aspect-ratio: 2/1;
    }
}