/* Custom Styles for Royal Medical Plaza */

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

/* Navigation Scroll Effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(91, 44, 111, 0.1);
}

.nav-scrolled .nav-text {
    color: #5B2C6F !important;
}

.nav-scrolled .nav-link {
    color: #374151 !important;
}

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

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

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

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

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

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

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

/* Selection Color */
::selection {
    background: #fbbf24;
    color: #5B2C6F;
}

/* Focus Styles */
:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Print Styles */
@media print {
    nav, .scroll-indicator, button {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    .bg-plum-950, .bg-plum-900 {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Pulse Animation for Badge */
@keyframes soft-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-soft-pulse {
    animation: soft-pulse 2s ease-in-out infinite;
}
