@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --card: rgba(255, 255, 255, 0.9);
  --primary: #0284c7;
  --primary-2: #0ea5e9;
  --border: rgba(226, 232, 240, 0.8);
  --shadow: 0 20px 40px rgba(14, 165, 233, 0.06), 0 1px 3px rgba(0,0,0,0.02);
  --glass: blur(16px);
  --font: 'Outfit', sans-serif;
}

body.dark {
  --bg: #0b1120;
  --text: #f8fafc;
  --muted: #94a3b8;
  --card: rgba(30, 41, 59, 0.7);
  --primary: #38bdf8;
  --primary-2: #7dd3fc;
  --border: rgba(51, 65, 85, 0.5);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); overflow-x: hidden; transition: background 0.3s, color 0.3s; }

a { text-decoration: none; color: inherit; }
.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head p { color: var(--primary); font-weight: 700; margin: 0 0 12px; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem; }
.section-head h2 { margin: 0; font-size: 2.5rem; font-weight: 800; color: var(--text); }

.navbar { position: sticky; top: 0; z-index: 50; backdrop-filter: var(--glass); background: rgba(248, 250, 252, 0.7); border-bottom: 1px solid var(--border); transition: all 0.3s; }
body.dark .navbar { background: rgba(11, 17, 32, 0.7); }
.nav-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.8rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--primary); }
.menu { display: flex; gap: 32px; font-weight: 500; }
.menu a { position: relative; padding: 5px 0; color: var(--text); transition: color 0.2s; }
.menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s; }
.menu a:hover::after { width: 100%; }
.menu a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 16px; align-items: center; }

