/**
 * Baker-Huang Website - Modern Redesign v4.0
 * Professional UI/UX with Neural Network Animations
 */

/* ==================== CSS Custom Properties ==================== */
:root {
    /* Color Palette */
    --color-bg-primary: #0A192F;
    --color-bg-secondary: #0F1F3F;
    --color-bg-dark: #020C1B;
    --color-text-primary: #ffffff;
    --color-text-secondary: #E8E8E8;

    /* Neural Network Colors */
    --color-neural-blue: #64B4FF;
    --color-neural-cyan: #00D9FF;
    --color-neural-white: #ffffff;

    /* Button Colors */
    --color-button-orange: #FFA500;
    --color-button-orange-light: #FFB733;
    --color-button-orange-dark: #FF8C00;
    --color-button-green: #4CAF50;
    --color-button-green-light: #66BB6A;
    --color-button-green-dark: #45a049;
    --color-button-blue: #1976D2;
    --color-button-blue-light: #2196F3;
    --color-button-blue-dark: #1565C0;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Typography */
    --font-primary: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    --font-heading: 'Space Grotesk', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;

    /* Animations */
    --transition-fast: 0.2s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.6s ease-out;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* ==================== Global Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, var(--color-bg-primary) 100%);
    background-size: 400% 400%;
    animation: gradientShift 60s ease infinite;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background Gradient Animation */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ==================== Neural Network Canvas ==================== */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease-in;
    pointer-events: none;
}

/* ==================== Loading Screen ==================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.loading-logo {
    width: 300px;
    height: auto;
    animation: pulse 2s ease-in-out infinite;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(100, 180, 255, 0.2);
    border-top-color: var(--color-neural-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}

/* ==================== Main Container ==================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

/* ==================== Logo Section ==================== */
.logo {
    opacity: 0;
    transform: translateY(-20px);
    transition: transform var(--transition-normal), opacity var(--transition-slow);
}

.logo.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.logo a {
    display: inline-block;
    position: relative;
    transition: transform var(--transition-normal);
}

.logo a::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(100, 180, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.logo a:hover::before,
.logo a:focus::before {
    opacity: 1;
}

.logo a:hover,
.logo a:focus {
    transform: translateY(-4px);
}

.logo img {
    width: 350px;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(100, 180, 255, 0.3));
    transition: filter var(--transition-normal);
}

.logo a:hover img,
.logo a:focus img {
    filter: drop-shadow(0 8px 20px rgba(100, 180, 255, 0.5));
}

/* ==================== Message Section ==================== */
.message {
    opacity: 0;
    transform: translateY(20px);
    transition: transform var(--transition-normal), opacity var(--transition-slow);
}

.message.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.message h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #64B4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.02em;
}

/* ==================== Button Container ==================== */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: transform var(--transition-normal), opacity var(--transition-slow);
    /* CSS Fallback: Emergency animation if JavaScript fails */
    animation: emergencyButtonShow 0.6s ease-out 2.5s forwards;
}

.button-container.fade-in {
    opacity: 1;
    transform: translateY(0);
    animation: none; /* Disable fallback if JavaScript works */
}

/* Emergency fallback animation */
@keyframes emergencyButtonShow {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Buttons ==================== */
button {
    position: relative;
    padding: 1.25rem 2.5rem;
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease-out,
                font-weight 0.3s ease;
    min-width: 200px;
    text-align: center;
    will-change: transform;
}

button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
    animation: focusPulse 2s ease-in-out infinite;
}

@keyframes focusPulse {
    0%, 100% { outline-color: rgba(255, 255, 255, 0.6); }
    50% { outline-color: rgba(255, 255, 255, 0.3); }
}

button:active {
    transform: scale(0.98) translateY(2px) !important;
    transition: transform 0.1s ease !important;
}

