/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Colors */
:root {
    --primary-color: #007BFF; /* Primary blue for headings, important elements */
    --accent-color: #00BFFF; /* Accent blue for interactive elements, highlights */
    --white-color: #ffffff;
    --light-gray-color: #f8f9fa; /* Soft gray for cards/backgrounds */
    --dark-gray-color: #343a40; /* Dark gray for footer, strong text */
    --text-color: #333; /* Main body text color */
    --light-text-color: #555; /* Lighter text for paragraphs */
}

/* Basic Styles */
body {
    font-family: 'Poppins', sans-serif; /* Applied Poppins font for modern typography */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--light-gray-color); /* Consistent light gray background */
    color: var(--text-color);
    line-height: 1.6; /* Improved readability */
}

.container {
    max-width: 1200px;
    margin: 0 auto; /* Centered container */
    padding: 20px;
    /* Ensures content is centered and has consistent spacing */
}

/* Header */
header {
    background-color: var(--primary-color); /* Primary blue header background */
    color: var(--white-color);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    position: relative;
    z-index: 1000; /* Ensures header is always on top */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Aligned items vertically */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700; /* Bolder logo for prominence */
    color: var(--white-color);
    text-decoration: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden by default, shown on small screens */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--white-color);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* Navigation */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px; /* Increased spacing between nav items */
}

nav ul li a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.2s ease; /* Smooth transition for hover effects */
    position: relative;
    padding-bottom: 5px; /* Space for underline effect */
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color); /* Accent color for underline */
    transition: width 0.3s ease; /* Underline animation */
}

nav ul li a:hover::after {
    width: 100%; /* Full width underline on hover */
}

nav ul li a:hover {
    color: var(--accent-color);
    transform: translateY(-2px); /* Slight lift on hover */
}

/* Responsive Design for Header */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show hamburger menu on small screens */
    }

    nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 250px; /* Slightly wider for better readability */
        background-color: var(--primary-color);
        flex-direction: column;
        display: none;
        padding: 15px; /* Adjusted padding */
        box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Enhanced shadow for dropdown */
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    nav.active {
        display: flex; /* Show when active */
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 10px 0; /* Vertical spacing */
    }

    nav ul li a {
        padding: 12px 20px;
        display: block;
        text-align: center;
        border-radius: 5px;
        background-color: var(--accent-color); /* Accent color for menu items */
        color: var(--white-color);
        font-weight: 500;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    nav ul li a:hover {
        background-color: #0056b3; /* Darker blue on hover */
        transform: translateY(-2px);
    }

    /* Hamburger animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7)), url('assets/images/9.jpg') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
    padding: 120px 20px; /* Increased padding for more vertical space */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Ensures hero section takes more viewport height */
    position: relative;
}

.hero-content {
    max-width: 900px; /* Wider content area */
    padding: 20px;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem; /* Larger heading */
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700; /* Bolder heading */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* Subtle text shadow */
}

.hero p {
    font-size: 1.4rem; /* Larger paragraph text */
    margin-bottom: 50px;
    font-weight: 300; /* Lighter weight for contrast */
}

.hero-buttons .btn {
    padding: 15px 35px; /* More padding for buttons */
    text-decoration: none;
    border-radius: 8px; /* More rounded corners */
    margin: 0 15px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions for interactive elements */
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Subtle button shadow */
}

.hero-buttons .primary-btn {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.hero-buttons .primary-btn:hover {
    background-color: #007BFF; /* Darker Accent Blue */
    transform: translateY(-5px); /* More pronounced lift */
    box-shadow: 0 6px 15px rgba(0,0,0,0.3); /* Enhanced shadow on hover */
}

.hero-buttons .secondary-btn {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.hero-buttons .secondary-btn:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* General Section Styling */
.section-padding {
    padding: 100px 0; /* Increased vertical padding for sections */
    background-color: var(--white-color);
    margin-bottom: 30px; /* More space between sections */
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* Enhanced shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-padding:hover {
    transform: translateY(-8px); /* More pronounced lift */
    box-shadow: 0 12px 30px rgba(0,0,0,0.15); /* Enhanced shadow on hover */
}

.section-padding.bg-light {
    background-color: var(--light-gray-color);
}

.section-padding h2 {
    text-align: center;
    font-size: 3.2rem; /* Larger section headings */
    color: var(--primary-color);
    margin-bottom: 60px; /* More space below heading */
    position: relative;
    padding-bottom: 20px;
    font-weight: 700; /* Bolder headings */
}

.section-padding h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px; /* Wider underline */
    height: 5px; /* Thicker underline */
    background-color: var(--accent-color);
    border-radius: 3px;
}

.section-content {
    max-width: 900px;
    margin: 0 auto; /* Centered content */
    text-align: center;
    line-height: 1.8;
    font-size: 1.15rem; /* Slightly larger content text */
    color: var(--light-text-color);
}

.section-content p {
    margin-bottom: 25px; /* More space between paragraphs */
}

.section-content strong {
    color: var(--text-color);
    font-weight: 600; /* Bolder strong text */
}

.section-content .btn {
    margin-top: 40px; /* More space above buttons */
}

/* Why Choose Us Section */
#why-choose-us .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px; /* Increased gap for better spacing */
    margin-top: 50px; /* More space above grid */
}

#why-choose-us .feature-item {
    background-color: var(--white-color);
    padding: 35px; /* More padding */
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1); /* Subtle shadow */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.1); /* Subtle border */
}

