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

body {
    font-family: 'Assistant', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Text direction support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* Navigation direction support */
[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="ltr"] .nav-menu {
    flex-direction: row;
}

/* RTL support for Hebrew and Arabic - Desktop only */
@media (min-width: 769px) {
    html[lang="he"] .nav-menu,
    html[lang="ar"] .nav-menu {
        flex-direction: row !important;
        direction: rtl;
    }
}

@media (min-width: 769px) {
    html[lang="ru"] .nav-menu {
        flex-direction: row !important;
        direction: ltr;
    }
}

/* Additional RTL support for navigation - Desktop only */
@media (min-width: 769px) {
    html[lang="he"] .nav-menu a,
    html[lang="ar"] .nav-menu a {
        text-align: right;
    }

    html[lang="ru"] .nav-menu a {
        text-align: left;
    }
}

/* Ensure proper RTL layout for navigation - Desktop only */
@media (min-width: 769px) {
    html[lang="he"] .nav-menu,
    html[lang="ar"] .nav-menu {
        justify-content: flex-end;
    }

    html[lang="ru"] .nav-menu {
        justify-content: flex-start;
    }
}

/* Ensure logo icon is always visible */
.logo i.fa-tooth {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Accessibility Menu */
.accessibility-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.accessibility-toggle:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.accessibility-toggle:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Mobile accessibility button positioning */
@media (max-width: 768px) {
    .accessibility-toggle {
        left: 15px;
        right: auto;
        width: auto; /* Auto width for text */
        min-width: 50px; /* Smaller minimum width */
        height: 30px; /* Smaller height */
        font-size: 0.7rem; /* Smaller text */
        top: 15px;
    }
}

/* Desktop accessibility button positioning - Move to left */
.accessibility-toggle {
    position: fixed;
    top: 20px;
    left: 20px; /* Move to left side */
    right: auto; /* Remove right positioning */
    background: #2c3e50;
    color: #ffffff;
    border: none;
    border-radius: 8px; /* Less rounded for text */
    width: auto; /* Auto width for text */
    min-width: 60px; /* Minimum width */
    height: 40px; /* Fixed height */
    font-size: 0.9rem; /* Smaller text */
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0 0.5rem;
}

/* Laptop accessibility button positioning */
@media (max-width: 1024px) {
    .accessibility-toggle {
        left: 20px;
        right: auto;
        width: auto; /* Auto width for text */
        min-width: 55px; /* Smaller minimum width */
        height: 35px; /* Smaller height */
        font-size: 0.8rem; /* Smaller text */
    }
}

/* Desktop Language Switcher - Left Side */
.desktop-language-switcher {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    position: absolute;
    left: 30px; /* Closer to edge, less space */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.desktop-language-switcher .lang-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 50px;
    text-align: center;
}

.desktop-language-switcher .lang-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.desktop-language-switcher .lang-btn.active {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    color: #60a5fa;
    font-weight: 600;
}

/* Laptop specific positioning */
@media (max-width: 1024px) and (min-width: 769px) {
    .desktop-language-switcher {
        left: 35px; /* Less space on laptops */
    }
}

/* Hide desktop language switcher on mobile */
@media (max-width: 768px) {
    .desktop-language-switcher {
        display: none;
    }
}

/* Mobile Language Switcher - Only visible on mobile */
.mobile-language-switcher {
    display: none; /* Hidden by default */
    width: 100%;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

/* Show mobile language switcher only on mobile */
@media (max-width: 768px) {
    .mobile-language-switcher {
        display: block;
    }
}

.mobile-lang-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mobile-lang-buttons .lang-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 80px;
}

.mobile-lang-buttons .lang-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.mobile-lang-buttons .lang-btn.active {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    color: #60a5fa;
    font-weight: 600;
}

.accessibility-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.accessibility-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.accessibility-menu-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    margin: auto;
}

.accessibility-menu.active .accessibility-menu-content {
    transform: scale(1);
}

.accessibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #ecf0f1;
}

.accessibility-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
}

.accessibility-close {
    background: #e74c3c;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.accessibility-close:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.accessibility-group {
    margin-bottom: 24px;
}

.accessibility-group h3 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: bold;
}