.button-content {
    position: relative;
    z-index: 2;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Button Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Orange Button (ChatGPT) - Primary CTA */
.chatgpt-button {
    background: linear-gradient(135deg,
        rgba(255, 140, 0, 0.9) 0%,
        rgba(255, 165, 0, 0.95) 50%,
        rgba(255, 183, 51, 0.9) 100%);
    color: var(--color-bg-primary);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(255, 165, 0, 0.2),
        0 0 30px rgba(255, 165, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Gradient border */
.chatgpt-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg,
        rgba(255, 220, 150, 0.6) 0%,
        rgba(255, 165, 0, 0.4) 50%,
        rgba(255, 140, 0, 0.6) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* Shimmer effect */
.chatgpt-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 60%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.chatgpt-button:hover {
    transform: translateY(-6px) scale(1.05);
    font-weight: 700;
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 16px 32px rgba(255, 165, 0, 0.3),
        0 0 50px rgba(255, 165, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.chatgpt-button:hover::before {
    opacity: 1;
}

.chatgpt-button:hover::after {
    transform: translateX(100%);
}

/* Green Button (Gratuit) - Secondary */
.gemini-button {
    background: linear-gradient(135deg,
        rgba(69, 160, 73, 0.9) 0%,
        rgba(76, 175, 80, 0.95) 50%,
        rgba(102, 187, 106, 0.9) 100%);
    color: var(--color-text-primary);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(76, 175, 80, 0.2),
        0 0 30px rgba(76, 175, 80, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Gradient border */
.gemini-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg,
        rgba(150, 220, 150, 0.5) 0%,
        rgba(76, 175, 80, 0.3) 50%,
        rgba(69, 160, 73, 0.5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* Subtle shine effect */
.gemini-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 45%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 55%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.gemini-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 16px 32px rgba(76, 175, 80, 0.25),
        0 0 45px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.gemini-button:hover::before {
    opacity: 1;
}

.gemini-button:hover::after {
    transform: translateX(100%);
}

/* Blue Button (Essai Complet) - Tertiary with Elegant Pulse */
.blue-button {
    background: linear-gradient(135deg,
        rgba(21, 101, 192, 0.9) 0%,
        rgba(25, 118, 210, 0.95) 50%,
        rgba(33, 150, 243, 0.9) 100%);
    color: var(--color-text-primary);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(25, 118, 210, 0.2),
        0 0 30px rgba(25, 118, 210, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: elegantBreathing 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Gradient border with animation */
.blue-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg,
        rgba(150, 200, 255, 0.5) 0%,
        rgba(33, 150, 243, 0.3) 50%,
        rgba(0, 217, 255, 0.5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.6;
    transition: opacity 0.4s ease;
    z-index: 0;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Subtle shine effect */
.blue-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 45%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 55%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

@keyframes elegantBreathing {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 4px 8px rgba(0, 0, 0, 0.15),
            0 8px 16px rgba(25, 118, 210, 0.2),
            0 0 30px rgba(25, 118, 210, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    50% {
        transform: scale(1.015);
        box-shadow:
            0 6px 12px rgba(0, 0, 0, 0.18),
            0 12px 24px rgba(25, 118, 210, 0.3),
            0 0 45px rgba(25, 118, 210, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.blue-button:hover {
    animation: none;
    transform: translateY(-5px) scale(1.03);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 16px 32px rgba(25, 118, 210, 0.3),
        0 0 50px rgba(25, 118, 210, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.blue-button:hover::before {
    opacity: 1;
    animation: none;
}

.blue-button:hover::after {
    transform: translateX(100%);
}

/* Button Loading State */
button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==================== Footer ==================== */
footer {
    width: 100%;
    background: var(--color-bg-dark);
    padding: var(--spacing-md) 0;
    margin-top: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: transform var(--transition-normal), opacity var(--transition-slow);
    position: relative;
    z-index: 1;
}

footer.fade-in {
    opacity: 1;
    transform: translateY(0);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(100, 180, 255, 0.3) 50%, transparent 100%);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

footer p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
}

footer a {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

footer a:hover,
footer a:focus {
    color: var(--color-neural-blue);
    transform: translateY(-2px);
}

.email-icon {
    height: 1em;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--transition-fast);
}

footer a:hover .email-icon,
footer a:focus .email-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(100, 180, 255, 0.8));
}

/* ==================== Easter Egg Effect ==================== */
body.easter-egg-active {
    animation: rainbowShift 3s ease-in-out;
}

@keyframes rainbowShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

/* ==================== Particle Burst Effect ==================== */
.burst-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: burst 1s ease-out forwards;
}

@keyframes burst {
    to {
        transform: translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

/* ==================== Responsive Design ==================== */
@media screen and (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }

    .container {
        padding: var(--spacing-lg) var(--spacing-sm);
        gap: var(--spacing-lg);
    }

    .logo img {
        width: 250px;
    }

    .message h1 {
        font-size: 1.5rem;
    }

    .button-container {
        flex-direction: column;
        width: 100%;
        gap: 1.75rem;
    }

    button {
        width: 100%;
        max-width: 300px;
        padding: 1.5rem 2rem;
        font-size: 1.25rem;
    }

    /* Reduce animation intensity on mobile */
    .chatgpt-button:hover {
        transform: translateY(-4px) scale(1.02);
    }

    .gemini-button:hover,
    .blue-button:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .logo img {
        width: 300px;
    }

    button {
        min-width: 180px;
        font-size: 1rem;
    }
}

/* ==================== Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    body {
        animation: none;
    }

    .blue-button {
        animation: none;
    }

    #neural-canvas {
        display: none;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    #neural-canvas,
    #loading-screen,
    .burst-particle {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* ==================== Language Toggle (Dropdown) ==================== */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    opacity: 0;
    animation: fadeInLanguageToggle 0.6s ease-out 0.3s forwards;
}

@keyframes fadeInLanguageToggle {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toggle Button */
.language-toggle-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    min-width: 80px;
    min-height: 44px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(15, 31, 63, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(100, 180, 255, 0.25);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.language-toggle-button:hover {
    background: rgba(15, 31, 63, 0.95);
    border-color: rgba(100, 180, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.language-toggle-button:focus {
    outline: 2px solid rgba(100, 180, 255, 0.6);
    outline-offset: 2px;
}

.language-toggle-button[aria-expanded="true"] {
    background: rgba(15, 31, 63, 1);
    border-color: rgba(100, 180, 255, 0.6);
}

.globe-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.current-lang {
    font-weight: 600;
    letter-spacing: 0.05em;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.language-toggle-button[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: rgba(15, 31, 63, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(100, 180, 255, 0.3);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    pointer-events: none;
}

.language-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.language-dropdown[hidden] {
    display: none;
}

/* Language Options */
.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.language-option:hover {
    color: #ffffff;
    background: rgba(100, 180, 255, 0.15);
    transform: translateX(4px);
}

.language-option:focus {
    outline: 2px solid rgba(100, 180, 255, 0.5);
    outline-offset: -2px;
}

.language-option.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(100, 180, 255, 0.25), rgba(0, 217, 255, 0.2));
    font-weight: 600;
}

.language-option .lang-code {
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-right: 8px;
}

.language-option .lang-name {
    flex: 1;
    font-size: 0.8125rem;
    opacity: 0.9;
}

.language-option .check-icon {
    color: var(--color-neural-cyan);
    font-size: 1rem;
    margin-left: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-toggle {
        top: 15px;
        right: 15px;
    }

    .language-toggle-button {
        min-width: 70px;
        padding: 8px 10px;
        gap: 4px;
    }

    .globe-icon {
        font-size: 1rem;
    }

    .current-lang {
        font-size: 0.8125rem;
    }

    .language-dropdown {
        min-width: 180px;
        right: 0;
        left: auto;
    }

    .language-option {
        padding: 12px 10px;
        min-height: 48px;
    }

    .language-option .lang-name {
        font-size: 0.75rem;
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    .language-toggle {
        top: 12px;
        right: 12px;
    }

    .language-toggle-button {
        min-width: 60px;
        padding: 6px 8px;
    }

    .dropdown-arrow {
        display: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .language-toggle,
    .language-dropdown,
    .language-toggle-button,
    .language-option {
        animation: none !important;
        transition: none !important;
    }
}
