/* CSS Variables for Light/Dark Theme */
:root {
    /* Light Theme (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --accent-color: #dc2626;
    --accent-hover: #b91c1c;
    --accent-light: rgba(220, 38, 38, 0.1);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #475569;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    --accent-color: #ef4444;
    --accent-hover: #dc2626;
    --accent-light: rgba(239, 68, 68, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

[data-theme="dark"] .header {
    background: var(--bg-tertiary);
    box-shadow: 0 2px 10px var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .nav-link {
    color: var(--text-primary);
}

[data-theme="dark"] .bar {
    background: var(--text-primary);
}

[data-theme="dark"] .nav-menu {
    background-color: var(--bg-tertiary);
}

.navbar {
    padding: 1rem 0;
}

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

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

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

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
    background-color: var(--bg-primary);
}

.theme-toggle:hover {
    border-color: var(--accent-color);
    background-color: var(--accent-light);
    transform: scale(1.1);
}

.theme-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
    color: var(--accent-color);
}

/* Dark mode specific styles for theme toggle */
[data-theme="dark"] .theme-toggle {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: var(--accent-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc2626;
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: #000000; /* Fallback color */
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: #000000;
    color: var(--text-primary);
}

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

.hero-background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-background-slide.active {
    opacity: 1;
}

.hero-background-slide:nth-child(1) {
    background-image: url('assets/Lunetterie.webp');
}

.hero-background-slide:nth-child(2) {
    background-image: url('assets/Lunetterie2.webp');
}

.hero-background-slide:nth-child(3) {
    background-image: url('assets/lunetterie3.webp');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.5;
    color: white;
}

[data-theme="dark"] .hero-title {
    color: var(--text-primary);
}

[data-theme="dark"] .hero-subtitle {
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

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

.btn-primary {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-full {
    width: 100%;
    text-align: center;
}



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

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

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

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.service-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px var(--shadow-hover);
}

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

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

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

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

/* About Section */
.about {
    padding: 80px 0;
    background: var(--bg-primary);
}

/* Showcase Section */
.showcase {
    padding: 80px 0;
    background: var(--bg-secondary);
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg-secondary);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    color: var(--text-secondary);
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-placeholder {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--bg-secondary) 100%);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.gallery-placeholder i {
    margin-bottom: 1rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-placeholder i {
    opacity: 1;
    transform: scale(1.1);
}

.gallery-placeholder p {
    font-weight: 600;
    font-size: 1rem;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

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

.gallery-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

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

.gallery-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.gallery-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

[data-theme="dark"] .gallery-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

[data-theme="dark"] .gallery-placeholder {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

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

/* Clinic Carousel */
.clinic-carousel {
    position: relative;
    margin-bottom: 2rem;
}

.clinic-carousel .carousel-container {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.clinic-carousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.clinic-carousel .carousel-slide {
    min-width: 100%;
    padding: 0;
}

.clinic-carousel .gallery-image {
    height: 400px;
    position: relative;
    overflow: hidden;
}

.clinic-carousel .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

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

.clinic-carousel .gallery-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.clinic-carousel .gallery-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .gallery-item {
    box-shadow: 0 4px 6px var(--shadow);
}

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

.gallery-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.placeholder-image {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.placeholder-image i {
    margin-bottom: 1rem;
}

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

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

.gallery-overlay h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.showcase-appointment {
    position: sticky;
    top: 100px;
}

.appointment-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.appointment-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1rem;
    text-align: center;
}

.appointment-card p {
    color: #64748b;
    margin-bottom: 2rem;
    text-align: center;
}

.quick-appointment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quick-appointment-form .form-group {
    margin-bottom: 0;
}

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

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-features {
    display: grid;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    color: #10b981;
    font-size: 1.2rem;
}

.feature span {
    font-weight: 500;
    color: #374151;
}

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

.stat {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.stat h3 {
    font-size: 3rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #64748b;
    font-weight: 500;
}

/* Appointment Section */
.appointment {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.appointment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.appointment-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.appointment-list {
    list-style: none;
    margin-bottom: 2rem;
}

.appointment-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.appointment-list i {
    color: #10b981;
    font-size: 1.1rem;
}

.contact-info {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.contact-info i {
    color: var(--accent-color);
    width: 20px;
}

.appointment-form {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border-color);
}

.appointment-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-light);
}

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

.terms-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.terms-checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 0.25rem;
    cursor: pointer;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    accent-color: var(--accent-color);
}

.terms-checkbox-group label {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.terms-checkbox-group label a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.terms-checkbox-group label a:hover {
    color: #b91c1c;
}

.terms-checkbox-group label .required {
    color: #dc2626;
    margin-left: 4px;
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.country-selector {
    position: relative;
    flex: 0 0 auto;
    width: 120px;
}

.country-selector-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #374151;
}

.country-selector-trigger:hover {
    border-color: #374151;
}

.country-selector-trigger.active {
    border-color: #374151;
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.1);
}

.country-flag {
    font-size: 1.2rem;
}

.country-code {
    font-weight: 500;
}

.country-selector-trigger i {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.country-selector-trigger.active i {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow: hidden;
    display: none;
}

.country-dropdown.show {
    display: block;
}

.country-search {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.country-search input {
    width: 100%;
    padding: 8px 30px 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
}

.country-search input:focus {
    border-color: #374151;
}

.country-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.8rem;
}

.country-list {
    max-height: 200px;
    overflow-y: auto;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.country-option:hover {
    background-color: #f3f4f6;
}

.country-option.selected {
    background-color: #dc2626;
    color: white;
}

.country-option .country-flag {
    font-size: 1.1rem;
}

.country-option .country-name {
    flex: 1;
    font-weight: 500;
}

.country-option .country-code {
    font-weight: 600;
    color: #6b7280;
}

.country-option.selected .country-code {
    color: white;
}

.phone-input-group input[type="tel"] {
    flex: 1;
    width: 100%;
}

/* Insurance Section */
.insurance {
    padding: 80px 0;
    background: var(--bg-primary);
}

/* Insurance Carousel */
.insurance-carousel {
    position: relative;
    margin-bottom: 2rem;
}

.insurance-horizontal-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #1e40af #e2e8f0;
}

.insurance-horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.insurance-horizontal-scroll::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}

.insurance-horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.insurance-track {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
    animation: scroll 30s linear infinite;
}

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

.insurance-track:hover {
    animation-play-state: paused;
}

.carousel-container {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 1rem;
}

.insurance-item {
    background: var(--bg-primary);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-color);
    min-width: 220px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.insurance-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    transition: left 0.5s ease;
}

.insurance-item:hover::before {
    left: 100%;
}

.insurance-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.15);
    border-color: var(--accent-color);
    background: var(--bg-secondary);
}

.insurance-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border-color);
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.insurance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px var(--shadow-hover);
}

