/* Base Styles */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #10b981;
    --light-color: #f9fafb;
    --dark-color: #1f2937;
    --gray-color: #9ca3af;
    --light-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --premium-color: #8b5cf6;
    --premium-dark: #7c3aed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.btn-secondary {
    background-color: white;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--light-gray);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem;
}

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

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 5rem;
    scroll-margin-top: 80px; /* For smooth scrolling with fixed header */
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Converter Card Styles */
.converter-container {
    margin-bottom: 4rem;
}

.converter-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
    position: relative;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: border-color 0.3s, background-color 0.3s;
}

.upload-area:hover, .upload-area.active {
    border-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-area h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.upload-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    margin: 1rem 0;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background-color: var(--primary-dark);
}

.file-info {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Uploaded Files Section */
.uploaded-files {
    margin-bottom: 2rem;
    display: none;
}

.uploaded-files h3 {
    margin-bottom: 1rem;
}

#fileList {
    list-style: none;
}

#fileList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.file-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-name i {
    color: var(--primary-color);
}

.remove-file {
    color: crimson;
    cursor: pointer;
    transition: color 0.3s;
}

.remove-file:hover {
    color: darkred;
}

/* Conversion Options */
.conversion-options {
    margin-bottom: 2rem;
}

.conversion-options h3 {
    margin-bottom: 1rem;
}

.option-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.option-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.convert-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
    width: 100%;
}

.convert-btn:hover {
    background-color: #0ca678;
}

.convert-btn:disabled {
    background-color: var(--gray-color);
    cursor: not-allowed;
}

/* Processing Status */
.processing-status {
    margin-top: 2rem;
}

.progress-container {
    height: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s;
}

#statusText {
    text-align: center;
    color: var(--gray-color);
}

/* Download Section */
.download-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.download-section h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.download-files {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.download-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-name i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.download-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
    text-decoration: none;
}

.download-btn:hover {
    background-color: var(--primary-dark);
}

/* How It Works Section */
.how-it-works {
    text-align: center;
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1 1 200px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--gray-color);
}

/* Features Section */
.features {
    margin-top: 4rem;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.8rem;
}

/* Pricing Section */
.pricing-section {
    text-align: center;
    padding: 2rem 0;
}

.pricing-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: var(--gray-color);
    margin-bottom: 3rem;
}

.pricing-container {
    display: flex;
    justify-content: center;
}

.pricing-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 400px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
    border: 2px solid var(--premium-color);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
}

.price-period {
    color: var(--gray-color);
    font-size: 1rem;
    margin-top: -5px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.7rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.pricing-features li i {
    color: var(--secondary-color);
}

.pricing-cta {
    margin-top: 2rem;
}

.pricing-cta .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.pricing-guarantee {
    margin-top: 2rem;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    margin-top: 4rem;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

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

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background-color: var(--light-gray);
}

.faq-answer p {
    padding: 1.2rem;
}

.faq-item.active .faq-question {
    background-color: var(--light-gray);
}

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

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalopen 0.3s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--gray-color);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--dark-color);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.modal-content > p {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.modal-features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.modal-feature {
    text-align: center;
    flex: 1 1 150px;
}

.modal-feature i {
    font-size: 2rem;
    color: var(--premium-color);
    margin-bottom: 0.5rem;
}

.modal-feature h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.modal-feature p {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.payment-form {
    margin-top: 1.5rem;
}

.form-row {
    margin-bottom: 1.2rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-row input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.form-inline {
    display: flex;
    gap: 1rem;
}

.form-inline > div {
    flex: 1;
}

.payment-terms {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 1rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

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

.footer-logo h2 {
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: var(--gray-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.copyright {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .option-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-links {
        gap: 2rem;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        max-width: 100%;
    }
    
    .pricing-card {
        width: 100%;
    }
    
    .form-inline {
        flex-direction: column;
        gap: 1.2rem;
    }
}
