/* Custom styles for Neurology Associates of Ormond Beach */

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

/* Custom geometric shapes */
.geometric-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
}

/* Hero background pattern */
.hero-bg-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 42, 67, 0.2) 0%, transparent 50%);
}

/* Service card hover effects */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Geometric accent shapes */
.geometric-accent {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0.2;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom button effects */
button, a {
    transition: all 0.3s ease;
}

/* Form focus states */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 400px;
}

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

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .fixed, nav, button, form {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2.25rem;
        line-height: 1.1;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-midnight-900 {
        background-color: #000 !important;
    }
    
    .text-midnight-300 {
        color: #fff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .service-card:hover {
        transform: none;
    }
    
    button:hover, a:hover {
        transform: none;
    }
}
