/* ==================== AOS ANIMATIONS CUSTOMIZATION ==================== */
.aos-animate {
    animation-duration: 0.8s;
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale3d(0.95, 0.95, 0.95);
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale3d(1, 1, 1);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== CUSTOM ANIMATIONS ==================== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 102, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
    }
}

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

/* ==================== BUTTON ANIMATIONS ==================== */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 102, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
    }
}

.btn:active {
    animation: buttonPulse 0.6s ease-out;
}

/* ==================== LOADING ANIMATION ==================== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== TEXT ANIMATIONS ==================== */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* ==================== CARD FLIP ANIMATION ==================== */
@keyframes cardFlip {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(180deg);
    }
}

/* ==================== SCROLL-TRIGGERED ANIMATIONS ==================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ==================== NAVBAR ANIMATION ==================== */
.navbar {
    animation: slideDown 0.6s ease-out;
}

/* ==================== HERO TITLE ANIMATION ==================== */
.hero-title {
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    animation: slideUp 0.8s ease-out 0.6s both;
}

/* ==================== FEATURE CARD HOVER ==================== */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.feature-card:hover::before {
    left: 100%;
}

/* ==================== PRODUCT CARD HOVER ==================== */
.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.product-card:hover::after {
    transform: scaleX(1);
}

/* ==================== SECURITY TIMELINE HOVER ==================== */
.timeline-item:hover .marker-dot {
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
    animation: glow 1.5s ease-in-out;
}

/* ==================== ECOSYSTEM CARD ANIMATION ==================== */
.ecosystem-card {
    position: relative;
    overflow: hidden;
}

.ecosystem-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ecosystem-card:hover::before {
    width: 300px;
    height: 300px;
}

/* ==================== TESTIMONIAL SLIDE ANIMATION ==================== */
.swiper-slide-active .testimonial-card {
    animation: slideUp 0.6s ease-out;
}

/* ==================== FAQ ACCORDION ANIMATION ==================== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

/* ==================== COUNTER ANIMATION ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter {
    animation: fadeInUp 0.6s ease-out;
}

/* ==================== SMOOTH TRANSITIONS ==================== */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

a, button, .btn {
    transition-duration: 0.3s;
}

/* ==================== FOCUS STATES ==================== */
button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==================== DARK MODE TRANSITIONS ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== PARALLAX EFFECT ==================== */
.parallax {
    position: relative;
}

.parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-attachment: fixed;
    transform: translateZ(-1px) scale(1.001);
}
