* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d93b86;
    --primary-light: #f07fb2;
    --primary-dark: #b82e6f;
    --secondary-color: #8a4e87;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e6d3df;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #d93b86 0%, #8a4e87 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(217, 59, 134, 0.9) 0%, rgba(138, 78, 135, 0.9) 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-base: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

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

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    color: white;
}

.heartbeat {
    font-size: 4rem;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    animation: float 3s ease-in-out infinite;
}

.call-btn { background: #2b93e3; }
.whatsapp-btn { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }

.floating-btn:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll to Top */
#scroll-top {
    position: fixed;
    right: 20px;
    bottom: 140px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

#scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Top Info Bar */
.top-info-bar {
    width: 100%;
    padding: 10px 0;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.top-info-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.top-right {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.top-right a {
    color: white;
    font-weight: bold;
    white-space: nowrap;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    box-shadow: var(--shadow-sm);
    z-index: 9999;
    transition: all var(--transition-base);
}

#header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 12px 0;
    background: var(--bg-color);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    height: 60px;
    width: auto;
    transform: scale(1.1);
    transform-origin: left center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: nowrap;
}

.nav-link {
    font-weight: bold;
    font-size: 14px;
    color: var(--text-color);
    position: relative;
    white-space: nowrap;
    transition: color var(--transition-base);
}

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

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 25px;
    cursor: pointer;
    z-index: 10001;
    background: transparent;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Hero Section */
.hero {
    min-height: 83vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
    padding-bottom: 40px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    transform: scale(1.7);
    max-width: 500px;
    border-radius: var(--radius-lg);
    object-fit: contain;
}

/* Stats Section */
.stats-section {
    background: var(--gradient-primary);
    padding: 30px 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 1.7rem;
    color: white;
    font-weight: 700;
}

.stat-item p {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 10px 7px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-circle {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.feature-circle img {
    transform: scale(1.8);
    /* width: 120px;
    height: 120px; */
    object-fit: contain;
    background: transparent;
}

.feature-item h4 {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: white;
    padding: 40px 15px;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
}

.service-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h4 {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(217, 59, 133, 0.492);
}

.hidden { display: none; }

.center { text-align: center; margin-top: 30px; }

.see-more-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.see-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Womens Care */
.womens-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.w-card {
    background: white;
    padding: 50px 15px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: 0.3s;
    border: 1px solid #f1dbe2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.w-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.w-card p {
    font-size: 14px;
    color: var(--text-light);
}

.w-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(217, 59, 133, 0.492);
}

/* Doctor Section */
.doctor-feature-wrapper {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 50px;
    align-items: start;
}

.doctor-feature-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.doctor-role {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.doctor-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.doctor-degree {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.doctor-exp {
    font-weight: 600;
    margin-bottom: 15px;
}

.doctor-desc p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--text-light);
}

.doctor-btn {
    margin-top: 80px;
}

/* Appointment Section */
.appointment {
    background: var(--gradient-primary);
    color: white;
}

.appointment .section-tag,
.appointment .section-title {
    color: white;
}

.appointment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.appointment-info h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.appointment-info p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.info-item p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.appointment-form-wrapper {
    background: white;
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--bg-color);
    width: 100%;
}

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

.form-message {
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    display: none;
    margin-top: 10px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Review Section */
.review-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.review-container {
    max-width: 800px;
    margin: auto;
    text-align: center;
    padding: 0 20px;
}

.review-header span {
    color: var(--primary-color);
    font-weight: 600;
}

.review-header h2 {
    margin: 10px 0;
    font-size: 2rem;
}

.review-slider {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.review-track {
    display: flex;
    transition: transform 0.6s ease;
}

.review-card {
    min-width: 100%;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: #ffc107;
    font-size: 20px;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.review-card h4 {
    font-weight: 600;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: white;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.lightbox-close { top: 2rem; right: 2rem; }
.lightbox-prev { left: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 2rem; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 10px;
}

.contact-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-icon .fa-map-marker-alt,
.contact-icon i.fa-map-marker-alt {
    background: #ea4335;
    padding: 12px;
    border-radius: 50%;
}
.contact-icon .fa-phone,
.contact-icon i.fa-phone {
    background: #25d366;
    padding: 12px;
    border-radius: 50%;
}
.contact-icon .fa-envelope,
.contact-icon i.fa-envelope {
    background: #1e88e5;
    padding: 12px;
    border-radius: 50%;
}

.contact-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-card p,
.contact-card a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    /* margin-left: 50px; */
    margin-top: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a.facebook { background: #1877f2; }
.social-icons a.youtube { background: #ff0000; }
.social-icons a.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

.social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 120px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* Footer */
.footer {
    background: rgb(63, 62, 62);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    transform: scale(1.2);
    width: auto;
    margin-left: 5px;
    margin-bottom: 15px;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
    color: var(--primary-light);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    opacity: 0.8;
    font-size: 0.9rem;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* =============================================
   RESPONSIVE STYLES - Full Coverage
   ============================================= */

/* Large Desktop: 1400px+ */
@media (min-width: 1400px) {
    .container {
        max-width: 1380px;
        padding: 0 40px;
    }
    .hero-title { font-size: 3.2rem; }
    .hero-stats { gap: 30px; }
    .stat-item h3 { font-size: 2rem; }
}

/* Standard Desktop: 1200px - 1399px */
@media (max-width: 1399px) and (min-width: 1200px) {
    .container { max-width: 1160px; padding: 0 20px; }
    .hero-title { font-size: 2.8rem; }
    .nav-links { gap: 20px; }
    .doctor-feature-wrapper { grid-template-columns: 380px 1fr; }
}

/* Medium Desktop: 1025px - 1199px */
@media (max-width: 1199px) and (min-width: 1025px) {
    .container { max-width: 980px; padding: 0 20px; }
    .nav-links { gap: 16px; }
    .nav-link { font-size: 13px; }
    .hero-title { font-size: 2.4rem; }
    .hero-content { gap: 40px; }
    .hero-stats { gap: 15px; }
    .stat-item h3 { font-size: 1.5rem; }
    .stat-item p { font-size: 0.8rem; }
    .features-grid { gap: 15px; }
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .doctor-feature-wrapper { grid-template-columns: 340px 1fr; gap: 35px; }
    .footer-content { gap: 25px; }
}

/* Tablet Landscape: 768px - 1024px */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }

    .top-info-bar { font-size: 14px; padding: 16px 0; }
    .top-info-wrapper { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 5px; }
    .top-right { justify-content: center; gap: 12px; }

    .mobile-toggle { display: flex; }
    /* .navbar { height: 85px;} */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 30px 30px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        z-index: 10000;
        overflow-y: auto;
    }

    .nav-links.active { transform: translateX(0); }
    .nav-link { font-size: 18px; padding: 10px 0; }

    .hero { padding-top: 120px; min-height: auto; }
    .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-image { order: -1; }
    .hero-image img { max-width: 380px; margin: 0 auto; transform: 1.9rem; }
    .hero-title { font-size: 2.4rem; }
    .hero-buttons { justify-content: center; }

    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }

    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-circle { width: 110px; height: 110px; }
    .feature-circle img { width: 100px; height: 100px; }

    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    .womens-grid { grid-template-columns: repeat(2, 1fr); }

    .doctor-feature-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .doctor-feature-image img { height: 420px; object-position: top; }
    .doctor-feature-content { text-align: center; }
    .doctor-btn { display: inline-flex; }

    .appointment-wrapper { grid-template-columns: 1fr; gap: 35px; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }

    .contact-wrapper { grid-template-columns: 1fr; gap: 35px; }
    .contact-map { min-height: 350px; }

    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* Tablet Portrait: 601px - 768px */
@media (max-width: 767px) {
    html { font-size: 15px; }

    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    .section-header { margin-bottom: 35px; }

    .top-info-bar { display: block; font-size: 11px; padding: 12px 0; }
    .top-info-wrapper { flex-direction: row; flex-wrap: wrap; gap: 4px; justify-content: center; }
    .top-right { gap: 10px; }
    #header { top: 0; }

    .navbar { padding: 10px 0; }
    .logo img { height: 50px; transform: none; }

    .nav-links {
        top: 0;
        padding-top: 70px;
        gap: 15px;
    }

    .hero { padding-top: 110px; padding-bottom: 30px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 14px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 300px; justify-content: center; }
    .hero-image img { max-width: 320px; }

    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .stat-item h3 { font-size: 1.4rem; }
    .stat-item p { font-size: 0.8rem; }

    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .feature-circle { width: 110px; height: 110px; }
    .feature-circle img { width: 100px; height: 100px; }

    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .service-card { padding: 25px 12px; }

    .womens-grid { grid-template-columns: 1fr; gap: 15px; }

    .doctor-feature-image img { height: 350px; }

    .appointment-form-wrapper { padding: 25px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    .review-slider { padding: 0 50px; }
    .review-card { padding: 25px 20px; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .lightbox-prev { left: 1rem; }
    .lightbox-next { right: 1rem; }
    .lightbox-close { top: 1rem; right: 1rem; }

    .floating-buttons { right: 12px; bottom: 12px; }
    .floating-btn { width: 48px; height: 48px; font-size: 1.1rem; }
    #scroll-top { right: 12px; bottom: 125px; width: 40px; height: 40px; }

    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .footer-logo img { height: 50px; }
}

/* Large Mobile: 481px - 600px */
@media (max-width: 600px) {
    .container { padding: 0 15px; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.8rem; }

    .hero-title { font-size: 1.8rem; }
    .hero-image img { max-width: 280px; }

    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .feature-circle { width: 100px; height: 100px; padding: 0; }
    .feature-circle img { width: 90px; height: 90px; }

    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .appointment-wrapper { gap: 25px; }
    .appointment-info h2 { font-size: 1.8rem; }

    .footer-content { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* Small Mobile: 361px - 480px */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .top-info-bar { font-size: 8px; }
    .container { padding: 0 14px; }
    .section { padding: 45px 0; }

    .logo img { height: 44px; transform: scale(1.2);}

    .hero { padding-top: 85px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 14px; }
    .hero-image img { max-width: 260px; transform: scale(1.6);}
    .btn-large { padding: 0.85rem 1.5rem; font-size: 1.2rem; }

    .hero-stats { grid-template-columns: repeat(1, 1fr); gap: 25px; }
    .stat-item h3 { font-size: 1.4rem; }
    .stat-item p { font-size: 1.1rem; }

    .section-title { font-size: 1.6rem; }

    .features-grid { grid-template-columns: repeat(1, 1fr); gap: 10px; }
    .feature-item { padding: 12px 8px; }
    .feature-circle { width: 90px; height: 90px; transform: scale(1.2);}
    .feature-circle img { width: 80px; height: 80px; }
    .feature-item h4 { font-size: 1.2rem; }

    .services-grid { grid-template-columns: repeat(1, 1fr); gap: 10px; }
    .service-card { padding: 20px 8px; }
    .service-card i { font-size: 50px; }
    .service-card h4 { font-size: 1.2rem; }

    .womens-grid { grid-template-columns: 1fr; }
    .w-card { padding: 25px 15px; }
    .w-card h3 { font-size: 1.4rem;}
    .w-card p { font-size: 1.1rem;}

    .doctor-feature-image img { height: 300px; }
    .doctor-btn { font-size: 1.2rem;}

    .appointment-form-wrapper { padding: 20px 15px; }
    .appointment-info h2 { font-size: 1.6rem; }

    .review-slider { padding: 0; }
    .review-card { padding: 20px 15px; }

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

    .lightbox img { max-width: 95%; }
    .lightbox-prev { left: 0.5rem; width: 40px; height: 40px; font-size: 1.1rem; }
    .lightbox-next { right: 0.5rem; width: 40px; height: 40px; font-size: 1.1rem; }
    .lightbox-close { top: 0.5rem; right: 0.5rem; width: 40px; height: 40px; font-size: 1.1rem; }

    .contact-wrapper { gap: 25px; }
    .contact-map { min-height: 280px; }
    .contact-map iframe { min-height: 280px; }

    .footer-content { grid-template-columns: 1fr; gap: 20px; }
    .footer { padding: 40px 0 15px; }
    .footer-logo img { height: 45px; }

    .floating-btn { width: 44px; height: 44px; font-size: 1rem; }
    #scroll-top { width: 38px; height: 38px; font-size: 0.85rem; }
}

/* Extra Small Mobile: 320px - 360px */
@media (max-width: 360px) {
    /* * {
  outline: 1px solid rgb(55, 0, 255);
} */
    html { font-size: 13px; }
    .container { padding: 0 10px; }
    .section { padding: 20px 0; }
    .top-info-bar { font-size: 7px;}
    .logo img { height: 40px; }
    .mobile-toggle { width: 30px; height: 22px; }

    .hero { padding-top: 80px; }
    .hero-title { font-size: 1.5rem; }
    .hero-image img { max-width: 220px; }
    .hero-buttons .btn { padding: 0.75rem 1.2rem; font-size: 0.85rem; }

    .hero-stats { grid-template-columns: repeat(1, 1fr); gap: 15px; }
    .stat-item h3 { font-size: 1.1rem; }
    .stat-item p { font-size: 0.8rem; }

    .section-title { font-size: 1.45rem; }

    .features-grid { grid-template-columns: repeat(1, 1fr); gap: 8px; }
    .feature-circle { width: 80px; height: 80px; }
    .feature-circle img { width: 70px; height: 70px; }
    .feature-item h4 { font-size: 1rem; }

    .services-grid { grid-template-columns: repeat(1, 1fr); gap: 8px; }
    .service-card i { font-size: 35px; }
    .service-card h4 { font-size: 1rem; }

    .doctor-feature-image img { height: 260px; }

    .review-slider { padding: 0; }
    .review-card { padding: 18px 12px; }

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

    .contact-card { padding: 15px; gap: 10px; }
    .contact-icon { width: 40px; height: 40px; font-size: 1rem; }

    .appointment-form-wrapper { padding: 15px 12px; }
    .btn-large { padding: 0.75rem 1rem; font-size: 0.85rem; }

    .floating-btn { width: 40px; height: 40px; font-size: 0.95rem; }
    .floating-buttons { right: 8px; bottom: 8px; gap: 10px; }
    #scroll-top { right: 8px; bottom: 110px; width: 35px; height: 35px; }

    .lightbox-prev { left: 0.3rem; width: 36px; height: 36px; font-size: 1rem; }
    .lightbox-next { right: 0.3rem; width: 36px; height: 36px; font-size: 1rem; }
    .lightbox-close { top: 0.3rem; right: 0.3rem; width: 36px; height: 36px; }
}

/* Tiny screens under 320px */
@media (max-width: 319px) {
    html { font-size: 12px; }
    .hero-title { font-size: 1.4rem; }
    .section-title { font-size: 1.3rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .review-slider { padding: 0 35px; }
}

/* Print */
@media print {
    .floating-buttons, #scroll-top, .mobile-toggle, #loading-screen { display: none !important; }
    #header { position: relative; }
    .hero { padding-top: 20px; }
}
