/* Prevent scroll issues - minimal fix */
html, body {
    overflow-x: hidden;
}

/* Modern 3D Grid Effect */
.hero-grid-bg {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(60deg) scale(2.5) translateZ(-100px);
    transform-origin: center center;
    animation: grid-animation 25s linear infinite;
    opacity: 0.5;
}

@keyframes grid-animation {
    0% {
        background-position: 0px 0px;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Advanced background effects */
.hero-glow {
    position: absolute;
    width: 80%;
    height: 60%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(29, 78, 216, 0.1) 45%, transparent 70%);
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(50px);
    opacity: 0.5;
    z-index: 1;
    animation: pulse-glow 8s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.4;
        transform: translateX(-50%) scale(0.9);
    }
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1.1);
    }
}

.hero-spotlight {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.07) 0%, transparent 60%);
    opacity: 0.5;
    z-index: 1;
    animation: spotlight-rotate 30s infinite linear;
}

@keyframes spotlight-rotate {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

/* Geometric shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: float-shape 20s ease-in-out infinite;
    z-index: 1;
}

.floating-shape.shape1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    opacity: 0.3;
}

.floating-shape.shape2 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    right: 15%;
    animation-delay: -5s;
    opacity: 0.2;
}

.floating-shape.shape3 {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 15%;
    animation-delay: -10s;
    opacity: 0.15;
}

.floating-shape.shape4 {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 20%;
    animation-delay: -15s;
    opacity: 0.25;
}

@keyframes float-shape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(10px, 15px) rotate(5deg);
    }
    66% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Enhanced primary gradient */
.hero-gradient {
    background: linear-gradient(
        125deg, 
        #0f172a 0%, 
        #1e40af 30%, 
        #3b82f6 50%, 
        #1e40af 70%, 
        #0f172a 100%
    );
    background-size: 200% 200%;
    animation: gradient-animation 15s ease infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animated dots matrix */
.dots-matrix {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    opacity: 0.2;
    z-index: 1;
}

.dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: dot-pulse 4s infinite;
}

@keyframes dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Text enhancements */
.drop-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.drop-shadow-md {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Wave animations */
.wave-path {
    transform: translateY(0);
    will-change: d;
    opacity: 1; /* Ensure initial visibility */
}

/* Wave animations - start the animation immediately */
@keyframes wave {
    0% {
        d: path('M0,90 L0,40 C180,15 360,60 540,60 C720,60 900,10 1080,20 C1260,30 1350,60 1440,55 L1440,90 Z');
    }
    50% {
        d: path('M0,90 L0,40 C180,45 360,20 540,40 C720,60 900,30 1080,40 C1260,50 1350,30 1440,55 L1440,90 Z');
    }
    100% {
        d: path('M0,90 L0,40 C180,15 360,60 540,60 C720,60 900,10 1080,20 C1260,30 1350,60 1440,55 L1440,90 Z');
    }
}

/* Mobile-specific wave animation with enhanced movement */
@media (max-width: 767px) {
    .wave-1,
    .wave-2,
    .wave-3,
    .wave-4 {
        animation-duration: 6s !important; /* Faster animation on mobile */
    }
    
    /* Improved hero section spacing for mobile */
    .hero-gradient {
        padding-top: 4rem;
        padding-bottom: 8rem;
    }
    
    /* Enhance text readability on mobile */
    .hero-gradient h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-gradient p {
        font-size: 1.125rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
}

.animate-wave {
    animation: wave 8s ease-in-out infinite;
}

/* Each wave has slightly different animation phase but starts immediately */
.wave-1 {
    animation-delay: -6s;
}

.wave-2 {
    animation-delay: -5s;
    animation-duration: 10s;
}

.wave-3 {
    animation-delay: -4s;
    animation-duration: 12s;
}

.wave-4 {
    animation-delay: -3s;
    animation-duration: 9s;
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

.shimmer-effect {
    animation: shimmer 4s ease-in-out infinite;
}

/* Enhanced particles */
.particles-container {
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

.particle-1 {
    width: 8px;
    height: 8px;
    left: 10%;
    bottom: 20%;
    animation-duration: 12s;
}

.particle-2 {
    width: 5px;
    height: 5px;
    left: 30%;
    bottom: 30%;
    animation-duration: 15s;
    animation-delay: 1s;
}

.particle-3 {
    width: 6px;
    height: 6px;
    left: 50%;
    bottom: 25%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.particle-4 {
    width: 4px;
    height: 4px;
    left: 70%;
    bottom: 40%;
    animation-duration: 20s;
    animation-delay: 0.5s;
}

.particle-5 {
    width: 7px;
    height: 7px;
    left: 85%;
    bottom: 15%;
    animation-duration: 16s;
    animation-delay: 1.5s;
}

.particle-6 {
    width: 5px;
    height: 5px;
    left: 15%;
    bottom: 50%;
    animation-duration: 14s;
    animation-delay: 3s;
}

/* Data flow animation */
.data-flow-line {
    position: absolute;
    background: linear-gradient(to right, transparent, #3b82f6, transparent);
    animation: flowAnimation 3s infinite linear;
}

@keyframes flowAnimation {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/* Pulse animation for extracted data */
.pulse-animation {
    animation: pulseAnimation 2s infinite ease-in-out;
}

@keyframes pulseAnimation {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* Blinking cursor animation */
.blinking-cursor {
    animation: blinkAnimation 1.5s infinite ease;
}

@keyframes blinkAnimation {
    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
} 