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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2a2a2a;
    --accent-color: #4a9eff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #333333;
    --card-bg: #1f1f1f;
    --hover-color: #5aafff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(74, 158, 255, 0.3) 20%,
        var(--accent-color) 50%,
        rgba(74, 158, 255, 0.3) 80%,
        transparent 100%);
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.5),
                0 0 40px rgba(74, 158, 255, 0.3),
                0 0 60px rgba(74, 158, 255, 0.2);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.8;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.02);
    }
}

.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;
    justify-content: flex-start;
    height: 100%;
    gap: 1rem;
}

.nav-logo img {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-clinic-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .nav-clinic-name {
        font-size: 0.7rem;
        white-space: normal;
        max-width: 150px;
        line-height: 1.2;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

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

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Home Section */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 0;
    position: relative;
    background-image: url('Homepage/Untitled design (29).png');
    background-size: 60% auto;
    background-position: center right;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--primary-color);
    margin-bottom: 0;
}

.home-overlay {
    display: none;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-left: 5%;
    position: relative;
    z-index: 2;
}

.home-content {
    animation: fadeInLeft 1s ease;
    max-width: 600px;
}

.home-image-mobile {
    display: none;
}

.home-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.home-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.home-location {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.home-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 158, 255, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}


/* Section Styles */
section {
    padding: 80px 20px;
}

section:first-of-type {
    padding-bottom: 0;
}

.about-section {
    padding-top: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

/* About Section */
.about-section {
    background-color: var(--secondary-color);
    padding-top: 80px;
}

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

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

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    aspect-ratio: 3/4;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.about-qualifications {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.about-specializations {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.about-details-card {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.6) 0%, rgba(26, 26, 26, 0.8) 100%);
    border: 1px solid rgba(74, 158, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.about-details-card:hover {
    border-color: rgba(74, 158, 255, 0.3);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.15);
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
}

.about-details-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.about-details-card h4:first-child {
    margin-top: 0;
}

.about-details-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-details-card p strong {
    color: var(--accent-color);
    font-weight: 600;
}

.about-details-card p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(74, 158, 255, 0.05) 100%);
    border: 2px solid rgba(74, 158, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    flex: 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--hover-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 158, 255, 0.5);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.2);
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.08) 100%);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Services Section */
.services-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--primary-color) 0%, #0f0f0f 100%);
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
    font-weight: 300;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    padding: 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.6) 0%, rgba(26, 26, 26, 0.8) 100%);
    border: 1px solid rgba(74, 158, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-item:hover::before {
    opacity: 1;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 158, 255, 0.3);
    box-shadow: 0 20px 60px rgba(74, 158, 255, 0.15);
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
}

.service-item-left {
    grid-template-columns: auto 1fr;
}

.service-item-right {
    grid-template-columns: 1fr auto;
}

.service-image-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.service-icon-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.05) 100%);
    border: 3px solid rgba(74, 158, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    padding: 10px;
}

.service-item:hover .service-icon-circle {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.25) 0%, rgba(74, 158, 255, 0.1) 100%);
    border-color: rgba(74, 158, 255, 0.5);
    box-shadow: 0 15px 40px rgba(74, 158, 255, 0.3);
}

.service-icon {
    font-size: 4.5rem;
    transition: transform 0.5s ease;
}

.service-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.5s ease;
    background: rgba(26, 26, 26, 0.3);
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

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

.service-number {
    display: none;
}

.service-text-area {
    z-index: 1;
    position: relative;
}

.service-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(74, 158, 255, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.service-text-area h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.service-item:hover .service-text-area h3 {
    color: var(--accent-color);
}

.service-text-area p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.feature-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.service-item:hover .feature-tag {
    background: rgba(74, 158, 255, 0.1);
    border-color: rgba(74, 158, 255, 0.3);
    color: var(--accent-color);
}

/* Diagnostic Services Auto-Scrolling Section */
.diagnostic-services-section {
    margin-top: 4rem;
    padding: 3rem 0;
}

.diagnostic-services-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.diagnostic-services-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.diagnostic-services-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    margin: 0 -20px;
}

.diagnostic-services-scroll {
    display: flex;
    gap: 2rem;
    animation: scrollDiagnosticServices 25s linear infinite;
    width: fit-content;
    animation-fill-mode: forwards;
}

.diagnostic-services-scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollDiagnosticServices {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.diagnostic-service-item {
    flex: 0 0 350px;
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.6) 0%, rgba(26, 26, 26, 0.8) 100%);
    border: 1px solid rgba(74, 158, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.diagnostic-service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.diagnostic-service-item:hover::before {
    opacity: 1;
}

.diagnostic-service-item:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 158, 255, 0.3);
    box-shadow: 0 20px 60px rgba(74, 158, 255, 0.15);
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
}

