/* daddla - GSAP Animations CSS */

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Particle Animation */
@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) translateX(var(--tx));
    }
}

/* Elements with animation classes */
[data-animate="title"] {
    animation: slideUp 0.8s ease-out;
}

[data-animate="subtitle"] {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

[data-animate="stat"] {
    animation: slideUp 0.8s ease-out;
}

[data-animate="image"] {
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

[data-animate="section-title"] {
    animation: slideUp 0.6s ease-out;
}

[data-animate="feature"] {
    animation: slideUp 0.6s ease-out;
}

[data-animate="about-text"] {
    animation: fadeInLeft 0.6s ease-out;
}

[data-animate="about-image"] {
    animation: fadeInRight 0.6s ease-out;
}

[data-animate="blog-card"] {
    animation: slideUp 0.6s ease-out;
}

/* Hover Effects */
.feature-card,
.blog-card,
.stat-card {
    position: relative;
}

.feature-card::before,
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    transition: left 0.5s ease-out;
    pointer-events: none;
}

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Text reveal animation */
.reveal-text {
    overflow: hidden;
}

.reveal-text line {
    animation: slideUp 0.6s ease-out;
}

/* Button Hover Effects */
.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* Lenis smooth scroll active state */
html.lenis {
    height: auto;
}

html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top-color: var(--primary-violet);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
