/* Animations for domain.com */

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Element Animation Classes */
.animate-fade-in {
    animation: fadeIn 1s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease;
}

.animate-fade-in-down {
    animation: fadeInDown 1s ease;
}

.animate-fade-in-left {
    animation: fadeInLeft 1s ease;
}

.animate-fade-in-right {
    animation: fadeInRight 1s ease;
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Element Hover Animations */
.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hover-color-shift {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.hover-border-grow {
    position: relative;
}

.hover-border-grow::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.hover-border-grow:hover::after {
    width: 100%;
}

/* Button Animation Classes */
.cta-button, .cta-button-large, .submit-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before, .cta-button-large::before, .submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: left 0.7s ease;
}

.cta-button:hover::before, .cta-button-large:hover::before, .submit-button:hover::before {
    left: 100%;
}

/* Service Cards Animation */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Benefit Items Animation */
.benefit-item {
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

/* Form Field Animations */
input, select, textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(19, 62, 124, 0.1);
}

/* Submit Button Gradient Animation */
.submit-button {
    background-size: 200% auto;
    transition: background-position 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-button:hover {
    background-position: right center;
}
