/* ===== Prayas Hospital - Global Styles ===== */

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

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===== Modern Animations ===== */
.care-pulse {
    animation: pulse-op 2s infinite ease-in-out;
}

@keyframes pulse-op {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes animate-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: animate-gradient 3s ease infinite;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-right {
    animation: fade-in-right 0.8s ease-out 0.2s both;
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

.hero-gradient {
    background: linear-gradient(135deg, #00897a 0%, #00a896 100%);
}

/* ===== Navigation ===== */
.nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #475569;
    transition: all 0.3s ease;
    padding-bottom: 0.25rem;
}

.nav-link:hover {
    color: #d4587a;
}

.nav-link.active {
    color: #00897a;
    border-bottom: 2px solid #00897a;
}

/* ===== Counter Animation ===== */
.stat-counter {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.stat-counter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== Doctor Filter Buttons ===== */
.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #00897a;
    color: #ffffff;
}

.filter-btn:not(.active) {
    background-color: #e6e8ea;
    color: #3d4947;
}

.filter-btn:not(.active):hover {
    background-color: rgba(0, 137, 122, 0.1);
    color: #00897a;
}

/* ===== Form Focus Styling ===== */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #00897a;
    background-color: #ffffff;
}

/* ===== FAQ Accordion ===== */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

/* ===== Page Loading Transition ===== */
body {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

body.loaded {
    opacity: 1;
}

/* ===== Responsive Fixes ===== */
@media (max-width: 640px) {
    .hero-gradient, .bg-surface-container-lowest {
        word-break: break-word;
    }
}

/* ===== Floating CTA ===== */
.floating-cta {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 40;
    animation: float-bounce 3s ease-in-out infinite;
}

@keyframes float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ===== Bento Gallery Overlays ===== */
.bento-card {
    position: relative;
    overflow: hidden;
}

.bento-card .overlay-text {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ===== Smooth Hover Effects ===== */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* ===== Glass Morphism ===== */
.backdrop-blur-xl {
    backdrop-filter: blur(24px);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #006b5f;
}