/* ==========================================================================
   ArtificialLeg Prosthetics Center - Google Light Material 3 UI Design System
   Bright, Fast, Vibrant Medical Tech Aesthetic (Google Blue, Emerald, Crisp White)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

:root {
    --google-blue: #1a73e8;
    --google-blue-dark: #1557b0;
    --google-blue-light: #e8f0fe;
    --google-blue-surface: #f0f6ff;
    --medical-teal: #0d9488;
    --medical-teal-light: #f0fdfa;
    --emerald-green: #059669;
    --emerald-green-light: #ecfdf5;
    --emerald-accent: #10b981;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --surface-bg: #f8fafc;
    --surface-card: #ffffff;
    --border-subtle: #e2e8f0;
    --border-active: #cbd5e1;
    --shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 12px 30px -4px rgba(26, 115, 232, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
}

/* Base Document Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--surface-bg);
    color: var(--text-primary);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* Ensure media and elements never exceed screen width */
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

/* Urdu Typography Class */
.font-urdu {
    font-family: 'Noto Nastaliq Urdu', 'Plus Jakarta Sans', serif;
    line-height: 2.2;
}

/* Glass Header (Light) */
.glass-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    max-width: 100%;
}

/* Vibrant Light Hero Background */
.hero-light-gradient {
    background: radial-gradient(120% 80% at 50% 0%, #e0f2fe 0%, #f0fdfa 45%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.hero-orb-1 {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.hero-orb-2 {
    position: absolute;
    bottom: 5%;
    right: -5%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

/* Google-Style Cards (Ultra Clean) */
.google-card-light {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.google-card-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #93c5fd;
}

/* Interactive Price Box (Light Modern) */
.calc-card-light {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 1.5px solid #bfdbfe;
    box-shadow: 0 10px 25px -5px rgba(26, 115, 232, 0.1);
    border-radius: 1.5rem;
}

/* Gradient Text */
.text-gradient-blue {
    background: linear-gradient(135deg, #1a73e8 0%, #0284c7 50%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Upgraded Button Colors (Red for Call, Green for WhatsApp, Blue for Book Appointment - 50px Radius) */
.btn-pill-doctor {
    border-radius: 50px !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 14px -2px rgba(239, 68, 68, 0.45) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-pill-doctor:hover, .btn-pill-doctor:active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%) !important;
    box-shadow: 0 6px 20px -2px rgba(220, 38, 38, 0.6) !important;
    transform: translateY(-1px) scale(0.98);
}

.btn-pill-whatsapp {
    border-radius: 50px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 14px -2px rgba(16, 185, 129, 0.45) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-pill-whatsapp:hover, .btn-pill-whatsapp:active {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%) !important;
    box-shadow: 0 6px 20px -2px rgba(16, 185, 129, 0.6) !important;
    transform: translateY(-1px) scale(0.98);
}

.btn-pill-booking {
    border-radius: 50px !important;
    background: linear-gradient(135deg, #0284c7 0%, #1a73e8 50%, #1557b0 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 14px -2px rgba(26, 115, 232, 0.45) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-pill-booking:hover, .btn-pill-booking:active {
    background: linear-gradient(135deg, #0369a1 0%, #1557b0 50%, #1e40af 100%) !important;
    box-shadow: 0 6px 20px -2px rgba(26, 115, 232, 0.6) !important;
    transform: translateY(-1px) scale(0.98);
}

.btn-pill {
    border-radius: 50px !important;
}

/* Button Component Gradients */
.btn-blue {
    border-radius: 50px;
    background: linear-gradient(135deg, #1a73e8 0%, #0284c7 100%);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-blue:hover {
    background: linear-gradient(135deg, #1557b0 0%, #0369a1 100%);
    box-shadow: 0 8px 20px -3px rgba(26, 115, 232, 0.35);
    transform: translateY(-1px);
}

.btn-emerald {
    border-radius: 50px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-emerald:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    box-shadow: 0 8px 20px -3px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

/* Navigation Links */
.nav-link {
    position: relative;
    transition: color 0.2s ease;
    color: #475569;
}

.nav-link:hover {
    color: var(--google-blue);
}

.nav-link.active {
    color: var(--google-blue);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a73e8, #10b981);
    border-radius: 9999px;
}

/* Continuous Infinite Moving Announcement Marquee */
.marquee-wrapper {
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 35%, #065f46 70%, #0f172a 100%);
    background-size: 200% 100%;
    animation: gradientShift 10s ease infinite;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 60;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    white-space: nowrap;
    width: 100%;
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 3rem;
    padding: 0.45rem 1rem;
    min-width: 100%;
    animation: continuousTicker 32s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes continuousTicker {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Mobile Slide-Out Drawer (Guaranteed Bulletproof CSS) */
#mobileMenuDrawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    justify-content: flex-end !important;
    transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out !important;
}

#mobileMenuDrawer.drawer-closed {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#mobileMenuDrawer.drawer-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.drawer-panel {
    width: 85% !important;
    max-width: 320px !important;
    height: 100% !important;
    background: #ffffff !important;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 1.5rem !important;
    overflow-y: auto !important;
    transform: translateX(0) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#mobileMenuDrawer.drawer-closed .drawer-panel {
    transform: translateX(100%) !important;
}

/* Booking Modal Dialog Popup (Universal & Fast) */
#bookingModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#bookingModal.modal-closed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#bookingModal.modal-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-dialog-card {
    background: #ffffff;
    border-radius: 1.5rem;
    max-width: 520px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
    transform: scale(1);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#bookingModal.modal-closed .modal-dialog-card {
    transform: scale(0.92);
}

/* Pulse Badge Animation */
.pulse-live {
    animation: livePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

/* Matrix Table Smooth Scroll */
.matrix-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.matrix-scroll::-webkit-scrollbar {
    height: 6px;
}

.matrix-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.matrix-scroll::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 9999px;
}

/* Mobile Safe Bottom Padding for Sticky Bar */
@media (max-width: 640px) {
    .mobile-safe-bottom {
        padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
    }

    body {
        padding-bottom: 72px;
    }
}