/* ========================================
   VISUAL ENHANCEMENT ANIMATIONS
   Small movements and effects to bring the form to life
   ======================================== */


/* Icon animations for service options */
@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 0 transparent);
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
    }
}

@keyframes pulse-gentle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}


/* Apply animations to elements */
.animate-bounce-subtle {
    animation: bounce-subtle 2s ease-in-out infinite;
}

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

.animate-glow {
    animation: glow 4s ease-in-out infinite;
}

.animate-pulse-gentle {
    animation: pulse-gentle 3s ease-in-out infinite;
}


/* Hover enhancements for buttons */
.service-option:hover .animate-bounce-subtle {
    animation-duration: 1s;
}

.service-option:hover .animate-wiggle {
    animation-duration: 1.5s;
}

.service-option:hover .animate-glow {
    animation-duration: 2s;
}

.service-option:hover .animate-pulse-gentle {
    animation-duration: 1.5s;
}

/* Input field focus animations */
input:focus,
select:focus,
textarea:focus {
    animation: input-focus 0.3s ease-out;
}

@keyframes input-focus {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Button click feedback */
button:active {
    transform: scale(0.98);
    transition: transform 0.1s ease-out;
}

/* Smooth section transitions */
.form-section.visible-section {
    animation: section-appear 0.5s ease-out;
}

@keyframes section-appear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress bar fill animation */
#progress-bar {
    position: relative;
    overflow: hidden;
}

#progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Theme toggle button animations */
#theme-toggle svg {
    transition: all 0.3s ease-in-out;
}

#theme-toggle:hover svg {
    transform: rotate(180deg);
}

/* Logo appearance animation on page load */
.logo-pulse {
    animation: logo-entrance 1s ease-out, pulse-glow 3s ease-in-out infinite 1s;
}

@keyframes logo-entrance {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateY(90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

/* Subtle background gradient animation */
body {
    background-size: 400% 400%;
    animation: gradient-shift 20s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
