/* Homepage Styles - Optimized for Performance */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.glass-card-light {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.glass-border {
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.pill {
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}
.scroll-shadow::-webkit-scrollbar {
    height: 6px;
}
.scroll-shadow::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    border-radius: 999px;
}

/* Animation Keyframes - Reduced Motion Support */
@media (prefers-reduced-motion: no-preference) {
    @keyframes fade-in-up {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes arrow-slide {
        0% {
            transform: translateX(0);
            opacity: 0.6;
        }
        50% {
            transform: translateX(12px);
            opacity: 1;
        }
        100% {
            transform: translateX(0);
            opacity: 0.6;
        }
    }
    
    @keyframes sparkle {
        0% {
            opacity: 0;
            transform: scale(0) rotate(0deg);
        }
        30% {
            opacity: 1;
            transform: scale(1.2) rotate(120deg);
        }
        60% {
            opacity: 0.8;
            transform: scale(1.5) rotate(240deg);
        }
        100% {
            opacity: 0;
            transform: scale(0) rotate(360deg);
        }
    }
    
    @keyframes sparkle-particle {
        0% {
            opacity: 0;
            transform: translate(0, 0) scale(0);
        }
        50% {
            opacity: 1;
            transform: translate(var(--tx), var(--ty)) scale(1);
        }
        100% {
            opacity: 0;
            transform: translate(var(--tx), var(--ty)) scale(0);
        }
    }
    
    @keyframes dash-animate {
        0% {
            stroke-dashoffset: 0;
        }
        100% {
            stroke-dashoffset: 20;
        }
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
    }
    
    @keyframes glow-pulse {
        0%, 100% {
            box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
        }
        50% {
            box-shadow: 0 0 40px rgba(56, 189, 248, 0.6);
        }
    }
    
    .animate-fade-in-up {
        animation: fade-in-up 0.8s ease-out forwards;
        opacity: 0;
    }
    
    .animate-arrow-slide {
        animation: arrow-slide 2s ease-in-out infinite;
    }
    
    .animate-float {
        animation: float 3s ease-in-out infinite;
    }
    
    .animate-glow-pulse {
        animation: glow-pulse 2s ease-in-out infinite;
    }
    
    .workflow-card {
        opacity: 0;
        animation: fade-in-up 0.6s ease-out forwards;
    }
    
    .workflow-arrow {
        position: absolute;
        right: -40px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        pointer-events: none;
    }
    
    .workflow-arrow svg {
        stroke-dasharray: 8 4;
        animation: dash-animate 1.5s linear infinite, arrow-slide 2s ease-in-out infinite;
    }
    
    .workflow-arrow .sparkle {
        position: absolute;
        right: -12px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        pointer-events: none;
    }
    
    .workflow-arrow .sparkle::before,
    .workflow-arrow .sparkle::after {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(56, 189, 248, 1) 0%, rgba(56, 189, 248, 0.5) 50%, transparent 100%);
        box-shadow: 0 0 12px rgba(56, 189, 248, 0.8), 0 0 24px rgba(56, 189, 248, 0.4);
        animation: sparkle 2s ease-in-out infinite;
    }
    
    .workflow-arrow .sparkle::before {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation-delay: 0s;
    }
    
    .workflow-arrow .sparkle::after {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 12px;
        height: 12px;
        animation-delay: 0.3s;
    }
    
    .workflow-arrow .sparkle-particle {
        position: absolute;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: rgba(56, 189, 248, 1);
        box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
        animation: sparkle-particle 1.5s ease-out infinite;
    }
    
    .workflow-arrow .sparkle-particle:nth-child(1) {
        --tx: 8px;
        --ty: -8px;
        animation-delay: 0.1s;
    }
    
    .workflow-arrow .sparkle-particle:nth-child(2) {
        --tx: 8px;
        --ty: 8px;
        animation-delay: 0.2s;
    }
    
    .workflow-arrow .sparkle-particle:nth-child(3) {
        --tx: -8px;
        --ty: -8px;
        animation-delay: 0.3s;
    }
    
    .workflow-arrow .sparkle-particle:nth-child(4) {
        --tx: -8px;
        --ty: 8px;
        animation-delay: 0.4s;
    }
}

@media (max-width: 768px) {
    .workflow-arrow {
        display: none;
    }
}

/* Video Player Container Styles */
.video-player-container.video {
    position: relative;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.video-player-container.video > div {
    width: 100%;
    position: relative;
}

.video-player-container.video iframe,
.video-player-container.video video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}

@media (max-width: 1024px) {
    .video-player-container.video {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
    }
    
    .video-player-container.video > div {
        border-radius: 0;
    }
}

@media (min-width: 1024px) {
    .video-player-container.video {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Scroll-triggered animations - Lazy loaded */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Data Type Card Active State */
.data-type-card.active-data-type {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(56, 189, 248, 0.6);
}

/* FAQ Styles */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    transition: max-height 0.3s ease-in-out;
}

/* Service Card Hover */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Glow Border */
.glow-border {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}