.diagnostic-service-icon-circle {
    width: 100%;
    max-width: 280px;
    height: 240px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(74, 158, 255, 0.05) 100%);
    border: 2px solid rgba(74, 158, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    padding: 20px;
    margin-bottom: 0.5rem;
}

.diagnostic-service-item:hover .diagnostic-service-icon-circle {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(74, 158, 255, 0.08) 100%);
    border-color: rgba(74, 158, 255, 0.3);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.2);
}

.diagnostic-service-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.diagnostic-service-item:hover .diagnostic-service-icon-img {
    transform: scale(1.05);
}

.diagnostic-service-content {
    z-index: 1;
    position: relative;
}

.diagnostic-service-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(74, 158, 255, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

.diagnostic-service-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.diagnostic-service-item:hover .diagnostic-service-content h4 {
    color: var(--accent-color);
}

.diagnostic-service-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Service Modal */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

.service-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.service-modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--card-bg) 0%, #1a1a1a 100%);
    border-radius: 24px;
    border: 1px solid rgba(74, 158, 255, 0.3);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(74, 158, 255, 0.2);
}

.service-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.service-modal-close:hover {
    background: rgba(74, 158, 255, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.service-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3rem;
}

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

.service-modal-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

.service-modal-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-modal-category {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(74, 158, 255, 0.15);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(74, 158, 255, 0.3);
    width: fit-content;
}

.service-modal-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.service-modal-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 0;
}

