/* 
* Animations CSS for domain.com
* Pure CSS animations with no JavaScript
*/

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Down Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Left Animation */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right Animation */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Border Gradient Animation */
@keyframes borderGradient {
    0% {
        border-image: linear-gradient(90deg, var(--primary), var(--accent)) 1;
    }
    50% {
        border-image: linear-gradient(180deg, var(--accent), var(--secondary)) 1;
    }
    100% {
        border-image: linear-gradient(270deg, var(--secondary), var(--primary)) 1;
    }
}

/* Float Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Rotation Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Gradient Background Animation */
@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animation Classes */

/* Fade In */
.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

/* Fade In Up */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

/* Fade In Down */
.fade-in-down {
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
}

/* Fade In Left */
.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
    opacity: 0;
}

/* Fade In Right */
.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
    opacity: 0;
}

/* Scale In */
.scale-in {
    animation: scaleIn 0.8s ease forwards;
    opacity: 0;
}

/* Pulse */
.pulse {
    animation: pulse 2s infinite;
}

/* Float */
.float {
    animation: float 3s ease-in-out infinite;
}

/* Rotate */
.rotate {
    animation: rotate 10s linear infinite;
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(270deg, var(--primary), var(--accent), var(--secondary), var(--hover));
    background-size: 300% 300%;
    animation: gradientBackground 10s ease infinite;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.delay-900 {
    animation-delay: 0.9s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Staggered Animation for Grid Items */
.benefits-grid .benefit-item:nth-child(1) {
    animation-delay: 0.1s;
}

.benefits-grid .benefit-item:nth-child(2) {
    animation-delay: 0.2s;
}

.benefits-grid .benefit-item:nth-child(3) {
    animation-delay: 0.3s;
}

.benefits-grid .benefit-item:nth-child(4) {
    animation-delay: 0.4s;
}

.benefits-grid .benefit-item:nth-child(5) {
    animation-delay: 0.5s;
}

.benefits-grid .benefit-item:nth-child(6) {
    animation-delay: 0.6s;
}

.benefits-grid .benefit-item:nth-child(7) {
    animation-delay: 0.7s;
}

.benefits-grid .benefit-item:nth-child(8) {
    animation-delay: 0.8s;
}

/* Service Cards Animation */
.services-grid .service-card:nth-child(1) {
    animation-delay: 0.2s;
}

.services-grid .service-card:nth-child(2) {
    animation-delay: 0.4s;
}

.services-grid .service-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* Pricing Cards Animation */
.pricing-grid .pricing-card:nth-child(1) {
    animation-delay: 0.2s;
}

.pricing-grid .pricing-card:nth-child(2) {
    animation-delay: 0.4s;
}

.pricing-grid .pricing-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* Hover Effects */
@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

    .benefit-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

    .btn:hover {
        transform: translateY(-2px);
    }

    .pricing-card:not(.featured):hover {
        transform: translateY(-10px);
    }
}

/* Animation Play State Control */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
