/* Custom Wellness-Tech Styles */

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

/* Water Ripple Background Animation */
.water-ripple-bg {
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 119, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(45, 106, 79, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.05) 0%, transparent 50%);
    animation: ripple 20s ease-in-out infinite;
}

@keyframes ripple {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1) rotate(2deg);
        opacity: 0.4;
    }
}

/* Frequency Wave Pattern for EmGuarde */
.frequency-wave {
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(45, 106, 79, 0.1) 10px,
        rgba(45, 106, 79, 0.1) 12px
    );
    animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 119, 182, 0.1),
        0 10px 10px -5px rgba(0, 119, 182, 0.04);
    border-color: rgba(0, 119, 182, 0.2);
}

/* Floating Animation for Badge */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Scroll Reveal Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #0077B6, #2D6A4F);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #00B4D8, #52B788);
}

/* Form Focus Effects */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}

/* Button Hover Glow */
a[class*="bg-gradient"], button[class*="bg-gradient"] {
    position: relative;
    overflow: hidden;
}

a[class*="bg-gradient"]::before, button[class*="bg-gradient"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

a[class*="bg-gradient"]:hover::before, button[class*="bg-gradient"]:hover::before {
    left: 100%;
}

/* Testimonial Slider Transitions */
#testimonial-track {
    will-change: transform;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Responsive Typography Adjustments */
@media (max-width: 640px) {
    .text-5xl {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
}

/* Sticky Nav Shadow on Scroll */
#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.95);
}

/* Selection Color */
::selection {
    background: rgba(0, 119, 182, 0.2);
    color: #0077B6;
}

/* Loading State for Form */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Testimonial Dot Active State */
.slider-dot.active {
    background-color: #0077B6;
    transform: scale(1.2);
}