/* Custom styles for Therapeutic Optometrist */

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

/* Hero orbs animation */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.2) 0%, transparent 70%);
    top: 10%;
    left: -5%;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    bottom: 20%;
    right: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 30%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Scroll reveal base */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .hero-orb {
        animation: none;
    }
    .scroll-reveal {
        transition: none;
    }
    .service-card, .scroll-reveal {
        transform: none !important;
    }
}

/* Service card hover */
.service-card {
    transform: translateY(0);
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(123, 45, 142, 0.1);
}

/* Focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5fb;
}
::-webkit-scrollbar-thumb {
    background: #d7a8e0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a34aad;
}

/* Image aspect ratio helpers */
img {
    display: block;
    max-width: 100%;
    height: auto;
}