.font-size-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.font-size-btn, .font-reset {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-size-btn:hover, .font-reset:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.font-size-btn.active {
    background: #27ae60;
    box-shadow: 0 0 0 2px #2ecc71;
}

.contrast-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contrast-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.contrast-btn:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.contrast-btn.active {
    background: #27ae60;
    box-shadow: 0 0 0 2px #2ecc71;
}

.additional-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accessibility-option {
    background: #ecf0f1;
    color: #2c3e50;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.accessibility-option:hover {
    background: #d5dbdb;
    transform: translateX(4px);
}

.accessibility-option.active {
    background: #3498db;
    color: white;
}

.accessibility-actions {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 2px solid #ecf0f1;
}

.accessibility-reset {
    background: #e67e22;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: bold;
    width: 100%;
    justify-content: center;
}

.accessibility-reset:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* Accessibility States */
body.font-small { font-size: 14px; }
body.font-medium { font-size: 16px; }
body.font-large { font-size: 18px; }
body.font-xlarge { font-size: 20px; }
body.font-xxlarge { font-size: 24px; }

/* Keep accessibility menu unaffected by accessibility settings */
.accessibility-menu {
    font-size: 16px;
    filter: none;
    animation-duration: 0.3s;
    transition-duration: 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.accessibility-menu-content {
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: auto;
}

.accessibility-menu.active .accessibility-menu-content {
    transform: scale(1);
}

.accessibility-menu * {
    font-size: 16px;
    filter: none;
    animation-duration: 0.3s;
    transition-duration: 0.3s;
}

/* High Contrast Mode - WCAG AA Compliant */
body.high-contrast {
    background: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast *:not(.accessibility-menu):not(.accessibility-menu *) {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6 {
    color: #ffffff !important;
    text-shadow: none !important;
}

body.high-contrast a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

body.high-contrast button {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}

/* Monochrome Mode - WCAG AA Compliant */
body.monochrome {
    background: #f5f5f5 !important;
    color: #333333 !important;
}

body.monochrome *:not(.accessibility-menu):not(.accessibility-menu *) {
    background: #f5f5f5 !important;
    color: #333333 !important;
    border-color: #666666 !important;
}

body.monochrome h1,
body.monochrome h2,
body.monochrome h3,
body.monochrome h4,
body.monochrome h5,
body.monochrome h6 {
    color: #333333 !important;
}

body.monochrome a {
    color: #000000 !important;
    text-decoration: underline !important;
}

body.monochrome button {
    background: #666666 !important;
    color: #ffffff !important;
    border: 2px solid #333333 !important;
}

body.highlight-links a {
    background: #ffff00 !important;
    color: #000000 !important;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: underline !important;
}

body.disable-animations * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Keep accessibility menu animations working */
body.disable-animations .accessibility-menu,
body.disable-animations .accessibility-menu * {
    animation-duration: 0.3s !important;
    transition-duration: 0.3s !important;
}


body.readable-font {
    font-family: 'Arial', 'Helvetica', sans-serif !important;
}

/* WhatsApp Button - Fixed Position */
.whatsapp-btn {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    background: #25D366 !important;
    color: white !important;
    padding: 12px 16px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    animation: whatsappPulse 2s infinite !important;
    transform: none !important;
    will-change: auto !important;
}

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

.whatsapp-btn i {
    font-size: 1.2rem;
}

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


/* Force RTL for Hebrew and Arabic */
html[lang="he"], html[lang="ar"] {
    direction: rtl !important;
}

/* Accessibility Features */
/* Focus indicators */
*:focus {
    outline: 2px solid #10b981 !important;
    outline-offset: 2px !important;
}


/* High contrast mode support */
@media (prefers-contrast: high) {
    .whatsapp-btn {
        border: 2px solid #ffffff;
    }
    
    .nav-menu a {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .whatsapp-btn {
        animation: none;
    }
    
    .hero-placeholder i {
        animation: none !important;
    }
}

/* Ensure Hebrew text is displayed correctly */
html[lang="he"] {
    font-family: 'Assistant', Arial, sans-serif;
}

/* Force LTR only for Russian */
html[lang="ru"] {
    direction: ltr !important;
}

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

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    position: absolute;
    right: 0;
    white-space: nowrap;
}

.logo i {
    margin-left: 8px;
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile nav menu override */
@media (max-width: 768px) {
    .nav-menu {
        gap: 0 !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }
}



/* Remove background from desktop nav menu */
@media (min-width: 769px) {
    .nav-menu {
        background: none;
        border-radius: 0;
        backdrop-filter: none;
        border: none;
        padding: 0;
    }
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #10b981;
    transform: translateY(-2px);
}


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 1rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 120px 0 80px;
    min-height: 100vh;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #1e3a8a 100%);
    z-index: 1;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    animation: gradientShift 3s ease-in-out infinite alternate;
}

.hero:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #10b981 100%);
    z-index: 1;
    box-shadow: 0 -2px 10px rgba(30, 58, 138, 0.3);
    animation: gradientShift 3s ease-in-out infinite alternate-reverse;
}

@keyframes gradientShift {
    0% {
        background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #1e3a8a 100%);
    }
    100% {
        background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #10b981 100%);
    }
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Smaller text size for Russian */
html[lang="ru"] .logo {
    font-size: 0.8rem;
}

.hero-content h2 {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-icon {
    text-align: center;
    margin-top: 1rem;
}

.hero-phone {
    margin: 1.5rem 0;
    text-align: center;
}

.phone-card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.phone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.phone-card i {
    font-size: 1.2rem;
    color: white;
}

.phone-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.phone-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.phone-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-number:hover {
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

.hero-icon {
    text-align: center;
    margin-top: 1rem;
}

.hero-icon i {
    color: #1e3a8a;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: toothFloat 3s ease-in-out infinite;
}

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

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn-secondary:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-3px);
}

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

.hero-placeholder {
    background: none;
    border-radius: 0;
    padding: 2rem;
    color: white;
    text-align: center;
    box-shadow: none;
    border: 3px solid #10b981;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.hero-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.hero-placeholder i {
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    font-size: 8rem !important;
    line-height: 1;
    animation: toothFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.hero-placeholder i:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    animation-play-state: paused;
}

/* Hero Map */
.hero-map {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.hero-map h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.hero-map .map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.hero-map iframe {
    width: 100%;
    height: 350px;
    border: none;
}

.hero-map .map-address {
    text-align: center;
}

.hero-map .map-address p {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-map .map-address i {
    color: #e74c3c;
    margin-left: 0.5rem;
}

.hero-map .map-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-map .map-link:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

@keyframes toothFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
    position: relative;
}

.about:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #1e3a8a 100%);
    z-index: 1;
}

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

.about-text h3 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 2rem;
    font-weight: 600;
}

.about-text ul {
    list-style: none;
}

.about-text li {
    padding: 0.8rem 0;
    color: #64748b;
    font-size: 1.1rem;
    position: relative;
    padding-right: 2rem;
}

.about-text li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

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

.image-placeholder {
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    border-radius: 15px;
    padding: 0;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 3px solid #ffffff;
    position: relative;
    height: 400px;
    min-height: 400px;
}

.image-placeholder i {
    color: #10b981;
}

.clinic-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: block;
}

.clinic-logo:hover {
    transform: scale(1.02);
}

/* Implants Section */
.implants {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.implants:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #10b981 100%);
    z-index: 1;
}

.implants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.implant-card {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #10b981;
    width: 100%;
    max-width: 280px;
}

.implant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.implant-card h3 {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.implant-card p {
    color: #64748b;
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Tooth Button Styles */
.tooth-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.tooth-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.tooth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.tooth-button:hover:before {
    left: 100%;
}

.tooth-button:active {
    transform: translateY(0);
}

.tooth-button i {
    font-size: 1rem;
    color: white;
}

.tooth-button span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
    position: relative;
}

.services:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #1e3a8a 100%);
    z-index: 1;
}

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

.service-item {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-item:hover {
    border-color: #10b981;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.service-item i {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-item p {
    color: #64748b;
    line-height: 1.6;
}

.service-details {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 0.9rem;
    position: relative;
    padding-right: 1.5rem;
}

.service-details li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #10b981;
    font-weight: bold;
}

.service-details li:last-child {
    border-bottom: none;
}


/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.testimonials .section-header h2 {
    color: white;
}

.testimonials .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

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

.testimonial-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-content {
    text-align: center;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.testimonial-author span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-item {
        padding: 1.5rem;
    }
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: #f8fafc;
}

.faq-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .faq-content {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 50%, #1e3a8a 100%);
    color: white;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #1e40af 0%, #059669 50%, #1e3a8a 100%);
}

.faq-question h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.faq-question i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 1rem;
    max-height: 150px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.4;
    color: #4b5563;
    font-size: 0.85rem;
}



/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
    position: relative;
}

