/* SkillPilot - AI-Powered Career Roadmaps Landing Page Styles */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-display: swap; /* Optimize font rendering */
    background: #000814;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    /* Performance optimizations */
    contain: layout style;
    will-change: scroll-position;
}

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

/* Space Background - Performance optimized */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: 
        linear-gradient(to bottom, rgba(0, 8, 20, 0.4) 0%, rgba(0, 29, 61, 0.6) 50%, rgba(0, 0, 0, 0.8) 100%),
        url('background-stars.jpg') center center / cover no-repeat;
    /* Performance optimizations */
    contain: strict;
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden;
}

/* Particle System - Performance optimized */
.stars-layer-1,
.stars-layer-2,
.stars-layer-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    /* Performance optimizations */
    contain: layout style paint;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Base Particle Styles */
.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    will-change: transform;
}

/* Layer 1: Large Slow Particles */
.stars-layer-1 .particle {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: float-large 120s linear infinite;
}

/* Layer 2: Medium Particles */
.stars-layer-2 .particle {
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    animation: float-medium 80s linear infinite;
}

/* Layer 3: Small Fast Particles */
.stars-layer-3 .particle {
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: float-small 40s linear infinite;
}

/* Particle Animation Keyframes */
@keyframes float-large {
    0% {
        transform: translate3d(-10px, 100vh, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translate3d(10px, -10px, 0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes float-medium {
    0% {
        transform: translate3d(-20px, 100vh, 0) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.7;
    }
    85% {
        opacity: 0.7;
    }
    100% {
        transform: translate3d(20px, -10px, 0) rotate(180deg);
        opacity: 0;
    }
}

@keyframes float-small {
    0% {
        transform: translate3d(-30px, 100vh, 0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translate3d(30px, -10px, 0) rotate(720deg);
        opacity: 0;
    }
}

/* Dynamic Particle System - 1000 Particles Generated by JavaScript */

/* Layer-specific particle animations - Organic floating patterns */
@keyframes float-particle-layer1 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    15% {
        opacity: 0.6;
        transform: translate3d(-30px, -25vh, 0) rotate(90deg) scale(1);
    }
    35% {
        opacity: 0.8;
        transform: translate3d(20px, -45vh, 0) rotate(180deg) scale(1.1);
    }
    65% {
        opacity: 0.7;
        transform: translate3d(-15px, -75vh, 0) rotate(270deg) scale(0.9);
    }
    85% {
        opacity: 0.5;
        transform: translate3d(25px, -95vh, 0) rotate(340deg) scale(1);
    }
    100% {
        transform: translate3d(-10px, -120vh, 0) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes float-particle-layer2 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(0.9);
        opacity: 0;
    }
    20% {
        opacity: 0.7;
        transform: translate3d(35px, -20vh, 0) rotate(120deg) scale(1.1);
    }
    45% {
        opacity: 0.9;
        transform: translate3d(-25px, -50vh, 0) rotate(200deg) scale(0.8);
    }
    70% {
        opacity: 0.6;
        transform: translate3d(40px, -80vh, 0) rotate(280deg) scale(1.2);
    }
    100% {
        transform: translate3d(-20px, -110vh, 0) rotate(360deg) scale(0.9);
        opacity: 0;
    }
}

@keyframes float-particle-layer3 {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    25% {
        opacity: 0.8;
        transform: translate3d(-40px, -30vh, 0) rotate(150deg) scale(1.3);
    }
    50% {
        opacity: 1;
        transform: translate3d(30px, -60vh, 0) rotate(360deg) scale(0.7);
    }
    75% {
        opacity: 0.7;
        transform: translate3d(-20px, -85vh, 0) rotate(540deg) scale(1.1);
    }
    100% {
        transform: translate3d(35px, -120vh, 0) rotate(720deg) scale(1);
        opacity: 0;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .particle {
        animation: none;
        opacity: 0.3;
    }
}

/* Mobile Particle Optimizations - Dynamic System */
@media (max-width: 768px) {
    /* Mobile particle optimizations handled by JavaScript */
    /* Slower animations on mobile to reduce battery drain */
    .particle {
        animation-duration: 120s !important; /* Override JS duration for mobile */
    }
    
    /* Reduce GPU strain on mobile */
    .stars-layer-1,
    .stars-layer-2,
    .stars-layer-3 {
        transform: translateZ(0); /* Force hardware acceleration */
        backface-visibility: hidden;
    }
}

@media (max-width: 480px) {
    /* Further mobile optimizations */
    .particle {
        animation-duration: 150s !important; /* Even slower on very small screens */
        transform: translateZ(0); /* Ensure hardware acceleration */
    }
    
    /* Reduce visual complexity */
    .stars-layer-3 .particle {
        opacity: 0.3 !important; /* Make smallest layer less visible */
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .particle {
        /* Sharper particles on retina displays */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Critical CSS optimizations for key elements */
.countdown-unit {
    /* Force hardware acceleration for smooth hover animations */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.cta-button {
    /* Optimize button animations */
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style paint;
}

.email-input {
    /* Optimize input field rendering */
    contain: layout style;
}


.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 0.5rem;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.logo-image {
    height: 256px;
    width: auto;
    object-fit: contain;
    /* Dark theme optimization for outline logo */
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(79, 172, 254, 0.3));
    transition: all 0.3s ease;
    /* Performance optimizations */
    will-change: transform, filter;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Logo hover effects */
.logo:hover .logo-image {
    transform: translateY(-5px) scale(1.02);
    filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(79, 172, 254, 0.5)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}


/* Main Content */
.main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 50px 0;
}

/* Hero & Countdown Section */
.hero-countdown {
    text-align: center;
    z-index: 50;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Limited Access Banner */
.limited-access-banner {
    margin: 1.5rem 0 2rem 0;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.banner-text {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 142, 83, 0.2) 50%, rgba(255, 193, 7, 0.2) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffcc02;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    /* Performance optimizations */
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.banner-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
    transition: opacity 0.3s ease;
}

.banner-text:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4rem;
    font-weight: 300;
}

/* Vertical Text Sliding Animation System */
.hero-subtitle-container {
    height: 1.5em; /* Fixed height to contain one line of text */
    overflow: hidden;
    position: relative;
    margin-bottom: 4rem;
    /* Performance optimizations */
    will-change: transform;
    contain: layout style paint;
}

.hero-subtitle-slider {
    height: 400%; /* 4 messages × 100% */
    animation: verticalTextSlide 12.8s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden;
}

.hero-subtitle-slider .hero-subtitle {
    height: 25%; /* Each message takes 1/4 of slider height */
    margin-bottom: 0; /* Remove bottom margin for stacked layout */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Smooth text rendering during animation */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Keyframe Animation for Vertical Text Sliding */ 
@keyframes verticalTextSlide {
    /* Message 1: "Transform your career..." - 2.5s display */
    0%, 19.53% {
        transform: translateY(0%);
    }
    
    /* Transition to Message 2 - 0.7s transition */
    25% {
        transform: translateY(-25%);
    }
    
    /* Message 2: "Activate the SkillPilot" - 2.5s display */
    25%, 44.53% {
        transform: translateY(-25%);
    }
    
    /* Transition to Message 3 - 0.7s transition */
    50% {
        transform: translateY(-50%);
    }
    
    /* Message 3: "Follow your goals" - 2.5s display */
    50%, 69.53% {
        transform: translateY(-50%);
    }
    
    /* Transition to Message 4 - 0.7s transition */
    75% {
        transform: translateY(-75%);
    }
    
    /* Message 4: "Focus on what matters" - 2.5s display */
    75%, 94.53% {
        transform: translateY(-75%);
    }
    
    /* Transition back to Message 1 - 0.7s transition */
    100% {
        transform: translateY(-100%);
    }
}

/* Pause animation on hover for better UX */
.hero-subtitle-container:hover .hero-subtitle-slider {
    animation-play-state: paused;
}

/* Enhanced focus state for accessibility */
.hero-subtitle-container:focus-within .hero-subtitle-slider {
    animation-play-state: paused;
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-subtitle-slider {
        animation: none;
        transform: translateY(0%); /* Show only the first message */
    }
    
    .hero-subtitle-container:hover .hero-subtitle-slider,
    .hero-subtitle-container:focus-within .hero-subtitle-slider {
        animation-play-state: running; /* Override since animation is disabled */
    }
    
    /* Hide other messages when animation is disabled */
    .hero-subtitle-slider .hero-subtitle:not(:first-child) {
        display: none;
    }
}

/* Mobile responsiveness for text animation */
@media (max-width: 768px) {
    .hero-subtitle-container {
        height: 1.8em; /* Slightly larger height for mobile text */
    }
    
    /* Ensure text remains centered on smaller screens */
    .hero-subtitle-slider .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        line-height: 1.4;
        padding: 0 1rem;
    }
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

/* Performance-optimized countdown units */
.countdown-unit {
    background: rgba(15, 15, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 160px;
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Subtle gradient overlay */
.countdown-unit::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
                rgba(255, 255, 255, 0.02) 0%, 
                transparent 50%,
                rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.countdown-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.countdown-unit:hover::before {
    opacity: 1;
}

.countdown-unit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

.countdown-number {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 700;
    color: #FFD700;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5),
                 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    text-align: center;
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

.countdown-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    text-transform: lowercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
}

.countdown-separator {
    display: none;
}

/* Waitlist Form */
.waitlist-content {
    max-width: 600px;
    margin: 0 auto;
}

.waitlist-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    font-weight: 300;
}

.waitlist-form {
    margin-bottom: 2rem;
}

.privacy-text {
    margin-top: 0.8rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-weight: 300;
    line-height: 1.4;
}

.form-group {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

/* Performance-optimized email input */
.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

/* Conditional backdrop filter for email input */
@supports (backdrop-filter: blur(10px)) {
    .email-input {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
    }
}

@supports not (backdrop-filter: blur(10px)) {
    .email-input {
        background: rgba(255, 255, 255, 0.1);
    }
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.email-input:focus {
    border-color: #4facfe;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.cta-button {
    background: linear-gradient(135deg, #4facfe, #00a8cc);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
}

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

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

.success-message {
    display: none;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #22c55e;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: slideIn 0.3s ease;
}

.success-message.show {
    display: block;
}

.social-proof {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.signup-counter {
    color: #4facfe;
    font-weight: 600;
}

/* Footer */
/* Performance-optimized footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    z-index: 100;
}

/* Conditional backdrop filter for footer */
@supports (backdrop-filter: blur(20px)) {
    .footer {
        background: rgba(0, 8, 20, 0.5);
        backdrop-filter: blur(20px);
    }
}

@supports not (backdrop-filter: blur(20px)) {
    .footer {
        background: rgba(0, 8, 20, 0.8);
    }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}



/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Main content spacing for tablet */
    .main {
        padding: 50px 0;
    }
    
    .earth {
        width: 300px;
        height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    /* Logo Mobile Responsive */
    .logo {
        margin-bottom: 0.4rem;
    }
    
    .logo-image {
        height: 192px;
    }
    
    /* Limited Access Banner Mobile */
    .limited-access-banner {
        margin: 1rem 0 1.5rem 0;
    }
    
    .banner-text {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
    
    .countdown-timer {
        gap: 1rem;
    }
    
    .countdown-unit {
        padding: 1.5rem;
        width: 120px;
        border-radius: 15px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
        letter-spacing: 0;
    }
    
    .form-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .email-input,
    .cta-button {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Enhanced very small screen optimizations */
@media (max-width: 480px) {
    .earth {
        width: 250px;
        height: 250px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    /* Main content spacing for small mobile */
    .main {
        padding: 50px 0;
    }
    
    /* Logo Extra Small Mobile */
    .logo {
        margin-bottom: 0.3rem;
    }
    
    .logo-image {
        height: 160px;
    }
    
    .countdown-unit {
        padding: 1.2rem;
        width: 100px;
    }
    
    .countdown-number {
        font-size: 2.2rem;
        margin-bottom: 0.3rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}

/* Language Switcher Styles */
.header {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem;
    pointer-events: none;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.6rem 1rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.language-switcher::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 ease;
}

.language-switcher:hover::before {
    left: 100%;
}

.language-switcher:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.language-switcher:active {
    transform: translateY(0);
}

.lang-flag {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.lang-text, .lang-text-alt {
    transition: all 0.3s ease;
    position: relative;
}

.lang-text.lang-active {
    color: #4facfe;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.lang-text-alt {
    opacity: 0.7;
}

.lang-separator {
    opacity: 0.5;
    margin: 0 0.2rem;
}

.language-switcher:hover .lang-flag-alt {
    transform: scale(1.2);
}

.language-switcher:hover .lang-text-alt {
    opacity: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem;
    }
    
    .language-switcher {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    
    .lang-flag {
        font-size: 1rem;
    }
    
    .lang-separator {
        margin: 0 0.1rem;
    }
}

/* Content fade transition for language switching */
.main {
    transition: opacity 0.3s ease;
}

/* Error message styles for translation system */
.translation-error {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.translation-error.show {
    opacity: 1;
    visibility: visible;
}