/* Additional advanced visual effects and animations */

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Particle effect overlay */
.particle-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(184, 134, 11, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(74, 144, 164, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(184, 134, 11, 0.2), transparent);
    background-size: 200% 200%, 200% 200%, 300% 300%, 250% 250%;
    background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%;
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particleFloat {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%;
    }

    25% {
        background-position: 100% 0%, 0% 100%, 25% 75%, 100% 0%;
    }

    50% {
        background-position: 100% 100%, 0% 0%, 75% 25%, 100% 100%;
    }

    75% {
        background-position: 0% 100%, 100% 0%, 50% 50%, 0% 0%;
    }
}

/* Glowing line effect */
.glow-line {
    position: relative;
    overflow: hidden;
}

.glow-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bronze), transparent);
    animation: glowSlide 3s ease-in-out infinite;
}

@keyframes glowSlide {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* Pulsing glow effect */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(184, 134, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(184, 134, 11, 0.6);
    }
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Floating animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Grid overlay effect */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 144, 164, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 144, 164, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Video background container */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.video-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(44, 62, 80, 0.85) 0%,
            rgba(44, 62, 80, 0.75) 50%,
            rgba(44, 62, 80, 0.85) 100%);
    z-index: 1;
}

.video-background img,
.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: blur(1px);
}

/* Scan line effect */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100vh);
    }
}

.scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(74, 144, 164, 0.1) 50%,
            transparent 100%);
    height: 100px;
    animation: none;
    pointer-events: none;
    z-index: 2;
    opacity: 0.15;
}

/* Subtle hover lift for buttons */
.btn,
md-filled-button,
md-outlined-button,
md-text-button {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
md-filled-button:hover,
md-outlined-button:hover,
md-text-button:hover {
    transform: translateY(-1px);
}

/* Cursor halo effect */
.cursor-halo {
    position: fixed;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(122, 162, 255, 0.18) 0%, rgba(122, 162, 255, 0) 60%);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    transition: transform 0.06s ease;
    z-index: 9999;
    opacity: 0.6;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(122, 162, 255, 0.7);
    transform: translate(-50%, -50%);
    z-index: 10000;
}

@media (prefers-reduced-motion: reduce) {
    .cursor-halo,
    .cursor-dot {
        display: none;
    }
}

/* Hexagon pattern overlay */
.hex-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0L93.3 25v50L50 100 6.7 75V25z' fill='none' stroke='rgba(74,144,164,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    opacity: 0.2;
    pointer-events: none;
}

/* Data stream effect */
@keyframes dataStream {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.data-stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bronze), transparent);
    animation: none;
    opacity: 0.15;
}

.data-stream:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.data-stream:nth-child(2) {
    left: 30%;
    animation-delay: 1s;
}

.data-stream:nth-child(3) {
    left: 50%;
    animation-delay: 2s;
}

.data-stream:nth-child(4) {
    left: 70%;
    animation-delay: 1.5s;
}

.data-stream:nth-child(5) {
    left: 90%;
    animation-delay: 0.5s;
}

/* Holographic shimmer */
@keyframes holographicShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.holographic-text {
    background: linear-gradient(90deg,
            var(--charcoal) 0%,
            var(--steel-blue) 25%,
            var(--bronze) 50%,
            var(--steel-blue) 75%,
            var(--charcoal) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographicShimmer 3s linear infinite;
}

/* Circuit board pattern */
.circuit-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, transparent 49%, rgba(74, 144, 164, 0.05) 49%, rgba(74, 144, 164, 0.05) 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(74, 144, 164, 0.05) 49%, rgba(74, 144, 164, 0.05) 51%, transparent 51%);
    background-size: 80px 80px;
    pointer-events: none;
}

/* Glitch effect (subtle) */
@keyframes glitch {

    0%,
    90%,
    100% {
        transform: translate(0);
    }

    92% {
        transform: translate(-2px, 1px);
    }

    94% {
        transform: translate(2px, -1px);
    }

    96% {
        transform: translate(-1px, 2px);
    }
}

.glitch-effect {
    animation: glitch 10s infinite;
}

/* Rotating background images */
.hero-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: blur(1px);
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-bg-image.active {
    opacity: 0.35;
}

/* Fix for scroll animations - ensure they appear, not disappear */
.page-transition,
.stagger-item {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.visible,
.stagger-item.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}