:root {
    --bg-color: #0d0d0d;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent-color: #e0e0e0;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Splash Screen */
#splash {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease;
}

.splash-content { text-align: center; }
.logo-glow {
    width: 60px;
    height: 60px;
    background: white;
    filter: blur(20px);
    margin: 0 auto 20px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.main-content.active {
    opacity: 1;
    transform: translateY(0);
}

nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.brand { font-weight: 600; letter-spacing: 2px; }
.brand span { color: var(--text-dim); }

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.translator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 2rem;
}

textarea, .output-area div {
    width: 100%;
    height: 250px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    resize: none;
    outline: none;
    margin-top: 1rem;
}

select {
    background: transparent;
    color: var(--text-dim);
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Buttons & Inputs */
#translate-btn {
    padding: 12px 40px;
    border-radius: 30px;
    border: none;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

#translate-btn:hover { transform: scale(1.05); }

#config-panel.hidden { display: none; }
#config-panel input {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 10px;
    color: white;
    border-radius: 8px;
}