/* Custom Animations and Effects for uppa.avodahsystems.com */

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

/* Section reveal animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Hover effects */
.btn, .button, input[type="submit"], 
.site-navigation .primary-menu a,
.service-box, .widget-image img,
.entry-content img {
    transition: all 0.3s ease;
}

.btn:hover, .button:hover, 
input[type="submit"]:hover,
.site-navigation .primary-menu a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.service-box:hover, 
.widget-image img:hover,
.entry-content img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Loading animation */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader::after {
    content: "";
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff204e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Menu hover effects */
.site-navigation .primary-menu > li > a {
    position: relative;
    padding: 5px 0;
}

.site-navigation .primary-menu > li > a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff204e;
    transition: width 0.3s ease;
}

.site-navigation .primary-menu > li > a:hover::after {
    width: 100%;
}

/* Button pulse animation */
.pulse-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}