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

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f0f0f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background: linear-gradient(135deg, #a6c0fe, #f68084);
    overflow: hidden;
}

.container {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 900px;
    backdrop-filter: blur(15px);
}

.main-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.language-select {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

select {
    padding: 10px;
    border-radius: 10px;
    font-size: 1rem;
    border: 2px solid #ccc;
    background-color: #fff;
    transition: all 0.3s ease;
}

select:hover {
    border-color: #007bff;
}

textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2rem;
    border: 2px solid #ccc;
    margin-bottom: 20px;
    background-color: #fff;
    transition: all 0.3s ease;
    resize: none;
}

textarea:focus {
    border-color: #007bff;
}

.translate-btn {
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    color: #fff;
    text-transform: capitalize;
    backdrop-filter: blur(10px);
}

.translate-btn:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
    transform: translateY(-5px);
}

.translate-btn::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border-radius: 30px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(0, 255, 255, 0.3));
    animation: electric 2s infinite;
    opacity: 0;
}

.translate-btn:hover::before {
    opacity: 1;
}

@keyframes electric {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.result {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}