/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    /* Color Palette */
    --c-pure-white: #FFFFFF;
    --c-soft-white: #F8FAFC;
    --c-very-light-blue: #EFF6FF;
    --c-medical-blue: #3B82F6;
    --c-soft-teal: #14B8A6;
    --c-deep-slate: #1E293B;
    --c-slate-gray: #64748B;
    --c-light-gray: #E2E8F0;

    /* Shadows & Borders */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
    --border-light: 1px solid var(--c-light-gray);
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--c-slate-gray);
    background-color: var(--c-pure-white);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--c-deep-slate);
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section-padding { padding: 5rem 0; }
.bg-soft-white { background-color: var(--c-soft-white); }
.bg-light-blue { background-color: var(--c-very-light-blue); }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-teal { color: var(--c-soft-teal); }
.w-100 { width: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--c-medical-blue);
    color: var(--c-pure-white);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: #2563EB; /* Slightly darker */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--c-medical-blue);
    border: 2px solid var(--c-medical-blue);
}

.btn-outline:hover {
    background-color: var(--c-very-light-blue);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.section-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: var(--c-very-light-blue);
    color: var(--c-medical-blue);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: var(--border-light);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom: transparent;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--c-deep-slate);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
    border-radius: 8px; /* Optional slight rounding for logo */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--c-slate-gray);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--c-medical-blue);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--c-deep-slate);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    background-color: var(--c-pure-white);
    padding: 1.5rem;
    border-top: var(--border-light);
    box-shadow: var(--shadow-md);
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for navbar */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Soft white gradient to ensure text readability while maintaining airy feel */
    background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.3) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 7rem;
    color: var(--c-deep-slate);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--c-slate-gray);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--c-deep-slate);
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.about-blue-panel {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background-color: var(--c-very-light-blue);
    border-radius: var(--radius-lg);
    z-index: 1;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--c-pure-white);
    border: var(--border-light);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--c-soft-teal);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: var(--c-very-light-blue);
    color: var(--c-medical-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    background-color: var(--c-medical-blue);
    color: var(--c-pure-white);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-item {
    background: var(--c-pure-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--c-soft-teal);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: var(--c-medical-blue);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-item strong {
    color: var(--c-deep-slate);
    display: block;
}

.contact-item p {
    margin-bottom: 0;
}

.contact-form-container {
    background-color: var(--c-pure-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: var(--border-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .col {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--c-deep-slate);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: var(--border-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--c-deep-slate);
    transition: var(--transition-fast);
    background-color: var(--c-soft-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--c-medical-blue);
    background-color: var(--c-pure-white);
    box-shadow: 0 0 0 3px var(--c-very-light-blue);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--c-soft-white);
    padding: 4rem 0 2rem;
    border-top: var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--c-deep-slate);
    font-size: 1.25rem;
}

.footer-logo img {
    height: 30px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a:hover {
    color: var(--c-medical-blue);
}

.footer h4 {
    color: var(--c-deep-slate);
    margin-bottom: 1.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: var(--border-light);
    font-size: 0.875rem;
}

/* ==========================================================================
   Modal (Booking)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--c-pure-white);
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: var(--transition-normal);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--c-slate-gray);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--c-deep-slate);
}

.modal-header h2 {
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Chatbot Widget
   ========================================================================== */
.chatbot-widget {
    position: fixed;
    bottom: 5rem;
    right: 10rem;
    z-index: 1500;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--c-medical-blue);
    color: var(--c-pure-white);
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    transition: var(--transition-fast);
    animation: float 3s ease-in-out;
}

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

.chatbot-panel {
    position: absolute;
    bottom: 60px;
    right: 40px;
    width: 400px;
    height: 600px;
    background-color: var(--c-pure-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transform-origin: bottom right;
    transition: var(--transition-normal);
}

.chatbot-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background-color: var(--c-medical-blue);
    color: var(--c-pure-white);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.chat-logo {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--c-pure-white);
    object-fit: contain;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--c-pure-white);
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--c-soft-white);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-msg {
    max-width: 80%;
    min-width: 0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ai-msg {
    background-color: var(--c-pure-white);
    color: var(--c-deep-slate);
    border: var(--border-light);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.user-msg {
    background-color: var(--c-medical-blue);
    color: var(--c-pure-white);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chatbot-suggestions {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background-color: var(--c-pure-white);
    border-top: var(--border-light);
}

.chat-suggestion {
    background-color: var(--c-very-light-blue);
    color: var(--c-medical-blue);
    border: 1px solid var(--c-light-gray);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-suggestion:hover {
    background-color: var(--c-medical-blue);
    color: var(--c-pure-white);
}

.chatbot-input {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    background: white;

}

.chatbot-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem;
    font-size: 0.875rem;
}

.chatbot-input button {
    background: none;
    border: none;
    color: var(--c-medical-blue);
    cursor: pointer;
    padding: 0.5rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.scroll-animate,
.scroll-reveal {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.85s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); /* Ultra-smooth Out-Expo curve */
    will-change: transform, opacity;
}

/* Default directions */
.scroll-animate,
.scroll-reveal.fade-up {
    transform: translateY(40px);
}

.scroll-reveal.fade-down {
    transform: translateY(-40px);
}

.scroll-reveal.fade-left {
    transform: translateX(-40px);
}

.scroll-reveal.fade-right {
    transform: translateX(40px);
}

.scroll-reveal.scale-up {
    transform: scale(0.94);
}

/* Active State to Trigger Animations */
.scroll-animate.animate-visible,
.scroll-reveal.animate-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Staggered Delay Classes (for manual adjustments) */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }
.delay-800 { transition-delay: 0.8s; }

/* Respect User Prefers Reduced Motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate,
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title { font-size: 2.75rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero { padding-top: 60px; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    .hero-overlay { background: rgba(255,255,255,0.85); }
    
    .form-row { flex-direction: column; gap: 0; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .chatbot-panel {
        width: calc(100vw - 2rem);
        right: -1rem;
    }
}
