:root {
    --primary-color: #6c63ff;
    --secondary-color: #00f3ff;
    --accent-color: #ff00ff;
    --dark-bg: #0a0a1a;
    --light-text: #ffffff;
    --nebula-purple: rgba(108, 99, 255, 0.4);
    --nebula-blue: rgba(0, 243, 255, 0.3);
    --nebula-pink: rgba(255, 0, 255, 0.2);
    --city-glow: rgba(0, 243, 255, 0.15);
    --robot-glow: rgba(255, 0, 255, 0.25);
    --neon-glow: 0 0 15px rgba(108, 99, 255, 0.7);
    --pulse-glow: 0 0 25px rgba(0, 243, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', 'Orbitron', sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.global-sci-fi-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    pointer-events: none;
}

.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0c0c24 0%, #08081a 70%, #04040d 100%);
    z-index: -5;
}

.nebula-layers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -4;
}

.nebula-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, var(--nebula-purple), transparent 40%);
    opacity: 0.5;
    animation: nebulaPulse 15s infinite alternate;
}

.nebula-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 80%, var(--nebula-blue), transparent 45%);
    opacity: 0.4;
    animation: nebulaPulse 18s infinite alternate-reverse;
}

.nebula-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--nebula-pink), transparent 50%);
    opacity: 0.3;
    animation: nebulaPulse 20s infinite alternate;
}

@keyframes nebulaPulse {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
    100% { opacity: 0.3; transform: scale(1); }
}

.future-city {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(to top, rgba(8, 8, 20, 0.98), transparent 80%);
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
}

.city-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: repeating-linear-gradient(
        to right,
        transparent 0px, transparent 20px,
        #1a1a3a 20px, #1a1a3a 25px,
        transparent 25px, transparent 45px,
        #2a2a5a 45px, #2a2a5a 50px,
        transparent 50px
    );
    animation: cityScroll 30s linear infinite;
}

@keyframes cityScroll {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 0; }
}

.robot-silhouette {
    position: fixed;
    right: 10%;
    bottom: 25%;
    width: 180px;
    height: 350px;
    background: 
        radial-gradient(circle at 50% 30%, var(--robot-glow), transparent 70%),
        radial-gradient(circle at 50% 70%, var(--robot-glow), transparent 80%);
    opacity: 0.5;
    z-index: -2;
    animation: robotPulse 8s infinite alternate;
    filter: blur(8px);
    transform: scale(1.3);
    transition: transform 0.3s ease;
}

.robot-silhouette::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 30%;
    width: 40%;
    height: 8%;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--secondary-color);
    opacity: 0.8;
}

.robot-silhouette::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 25%;
    width: 50%;
    height: 40%;
    background: 
        linear-gradient(90deg, transparent 30%, var(--accent-color) 30%, var(--accent-color) 70%, transparent 70%);
    opacity: 0.7;
    animation: robotHeartbeat 2s infinite;
}

@keyframes robotPulse {
    0% { opacity: 0.4; transform: scale(1.3); }
    100% { opacity: 0.6; transform: scale(1.35); }
}

@keyframes robotHeartbeat {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.shooting-star {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 20px 5px white;
    animation: shootingStar 5s infinite;
    opacity: 0;
}

@keyframes shootingStar {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(200vw, 200vh); opacity: 0; }
}

.holographic-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(108, 99, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.4;
    animation: gridPulse 10s infinite alternate;
}

@keyframes gridPulse {
    0% { opacity: 0.3; background-size: 30px 30px; }
    50% { opacity: 0.6; background-size: 35px 35px; }
    100% { opacity: 0.3; background-size: 30px 30px; }
}

.energy-rays {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(135deg, transparent 0%, transparent 40%, var(--secondary-color) 40%, var(--secondary-color) 41%, transparent 41%),
        linear-gradient(45deg, transparent 0%, transparent 40%, var(--accent-color) 40%, var(--accent-color) 41%, transparent 41%);
    opacity: 0.15;
    animation: energyFlow 15s infinite linear;
}

