* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(to right, #4285f4, #34a853, #fbbc05, #ea4335);
    color: white;
    padding: 20px 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: headerSlide 1s ease-out;
}

@keyframes headerSlide {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.logo i {
    font-size: 32px;
    margin-right: 10px;
    color: #fff;
}

.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 28px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    margin-bottom: 20px;
    color: #2d3748;
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #4a5568;
}

.translate-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 800px;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.translate-container h3 {
    font-family: 'Poppins', sans-serif;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
    font-size: 28px;
}

#google_translate_element {
    display: flex;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 50px 0;
}

.card {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card i {
    font-size: 40px;
    color: #4285f4;
    margin-bottom: 20px;
}

.card h3 {
    font-family: 'Poppins', sans-serif;
    color: #2d3748;
    margin-bottom: 15px;
}

footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    background: #2d3748;
    color: white;
    border-radius: 10px 10px 0 0;
}

.language-display {
    text-align: center;
    margin: 20px 0;
    font-style: italic;
    color: #4a5568;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        justify-content: center;
    }
    
    nav li {
        margin: 0 10px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .translate-container {
        padding: 20px;
    }
    
    .translate-container h3 {
        font-size: 24px;
    }
}