/* Custom CSS for Health Town */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4a90e2;
    --success-color: #28a745;
    --light-blue: #f4f9f9;
    --soft-green: #e8f5e8;
    --text-dark: #222;
    --text-light: #555;
    --gradient-primary: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%);
    --gradient-secondary: linear-gradient(135deg, #f4f9f9 0%, #ffffff 100%);
    --shadow-light: 0 5px 15px rgba(44, 90, 160, 0.1);
    --shadow-medium: 0 10px 30px rgba(44, 90, 160, 0.15);
    --shadow-heavy: 0 20px 40px rgba(44, 90, 160, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-blue);
    padding-bottom: 80px; /* Space for mobile bottom nav */
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 90, 160, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-secondary);
    min-height: 100vh;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-dark);
}

.hero-content h1 {
    color: var(--text-dark) !important;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(255,255,255,0.3);
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    color: var(--text-light) !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255,255,255,0.2);
    margin-bottom: 2rem;
}

.hero-badge {
    background: rgba(44, 90, 160, 0.1);
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.feature-item {
    margin-bottom: 1rem;
}

.feature-item span {
    color: var(--text-dark) !important;
    font-weight: 600;
}

.feature-item i {
    color: var(--success-color) !important;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(var(--shadow-medium));
    animation: float 6s ease-in-out infinite;
}

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

/* General Button Styles */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #34ce57 100%);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border-radius: 50px;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Call Now Button Special Styling */
.call-now-btn {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: none !important;
    font-weight: 700 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: white !important;
}

.call-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.call-now-btn:hover::before {
    left: 100%;
}

.call-now-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34) !important;
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.5) !important;
    color: white !important;
}

.call-now-btn:active {
    transform: translateY(-2px) scale(1.02) !important;
}

.call-now-btn i {
    animation: phoneRing 2s infinite;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
}

.call-now-btn:hover i {
    animation: phoneRingFast 1s infinite;
}

@keyframes phoneRingFast {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-15deg) scale(1.1); }
    75% { transform: rotate(15deg) scale(1.1); }
}

/* Services Section */
.service-item {
    transition: all 0.4s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: scaleY(1);
}

.service-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
}

/* Team Section */
.team-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.team-card.team-clickable {
    cursor: pointer;
    user-select: none;
}

.team-card.team-clickable:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.team-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 4s linear infinite;
}

.team-card:hover::before {
    opacity: 0.1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.team-card.team-clickable:hover .team-avatar {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.team-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.team-designation {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.book-with-doctor {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-card.team-clickable:hover .book-with-doctor {
    opacity: 1;
    transform: translateY(0);
}

.book-with-doctor i {
    font-size: 0.8rem;
}

/* Testimonials Section */
.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-color);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-light);
    position: relative;
    backdrop-filter: blur(10px);
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-left-width: 8px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.testimonial-location {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-item {
    padding: 1rem;
    background: var(--light-blue);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.contact-form {
    border: 1px solid #e9ecef;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.form-select {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
}

/* Footer */
footer {
    background-color: var(--primary-color) !important;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-top: 3px solid var(--primary-color);
    display: flex;
    justify-content: space-around;
    padding: 12px 10px;
    box-shadow: 0 -8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.mobile-bottom-nav .btn {
    flex: 1;
    margin: 0 8px;
    padding: 14px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mobile-bottom-nav .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.mobile-bottom-nav .btn:hover::before {
    left: 100%;
}

.mobile-bottom-nav .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.mobile-bottom-nav .btn-success {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-color: #25D366;
}

.mobile-bottom-nav .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-color: var(--primary-color);
}

.mobile-bottom-nav .btn-success:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    color: white;
    border-color: #128C7E;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.mobile-bottom-nav .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
    border-color: #0056b3;
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background: var(--light-blue);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .team-card,
    .testimonial-card {
        margin-bottom: 1rem;
    }
    
    .mobile-bottom-nav {
        display: block !important;
    }
    
    body {
        padding-bottom: 80px;
    }
}

/* Mobile specific adjustments */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 90px; /* Space for mobile bottom nav */
    }
    
    .mobile-bottom-nav {
        height: 80px;
    }
    
    .mobile-bottom-nav .btn {
        font-size: 0.95rem;
        padding: 16px 10px;
        font-weight: 600;
    }
    
    .hero-section {
        min-height: 90vh;
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.9rem;
        padding: 6px 16px;
        margin-bottom: 1rem;
    }
    
    .feature-item {
        justify-content: center;
        margin-bottom: 0.8rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    /* Mobile Call Now Button */
    .call-now-btn {
        width: 100% !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        font-size: 1.1rem !important;
        padding: 15px 20px !important;
    }
    
    .btn-primary {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}

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

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .mobile-bottom-nav,
    .navbar,
    .btn {
        display: none !important;
    }
}

/* Trust & Care Section */
.trust-care-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.trust-care-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23007bff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%2328a745" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffc107" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23dc3545" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.trust-care-section .container {
    position: relative;
    z-index: 2;
}

.trust-point {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 0.5rem;
}

.trust-point:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.trust-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.trust-point:hover .trust-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Patient Story Styles */
.patient-story {
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
    position: relative;
    overflow: hidden;
}

.patient-story::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,123,255,0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.patient-story:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.story-header i {
    animation: pulse 2s infinite;
}

.story-content {
    position: relative;
    z-index: 2;
}

.author-avatar {
    transition: transform 0.3s ease;
}

.patient-story:hover .author-avatar {
    transform: scale(1.1);
}

/* Emergency Banner Styles */
.emergency-banner {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    animation: emergencyPulse 3s infinite;
    position: relative;
    overflow: hidden;
}

.emergency-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: emergencyShine 2s infinite;
}

@keyframes emergencyPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
        transform: scale(1.02);
    }
}