@keyframes energyFlow {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

.neon-beams {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 243, 255, 0.1), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.1), transparent 40%);
    opacity: 0.3;
    pointer-events: none;
}

.mouse-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.3), transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition: transform 0.1s ease;
}

.mouse-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.2), transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    opacity: 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 26, 0.85);
    border-bottom: 1px solid rgba(108, 99, 255, 0.4);
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.0rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--neon-glow);
    letter-spacing: 2px;
    animation: logoPulse 3s infinite;
}

@keyframes logoPulse {
    0%, 100% { text-shadow: var(--neon-glow); }
    50% { text-shadow: var(--pulse-glow); }
}

.logo span {
    color: var(--light-text);
    text-shadow: none;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links {
    display: flex;
    gap: 22px;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.0rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.8);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 280px;
    background: rgba(15, 15, 35, 0.98);
    border: 1px solid rgba(108, 99, 255, 0.5);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(108, 99, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-top: 10px;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(108, 99, 255, 0.5);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(108, 99, 255, 0.15);
    border-left-color: var(--secondary-color);
    padding-left: 25px;
}

.dropdown-item-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.dropdown-item-desc {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.dropdown-item:hover .dropdown-item-title {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.language-switch {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 4px 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    height: 26px;
    line-height: 18px;
}

.lang-btn:hover {
    background: rgba(108, 99, 255, 0.3);
    transform: scale(1.05);
}

.lang-btn.active {
    background: rgba(108, 99, 255, 0.6);
    color: white;
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.6);
    border-color: rgba(108, 99, 255, 0.8);
}

.page-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-content {
    max-width: 1000px;
    z-index: 10;
    position: relative;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(45deg, #fff, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--neon-glow);
    animation: pulse 3s infinite;
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

.hero h1.content-en {
    margin-top: 15px;
    font-size: clamp(2.5rem, 7vw, 4.8rem);
}

@keyframes pulse {
    0%, 100% { text-shadow: var(--neon-glow); }
    50% { text-shadow: var(--pulse-glow); }
}

.hero p {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: var(--neon-glow);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--neon-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.btn-ai {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: white;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--pulse-glow);
}

.btn:active {
    transform: translateY(1px);
}

.btn::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.7s ease;
}

.btn:hover::before {
    left: 100%;
}

.fusion-section {
    padding: 120px 50px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(10, 10, 26, 0.95), rgba(20, 10, 40, 0.98));
    position: relative;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    border-bottom: 1px solid rgba(255, 0, 255, 0.15);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--neon-glow);
    animation: titlePulse 4s infinite;
    position: relative;
    display: inline-block;
}

@keyframes titlePulse {
    0%, 100% { text-shadow: var(--neon-glow); }
    50% { text-shadow: 0 0 25px rgba(108, 99, 255, 0.9); }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

.fusion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.fusion-card {
    background: rgba(20, 20, 40, 0.8);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(108, 99, 255, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fusion-card:hover {
    transform: translateY(-10px);
    border-color: rgba(108, 99, 255, 0.8);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.3);
}

.fusion-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(108, 99, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.8s ease;
    opacity: 0;
}

.fusion-card:hover::before {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

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

.fusion-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--neon-glow);
    animation: iconPulse 4s infinite;
}

@keyframes iconPulse {
    0%, 100% { text-shadow: var(--neon-glow); }
    50% { text-shadow: 0 0 20px rgba(255, 0, 255, 0.7); }
}

.fusion-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
}

.fusion-card p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.vision-section {
    padding: 120px 50px;
    background: linear-gradient(to bottom, rgba(20, 10, 40, 0.98), rgba(10, 10, 26, 0.95));
    position: relative;
    border-top: 1px solid rgba(255, 0, 255, 0.15);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.vision-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.vision-text {
    font-size: 1.8rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.highlight {
    color: var(--secondary-color);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer {
    background: rgba(8, 8, 21, 0.98);
    padding: 60px 50px;
    text-align: center;
    border-top: 1px solid rgba(108, 99, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(108, 99, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    opacity: 0.3;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--neon-glow);
    margin-bottom: 20px;
    animation: logoPulse 3s infinite;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(108, 99, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.social-link:hover {
    background: rgba(108, 99, 255, 0.3);
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.6);
    border-color: rgba(108, 99, 255, 0.8);
}

.copyright {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.content-en, .content-zh {
    transition: opacity 0.5s ease;
}

.content-zh {
    display: none;
}

.ai-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ai-dialog-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.ai-dialog {
    width: 90%;
    max-width: 800px;
    background: rgba(15, 15, 35, 0.95);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(108, 99, 255, 0.6);
    box-shadow: 0 0 40px rgba(108, 99, 255, 0.4);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    position: relative;
}

.ai-dialog-overlay.active .ai-dialog {
    transform: translateY(0);
    opacity: 1;
}

.ai-dialog-header {
    padding: 20px;
    background: rgba(25, 25, 45, 0.8);
    border-bottom: 1px solid rgba(108, 99, 255, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-dialog-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--neon-glow);
}

.ai-dialog-close {
    background: rgba(255, 0, 100, 0.2);
    border: 1px solid rgba(255, 0, 100, 0.5);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-dialog-close:hover {
    background: rgba(255, 0, 100, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 0, 100, 0.5);
}

.ai-dialog-content {
    height: 60vh;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(10, 10, 25, 0.7);
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
}

.message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 15px;
    max-width: 85%;
    position: relative;
    animation: fadeIn 0.3s ease;
}

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

.message.user {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message.ai {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message.system {
    background: rgba(0, 243, 255, 0.2);
    color: var(--secondary-color);
    align-self: center;
    max-width: 90%;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.message-content {
    font-family: 'Exo 2', sans-serif;
    line-height: 1.5;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
    font-family: 'Orbitron', sans-serif;
}

.chat-input-container {
    padding: 15px;
    background: rgba(20, 20, 40, 0.8);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(108, 99, 255, 0.4);
    border-radius: 50px;
    background: rgba(30, 30, 60, 0.7);
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.chat-send {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neon-glow);
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: var(--pulse-glow);
}

.chat-send:active {
    transform: scale(0.95);
}

.chat-send.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.thinking {
    display: flex;
    gap: 4px;
    padding: 5px 0;
}

.thinking-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

.thinking-dot:nth-child(2) { animation-delay: 0.3s; }
.thinking-dot:nth-child(3) { animation-delay: 0.6s; }

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

@media (max-width: 1024px) {
    .navbar {
        padding: 12px 30px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar-left, .navbar-right {
        width: 100%;
        justify-content: center;
    }
    
    .navbar-left {
        order: 1;
    }
    
    .navbar-right {
        order: 2;
        margin-top: 5px;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .language-switch {
        gap: 8px;
    }
    
    .lang-btn {
        font-size: 0.7rem;
        padding: 3px 8px;
        height: 24px;
    }
    
    .hero {
        margin-top: 70px;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 8vw, 4rem);
    }
    
    .hero h1.content-en {
        font-size: clamp(1.8rem, 7vw, 3.5rem);
        margin-top: 12px;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .fusion-section, .vision-section, .footer {
        padding: 80px 25px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .robot-silhouette {
        display: none;
    }
    
    .ai-dialog {
        width: 95%;
        max-width: 95%;
        height: 80vh;
    }
    
    .ai-dialog-content {
        height: 70vh;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

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

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.cors-warning {
    background: rgba(255, 100, 100, 0.15);
    border: 1px solid rgba(255, 100, 100, 0.4);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    color: #ff6464;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cors-warning a {
    color: #ff6464;
    text-decoration: underline;
}

.cors-warning code {
    background: rgba(255, 100, 100, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.proxy-info {
    background: rgba(100, 100, 255, 0.1);
    border: 1px solid rgba(100, 100, 255, 0.3);
    border-radius: 10px;
    padding: 10px;
    margin: 8px 0;
    font-size: 0.9rem;
}

.mock-mode {
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-radius: 10px;
    padding: 8px;
    margin: 8px 0;
    font-size: 0.85rem;
    text-align: center;
}
