/* Custom styles for Audio-Logic Hearing Service */

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

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

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

.animate-float-delayed {
    animation: float-delayed 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Mobile menu transitions */
#mobileMenu {
    transition: transform 0.3s ease-in-out;
}

#mobileMenu.open {
    transform: translateX(0);
}

#mobileMenu.closed {
    transform: translateX(100%);
}

/* Navbar scroll effect */
nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #581c87;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4c1d95;
}

/* Selection color */
::selection {
    background-color: #f5d0fe;
    color: #581c87;
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
    border-color: #f0abfc;
    box-shadow: 0 0 0 3px rgba(240, 171, 252, 0.3);
}

/* Button hover effects */
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(88, 28, 135, 0.4);
}

/* Image hover zoom */
img {
    transition: transform 0.3s ease;
}

/* Print styles */
@media print {
    nav,
    #mobileMenu,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
