/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables based on Logo */
:root {
    --primary-green: #2d5a27;
    --secondary-green: #4a7c59;
    --teal-blue: #20b2aa;
    --light-green: #90ee90;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --text-gray: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text h2 {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.logo-text p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

.logo-text .tagline {
    color: var(--teal-blue);
    font-size: 0.85rem;
    font-weight: 600;
    font-style: italic;
    margin: 2px 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    margin: 3px 0;
    transition: 0.3s;
}

/* Home Section */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

/* Home Background Slider */
.home-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    overflow: hidden;
    background-color: #f0f0f0;
    border: 2px solid red;
}

.slide.active {
    opacity: 1 !important;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) contrast(1.1);
    transform: scale(1.02);
    transition: all 2s ease-in-out;
}

.slide.active img {
    filter: brightness(1.0) contrast(1.2);
    transform: scale(1.0);
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}


.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 3;
}

.home-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.home-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    color: #ffffff;
}

.home-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.home-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.home-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

/* Ensure + symbols are visible */
.stat h3 {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.stat p {
    font-size: 1.1rem;
    opacity: 1;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.home-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-green);
}

.btn-primary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h3 {
    color: var(--primary-green);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-gray);
}

.features-list i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

/* About Image Section */
.about-image {
    position: relative;
    text-align: center;
}

.about-photo {
    width: 100%;
    max-width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
}

.about-photo:hover {
    transform: translateY(-5px);
}

.about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem 1rem 1rem;
    border-radius: 0 0 15px 15px;
}

.about-image-overlay h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.about-image-overlay p {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Doctors Section */
.doctors-section {
    margin-top: 4rem;
}

.doctors-section h3 {
    text-align: center;
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.doctor-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

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

.doctor-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 1.5rem;
    border: 4px solid var(--teal-blue);
}

/* Specific styling for Dr M M Saheb and Dr Shehnaaz Mogal circular images */
.dr-saheb-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 5%;
    margin-bottom: 1.5rem;
    border: 4px solid var(--teal-blue);
    transition: transform 0.3s ease;
    background-color: var(--white);
    overflow: hidden;
}

.dr-shehnaaz-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 1.5rem;
    border: 4px solid var(--teal-blue);
    transition: transform 0.3s ease;
}

.dr-saheb-photo:hover,
.dr-shehnaaz-photo:hover {
    transform: scale(1.05);
}

.doctor-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--teal-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.doctor-placeholder i {
    font-size: 3rem;
    color: var(--white);
}

.doctor-info h4 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.doctor-title {
    color: var(--teal-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.doctor-qualification,
.doctor-specialization,
.doctor-experience {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.doctor-bio {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
}

/* Specific styling for Dr. Shehnaaz's photo */
.doctor-card:nth-child(4) .doctor-image,
.dr-shehnaaz-photo {
    object-fit: cover;
    object-position: center top;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--teal-blue);
    background-color: #f8f9fa;
}

/* Specific styling for Dr. M M Saheb's photo */
.dr-saheb-photo {
    object-fit: cover;
    object-position: center 5%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--teal-blue);
    background-color: var(--white);
    overflow: hidden;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--teal-blue);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--teal-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.treatment-options {
    text-align: left;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-green);
}

.treatment-options h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.treatment-options ul {
    list-style: none;
}

.treatment-options li {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.treatment-options li::before {
    content: '•';
    color: var(--teal-blue);
    position: absolute;
    left: 0;
}

/* Service Images */
.service-image {
    margin: 1.5rem 0;
    text-align: center;
}

.service-medical-image {
    width: 100%;
    max-width: 350px;
    height: 250px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.service-medical-image:hover {
    transform: scale(1.05);
}

/* Other Conditions */
.other-conditions {
    margin-bottom: 4rem;
}

.other-conditions h3 {
    text-align: center;
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.condition-item {
    background: var(--teal-blue);
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.condition-item:hover {
    transform: translateY(-3px);
    background: var(--primary-green);
}

/* Procedures Section */
.procedures-section h3 {
    text-align: center;
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.procedure-card {
    background: var(--white);
    border: 2px solid var(--teal-blue);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.procedure-card:hover {
    background: var(--teal-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.procedure-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

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

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--teal-blue);
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: serif;
}

.testimonial-author h4 {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.testimonial-author p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Ratings Section */
.ratings {
    padding: 5rem 0;
    background: var(--light-gray);
}

.ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.rating-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--teal-blue);
}

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

.rating-icon {
    width: 80px;
    height: 80px;
    background: var(--teal-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.rating-icon i {
    font-size: 2rem;
    color: var(--white);
}

.rating-card h4 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.rating-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Certificates Section */
.certificates {
    padding: 5rem 0;
    background: var(--light-gray);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.certificate-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
    background: var(--white);
    padding: 1rem;
}

.certificate-item:hover {
    transform: translateY(-5px);
}

.certificate-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.certificate-item:hover .certificate-image {
    transform: scale(1.05);
}

.certificate-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.certificate-item:hover .certificate-overlay {
    transform: translateY(0);
}

.certificate-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--teal-blue);
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p,
.contact-item a {
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 0.3rem;
}

.contact-item a:hover {
    color: var(--teal-blue);
}

.branches h3,
.social-links h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.branch-card {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--teal-blue);
}

.branch-card h4 {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.branch-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

.map-container {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.map-container iframe {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.map-container iframe:hover {
    transform: scale(1.02);
}

.map-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--teal-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: var(--teal-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--teal-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .home-title {
        font-size: 2.5rem;
    }

    .home-tagline {
        font-size: 1.2rem;
    }

    .home-description {
        font-size: 1rem;
    }

    .home-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .home-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .ratings-grid {
        grid-template-columns: 1fr;
    }

    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .certificate-image {
        height: 250px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .conditions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .procedures-grid {
        grid-template-columns: 1fr;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-photo {
        max-width: 250px;
        height: 300px;
    }

    /* Background slider mobile adjustments */
    .slide img {
        filter: brightness(0.6) contrast(1.1) blur(1px);
    }
    
    .slide.active img {
        filter: brightness(0.7) contrast(1.2) blur(0.5px);
    }
    
    .background-overlay {
        background: linear-gradient(135deg, 
            rgba(0, 0, 0, 0.6) 0%, 
            rgba(0, 0, 0, 0.5) 50%, 
            rgba(0, 0, 0, 0.6) 100%);
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .home-title {
        font-size: 2rem;
    }

    .home-tagline {
        font-size: 1rem;
    }

    .home-description {
        font-size: 0.9rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .stat p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

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

    .section-header p {
        font-size: 1rem;
    }

    .doctor-card,
    .service-card,
    .testimonial-card,
    .rating-card {
        padding: 1.5rem;
    }

    .doctor-image {
        width: 120px;
        height: 120px;
    }

    .doctor-placeholder {
        width: 120px;
        height: 120px;
    }

    .doctor-placeholder i {
        font-size: 2.5rem;
    }

    .conditions-grid {
        grid-template-columns: 1fr;
    }

    .social-icons {
        justify-content: center;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .certificate-image {
        height: 200px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.service-card,
.doctor-card,
.testimonial-card,
.rating-card,
.gallery-item {
    transition: all 0.3s ease;
}

/* Focus States for Accessibility */
.nav-link:focus,
.btn:focus,
.social-icons a:focus {
    outline: 2px solid var(--teal-blue);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .home-buttons,
    .social-icons {
        display: none;
    }
    
    .home {
        background: none;
        color: black;
    }
    
    .section-header h2 {
        color: black;
    }
}