.contact-map {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-map h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

/* Map Container */
.map-container {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 350px;
}

.map-container iframe {
    border-radius: 8px;
    width: 100%;
    height: 350px;
}

.map-address {
    margin-top: 1rem;
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-right: 4px solid #10b981;
}

.map-address p {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.map-address i {
    color: #10b981;
    margin-left: 0.5rem;
}

.map-link {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 50%, #1e3a8a 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: linear-gradient(135deg, #1e40af 0%, #059669 50%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #1e3a8a 100%);
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: #10b981;
    margin-top: 0.5rem;
}

.contact-item h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: #64748b;
    line-height: 1.6;
}

.contact-form {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #10b981 100%);
    z-index: 1;
}

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

.footer-section h3 {
    color: #10b981;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: #10b981;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Footer Contact Info */
.footer-section .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: white;
}

.footer-section .contact-item i {
    color: #10b981;
    font-size: 1rem;
    margin-top: 0.2rem;
    width: 16px;
}

.footer-section .contact-item span {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer Bottom */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: inherit;
}

.footer-link-btn:hover {
    color: #10b981;
}

/* Footer Modals */
.footer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.footer-modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.footer-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    z-index: 1001;
}

.footer-modal-close:hover {
    color: #000;
}

.footer-modal-body {
    padding: 2rem;
}

