/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-light: #dbeafe;
    --secondary-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-color: #6b7280;
    --gray-light: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--gray-light);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #d1d5db;
    transform: translateY(-2px);
}

.btn-icon {
    background: var(--white);
    border: 1px solid var(--gray-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-color);
}

.btn-icon:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.logo-highlight {
    color: var(--primary-color);
}

.nav-desktop {
    display: flex;
    gap: 30px;
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
}

.nav-desktop a {
    font-weight: 500;
    color: var(--gray-color);
    transition: var(--transition);
}

.nav-desktop a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

.nav-mobile {
    display: none;
    flex-direction: column;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
    font-weight: 500;
}

.nav-mobile a:last-child {
    border-bottom: none;
}

.nav-mobile a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f9ff 100%);
    text-align: center;
}

.hero h1 {
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.keyword-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gray-color);
    border: 1px solid var(--gray-light);
}

/* Sections */
.section {
    padding: 80px 20px;
}

.section-alt {
    background-color: #f9fafb;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 800px;
    margin-bottom: 40px;
}

/* Tool Cards */
.tool-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: var(--transition);
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.translation-controls {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-group {
    flex: 1;
    min-width: 200px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background-color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.swap-button-container {
    display: flex;
    align-items: center;
    height: 44px;
    margin-bottom: 8px;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Result Cards */
.result-card {
    background-color: #f8fafc;
    border-radius: var(--radius);
    padding: 25px;
    border-left: 4px solid var(--primary-color);
}

.result-placeholder {
    color: var(--gray-color);
    text-align: center;
    padding: 30px 0;
}

.result-details {
    margin-top: 20px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.result-item {
    display: flex;
    flex-direction: column;
}

.result-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.result-value {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 500;
}

/* SEO Content */
.seo-content {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-light);
}

.seo-content h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.seo-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Disclaimer */
.disclaimer {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 30px 0;
}

.disclaimer h4 {
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.disclaimer p {
    color: #92400e;
    margin-bottom: 0;
}

/* FAQ */
.faq-container {
    margin-top: 30px;
}

.faq-item {
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 15px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
}

.faq-question h4 {
    margin-bottom: 0;
    flex: 1;
}

.faq-question i {
    transition: var(--transition);
    color: var(--gray-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

/* Contact */
.contact-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-light);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item i {
    background-color: var(--primary-light);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 1rem;
    color: var(--gray-color);
}

.contact-item p {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-note {
    background-color: #f3f4f6;
    padding: 15px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo p {
    margin-top: 15px;
    color: #d1d5db;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links h4, .footer-keywords h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links a {
    color: #d1d5db;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-keywords {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-keywords span {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #d1d5db;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero, .section {
        padding: 60px 20px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .translation-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .swap-button-container {
        align-self: center;
        margin: 10px 0;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}