.insurance-logo {
    width: 140px;
    height: 140px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 3px solid var(--border-color);
    padding: 20px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.insurance-item:hover .insurance-logo {
    transform: scale(1.1) rotate(3deg);
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.2);
}

.insurance-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    width: 110px;
    height: 110px;
    transition: transform 0.3s ease;
}

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

.insurance-logo i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.insurance-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.insurance-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.insurance-details {
    margin-top: auto;
}

.coverage {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-btn {
    background: #dc2626;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: #047857;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.prev-btn {
    margin-left: -20px;
}

.next-btn {
    margin-right: -20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #dc2626;
}

.insurance-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.insurance-info {
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.insurance-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

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

.insurance-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    min-width: 250px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow);
}

.insurance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px var(--shadow-hover);
}

.insurance-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.insurance-item h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.insurance-item:hover h4 {
    color: var(--accent-color);
}

.insurance-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.payment-info {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 3rem 2rem;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.3s ease;
}

[data-theme="dark"] .payment-info {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.payment-info:hover {
    box-shadow: 0 12px 35px var(--shadow-hover);
    transform: translateY(-3px);
}

.payment-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.payment-method {
    background: var(--bg-primary);
    padding: 1.5rem 1rem;
    border-radius: 18px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.payment-method::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-light);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.payment-method:hover::before {
    width: 300px;
    height: 300px;
}

.payment-method:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 30px var(--shadow-hover);
    border-color: var(--accent-color);
    background: var(--bg-secondary);
}

