/* AOS Custom Animations & Micro-interactions */

[data-aos] {
    pointer-events: auto;
}

.fade-up-custom {
    animation: fadeUpCustom 0.8s ease-out forwards;
}

@keyframes fadeUpCustom {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Counter Animation */
.stat-number.counting {
    transition: all 0.3s ease;
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* Pulse animation for CTA */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(35, 64, 142, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(35, 64, 142, 0);
    }
}

.pulse-cta {
    animation: pulse-glow 2s infinite;
}

/* Shimmer effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Line reveal */
.line-reveal {
    position: relative;
}

.line-reveal::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    animation: fadeUpCustom 0.6s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-100);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Image reveal on load */
img.loaded {
    animation: imageReveal 0.6s ease-out;
}

@keyframes imageReveal {
    from { opacity: 0; filter: blur(10px); }
    to { opacity: 1; filter: blur(0); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    color: white;
    font-size: 1.5rem;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Swiper custom transitions */
.hero-swiper .swiper-slide {
    opacity: 0 !important;
    transition: opacity 1.2s ease;
}

.hero-swiper .swiper-slide-active {
    opacity: 1 !important;
}

/* Accordion smooth */
.accordion-collapse {
    transition: height 0.35s ease;
}

/* Notification toast */
.toast-notification {
    position: fixed;
    top: 100px;
    right: 24px;
    padding: 16px 24px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--success);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.4s ease;
}

.toast-notification.show {
    transform: translateX(0);
}

.rtl .toast-notification {
    right: auto;
    left: 24px;
    border-left: none;
    border-right: 4px solid var(--success);
    transform: translateX(-120%);
}

.rtl .toast-notification.show {
    transform: translateX(0);
}
