:root {
    --primary: #0d6efd;
    /* Theme Blue */
    --secondary: #e7f1ff;
    /* Light Blue */
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Navbar */
nav {
    background: var(--white);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ========================================= */
/* ADVANCED NAVBAR & EFFECTS                 */
/* ========================================= */
nav {
    background: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 30px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

/* Hover Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease-in-out;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.mobile-only {
    display: none;
}

/* ========================================= */
/* MOBILE HAMBURGER MENU (Max-width: 768px)  */
/* ========================================= */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
        /* Hide desktop button */
    }

    .menu-toggle {
        display: flex;
        /* Show hamburger icon */
    }

    .nav-links {
        position: absolute;
        top: 65px;
        /* Navbar ke theek neeche */
        left: -100%;
        /* Default hidden (bahar ki taraf) */
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.4s ease-in-out;
        /* Smooth slide in */
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-links.active {
        left: 0;
        /* Click karne par slide hoke aayega */
    }

    .nav-links a {
        margin: 15px 0;
        display: inline-block;
        font-size: 1.1rem;
    }

    .mobile-only {
        display: inline-block;
        margin-top: 15px;
    }

    /* Hamburger to 'X' Animation */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0b5ed7;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5%;
    background: var(--white);
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-tags {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tag {
    background: var(--secondary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Styled Doctor Image */
.doctor-img-wrapper {
    position: relative;
    background: var(--secondary);
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
}

.doctor-img-wrapper img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--white);
}

.doc-badge {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Services & Banners Section */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

.services {
    padding: 80px 5%;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* --- Yahan Maine Change Kiya Hai Bhai --- */

/* 1. Naya container images ke liye (image boxes) */
.banner-images .image-box {
    height: 350px;
    /* Adjust this fixed height to reduce size. 350px is a decent start for flyers. */
    overflow: hidden;
    /* Safety for any overflow */
    margin-bottom: 30px;
    display: flex;
    /* Helps center image within contain area */
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    /* Optional: background for contain style */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 2. Update image styling inside the box */
/* --- Yahan Maine Change Kiya Hai Bhai (Smooth Containers) --- */

.banner-card {
    background: var(--white);
    border-radius: 20px;
    /* Smooth curved corners */
    padding: 20px;
    /* Card ke andar thodi space */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Premium soft shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px;
    /* Sab boxes ki height ek jaisi rahegi */
    transition: all 0.3s ease;
}

.banner-card:hover {
    transform: translateY(-8px);
    /* Hover karne pe thoda upar aayega */
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.15);
    /* Hover shadow */
}

.banner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Image katega nahi, pura padhne mein aayega */
    border-radius: 10px;
}

/* Purana extra code hta dena if koi bacha ho */
/* --- End of Changes --- */

/* Contact & Appointment */
.contact-section {
    display: flex;
    padding: 80px 5%;
    background: var(--white);
    gap: 50px;
    flex-wrap: wrap;
}

.appointment-form {
    flex: 1;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    min-width: 300px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.location-map {
    flex: 1;
    min-width: 300px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 20px;
    border: none;
}

/* Footer */
footer {
    background: #212529;
    color: var(--white);
    text-align: center;
    padding: 30px 5%;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Developer credit styling */
.developer-credit {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.developer-credit a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin: 0 3px;
    position: relative;
}

.developer-credit a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.25s ease-in-out;
}

.developer-credit a:hover::after {
    width: 100%;
}

.developer-credit a:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .nav-links {
        display: none;
    }

    .doctor-img-wrapper img {
        width: 250px;
        height: 250px;
    }
}

/* ========================================= */
/* SMOOTH & CLEAN MEDIA QUERIES (MOBILE)  */
/* ========================================= */

/* Laptops & Tablets (Max-width: 992px) */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

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

    .contact-section {
        flex-direction: column;
    }
}

/* Tablets & Large Mobiles (Max-width: 768px) */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 15px 5%;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        margin: 5px 10px;
        font-size: 0.95rem;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .doctor-img-wrapper img {
        width: 250px;
        height: 250px;
    }

    .banner-card {
        height: 350px;
    }
}

/* Standard Mobiles & iOS (Max-width: 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
        /* Mobile ke liye clean font */
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .doctor-img-wrapper img {
        width: 200px;
        height: 200px;
    }

    .doc-badge {
        padding: 10px 15px;
        bottom: 10px;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 80%;
        text-align: center;
    }

    .banner-card {
        height: 280px;
        /* Mobile par image box chota */
        padding: 10px;
    }

    .appointment-form {
        padding: 25px 15px;
    }

    .location-map iframe {
        min-height: 300px;
    }

    .card {
        padding: 20px;
    }
}

/* Small Mobiles (Max-width: 360px) */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .doctor-img-wrapper img {
        width: 170px;
        height: 170px;
    }

    .banner-card {
        height: 220px;
    }

    .nav-links a {
        margin: 5px;
        font-size: 0.85rem;
    }
}

/* Extra Small Mobiles (Max-width: 240px - e.g., Jio Phones) */
@media (max-width: 240px) {
    .logo {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }

    .hero-tags .tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .doctor-img-wrapper img {
        width: 130px;
        height: 130px;
    }

    .doc-badge h3 {
        font-size: 0.9rem !important;
    }

    .doc-badge p {
        font-size: 0.7rem !important;
    }

    .banner-card {
        height: 160px;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}
/* Tablets & Large Mobiles (Max-width: 768px) */
@media (max-width: 768px) {
    nav {
        flex-wrap: nowrap; /* Ye navbar ko ek line mein rakhega */
        justify-content: space-between; /* Logo left, menu right */
        padding: 15px 5%;
        gap: 0;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        margin: 5px 10px;
        font-size: 0.95rem;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .doctor-img-wrapper img {
        width: 250px;
        height: 250px;
    }

    .banner-card {
        height: 350px;
    }
}

/* Standard Mobiles & iOS (Max-width: 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .btn-primary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .hero-image {
        margin-bottom: 30px; /* Badge ke liye neeche extra space */
    }

    .doctor-img-wrapper img {
        width: 200px;
        height: 200px;
    }

    .doc-badge {
        padding: 8px 10px;
        bottom: -20px; /* Image ke neeche kheench liya isko */
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 85%;
        text-align: center;
        border-radius: 10px; /* Box thoda smooth kiya */
    }

    .doc-badge h3 {
        font-size: 0.9rem !important; /* Nam ka font chhota kiya */
        margin-bottom: 2px;
    }

    .doc-badge p {
        font-size: 0.75rem !important; /* Title ka font chhota kiya */
    }

    .banner-card {
        height: 280px;
        padding: 10px;
    }

    .appointment-form {
        padding: 25px 15px;
    }

    .location-map iframe {
        min-height: 300px;
    }

    .card {
        padding: 20px;
    }
}