.payment-icon {
    width: 65px;
    height: 65px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    border: 2px solid var(--border-color);
    box-shadow: 0 3px 10px var(--shadow);
}

.payment-method:hover .payment-icon {
    background: var(--accent-color);
    color: white;
    transform: scale(1.15) rotate(5deg);
    border-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.payment-icon.visa {
    color: #1a1f71;
}

.payment-icon.mastercard {
    color: #eb001b;
}

.payment-icon.equity {
    color: #00a651;
}

.payment-icon.momo {
    color: #ff6b35;
}

.payment-icon.airtel {
    color: #e60012;
}

.payment-method span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    display: block;
}

.payment-method:hover span {
    color: var(--accent-color);
}

.insurance-verification {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.insurance-verification h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.insurance-verification p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.verification-info p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.payment-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1rem;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-methods i {
    font-size: 1.5rem;
    color: #1e40af;
}

.insurance-contact {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.insurance-contact h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1rem;
}

.verification-info p {
    margin-bottom: 0.5rem;
    color: #64748b;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.contact-info {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: center;
    text-align: left;
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

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

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

.contact-form {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

[data-theme="dark"] .footer {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

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

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

.footer-logo-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.footer-logo-text p {
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* WhatsApp Chat Button */
.whatsapp-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    background: #25d366;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.whatsapp-btn i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.whatsapp-text {
    font-size: 0.9rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 2rem 0;
    }
    
    .theme-toggle {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }

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

    .nav-toggle {
        display: flex;
    }

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

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

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

    .hero-container {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-background-slide {
        background-attachment: scroll;
        background-position: center top;
    }

    .hero-buttons {
        justify-content: flex-start;
    }


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

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

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

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

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .phone-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .country-selector {
        width: 100%;
    }
    
    .country-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        max-height: 80vh;
    }

    .showcase-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-image-wrapper {
        height: 250px;
    }

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

    .quick-appointment-form .form-row {
        grid-template-columns: 1fr;
    }

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

    .insurance-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .insurance-item {
        min-width: 200px;
        padding: 1.5rem;
    }
    
    .insurance-logo {
        width: 100px;
        height: 100px;
        padding: 12px;
    }
    
    .insurance-logo-img {
        width: 75px;
        height: 75px;
    }

    .carousel-controls {
        display: none;
    }

    .whatsapp-chat {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn {
        padding: 12px 16px;
    }

    .whatsapp-text {
        display: none;
    }

    .payment-methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    .payment-method {
        padding: 0.8rem;
    }

    .payment-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .payment-method span {
        font-size: 0.7rem;
    }

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

    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-background-slide {
        background-attachment: scroll; /* Better performance on mobile */
    }
}

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

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

    .hero-subtitle {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-image-wrapper {
        height: 220px;
    }
    
    .gallery-content h3 {
        font-size: 1.1rem;
    }
    
    .gallery-content p {
        font-size: 0.85rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-card,
    .appointment-form,
    .contact-form {
        padding: 1.5rem;
    }

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

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-text p {
        font-size: 0.8rem;
    }
}

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

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

.service-card,
.about-content,
.appointment-content,
.insurance-content,
.contact-content {
    animation: fadeInUp 0.6s ease-out;
}

/* Form Validation Styles */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #374151;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #6b7280;
}

/* Success Message */
.success-message {
    background: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
}

/* Error Message */
.error-message {
    background: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
}
