/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 10px var(--accent-glow); }
    50% { box-shadow: 0 0 30px var(--accent-glow), 0 0 10px var(--accent); }
    100% { box-shadow: 0 0 10px var(--accent-glow); }
}

/* 3D Reveal Animation for cards */
.reveal-3d {
    opacity: 0;
    transform: perspective(1000px) rotateX(-20deg) translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-3d.active {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) translateY(0);
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Variety of Slider Animations */
@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-up, .animate-left, .animate-zoom {
    opacity: 0;
}

/* Slide 1: Up */
.swiper-slide-active .animate-up {
    animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Slide 2: Left */
.swiper-slide-active .animate-left {
    animation: fadeLeft 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Slide 3: Zoom */
.swiper-slide-active .animate-zoom {
    animation: zoomIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Delays */
.delay-300 { animation-delay: 0.3s !important; }
.delay-500 { animation-delay: 0.5s !important; }

/* Dark Theme Slide Overrides */
.swiper-slide.is-dark h1, 
.swiper-slide.is-dark p,
.swiper-slide.is-dark .badge {
    color: white !important;
}

.swiper-slide.is-dark .text-accent {
    color: #60A5FA !important; /* Lighter blue for dark bg */
}

/* Fix for the "watermark" issue - more subtle background blend */
.slide-bg {
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Swiper Custom Pagination */
.swiper-pagination-bullet {
    width: 30px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: var(--text-main) !important;
    opacity: 0.2 !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    width: 50px !important;
    background: var(--accent) !important;
    opacity: 1 !important;
}

/* 3D Glass Effect for Swiper Buttons */
.swiper-button-next, .swiper-button-prev {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--accent);
    color: white !important;
    border-color: var(--accent);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

/* AI Detection Animations */
@keyframes scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes detect {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); border-color: rgba(239, 68, 68, 1); }
    70% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); border-color: rgba(239, 68, 68, 0.5); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); border-color: rgba(239, 68, 68, 1); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Tech Node & Data Flow */
.tech-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.tech-node i {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.tech-node:hover i {
    background: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--accent);
}

.tech-node span {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@keyframes dash {
    to {
        stroke-dashoffset: -2000;
    }
}

.path-animate {
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    animation: dash 30s linear infinite;
}
