/* ========== CSS VARIABLES & RESET ========== */
:root {
    --primary: #0e6cf0;
    --primary-dark: #0a4fb8;
    --primary-light: #e8f1fd;
    --secondary: #06d6a0;
    --accent: #ff6b6b;
    --dark: #1a1a2e;
    --dark-2: #2d2d44;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.highlight {
    color: var(--primary);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 108, 240, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
    border-radius: 50px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-sm:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 108, 240, 0.35);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1.05rem;
}

/* ========== SECTION HEADER ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== NAVBAR ========== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
    line-height: 1.1;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-2);
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.nav-btn):hover::after,
.nav-links a:not(.nav-btn).active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-btn {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.nav-btn::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ========== POPUP ========== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.popup {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.popup-overlay.active .popup {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.popup-close:hover {
    color: var(--dark);
    transform: rotate(90deg);
}

.popup-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary);
}

.popup h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.popup p {
    color: var(--gray);
    margin-bottom: 24px;
}

.popup-btn {
    padding: 14px 40px;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1628 0%, #1a1a2e 40%, #16213e 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 75px;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    left: 40%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 50px;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Hero Card */
.hero-card {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card-inner {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    color: var(--white);
    width: 300px;
}

.hero-card-inner i {
    color: var(--secondary);
    margin-bottom: 20px;
}

.hero-card-inner h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.hero-card-inner p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 214, 160, 0.2);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.floating-badge {
    position: absolute;
    background: var(--white);
    color: var(--dark);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 6s ease-in-out infinite;
}

.floating-badge i {
    font-size: 1rem;
}

.badge-1 {
    top: 20px;
    left: 0;
    animation-delay: 0s;
}

.badge-1 i { color: #e74c3c; }

.badge-2 {
    bottom: 60px;
    left: -20px;
    animation-delay: 2s;
}

.badge-2 i { color: #e74c3c; }

.badge-3 {
    top: 40%;
    right: 0;
    animation-delay: 4s;
}

.badge-3 i { color: var(--primary); }

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

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
}

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.about-feature h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.about-feature p {
    font-size: 0.8rem;
    color: var(--gray);
}

.about-card-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.about-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.about-card i {
    color: var(--primary);
}

.about-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-card p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ========== DOCTORS ========== */
.doctors {
    background: var(--gray-light);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(30px);
}

.doctor-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.doctor-avatar {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-light), #d0e4fd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.doctor-info h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.doctor-degree {
    font-size: 0.8rem;
    color: var(--gray);
    display: block;
    margin-bottom: 4px;
}

.doctor-specialty {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    display: block;
}

/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ========== APPOINTMENT ========== */
.appointment {
    background: var(--gray-light);
}

.appointment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

.appointment-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--white);
    position: sticky;
    top: 100px;
}

.appointment-info h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.appointment-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.appointment-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.appointment-features i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.appointment-contact {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
}

.appointment-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.emergency-number {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transition);
}

.emergency-number:hover {
    background: rgba(255, 255, 255, 0.25);
}

.appointment-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group label i {
    color: var(--primary);
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--gray-light);
    color: var(--dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B7280' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.file-upload {
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-light);
}

.file-upload:hover,
.file-upload.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-upload-content i {
    color: var(--primary);
    margin-bottom: 10px;
}

.file-upload-content p {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.file-hint {
    font-size: 0.8rem;
    color: var(--gray);
}

.file-list {
    margin-top: 10px;
    text-align: left;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--white);
    border-radius: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
}

.file-item button {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 1.1rem;
}

.form-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--primary-light);
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--primary-dark);
    margin-bottom: 22px;
}

.form-note i {
    margin-top: 2px;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 16px;
}

.form-success h3 {
    margin-bottom: 10px;
}

.form-success p {
    color: var(--gray);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-top: 0;
}

.footer-wave {
    position: relative;
    top: 0;
}

.footer-wave svg {
    display: block;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 40px 0 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo .logo-name {
    color: var(--white);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-grid h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-links a {
    transition: var(--transition);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--primary);
    margin-top: 4px;
}

.contact-item a {
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== CHATBOT ========== */
.chatbot-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(14, 108, 240, 0.4);
    transition: var(--transition);
    position: relative;
}

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

.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 50px;
}

.chatbot-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 360px;
    height: 480px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

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

.chatbot-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-header-info i {
    font-size: 1.4rem;
}

.chatbot-header-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.online-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.online-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    margin-right: 4px;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.chat-message.bot {
    background: var(--gray-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    background: var(--primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.chat-option {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.chat-option:hover {
    background: var(--primary);
    color: var(--white);
}

.chatbot-input {
    padding: 16px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    gap: 8px;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.chatbot-input button {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-input button:hover {
    background: var(--primary-dark);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 36px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .appointment-wrapper {
        grid-template-columns: 1fr;
    }

    .appointment-info {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-btn {
        text-align: center;
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .appointment-form {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .chatbot-window {
        width: calc(100vw - 48px);
        right: -12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-outline {
        color: var(--white);
        border-color: rgba(255,255,255,0.4);
    }

    .popup {
        padding: 36px 24px;
    }
}