.btn { border: 0; border-radius: 99px; padding: 12px 24px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 1rem; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 20px rgba(2, 132, 199, 0.25); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(2, 132, 199, 0.35); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--card); transform: translateY(-2px); }
.btn-soft { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.btn-soft:hover { transform: translateY(-3px); }

.hero { padding: 100px 0 60px; min-height: calc(100vh - 80px); display: flex; align-items: center; overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; background: var(--primary-2); opacity: 0.1; border-radius: 50%; filter: blur(80px); z-index: -1; }
body.dark .hero::before { opacity: 0.15; }
.hero-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin: 16px 0; line-height: 1.1; font-weight: 800; }
.hero-content h1 span { background: linear-gradient(135deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { color: var(--muted); font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; max-width: 480px; }
.tag { display: inline-block; padding: 6px 16px; border-radius: 999px; background: rgba(2, 132, 199, 0.1); color: var(--primary); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.5px; text-transform: uppercase; }
.hero-cta { display: flex; gap: 16px; margin: 30px 0; }
.hero-meta { display: flex; gap: 24px; color: var(--muted); font-weight: 600; margin-top: 40px; font-size: 0.95rem; }
.hero-meta span { display: flex; align-items: center; gap: 8px; }

.hero-visual { position: relative; border-radius: 30px; border: 1px solid var(--border); overflow: visible; box-shadow: var(--shadow); height: 500px; }
.hero-img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.floating-badge { position: absolute; bottom: -20px; left: -20px; background: var(--card); backdrop-filter: var(--glass); padding: 16px 24px; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; animation: float 6s ease-in-out infinite; z-index: 2; }
.badge-icon { width: 48px; height: 48px; background: #fbbf24; color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.2rem; box-shadow: 0 8px 16px rgba(251, 191, 36, 0.3); }
.badge-text strong { display: block; font-size: 1.2rem; color: var(--text); font-weight: 800; }
.badge-text span { font-size: 0.85rem; color: var(--muted); font-weight: 500; }

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

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: -40px auto 40px; position: relative; z-index: 10; }
.stats article, .card, .booking-wrap, .slide, .footer, .chat-window { background: var(--card); backdrop-filter: var(--glass); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.stats article { padding: 32px 20px; text-align: center; transition: transform 0.3s; }
.stats article:hover { transform: translateY(-5px); }
.stats h3 { margin: 0 0 8px; color: var(--primary); font-size: 2.2rem; font-weight: 800; }
.stats p { margin: 0; color: var(--text); font-weight: 600; }

.service-grid, .doctor-grid, .gallery-grid { display: grid; gap: 24px; }
.service-grid { grid-template-columns: repeat(3, 1fr); }
.card { padding: 32px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(14, 165, 233, 0.12); }
.icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 20px; display: inline-block; padding: 16px; background: rgba(2, 132, 199, 0.1); border-radius: 16px; transition: transform 0.3s; }
.card:hover .icon { transform: scale(1.1) rotate(5deg); }
.card h3 { margin: 0 0 12px; font-size: 1.3rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); line-height: 1.5; }

.doctor-grid { grid-template-columns: repeat(4, 1fr); }
.doctor { padding: 16px; display: flex; flex-direction: column; }
.doctor img { width: 100%; height: 240px; object-fit: cover; border-radius: 16px; transition: transform 0.5s; }
.doctor:hover img { transform: scale(1.03); }
.doctor h3 { margin: 16px 0 4px; font-size: 1.1rem; }
.doctor p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; margin-top: 12px; font-weight: 600; background: rgba(255,255,255,0.5); padding: 4px 10px; border-radius: 99px; width: fit-content; }
body.dark .status { background: rgba(0,0,0,0.2); }
.dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card); }
.dot.available { background: #10b981; box-shadow: 0 0 0 2px var(--card), 0 0 8px #10b981; }
.dot.busy { background: #f59e0b; box-shadow: 0 0 0 2px var(--card), 0 0 8px #f59e0b; }
.dot.offline { background: #64748b; }

.booking-wrap { padding: 48px; display: flex; flex-direction: column; }
.booking-left h2 { margin: 0 0 12px; font-size: 2.2rem; font-weight: 800; }
.booking-left p { color: var(--muted); margin: 0 0 32px; font-size: 1.1rem; }
.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
input, select { width: 100%; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; transition: all 0.3s; outline: none; }
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1); }
.form-msg { min-height: 24px; font-weight: 600; margin-top: 16px; }

.slider { position: relative; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.slide { position: absolute; inset: 0; padding: 40px; opacity: 0; transform: scale(0.95); transition: 0.5s ease; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.slide.active { opacity: 1; transform: scale(1); }
.slide p { font-size: 1.25rem; font-style: italic; color: var(--text); margin: 0 0 24px; line-height: 1.6; }
.slide h4 { margin: 0; color: var(--primary); font-weight: 700; font-size: 1.1rem; }

.gallery-grid { grid-template-columns: repeat(4, 1fr); }
.gallery-item { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.gallery-grid img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-grid img:hover { transform: scale(1.08); }

.contact-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; }
.contact-wrap .card { display: flex; flex-direction: column; justify-content: center; }
.contact-wrap .card h3 { font-size: 1.8rem; margin: 0 0 24px; }
.contact-wrap .card p { margin: 0 0 16px; font-size: 1.1rem; display: flex; align-items: center; gap: 12px; }
.contact-wrap .card p i { color: var(--primary); width: 20px; }
.contact-wrap iframe { width: 100%; min-height: 400px; border: 0; border-radius: 24px; box-shadow: var(--shadow); filter: grayscale(0.2) contrast(1.1); transition: filter 0.3s; }
.contact-wrap iframe:hover { filter: none; }
body.dark .contact-wrap iframe { filter: invert(0.9) hue-rotate(180deg) grayscale(0.5); }

.footer { margin: 60px auto 30px; padding: 32px 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.footer-inner p { margin: 0; color: var(--muted); }

.chatbot { position: fixed; right: 30px; bottom: 30px; z-index: 100; }
.chat-toggle { width: 64px; height: 64px; border-radius: 50%; border: 0; font-size: 1.6rem; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 12px 28px rgba(2, 132, 199, 0.4); cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.chat-toggle:hover { transform: scale(1.1); }
.chat-window { width: 360px; height: 500px; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.95); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: absolute; bottom: 80px; right: 0; transform-origin: bottom right; }
.chat-window.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.chat-head { padding: 20px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.3); border-radius: 24px 24px 0 0; }
body.dark .chat-head { background: rgba(0,0,0,0.2); }
.chat-head h4 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.chat-head h4::before { content: ''; display: inline-block; width: 10px; height: 10px; background: #10b981; border-radius: 50%; box-shadow: 0 0 8px #10b981; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { padding: 12px 16px; border-radius: 16px; font-size: 0.95rem; max-width: 85%; line-height: 1.4; animation: msgIn 0.3s ease-out forwards; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.msg.user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.bot { background: var(--bg); color: var(--text); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-quick { display: flex; gap: 8px; padding: 0 20px 16px; overflow-x: auto; scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button { border: 1px solid var(--border); border-radius: 99px; background: var(--bg); color: var(--text); padding: 8px 16px; cursor: pointer; font-size: 0.85rem; font-family: var(--font); white-space: nowrap; transition: all 0.2s; }
.chat-quick button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.chat-form { display: flex; gap: 12px; padding: 16px; border-top: 1px solid var(--border); background: var(--bg); border-radius: 0 0 24px 24px; }
.chat-form input { padding: 12px 16px; border-radius: 12px; flex: 1; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: var(--font); }
.chat-form button { background: var(--primary); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; transition: transform 0.2s; flex-shrink: 0; }
.chat-form button:hover { transform: scale(1.05); }

.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal.show { opacity: 1; transform: none; }

@media (max-width:1024px) {
  .service-grid, .field-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .hero-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; order: -1; }
  .hero { padding-top: 40px; }
}
@media (max-width:768px) {
  .menu { display: none; }
  .field-grid, .stats, .service-grid, .doctor-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .hero-content h1 { font-size: 2.2rem; }
  .chat-window { width: calc(100vw - 40px); right: 10px; bottom: 90px; }
}