.service-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-book-now {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.btn-modal-close {
    flex: 1;
    min-width: 150px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery Section */
.gallery-section {
    background-color: var(--secondary-color);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    filter: none !important;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-transform: translateZ(0);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--text-primary);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-caption {
    text-align: center;
    color: var(--text-primary);
    padding: 10px;
}

/* Testimonials Section */
.testimonials-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.testimonials-scroll {
    display: flex;
    gap: 2rem;
    animation: scrollTestimonials 30s linear infinite;
    width: fit-content;
    animation-fill-mode: forwards;
}

.testimonials-scroll:hover {
    animation-play-state: paused;
}

.testimonials-scroll.animation-reset {
    animation: none;
}

.testimonials-scroll.animation-reset.animation-start {
    animation: scrollTestimonials 30s linear infinite;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    width: 350px;
    max-width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.2);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.testimonial-name {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-stars {
    display: flex;
    align-items: center;
}

.testimonial-stars .star {
    color: #FFD700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.testimonial-content {
    flex: 1;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

.testimonial-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(74, 158, 255, 0.2);
}

/* Testimonial Modal */
.testimonial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
}

.testimonial-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.testimonial-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    border-radius: 20px;
    padding: 3rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(74, 158, 255, 0.2);
    margin: 2rem auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.testimonial-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.testimonial-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.testimonial-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.testimonial-modal-icon {
    color: var(--accent-color);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.testimonial-modal-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.testimonial-modal-author h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.testimonial-modal-stars {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-modal-stars .star {
    color: #FFD700;
    font-size: 1.5rem;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.testimonial-modal-text {
    margin: 1rem 0;
}

.testimonial-modal-text p {
    font-size: 1.3rem;
    line-height: 2;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
    padding: 0 1rem;
}

.testimonial-modal-quote {
    color: var(--accent-color);
    opacity: 0.3;
    margin-top: 1rem;
    transform: rotate(180deg);
}

/* FAQ Section */
.faq-section {
    background-color: var(--secondary-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.contact-details p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-details a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--hover-color);
}

.address-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.address-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-contact .address-link {
    color: var(--text-secondary);
}

.footer-contact .address-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Appointment Form */
.appointment-form-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.appointment-form-container h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.required {
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 158, 255, 0.4);
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 3rem;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.floating-btn svg {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    color: white;
}

.floating-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.floating-btn:hover .floating-btn-shine {
    left: 100%;
}

.floating-btn-call {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.95) 0%, rgba(18, 140, 126, 0.95) 100%);
}

.floating-btn-call:hover {
    transform: translateX(5px) translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    border-color: rgba(255, 255, 255, 0.3);
}

.floating-btn-call:hover svg {
    transform: scale(1.15) rotate(5deg);
}

.floating-btn-whatsapp {
    background: linear-gradient(135deg, rgba(18, 140, 126, 0.95) 0%, rgba(7, 94, 84, 0.95) 100%);
}

.floating-btn-whatsapp:hover {
    transform: translateX(5px) translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(18, 140, 126, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    border-color: rgba(255, 255, 255, 0.3);
}

.floating-btn-whatsapp:hover svg {
    transform: scale(1.15) rotate(-5deg);
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    padding: 3rem 20px 1rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-clinic-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
    letter-spacing: 0.3px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

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

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

.footer-links a,
.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .home-container {
        text-align: center;
        margin-left: auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .home-content {
        max-width: 100%;
        order: 2;
    }

    .home-image-mobile {
        display: block;
        order: 1;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    .home-image-mobile img {
        width: 100%;
        height: auto;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .home-section {
        background-attachment: scroll !important;
        background-image: none !important;
        background: var(--primary-color) !important;
        background-color: var(--primary-color) !important;
        padding: 120px 20px 40px;
        min-height: auto;
    }
    
    .home-overlay {
        display: none !important;
    }
    
    .home-container {
        background: transparent;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .about-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
        border-radius: 20px;
        aspect-ratio: 3/4;
        object-fit: cover;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .appointment-form-container {
        padding: 2rem 1.5rem;
    }
    
    .appointment-form-container h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info {
        gap: 1.5rem;
        padding: 0;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 0;
        margin: 0;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .contact-details {
        width: 100%;
    }
    
    .contact-details h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-details p {
        font-size: 0.95rem;
        margin: 0;
    }
    
    .contact-map {
        width: 100%;
        height: 300px;
        margin: 0;
    }
    
    .contact-map iframe {
        min-height: 300px;
        height: 100%;
    }
    
    .faq-item {
        margin-bottom: 0.75rem;
    }
    
    .faq-question {
        padding: 1.25rem 1rem;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        margin: 0;
    }
    
    .testimonial-name {
        font-size: 1rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .service-modal-content {
        width: 98%;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
    
    .service-modal-body {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .scroll-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 150px !important;
        right: 15px !important;
        font-size: 20px !important;
    }
    
    .floating-buttons {
        bottom: 20px;
        left: 15px;
        gap: 10px;
    }
    
    .floating-btn {
        width: 42px;
        height: 42px;
    }
    
    .floating-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .testimonial-modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
        max-width: 95%;
        border-radius: 15px;
    }
    
    .testimonial-modal-author h3 {
        font-size: 1.5rem;
    }
    
    .testimonial-modal-text p {
        font-size: 1.1rem;
        line-height: 1.8;
        padding: 0 0.5rem;
    }
    
    .testimonial-modal-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .service-item {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 1.75rem;
    }

    .service-item-left,
    .service-item-right {
        grid-template-columns: 1fr !important;
    }

    .service-image-area {
        order: 1;
    }

    .service-text-area {
        order: 2;
    }

    .service-item-right .service-image-area {
        order: 1;
    }

    .service-item-right .service-text-area {
        order: 2;
    }

    .service-icon-circle {
        width: 150px;
        height: 150px;
    }

    .service-number {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    section {
        padding: 60px 15px;
        overflow-x: hidden;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo {
        gap: 0.5rem;
    }
    
    .nav-logo img {
        height: 50px;
    }
    
    .nav-clinic-name {
        font-size: 0.65rem;
        max-width: 120px;
        line-height: 1.2;
    }

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

    .home-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .home-section {
        padding: 100px 15px 40px;
    }
    
    .home-content {
        padding: 0;
        margin: 0;
    }
    
    .home-buttons {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .services-grid,
    .testimonials-wrapper {
        overflow: hidden;
        position: relative;
        padding: 20px 0;
    }

    .testimonials-scroll {
        animation: scrollTestimonials 30s linear infinite;
        flex-wrap: nowrap;
    }

    .testimonial-card {
        width: 280px;
        max-width: 280px;
    }

    .service-modal-body {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .service-modal-content {
        width: 95%;
        padding: 0;
    }

    .service-modal-info h2 {
        font-size: 2rem;
    }

    .services-container {
        gap: 2rem;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .service-item {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: center;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .service-item-left,
    .service-item-right {
        grid-template-columns: 1fr !important;
    }

    .service-image-area {
        order: 1;
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }

    .service-text-area {
        order: 2;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .service-item-right .service-image-area {
        order: 1;
    }

    .service-item-right .service-text-area {
        order: 2;
    }

    .service-icon-circle {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .service-icon {
        font-size: 3rem;
    }
    
    .service-icon-img {
        width: 100%;
        height: 100%;
    }

    .service-number {
        display: none;
    }

    .service-text-area h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .service-text-area p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .service-features {
        gap: 0.5rem;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .diagnostic-services-section {
        margin-top: 2rem;
        padding: 2rem 0;
    }

    .diagnostic-services-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .diagnostic-services-wrapper {
        margin: 0 -15px;
        padding: 15px 0;
    }

    .diagnostic-services-scroll {
        gap: 1.5rem;
        animation: scrollDiagnosticServices 20s linear infinite;
    }

    .diagnostic-service-item {
        flex: 0 0 280px;
        padding: 1.5rem;
        gap: 1rem;
    }

    .diagnostic-service-icon-circle {
        width: 100%;
        max-width: 240px;
        height: 200px;
        padding: 15px;
    }

    .diagnostic-service-content h4 {
        font-size: 1.2rem;
    }

    .diagnostic-service-content p {
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-item {
        width: 100%;
        margin: 0;
        overflow: hidden;
    }
    
    .gallery-item img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .about-stats {
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 2rem;
    }
    
    .stat-item {
        max-width: 180px;
    }

    .home-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .appointment-form-container {
        padding: 1.5rem 1rem;
    }
    
    .appointment-form-container h3 {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }
    
    .appointment-form {
        gap: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .contact-map {
        margin-top: 2rem;
    }
    
    .contact-map {
        height: 250px;
    }
    
    .contact-map iframe {
        min-height: 250px;
    }
    
    .testimonial-modal-content {
        padding: 1.5rem 1rem;
        width: 98%;
        max-width: 98%;
        border-radius: 12px;
        margin: 1rem auto;
    }
    
    .testimonial-modal-author h3 {
        font-size: 1.3rem;
    }
    
    .testimonial-modal-text p {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0;
    }
    
    .testimonial-modal-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    
    .testimonial-modal-stars .star {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    section {
        padding: 50px 12px;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        padding: 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        padding: 0 12px;
    }
    
    .nav-logo img {
        height: 45px;
    }
    
    .nav-clinic-name {
        font-size: 0.6rem;
        max-width: 100px;
    }
    
    .home-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .home-subtitle {
        font-size: 1.1rem;
    }
    
    .home-description {
        font-size: 1rem;
    }
    
    .home-location {
        font-size: 0.9rem;
    }
    
    .home-image-mobile {
        margin: 0 auto 1.5rem;
    }
    
    .home-image-mobile img {
        max-width: 100%;
    }
    
    .home-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        padding: 12px 20px;
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .about-image {
        width: 100%;
        margin: 0 auto 1.5rem;
    }
    
    .about-image img {
        max-width: 100%;
        width: 100%;
        max-width: 280px;
        aspect-ratio: 3/4;
        object-fit: cover;
        margin: 0 auto;
        display: block;
    }
    
    .about-content {
        gap: 1.5rem;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .about-text {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .about-text h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
    }
    
    .about-qualifications {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .about-specializations {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .about-bio {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
    }
    
    .about-details-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .about-details-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        margin-top: 1rem;
    }
    
    .about-details-card h4:first-child {
        margin-top: 0;
    }
    
    .about-details-card p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }
    
    .about-stats {
        gap: 1rem;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 130px;
        padding: 1.25rem 0.75rem;
        max-width: calc(50% - 0.5rem);
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }

    .service-item {
        padding: 1.25rem;
        gap: 1.5rem;
    }

    .service-icon-circle {
        width: 120px;
        height: 120px;
    }

    .service-icon {
        font-size: 3rem;
    }

    .service-number {
        display: none;
    }

    .service-text-area h3 {
        font-size: 1.3rem;
    }

    .service-features {
        gap: 0.5rem;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .diagnostic-services-section {
        margin-top: 1.5rem;
        padding: 1.5rem 0;
    }

    .diagnostic-services-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .diagnostic-services-wrapper {
        margin: 0 -12px;
        padding: 10px 0;
    }

    .diagnostic-services-scroll {
        gap: 1rem;
        animation: scrollDiagnosticServices 18s linear infinite;
    }

    .diagnostic-service-item {
        flex: 0 0 260px;
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .diagnostic-service-icon-circle {
        width: 100%;
        max-width: 220px;
        height: 180px;
        padding: 12px;
    }

    .diagnostic-service-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .diagnostic-service-content p {
        font-size: 0.8rem;
    }

    .services-subtitle {
        font-size: 1rem;
    }

    .service-modal-body {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .service-modal-image {
        order: 1;
    }

    .service-modal-info {
        order: 2;
    }

    .service-modal-info h2 {
        font-size: 1.8rem;
    }

    .service-modal-actions {
        flex-direction: column;
    }

    .btn-book-now,
    .btn-modal-close {
        width: 100%;
    }
}

