:root {
    --primary: hsl(0, 72%, 51%);
    --primary-dark: hsl(0, 72%, 40%);
    --primary-light: hsl(0, 72%, 95%);
    --secondary: hsl(210, 20%, 98%);
    --text-main: hsl(210, 24%, 16%);
    --text-muted: hsl(210, 16%, 46%);
    --white: #ffffff;
    --border: hsl(210, 16%, 90%);
    --shadow: 0 10px 30px -10px hsla(0, 0%, 0%, 0.1);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); background-color: var(--secondary); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bg-primary-light { background-color: var(--primary-light); }
.bg-secondary { background-color: var(--secondary); }
.bg-white { background-color: var(--white); }

/* Buttons */
.btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    padding: 14px 28px; 
    border-radius: 14px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: var(--transition); 
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary { 
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* Header */
#main-header { height: 80px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); position: fixed; top: 0; width: 100%; z-index: 1000; display: flex; align-items: center; border-bottom: 1px solid var(--border); }
#main-header nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 40px; height: 40px; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.logo-text h1 { font-size: 1.4rem; line-height: 1; margin: 0; letter-spacing: -0.5px; }
.logo-text span { font-size: 0.75rem; display: block; color: var(--text-muted); line-height: 1; margin-top: 2px; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }

/* Section Titles */
.section-header { margin-bottom: 50px; }
.subtitle { 
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding-left: 15px;
    position: relative;
}

.subtitle::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.section-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-main);
}

/* Hero */
#hero { padding: 160px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.text-gradient { background: linear-gradient(135deg, var(--primary), #ff4d4d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.rating { display: flex; flex-direction: column; }
.stars { color: #ffc107; display: flex; gap: 2px; }
.hero-img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; border: 4px solid white; }
.hero-image-container { position: relative; }
.floating-card { position: absolute; bottom: 20px; left: -20px; background: white; padding: 16px; border-radius: 12px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); }

/* Stats Banner */
#stats-banner { padding: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-box h4 { font-size: 3rem; color: var(--primary); margin-bottom: 5px; }
.stat-box p { font-weight: 500; color: var(--text-muted); }

/* About */
section { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.img-rounded { border-radius: 32px; box-shadow: var(--shadow); width: 100%; border: 6px solid white; }
.why-choose-us { margin-top: 32px; display: grid; gap: 32px; }
.why-item { display: flex; gap: 20px; align-items: flex-start; }
.why-item i { color: var(--primary); width: 28px; height: 28px; padding: 6px; background: var(--primary-light); border-radius: 8px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.service-card { background: white; border-radius: 24px; overflow: hidden; cursor: pointer; transition: var(--transition); border: 1px solid var(--border); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.service-card:hover { transform: translateY(-12px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); border-color: var(--primary-light); }
.service-img { width: 100%; height: 220px; object-fit: cover; }
.service-body { padding: 30px; text-align: center; }
.service-body h4 { margin-bottom: 10px; font-size: 1.25rem; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-card { background: white; padding: 50px 40px; border-radius: 32px; position: relative; text-align: center; transition: var(--transition); }
.step-card:hover { transform: scale(1.02); }
.step-num { position: absolute; top: 30px; left: 30px; font-size: 4rem; font-weight: 900; opacity: 0.05; color: var(--primary); }
.step-img { width: 100%; border-radius: 20px; margin: 30px 0; box-shadow: var(--shadow); }
.step-card i { font-size: 3rem; color: var(--primary); margin-bottom: 25px; display: block; }

/* Doctors */
.doctors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.doctor-card { text-align: center; background: white; padding: 20px; border-radius: 32px; transition: var(--transition); border: 1px solid transparent; }
.doctor-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.doctor-card img { width: 100%; border-radius: 24px; margin-bottom: 20px; filter: grayscale(20%); transition: var(--transition); }
.doctor-card:hover img { filter: grayscale(0); }

/* Modal Fix */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(15, 23, 42, 0.8); 
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content { 
    background: white; 
    padding: 40px; 
    border-radius: 32px; 
    max-width: 650px; 
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

.close-modal { 
    position: absolute; 
    right: 25px; 
    top: 25px; 
    font-size: 1.5rem; 
    cursor: pointer; 
    background: var(--secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover { background: var(--primary-light); color: var(--primary); }

/* Interior Gallery */
.interior-gallery { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; }
.interior-gallery img { width: 100%; border-radius: 32px; height: 350px; object-fit: cover; border: 4px solid white; box-shadow: var(--shadow); }

/* Address & Map */
.address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; background: white; padding: 80px; border-radius: 48px; box-shadow: var(--shadow); }
.map-placeholder { background: var(--primary-light); border-radius: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; color: var(--primary); font-weight: 600; min-height: 300px; }

/* Footer */
#main-footer { padding: 60px 0; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); background: white; }

/* WhatsApp */
.whatsapp-float { position: fixed; bottom: 40px; right: 40px; background: #25d366; color: white; padding: 14px 28px; border-radius: 50px; display: flex; align-items: center; gap: 12px; z-index: 1000; font-weight: 600; box-shadow: 0 10px 25px rgba(37,211,102,0.4); transition: var(--transition); text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.05) translateY(-5px); }

/* Mobile */
@media (max-width: 768px) {
    .hero-grid, .about-grid, .stats-grid, .steps-grid, .doctors-grid, .address-grid, .interior-gallery { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .section-title { font-size: 2.2rem; }
    #main-header { height: 70px; }
    .logo-text h1 { font-size: 1.2rem; }
    .logo-text span { font-size: 0.7rem; }
    .logo-icon { width: 36px; height: 36px; }
}
