/* ============================================
   Bonnie Koss Medical & Health — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(251, 191, 36, 0.25);
    color: #f5eef8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1e0c19;
}
::-webkit-scrollbar-thumb {
    background: #6b2f5b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9b4d96;
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(30, 12, 25, 0.92);
    backdrop-blur: 20px;
    border-bottom: 1px solid rgba(107, 47, 91, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Floating Cards Animation */
.floating-card {
    animation: float1 4s ease-in-out infinite;
}

.floating-card2 {
    animation: float2 5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Service Cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, background-color 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Reveals */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Mobile Menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* Input Focus */
input:focus, textarea:focus {
    background: rgba(30, 12, 25, 0.6);
}

/* Button Ripple */
button {
    position: relative;
    overflow: hidden;
}

/* Decorative Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(155, 77, 150, 0.3), transparent);
}

/* Image Hover */
.rounded-3xl.overflow-hidden img {
    transition: transform 0.7s ease;
}

.rounded-3xl.overflow-hidden:hover img {
    transform: scale(1.03);
}

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

/* Focus Visible */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}
