:root {
    --primary-red: #d32f2f;
    --accent-red: #ff3333;
    --dark-red: #9a0007;
    --bg-black: #121212;
    --card-black: #1e1e1e;
    --light-bg: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #777777;
    --border-color: #2d2d2d;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); color: var(--text-dark); background-color: #ffffff; line-height: 1.6; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Top Bar */
.top-bar { background-color: var(--bg-black); color: #b0b0b0; font-size: 0.85rem; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-phone { color: var(--accent-red); text-decoration: none; font-weight: 600; margin-left: 15px; }

/* Header & Nav */
.main-header { background: #ffffff; border-bottom: 2px solid var(--primary-red); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.logo { display: flex; align-items: center; text-decoration: none; gap: 12px; width:200px; }
.logo-icon { background: var(--primary-red); color: #fff; width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.brand-title { font-size: 1.4rem; font-weight: 800; color: var(--bg-black); letter-spacing: -0.5px; }
.brand-title .highlight { color: var(--primary-red); }
.brand-subtitle { display: block; font-size: 0.65rem; color: var(--text-muted); font-weight: 600; letter-spacing: 1px; }
.navbar { display: flex; align-items: center; gap: 25px; }
.nav-menu { display: flex; list-style: none; gap: 25px; }
.nav-menu a { text-decoration: none; color: var(--bg-black); font-weight: 600; font-size: 0.95rem; transition: color 0.3s ease; }
.nav-menu a:hover { color: var(--primary-red); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--bg-black); }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; cursor: pointer; border: none; text-align: center; }
.btn-primary { background: var(--primary-red); color: #ffffff; }
.btn-primary:hover { background: var(--dark-red); }
.btn-secondary { background: var(--bg-black); color: #ffffff; }
.btn-secondary:hover { background: #333333; }

/* Hero Section */
.hero-section { background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%); color: #ffffff; padding: 80px 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero-badge { display: inline-block; background: rgba(211, 47, 47, 0.2); border: 1px solid var(--primary-red); color: var(--accent-red); padding: 6px 14px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; }
.hero-title { font-size: 2.6rem; line-height: 1.2; margin-bottom: 20px; }
.hero-title .highlight { color: var(--primary-red); }
.hero-desc { color: #b0b0b0; font-size: 1.1rem; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* Forms */
.hero-card { background: #ffffff; color: var(--text-dark); padding: 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); border-top: 4px solid var(--primary-red); }
.hero-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; }

/* Section Header */
.section-padding { padding: 70px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px auto; }
.section-header .sub-badge { color: var(--primary-red); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.section-header h2 { font-size: 2.2rem; margin: 10px 0; color: var(--bg-black); }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card-item { background: #ffffff; border-radius: 10px; padding: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.06); border: 1px solid #eee; transition: transform 0.3s ease; }
.card-item:hover { transform: translateY(-6px); border-color: var(--primary-red); }
.card-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(211, 47, 47, 0.1); color: var(--primary-red); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }

/* Doctor & Review Cards */
.doctor-card { text-align: center; background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border: 1px solid #eee; }
.doctor-avatar-box { background: var(--bg-black); color: var(--accent-red); font-size: 3.5rem; padding: 40px 0; }
.doctor-info { padding: 20px; }
.doctor-info h4 { font-size: 1.2rem; margin-bottom: 5px; }
.doctor-role { color: var(--primary-red); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; display: block; }

.review-card { background: #ffffff; padding: 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-left: 4px solid var(--primary-red); }
.review-stars { color: #f39c12; margin-bottom: 10px; }
.reviewer-meta { margin-top: 15px; font-weight: 700; color: var(--bg-black); }

/* Footer */
.main-footer { background: var(--bg-black); color: #b0b0b0; padding: 60px 0 20px 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: #ffffff; font-size: 1.1rem; margin-bottom: 20px; border-bottom: 2px solid var(--primary-red); padding-bottom: 8px; display: inline-block; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b0b0b0; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-red); }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-color); padding-top: 20px; font-size: 0.85rem; }

/* AI Floating Chat Widget */
.ai-widget-container { position: fixed; bottom: 25px; right: 25px; z-index: 9999; }
.ai-widget-toggle { background: var(--primary-red); color: #ffffff; border: none; padding: 14px 22px; border-radius: 50px; font-size: 1rem; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4); display: flex; align-items: center; gap: 10px; transition: transform 0.3s; }
.ai-widget-toggle:hover { transform: scale(1.05); background: var(--accent-red); }
.ai-chat-box { display: none; position: absolute; bottom: 70px; right: 0; width: 380px; height: 520px; background: #ffffff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); flex-direction: column; overflow: hidden; border: 1px solid #ddd; }
.ai-chat-box.open { display: flex; }
.ai-chat-header { background: var(--bg-black); color: #ffffff; padding: 15px; display: flex; align-items: center; gap: 12px; border-bottom: 3px solid var(--primary-red); }
.ai-avatar { width: 38px; height: 38px; background: var(--primary-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ai-info h4 { font-size: 0.95rem; }
.ai-info span { font-size: 0.75rem; color: #a0a0a0; }
.ai-close-btn { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; }
.ai-chat-messages { flex: 1; padding: 15px; overflow-y: auto; background: #fdfdfd; display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; }
.ai-msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; line-height: 1.4; word-wrap: break-word; }
.ai-msg.bot { background: #f1f3f4; color: #1a1a1a; align-self: flex-start; border-bottom-left-radius: 2px; }
.ai-msg.user { background: var(--primary-red); color: #ffffff; align-self: flex-end; border-bottom-right-radius: 2px; }
.ai-chat-input-area { display: flex; padding: 10px; border-top: 1px solid #eee; background: #ffffff; }
.ai-chat-input-area input { flex: 1; border: 1px solid #ddd; border-radius: 20px; padding: 8px 15px; font-size: 0.9rem; outline: none; }
.ai-chat-input-area button { background: var(--primary-red); color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; margin-left: 8px; cursor: pointer; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mobile-toggle { display: block; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 53px; left: 0; width: 100%; background: #ffffff; padding: 20px; border-bottom: 2px solid var(--primary-red); }
    .navbar.active .nav-menu { display: flex;}
    .nav-cta { display: none; }
    .ai-chat-box { width: 92vw; right: -10px; height: 460px; }
}