/* Custom Styles for Raven House Medical */

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

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(255, 248, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Service Card Hover Effects */
.service-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Testimonial Card Hover */
.testimonial-card {
    transition: all 0.3s ease;
}

/* Mobile Menu Animation */
.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #b82845;
}

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

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

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

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

/* Print Styles */
@media print {
    nav,
    #contact,
    footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Tablet and Desktop Enhancements */
@media (min-width: 768px) {
    .service-card {
        padding: 2.5rem;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1024px) {
    .service-card {
        padding: 3rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid currentColor;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
    }
}
