/* Base and Reset */
:root {
    --primary-color: #0b5c7a; /* Professional medical teal/blue */
    --primary-light: #e6f3f7;
    --primary-dark: #073a4d;
    --secondary-color: #f7a400; /* Warm accent */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #e5e5e5;
    
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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

.section {
    padding: 96px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
    transition: padding var(--transition-fast);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    transition: color var(--transition-fast);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 130px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-height: 440px;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

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

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-main);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

/* Doctor Section */
.doctor-section {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.doctor-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.doctor-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
}

.doctor-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

.doctor-experience-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 3px solid #ffffff;
}

.doctor-experience-badge .exp-number {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.doctor-experience-badge .exp-text {
    font-size: 0.72rem;
    font-weight: 500;
    margin-top: 4px;
    max-width: 110px;
    line-height: 1.2;
}

.doctor-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.doctor-content h2 {
    font-size: 2.25rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.doctor-qualifications {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 18px;
}

.doctor-bio {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 1.025rem;
}

.doctor-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.highlight-item i {
    color: #10b981;
    font-size: 1.35rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.highlight-item strong {
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
}

.highlight-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Gallery Section */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.filter-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.gallery-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.gallery-image-box {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.gallery-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-image-box img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.25) 50%, transparent 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.gallery-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.gallery-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.gallery-zoom-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* Lightbox Modal */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

.lightbox-content {
    position: relative;
    z-index: 10;
    max-width: 820px;
    width: 100%;
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.85);
}

.lightbox-image-container {
    width: 100%;
    max-height: 65vh;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    padding: 20px 24px;
    background: #ffffff;
}

.lightbox-caption h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.lightbox-caption p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-main);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.rating {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 24px;
    display: flex;
    gap: 4px;
}

.quote {
    font-size: 1.125rem;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 32px;
    flex-grow: 1;
}

.author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-info strong {
    display: block;
    color: var(--text-main);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.contact-info {
    padding: 64px;
}

.info-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    gap: 16px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 4px;
}

.info-item p {
    margin-bottom: 0;
}

.contact-map {
    min-height: 400px;
}

/* Footer */
.footer {
    background-color: var(--text-main);
    color: white;
    padding: 80px 0 32px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #a3a3a3;
    max-width: 400px;
}

.footer-links h3 {
    color: white;
    margin-bottom: 24px;
}

.footer-links a {
    display: block;
    color: #a3a3a3;
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #404040;
    padding-top: 32px;
    text-align: center;
    color: #a3a3a3;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container, .contact-wrapper, .footer-container {
        grid-template-columns: 1fr;
    }
    
    .hero-img {
        height: 400px;
    }

    .contact-info {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links, .navbar .btn-primary {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .section {
        padding: 64px 0;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

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

    .gallery-image-box {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 12px;
    }
    .stat-item {
        border-right: none;
        border-bottom: none;
        padding: 4px 6px;
        justify-content: flex-start;
    }
    .stat-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Mobile Menu Active State */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-links.active a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-links.active a:last-child {
    border-bottom: none;
}
