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

body {
    font-family: 'Orbitron', monospace;
    background: #0a0a0a;
    color: #839192;
    min-height: 100vh;
    overflow-x: hidden;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    opacity: 0.15;
    filter: sepia(50%) contrast(120%);
}

.container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(40, 44, 52, 0.9);
    border-radius: 3px;
    border: 1px solid rgba(131, 145, 146, 0.3);
    position: relative;
}

.header-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.x-icon img {
    width: 30px;
    height: 30px;
    transition: opacity 0.3s ease;
}

.x-icon:hover img {
    opacity: 0.8;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 50%, rgba(131, 145, 146, 0.1) 50%),
        linear-gradient(transparent 50%, rgba(131, 145, 146, 0.1) 50%);
    background-size: 4px 4px;
    pointer-events: none;
    opacity: 0.3;
}

.title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #839192;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    font-weight: 400;
    color: #626567;
}

.translator-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.input-section, .output-section {
    background: rgba(40, 44, 52, 0.9);
    padding: 25px;
    border-radius: 3px;
    border: 1px solid rgba(131, 145, 146, 0.3);
    position: relative;
}

.input-section::before, .output-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 49%, rgba(131, 145, 146, 0.1) 50%, transparent 51%);
    background-size: 10px 10px;
    pointer-events: none;
    opacity: 0.1;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #626567;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9em;
}

textarea, input[type="text"] {
    width: 100%;
    background: rgba(20, 22, 26, 0.95);
    border: 1px solid rgba(131, 145, 146, 0.3);
    border-radius: 3px;
    padding: 15px;
    color: #839192;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus, input[type="text"]:focus {
    outline: none;
    border-color: #626567;
    background: rgba(25, 28, 33, 0.95);
}

.translation-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 12px 20px;
    border: 1px solid rgba(131, 145, 146, 0.3);
    border-radius: 3px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(131, 145, 146, 0.1) 50%, transparent 52%);
    background-size: 10px 10px;
    pointer-events: none;
    opacity: 0.3;
}

.btn-primary {
    background: #2C3E50;
    color: #839192;
}

.btn-secondary {
    background: #34495E;
    color: #839192;
}

.btn-copy, .btn-send {
    background: #2C3E50;
    color: #839192;
    margin-top: 10px;
}

.btn:hover {
    background: #34495E;
}

.chatbot-section {
    background: rgba(40, 44, 52, 0.9);
    padding: 25px;
    border-radius: 3px;
    border: 1px solid rgba(131, 145, 146, 0.3);
    position: relative;
}

.chatbot-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 49%, rgba(131, 145, 146, 0.1) 50%, transparent 51%);
    background-size: 10px 10px;
    pointer-events: none;
    opacity: 0.1;
}

.chatbot-section h2 {
    margin-bottom: 20px;
    color: #626567;
}

.chat-container {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: rgba(20, 22, 26, 0.95);
    border-radius: 3px;
    margin-bottom: 15px;
    border: 1px solid rgba(131, 145, 146, 0.3);
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.bot-message .message-content {
    background: rgba(44, 62, 80, 0.7);
    padding: 12px 16px;
    border-radius: 3px;
    border-left: 2px solid #626567;
}

.bot-english-message .message-content {
    background: rgba(44, 62, 80, 0.7);
    padding: 12px 16px;
    border-radius: 3px;
    border-left: 2px solid #2ecc71;
    color: #2ecc71;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: rgba(52, 73, 94, 0.7);
    padding: 12px 16px;
    border-radius: 3px;
    border-right: 2px solid #626567;
}

.chat-input-container {
    display: flex;
    gap: 10px;
}

.chat-input-container input {
    flex: 1;
}

.alien-font {
    font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Arial Unicode MS', sans-serif;
    font-size: 1.4em;
    letter-spacing: 3px;
}

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

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .alien-font {
        font-size: 1em;
        letter-spacing: 1px;
        word-break: break-word;
    }

    textarea, input[type="text"] {
        font-size: 12px;
    }

    .btn {
        font-size: 0.7em;
        padding: 10px 15px;
    }

    label {
        font-size: 0.8em;
    }

    .message {
        margin-bottom: 10px;
    }

    .message .message-content {
        font-size: 0.85em;
        padding: 8px 10px;
        max-width: 85%;
        word-wrap: break-word;
    }

    .chat-messages {
        padding: 10px;
    }

    .chat-container {
        height: 350px;
    }
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .x-icon img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

footer .x-icon:hover img {
    opacity: 0.8;
    transform: scale(1.1);
}