#why-choose-us .feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#why-choose-us .feature-item h3 {
    color: var(--primary-color);
    font-size: 2rem; /* Larger feature headings */
    margin-bottom: 18px;
    font-weight: 600;
}

#why-choose-us .feature-item p {
    color: var(--light-text-color);
    line-height: 1.7;
}

/* Footer */
footer {
    background-color: var(--dark-gray-color);
    color: var(--white-color);
    text-align: center;
    padding: 30px 0; /* More padding */
    margin-top: 50px; /* More space above footer */
    font-size: 0.95rem;
}

footer p {
    margin: 0;
}

footer .container a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .container a:hover {
    color: var(--white-color);
}

/* Doctor Profile Page */
.profile-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Increased gap */
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.profile-image {
    width: 280px; /* Larger image */
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
    border: 6px solid var(--primary-color); /* Thicker border */
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.7), 0 8px 20px rgba(0,0,0,0.15); /* Enhanced shadow */
}

.profile-details {
    max-width: 650px; /* Wider details area */
    text-align: left; /* Align text left within details */
}

.profile-details h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.profile-details p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--light-text-color);
    margin-bottom: 15px;
}

.profile-details ul {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.profile-details ul li {
    background-color: var(--light-gray-color);
    margin-bottom: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Subtle shadow for list items */
}

.profile-details ul li::before {
    content: '\2022';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1.2em;
    margin-left: -1.2em;
    font-size: 1.2em;
}

/* Services Page */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; /* Increased gap */
    margin-top: 50px;
}

.service-item {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.1); /* Subtle border */
}

.service-item:hover {
    transform: translateY(-12px); /* More pronounced lift */
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.service-item img {
    width: 110px; /* Slightly larger icon */
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid var(--accent-color); /* Thicker border */
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3); /* Accent shadow */
}

.service-item h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-item p {
    color: var(--light-text-color);
    line-height: 1.7;
}

/* Gallery Page */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax for better responsiveness */
    gap: 30px; /* Increased gap */
    margin-top: 50px;
}

.gallery-item {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.1); /* Subtle border */
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 220px; /* Slightly taller images */
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 18px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    font-size: 1.1rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95); /* Darker overlay */
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%; /* Larger image in lightbox */
    max-height: 90%;
    border-radius: 8px; /* Rounded corners for lightbox image */
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #eee; /* Lighter caption color */
    padding: 15px 0;
    font-size: 1.1rem;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #fff;
    font-size: 45px; /* Larger close button */
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

/* Contact Page */
#contact-info {
    max-width: 850px; /* Wider contact info box */
    margin: 50px auto; /* Centered with more vertical margin */
    padding: 40px;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
}

#contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 35px;
    font-size: 2.8rem;
    font-weight: 700;
}

.contact-details p {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.7;
}

.contact-details p strong {
    color: var(--text-color);
    font-weight: 600;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-details h3 {
    color: var(--accent-color);
    margin-top: 30px;
    margin-bottom: 18px;
    font-size: 1.8rem;
    font-weight: 600;
}

.contact-details ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.contact-details ul li {
    background-color: var(--light-gray-color);
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 1.05rem;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.google-map {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.google-map iframe {
    width: 100%;
    height: 500px; /* Taller map */
    border: 0;
}

.direction-button {
    margin-top: 30px;
}

.direction-button .button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.direction-button .button:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero-buttons .btn {
        display: block;
        margin: 15px auto;
        width: 80%; /* Make buttons take more width on mobile */
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-padding h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .section-content {
        font-size: 1rem;
    }

    #why-choose-us .feature-grid {
        grid-template-columns: 1fr;
    }

    .profile-content {
        flex-direction: column;
        gap: 30px;
    }

    .profile-image {
        width: 220px;
        height: 220px;
    }

    .profile-details {
        text-align: center;
    }

    .profile-details ul {
        text-align: left; /* Keep list items left-aligned */
        display: inline-block; /* Center the ul itself */
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    #contact-info {
        padding: 30px;
    }

    #contact-info h2 {
        font-size: 2.2rem;
    }

    .google-map iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .section-padding h2 {
        font-size: 2rem;
    }

    .section-content {
        font-size: 0.95rem;
    }

    #why-choose-us .feature-item h3 {
        font-size: 1.6rem;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .profile-details h2 {
        font-size: 2.2rem;
    }

    .service-item h3 {
        font-size: 1.5rem;
    }

    .gallery-item figcaption {
        font-size: 1rem;
    }

    #contact-info h2 {
        font-size: 1.8rem;
    }

    .google-map iframe {
        height: 250px;
    }
}