/* CSS Reset & Base Styles */
:root {
    --primary-color: #4a6cf7;
    --primary-dark: #3854d1;
    --secondary-color: #ff6b6b;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f5f7fa;
    --white: #ffffff;
    --border-color: #e1e5eb;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

nav a.active, nav a:hover {
    color: var(--primary-color);
}

nav a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-selector span {
    margin-right: 8px;
    color: var(--text-light);
}

.language-selector a {
    display: flex;
    align-items: center;
    margin: 0 4px;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: var(--bg-light);
}

.language-selector a.active {
    background-color: var(--primary-color);
    color: white;
}

.language-selector a:hover {
    background-color: var(--bg-hover);
}

.language-selector img,
.language-selector svg {
    margin-right: 5px;
    vertical-align: middle;
}


/* Main Content */
main {
    margin-top: 80px;
    padding-bottom: 2rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero .lead {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Converter Section */
.converter {
    padding: 3rem 0;
}

.upload-box {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    transition: var(--transition);
}

.upload-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.upload-text {
    text-align: center;
    margin-bottom: 1.5rem;
}

.upload-text h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.upload-text p {
    color: var(--text-light);
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

#upload-form {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

#upload-form:hover {
    border-color: var(--primary-color);
}

.file-details {
    margin-top: 1.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.file-icon img {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
}

.file-name-size {
    flex-grow: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.file-size {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.remove-btn img {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.remove-btn:hover img {
    transform: scale(1.1);
}

.convert-btn, .download-btn, .convert-another-btn, .try-again-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.convert-btn:hover, .download-btn:hover, .convert-another-btn:hover, .try-again-btn:hover {
    background-color: var(--primary-dark);
}

.download-btn {
    display: inline-block;
    text-align: center;
    margin-bottom: 1rem;
}

.progress-container {
    margin-top: 1.5rem;
    text-align: center;
}

.progress-bar {
    height: 8px;
    background-color: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.result-container, .error-container {
    margin-top: 1.5rem;
    text-align: center;
}

.success-message, .error-message {
    margin-bottom: 1.5rem;
}

.success-message img, .error-message img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--success-color);
}

.error-message h3 {
    color: var(--error-color);
}

.error-message p {
    color: var(--text-light);
}

.download-section {
    margin-bottom: 1.5rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--white);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon img {
    width: 60px;
    height: 60px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background-color: var(--white);
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step {
        margin-bottom: 2rem;
    }
    
    .language-selector {
        margin-left: 1rem;
    }
}

@media (max-width: 576px) {
    .logo span {
        display: none;
    }
    
    nav li {
        margin-left: 1rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .upload-box {
        padding: 1.5rem;
    }
    
    #upload-form {
        padding: 1.5rem;
    }
    
    .language-selector span {
        display: none;
    }
} 
