:root {
    --primary: #e63946;
    --primary-light: #ff4d5a;
    --primary-dark: #c1121f;
    --secondary: #fff1f2;
    --dark: #1d3557;
    --light: #ffffff;
    --gray: #f8f9fa;
    --dark-gray: #6c757d;
    --accent: #2a9d8f;
    --success: #2a9d8f;
    --warning: #e9c46a;
    --danger: #e63946;
    --gradient-primary: linear-gradient(120deg, #e63946 0%, #1d3557 100%);
    --shadow-sm: 0 2px 8px rgba(230, 57, 70, 0.1);
    --shadow-md: 0 5px 15px rgba(230, 57, 70, 0.15);
    --shadow-lg: 0 10px 30px rgba(230, 57, 70, 0.2);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fafafa;
    transition: background-color 0.3s ease;
}

.skip-link { position: absolute; left: -999px; top: -999px; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 6px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 1100; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--dark); margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: #555; }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-light); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn { display: inline-block; padding: 12px 30px; background-color: var(--primary); color: #fff; border-radius: 30px; font-weight: 600; letter-spacing: 1px; transition: var(--transition); border: none; font-size: 14px; box-shadow: 0 4px 15px rgba(14,59,160,0.3); }
.btn:hover { background-color: var(--primary-light); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(14,59,160,0.4); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); box-shadow: none; }
.btn-outline:hover { background: var(--primary); color: #fff; }

.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; position: relative; }
.section-title h2 { font-size: 2.5rem; display: inline-block; position: relative; padding-bottom: 15px; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background-color: var(--primary); border-radius: 2px; }
.section-title p { max-width: 700px; margin: 20px auto 0; font-size: 1.1rem; color: var(--dark-gray); }

header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: rgba(255,255,255,0.95); box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: all 0.3s ease; }
header.scrolled { background-color: rgba(255,255,255,0.98); box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { display: flex; align-items: center; }
.logo img { height: 50px; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.05); }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 30px; position: relative; }
.nav-links a { color: var(--dark); font-weight: 600; position: relative; font-size: 16px; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--primary); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); background: transparent; border: 0; }

.hero { height: 100vh; min-height: 700px; position: relative; overflow: hidden; display: flex; align-items: center; text-align: center; background: var(--gradient-primary); color: #fff; }
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; color: #fff; }
.hero h1 { font-size: 4rem; margin-bottom: 20px; line-height: 1.2; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
.hero h1 span { color: #ffd166; }
.hero p { font-size: 1.25rem; margin-bottom: 30px; color: rgba(255,255,255,0.9); }
.hero-btns { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }
.hero-btns .btn { padding: 15px 35px; font-size: 16px; border-radius: 50px; transition: all 0.4s ease; }
.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: var(--dark); font-size: 1.5rem; animation: bounce 2s infinite; cursor: pointer; }
@keyframes bounce { 0%,20%,50%,80%,100% { transform: translateY(0) translateX(-50%);} 40%{ transform: translateY(-20px) translateX(-50%);} 60%{ transform: translateY(-10px) translateX(-50%);} }

.features { background: #fff; padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition); padding: 30px; text-align: center; }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 80px; height: 80px; background: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; color: var(--primary); }

.tracker-container { background: #fff; border-radius: 20px; padding: 30px; box-shadow: var(--shadow-md); margin-top: 40px; }
.tracker-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.tracker-form { display: flex; gap: 15px; margin-bottom: 20px; }
.tracker-form input { flex: 1; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Montserrat', sans-serif; }
.tracker-items { list-style: none; }
.tracker-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #eee; transition: var(--transition); }
.tracker-item:hover { background: var(--secondary); }

.appointment-section { background: #f8f9fa; padding: 80px 0; }
.appointment-form { background: #fff; border-radius: 20px; padding: 30px; box-shadow: var(--shadow-md); max-width: 800px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-family: 'Montserrat', sans-serif; transition: var(--transition); }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
.time-slots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.time-slot { padding: 8px 15px; background: #f0f4f8; border-radius: 8px; cursor: pointer; transition: var(--transition); }
.time-slot:hover, .time-slot.selected { background: var(--primary); color: #fff; }

.doctors-section { background: #fff; padding: 80px 0; }
.doctor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.doctor-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition); }
.doctor-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.doctor-image { height: 250px; overflow: hidden; }
.doctor-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.doctor-card:hover .doctor-image img { transform: scale(1.05); }
.doctor-info { padding: 20px; text-align: center; }
.doctor-name { font-size: 1.3rem; margin-bottom: 5px; }
.doctor-specialty { color: var(--primary); font-weight: 600; margin-bottom: 10px; }

.testimonials { background: var(--secondary); padding: 100px 0; }
.testimonial-container { position: relative; max-width: 800px; margin: 0 auto; overflow: hidden; min-height: 200px; }
.testimonial-slide { text-align: center; padding: 20px; opacity: 0; transition: opacity 1s ease; }
.testimonial-slide.active { opacity: 1; }
.testimonial-text { font-size: 1.2rem; font-style: italic; margin-bottom: 20px; color: var(--dark); }
.testimonial-author { font-weight: 600; color: var(--primary); }
.testimonial-role { color: var(--dark-gray); font-size: 0.9rem; }
.testimonial-nav { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.testimonial-nav button { width: 12px; height: 12px; border-radius: 50%; border: none; background: var(--gray); cursor: pointer; transition: var(--transition); }
.testimonial-nav button.active { background: var(--primary); }

.contact-section { background: linear-gradient(135deg, #e63946 0%, #1d3557 100%); color: #fff; padding: 100px 0 50px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; }
.contact-icon { font-size: 1.5rem; color: #ffd166; }
.contact-text h4 { margin-bottom: 5px; color: #fff; }
.contact-text p, .contact-text a { color: rgba(255,255,255,0.9); }
.contact-form { background: rgba(255,255,255,0.1); padding: 30px; border-radius: 15px; backdrop-filter: blur(10px); }

.footer { background: #1a1a2e; color: #fff; padding: 30px 0; text-align: center; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo img { height: 40px; }
.footer-social a { color: #fff; font-size: 1.5rem; margin: 0 10px; transition: var(--transition); }
.footer-social a:hover { color: var(--primary); }
.footer-bottom { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: rgba(255,255,255,0.7); }

@media (max-width: 992px) {
    .nav-links { position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px); background: #fff; flex-direction: column; align-items: center; justify-content: center; transition: all 0.5s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 15px 0; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 250px; margin-bottom: 15px; }
    .section-title h2 { font-size: 2rem; }
    .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 768px) {
    .hero { min-height: 600px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .section { padding: 60px 0; }
}