@keyframes emergencyShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.emergency-banner .btn {
    animation: buttonBounce 2s infinite;
}

@keyframes buttonBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-1px); }
}

/* Mobile Responsiveness for Trust Section */
@media (max-width: 768px) {
    .trust-point {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .trust-point:hover {
        transform: translateY(-5px);
    }
    
    .patient-story {
        margin-bottom: 2rem;
    }
    
    .emergency-banner {
        margin-top: 2rem;
    }
}
.trust-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.trust-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.trust-badge {
    transition: transform 0.3s ease;
}

.trust-badge:hover {
    transform: scale(1.1);
}

/* Emotional Message Styles */
.emotional-message {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.emotional-message:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Trust Stats Styles */
.trust-stats .stat-item {
    transition: all 0.3s ease;
}

.trust-stats .stat-item:hover {
    transform: translateY(-5px);
}

.trust-stats h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Service Item Enhanced Styles */
.service-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.service-item:hover {
    transform: translateY(-3px);
    border-left-color: #007bff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Maharajganj Special Section */
.maharajganj-special {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.maharajganj-special::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Team Feature Styles */
.team-feature {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.team-feature:hover {
    transform: translateY(-3px);
    border-left-color: #28a745;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.team-trust-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

/* Testimonial Stats */
.stat-card {
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-card:nth-child(1):hover { border-top-color: #007bff; }
.stat-card:nth-child(2):hover { border-top-color: #28a745; }
.stat-card:nth-child(3):hover { border-top-color: #ffc107; }
.stat-card:nth-child(4):hover { border-top-color: #dc3545; }

/* Patient Promise Styles */
.patient-promise {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.patient-promise::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.promise-item {
    transition: transform 0.3s ease;
}

.promise-item:hover {
    transform: scale(1.05);
}

/* Contact Section Enhancements */
.contact-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #28a745;
}

.contact-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.contact-item:hover {
    transform: translateX(5px);
    border-left-color: #007bff;
}

.emergency-contact {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
}

.service-area {
    transition: all 0.3s ease;
}

.service-area:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.area-item {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.area-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.special-offer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    position: relative;
    overflow: hidden;
}

.special-offer::before {
    content: '🎁';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.working-hours {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Mobile Responsiveness for New Elements */
@media (max-width: 768px) {
    .trust-stats .stat-item h3 {
        font-size: 2rem;
    }
    
    .maharajganj-special .col-md-8,
    .maharajganj-special .col-md-4 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .patient-promise .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .emergency-contact {
        text-align: center;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .submission-options .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

/* Form Submission Enhancements */
.toast-notification {
    animation: slideInRight 0.3s ease-out;
    z-index: 9999;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.submission-options .btn {
    transition: all 0.3s ease;
    border-radius: 10px;
    font-weight: 600;
    padding: 15px 20px;
    margin-bottom: 10px;
}

.submission-options .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.submission-options .btn-success {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
}

.submission-options .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.submission-options .btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    background: transparent;
}

.submission-options .btn-outline-success:hover {
    background: #28a745;
    color: white;
}

/* Loading state for form buttons */
.btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced modal styling */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    color: #333;
    font-weight: 600;
}

/* Form validation styles */
.form-control:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control:valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Success message styling */
.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 10px;
}

/* WhatsApp button special styling */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-whatsapp:hover::before {
    left: 100%;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Email button styling */
.btn-email {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
}

.btn-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/* Phone button styling */
.btn-phone {
    border: 2px solid #28a745;
    color: #28a745;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-phone:hover {
    background: #28a745;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* Offline Detection Styles for APK */
.offline-indicator {
    animation: slideDownFromTop 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@keyframes slideDownFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.offline-indicator .alert {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: white;
    font-weight: 500;
}

.offline-indicator .btn-light {
    background: rgba(255,255,255,0.9);
    border: none;
    color: #dc3545;
    font-weight: 600;
    transition: all 0.3s ease;
}

.offline-indicator .btn-light:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.offline-indicator .fas {
    animation: pulse 2s infinite;
}

/* APK-specific styles */
.apk-optimized {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Disable form buttons when offline */
.btn[disabled].offline-disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border-color: #6c757d;
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn[disabled].offline-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Connection status indicator */
.connection-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.connection-status.online {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.connection-status.offline {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
    animation: pulse 2s infinite;
}

/* Mobile APK optimizations */
@media (max-width: 768px) {
    .offline-indicator .container {
        padding: 0 15px;
    }
    
    .offline-indicator .col-md-8,
    .offline-indicator .col-md-4 {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .offline-indicator .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .connection-status {
        bottom: 10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    /* APK-specific mobile styles */
    .apk-optimized .btn {
        min-height: 44px; /* Touch-friendly button size */
        font-size: 1rem;
    }
    
    .apk-optimized .form-control {
        min-height: 44px; /* Touch-friendly input size */
        font-size: 1rem;
    }
    
    .apk-optimized .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Prevent text selection in APK mode */
.no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Loading overlay for connection checks */
.connection-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.connection-loading .spinner {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.connection-loading .spinner i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

/* Smooth transitions for APK */
* {
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Hide scrollbars in APK mode for cleaner look */
.apk-mode::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}