/* Custom animations and styles for Jhey Cleans HTML site */

/* Hero Orb Animations */
@keyframes orb-float-1 {
    0%, 100% {
        transform: translate(-10%, 20%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(10%, 30%) scale(1.3);
        opacity: 0.6;
    }
}

@keyframes orb-float-2 {
    0%, 100% {
        transform: translate(70%, 60%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(80%, 70%) scale(1.4);
        opacity: 0.5;
    }
}

@keyframes orb-float-3 {
    0%, 100% {
        transform: translate(75%, 10%) scale(1);
        opacity: 0.25;
    }
    50% {
        transform: translate(85%, 20%) scale(1.2);
        opacity: 0.45;
    }
}

@keyframes orb-float-4 {
    0%, 100% {
        transform: translate(5%, 45%) scale(1.1);
        opacity: 0.3;
    }
    50% {
        transform: translate(15%, 55%) scale(1.3);
        opacity: 0.5;
    }
}

@keyframes orb-float-5 {
    0%, 100% {
        transform: translate(40%, 40%) scale(0.9);
        opacity: 0.2;
    }
    50% {
        transform: translate(50%, 50%) scale(1.2);
        opacity: 0.4;
    }
}

@keyframes orb-float-6 {
    0%, 100% {
        transform: translate(10%, 75%) scale(1);
        opacity: 0.35;
    }
    50% {
        transform: translate(20%, 80%) scale(1.5);
        opacity: 0.55;
    }
}

.hero-orb-1 {
    animation: orb-float-1 12s ease-in-out infinite;
}

.hero-orb-2 {
    animation: orb-float-2 15s ease-in-out infinite;
    animation-delay: 1s;
}

.hero-orb-3 {
    animation: orb-float-3 10s ease-in-out infinite;
    animation-delay: 2s;
}

.hero-orb-4 {
    animation: orb-float-4 13s ease-in-out infinite;
    animation-delay: 3s;
}

.hero-orb-5 {
    animation: orb-float-5 11s ease-in-out infinite;
    animation-delay: 4s;
}

.hero-orb-6 {
    animation: orb-float-6 9s ease-in-out infinite;
    animation-delay: 5s;
}

/* About Section Glow Animations */
@keyframes about-glow-1 {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.2) translateX(50px);
        opacity: 0.25;
    }
}

@keyframes about-glow-2 {
    0%, 100% {
        transform: scale(1);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.3) translateX(-30px);
        opacity: 0.15;
    }
}

.about-glow-1 {
    animation: about-glow-1 10s ease-in-out infinite;
}

.about-glow-2 {
    animation: about-glow-2 12s ease-in-out infinite;
    animation-delay: 2s;
}

/* Contact Section Glow Animations */
@keyframes contact-glow-1 {
    0%, 100% {
        transform: translateX(-50%) scale(1) translateY(0);
        opacity: 0.1;
    }
    50% {
        transform: translateX(-50%) scale(1.4) translateY(-20px);
        opacity: 0.3;
    }
}

@keyframes contact-glow-2 {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.05;
    }
    50% {
        transform: translateX(-50px);
        opacity: 0.15;
    }
}

.contact-glow-1 {
    animation: contact-glow-1 8s ease-in-out infinite;
}

.contact-glow-2 {
    animation: contact-glow-2 15s linear infinite;
}

/* Diagonal Sweep Animation */
@keyframes diagonalSweep {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.diagonal-sweep {
    animation: diagonalSweep 10s linear infinite;
}

/* Gallery Sweep Animation */
@keyframes gallerySweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

.gallery-sweep {
    animation: gallerySweep 10s linear infinite;
}

/* Footer Gradient Animation */
@keyframes footerGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.footer-gradient {
    background-size: 200% 100%;
    animation: footerGradient 8s linear infinite;
}

/* Testimonials Infinite Scroll */
@keyframes testimonialScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-316px * 10));
    }
}

.testimonials-track {
    animation: testimonialScroll 60s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

/* Fade In Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-view {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-view.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature Card Hover Effect */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.3);
}

/* Service Card Hover Effect */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, var(--brand-cream) 0%, rgba(43, 107, 158, 0.05) 100%);
}

/* Gallery Item Hover */
.gallery-item img {
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    transition: opacity 0.3s ease;
}

/* Social Icon Hover */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--brand-orange) !important;
    border-color: var(--glow-yellow) !important;
    transform: scale(1.1);
}

/* Button Hover Effects */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-orb {
        width: 200px !important;
        height: 200px !important;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--brand-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-dark-teal);
}