.footer-modal-body h2 {
    color: #1e40af;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.footer-modal-text h3 {
    color: #1e40af;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.footer-modal-text p {
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 1rem;
}


/* Footer Hours Info */
.hours-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item .day {
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
}

.hours-item .time {
    color: #10b981;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: left;
    line-height: 1.3;
}

.emergency-info {
    background: rgba(16, 185, 129, 0.1);
    padding: 0.8rem;
    border-radius: 6px;
    border-right: 3px solid #10b981;
}

.emergency-info p {
    color: white;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
}

.emergency-info i {
    color: #10b981;
    margin-left: 0.3rem;
}

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

.footer-credit {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-credit p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer-credit a {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: #059669;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .implants-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
    
    .implant-card {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .implants-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        gap: 1rem;
    }
    
    .implant-card {
        max-width: 280px;
        padding: 1rem 0.8rem;
    }
    
    .implant-card h3 {
        font-size: 1rem;
    }
    
    .implant-card p {
        font-size: 0.8rem;
    }
    
    .tooth-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .tooth-button span {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .implants-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hours-info {
        gap: 0.3rem;
    }
    
    .hours-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .hours-item .day,
    .hours-item .time {
        font-size: 0.75rem;
    }
    
    .emergency-info {
        padding: 0.6rem;
    }
    
    .emergency-info p {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        order: 2;
        margin-left: auto;
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .logo {
        order: 1;
        font-size: 1.4rem;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .logo i {
        font-size: 1.5rem;
        margin-left: 6px;
    }
    
    /* Mobile Navigation Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: all 0.3s ease;
        padding: 2rem;
        gap: 1rem;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
        max-width: 250px;
        display: flex;
        justify-content: center;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        text-align: center;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.4);
        color: #60a5fa;
        transform: translateY(-2px);
    }
    
    /* Mobile close button */
    .mobile-close-btn {
        display: flex;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 10000;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .mobile-close-btn:hover {
        background: rgba(239, 68, 68, 0.8);
        border-color: rgba(239, 68, 68, 0.8);
        color: #ffffff;
        transform: scale(1.1);
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero h1 {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero p {
        text-align: center;
        margin: 1rem auto;
    }
    
    .hero {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .hero .container {
        margin-top: 1rem;
    }
    
    .hero .container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .phone-card {
        padding: 0.8rem 1.2rem;
    }
    
    .phone-number {
        font-size: 1.1rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .service-item {
        max-width: 100%;
        width: 100%;
    }
    
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-map {
        height: 350px;
    }
    
    .map-info {
        padding: 0.8rem;
    }
    
    .map-address {
        font-size: 0.9rem;
    }
    
    .map-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .implant-card,
    .service-item {
        padding: 1.5rem 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

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

.hero-content,
.about-content,
.implant-card,
.service-item {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #059669 100%);
}

/* Popup Modal Styles */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.popup-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: popupSlideIn 0.3s ease-out;
}

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

.popup-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.popup-close:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.1);
}

.popup-body {
    padding: 40px;
}

.popup-body h2 {
    color: #1e3a8a;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 3px solid #10b981;
    padding-bottom: 1rem;
}

.popup-body p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.popup-body ul {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.popup-body li {
    margin-bottom: 0.8rem;
    position: relative;
}

.popup-body li:before {
    content: "✓";
    position: absolute;
    right: -1.5rem;
    color: #10b981;
    font-weight: bold;
}

.popup-body strong {
    color: #1e3a8a;
    font-weight: 600;
}

.popup-body .highlight {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-right: 4px solid #10b981;
    margin: 1.5rem 0;
}

.popup-body .highlight h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Responsive Popup */
@media (max-width: 768px) {
    .popup-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
    }
    
    .popup-body {
        padding: 30px 20px;
    }
    
    .popup-body h2 {
        font-size: 1.8rem;
    }
    
    .popup-body p {
        font-size: 1rem;
    }
}

/* Enhanced Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero .container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin: 1rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .contact-map {
        margin-top: 2rem;
    }
    
    .map-container {
        min-height: 250px;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 0.85rem;
    }
    
    .implant-card h3 {
        font-size: 1rem;
    }
    
    .implant-card p {
        font-size: 0.85rem;
    }
    
    .tooth-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-item h3 {
        font-size: 1rem;
    }
    
    .contact-item p {
        font-size: 0.85rem;
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .footer-section ul li {
        font-size: 0.85rem;
    }
    
    .hours-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .hours-item .day {
        font-size: 0.75rem;
    }
    
    .hours-item .time {
        font-size: 0.75rem;
    }
    
    .emergency-info p {
        font-size: 0.8rem;
    }
    
    .map-address p {
        font-size: 1rem;
    }
    
    .map-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .faq-question h3 {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .faq-answer p {
        font-size: 0.8rem;
    }
    
    .popup-content {
        width: 95%;
        max-width: 95vw;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .popup-body {
        padding: 1.5rem;
    }
    
    .popup-body h2 {
        font-size: 1.3rem;
    }
    
    .popup-body p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Desktop Language Switcher */
.desktop-language-switcher {
    display: flex;
    gap: 0.5rem;
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

/* Hide desktop language switcher on mobile */
@media (max-width: 768px) {
    .desktop-language-switcher {
        display: none !important;
    }
}

/* Additional CSS to ensure mobile close button is completely hidden on desktop */
@media (min-width: 769px) {
    .mobile-close-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
}

/* Mobile Language Switcher - Hide on mobile, show only on desktop */
.language-switcher {
    display: none;
}

/* Show language switcher only on desktop */
@media (min-width: 769px) {
    .language-switcher {
        display: flex;
        gap: 0.5rem;
        margin-top: 1rem;
    }
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* Fix language buttons order - always LTR */
.desktop-language-switcher {
    direction: ltr !important;
    display: flex;
    gap: 0.5rem;
}

.desktop-language-switcher .lang-btn {
    order: 0;
}

@media (max-width: 768px) {
    .language-switcher {
        justify-content: center;
        margin-top: 1rem;
        gap: 0.3rem;
    }
    
    .lang-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        border-radius: 3px;
    }
    
    /* WhatsApp Button Mobile */
    .whatsapp-btn {
        bottom: 15px;
        left: 15px;
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .whatsapp-btn i {
        font-size: 1rem;
    }
    
    
    .hamburger {
        margin-top: 0.5rem;
    }
}
