.hero {
    background: transparent;
}

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.wave-container {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.wave {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    filter: blur(1px);
}

.wave-1 {
    top: 20%;
    left: -100px;
    width: 400px;
    height: 100px;
    animation: waveFlow 8s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(120, 219, 255, 0.4), transparent);
}

.wave-2 {
    top: 60%;
    right: -150px;
    width: 500px;
    height: 80px;
    animation: waveFlow 12s ease-in-out infinite reverse;
    background: linear-gradient(90deg, transparent, rgba(255, 119, 198, 0.3), transparent);
}

.wave-3 {
    bottom: 30%;
    left: -200px;
    width: 600px;
    height: 120px;
    animation: waveFlow 15s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(120, 219, 255, 0.2), transparent);
}

@keyframes waveFlow {

    0%,
    100% {
        transform: translateX(-100px) scale(1) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateX(calc(100vw + 200px)) scale(1.2) rotate(180deg);
        opacity: 0.6;
    }
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    animation: floatParticle 15s linear infinite;
}

.particle-triangle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid rgba(255, 255, 255, 0.6);
    background: transparent !important;
}

.particle-circle {
    border-radius: 50%;
}

.particle-rectangle {
    border-radius: 2px;
}

.particle-1 {
    top: 15%;
    left: 10%;
    width: 12px;
    height: 12px;
    animation-delay: 0s;
    animation-duration: 20s;
}

.particle-2 {
    top: 70%;
    right: 15%;
    width: 8px;
    height: 8px;
    animation-delay: 3s;
    animation-duration: 18s;
}

.particle-3 {
    bottom: 25%;
    left: 20%;
    width: 6px;
    height: 6px;
    animation-delay: 6s;
    animation-duration: 22s;
}

.particle-4 {
    top: 40%;
    right: 25%;
    width: 10px;
    height: 10px;
    animation-delay: 9s;
    animation-duration: 16s;
}

.particle-5 {
    top: 55%;
    left: 5%;
    width: 14px;
    height: 14px;
    animation-delay: 12s;
    animation-duration: 19s;
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    25% {
        transform: translate(100px, -80px) rotate(90deg) scale(1.2);
    }

    50% {
        transform: translate(200px, 50px) rotate(180deg) scale(0.8);
        opacity: 0.7;
    }

    75% {
        transform: translate(100px, 100px) rotate(270deg) scale(1.1);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
        opacity: 0;
    }
}

.connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: connectPulse 4s ease-in-out infinite;
}

.connection-1 {
    top: 30%;
    left: 15%;
    width: 200px;
    animation-delay: 0s;
}

.connection-2 {
    top: 45%;
    right: 20%;
    width: 150px;
    animation-delay: 1s;
}

.connection-3 {
    bottom: 35%;
    left: 25%;
    width: 180px;
    animation-delay: 2s;
}

.connection-4 {
    top: 65%;
    right: 30%;
    width: 220px;
    animation-delay: 3s;
}

@keyframes connectPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scaleX(1);
    }

    50% {
        opacity: 0.6;
        transform: scaleX(1.1);
    }
}

.floating-element {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    animation: floatElement 25s ease-in-out infinite;
}

.floating-1 {
    top: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.floating-2 {
    bottom: 20%;
    left: 10%;
    width: 40px;
    height: 40px;
    animation-delay: 5s;
}

.floating-3 {
    top: 50%;
    left: 15%;
    width: 80px;
    height: 80px;
    animation-delay: 10s;
}

.floating-4 {
    bottom: 40%;
    right: 15%;
    width: 50px;
    height: 50px;
    animation-delay: 15s;
}

@keyframes floatElement {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.1;
    }

    25% {
        transform: translate(50px, -30px) rotate(90deg) scale(1.1);
        opacity: 0.3;
    }

    50% {
        transform: translate(30px, 40px) rotate(180deg) scale(0.9);
        opacity: 0.2;
    }

    75% {
        transform: translate(-40px, 20px) rotate(270deg) scale(1.05);
        opacity: 0.25;
    }
}

.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: scanMove 3s linear infinite;
    opacity: 0;
}

.scan-line-1 {
    top: 25%;
    animation-delay: 0s;
}

.scan-line-2 {
    top: 50%;
    animation-delay: 1s;
}

.scan-line-3 {
    top: 75%;
    animation-delay: 2s;
}

@keyframes scanMove {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

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

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease, textGlow 3s ease-in-out infinite alternate;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes textGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }

    to {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    }
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 5px 40px;
    animation: fadeInUp 1s ease 0.3s both;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 40px auto;
    animation: fadeInUp 1s ease 0.6s both;
}

.search-bar {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    color: white;
    font-size: 1.1rem;
    font-weight: 300;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-bar:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.search-bar::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.search-container:hover .search-icon {
    transform: translateY(-50%) scale(1.1);
    color: white;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    animation: fadeInUp 1s ease 0.9s both;
}

.hero .btn {
    position: relative;
    overflow: hidden;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {

    .hero h1,
    .products-hero h1 {
        font-size: 2.5rem;
    }

    .hero p,
    .products-hero p {
        font-size: 1.1rem;
    }

    .grid-lines {
        background-size: 30px 30px;
    }

    .wave,
    .floating-element {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .search-container {
        margin: 30px auto;
    }

    .products-hero {
        padding: 120px 0 60px;
    }
}