/* Custom styles for Prestige Health Care */

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

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

::-webkit-scrollbar-track {
    background: #0a0f1e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4a853, #b8941f);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e0b863, #c9a227);
}

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

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

/* Gold gradient animation for decorative elements */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Mobile menu animations */
#mobile-menu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

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

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu button animation */
.menu-line {
    transform-origin: center;
}

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

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

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

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(10, 15, 30, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Focus visible styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a853;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #ffffff;
}

/* Ensure all text is readable on dark backgrounds */
.text-white {
    color: #ffffff;
}

.text-white\/50 {
    color: rgba(255, 255, 255, 0.5);
}

.text-white\/60 {
    color: rgba(255, 255, 255, 0.6);
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

/* Additional gold color utilities */
.text-gold-400 {
    color: #d4a853;
}

.text-gold-500 {
    color: #c9a227;
}

.bg-gold-400\/5 {
    background-color: rgba(212, 168, 83, 0.05);
}

.bg-gold-400\/10 {
    background-color: rgba(212, 168, 83, 0.1);
}

.bg-gold-400\/20 {
    background-color: rgba(212, 168, 83, 0.2);
}

.border-gold-400\/10 {
    border-color: rgba(212, 168, 83, 0.1);
}

.border-gold-400\/20 {
    border-color: rgba(212, 168, 83, 0.2);
}

.border-gold-400\/30 {
    border-color: rgba(212, 168, 83, 0.3);
}

/* Navy color utilities */
.bg-navy-700\/50 {
    background-color: rgba(17, 27, 51, 0.5);
}

/* Ensure proper contrast for all text */
@media (min-width: 768px) {
    .font-serif {
        text-wrap: pretty;
    }
}

/* Print styles */
@media print {
    .bg-navy-900,
    .bg-navy-800,
    .bg-navy-700 {
        background: white !important;
        color: black !important;
    }
    
    .text-white,
    .text-white\/50,
    .text-white\/60,
    .text-white\/70 {
        color: black !important;
    }
    
    .text-gold-400 {
        color: #333 !important;
    }
}
