/* Animation styles */
.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

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

/* Image loading animation */
.wsite-image img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.wsite-image img.loaded {
    opacity: 1;
}

/* Button hover animations */
#blu a, #gr a, #or a, #red a {
    position: relative;
    overflow: hidden;
}

#blu a::after, #gr a::after, #or a::after, #red a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#blu a:active::after, #gr a:active::after, #or a:active::after, #red a:active::after {
    width: 300px;
    height: 300px;
}

/* Submenu animations - default visible. Use .collapsed or aria-hidden to hide when needed */
.wsite-menu-wrap {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.wsite-menu-wrap.collapsed,
.wsite-menu-wrap[aria-hidden="true"],
.wsite-menu-wrap[hidden] {
    opacity: 0;
    visibility: hidden;
}

/* Header image parallax effect */
.wsite-header {
    background-attachment: fixed;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Loading spinner for images */
.wsite-image {
    position: relative;
}

.wsite-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4c911a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 1;
    transition: opacity 0.3s;
}

.wsite-image.loaded::before {
    opacity: 0;
}

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