/* Language Switcher Styles */
.language-switcher {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 999;
    display: flex;
    background: white;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 4px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    color: var(--primary-color);
}

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

/* Font adjustments for different languages */
body[data-lang="ja"] {
    font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body[data-lang="zh-hant"] {
    font-family: 'Noto Sans TC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Adjust font sizes for Asian languages */
body[data-lang="ja"] h1,
body[data-lang="zh-hant"] h1 {
    font-size: 3rem;
    line-height: 1.3;
}

body[data-lang="ja"] h2,
body[data-lang="zh-hant"] h2 {
    font-size: 2.25rem;
}

body[data-lang="ja"] .hero-subtitle,
body[data-lang="zh-hant"] .hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.9;
}

body[data-lang="ja"] .feature-card h3,
body[data-lang="zh-hant"] .feature-card h3 {
    font-size: 1.2rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .language-switcher {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    body[data-lang="ja"] h1,
    body[data-lang="zh-hant"] h1 {
        font-size: 2.25rem;
    }
}

/* Animation for language switch */
.fade-transition {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade-transition.active {
    opacity: 1;
}

/* Feature icons specific styling */
.feature-icon-svg {
    width: 24px;
    height: 24px;
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.6;
}