:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --success-color: #2ec4b6;
    --danger-color: #f72585;
    --warning-color: #ff9e00;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --body-bg: #f5f7ff;
    --text-color: #212529;
    --text-light: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.login-btn:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.signup-btn {
    background-color: var(--primary-color);
    color: white;
}

.signup-btn:hover {
    background-color: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-color);
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.secondary-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Converter Section */
.converter-section {
    margin-bottom: 80px;
}

.converter-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.converter-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-color);
    position: relative;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.converter-body {
    padding: 30px;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.upload-area.highlight {
    border-color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.03);
}

.upload-content i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.upload-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.upload-content p {
    color: var(--gray-color);
    margin: 10px 0;
}

.upload-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    margin-top: 10px;
}

.upload-btn:hover {
    background-color: #3a56d4;
}

.file-info {
    font-size: 14px;
    color: var(--gray-color);
    margin-top: 15px;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.file-icon {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon i {
    font-size: 28px;
    color: var(--danger-color);
}

.file-details {
    flex: 1;
}

.file-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.file-details p {
    color: var(--gray-color);
    font-size: 14px;
}

.change-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    font-size: 14px;
}

.change-btn:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.conversion-options {
    margin-top: 30px;
}

.options-title {
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.option-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.option-card h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s;
}

.radio-option:hover .radio-checkmark {
    border-color: var(--primary-color);
}

.radio-option input:checked ~ .radio-checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.radio-option input:checked ~ .radio-checkmark:after {
    display: block;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
}

.checkbox-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.checkbox-option:hover .checkbox-checkmark {
    border-color: var(--primary-color);
}

.checkbox-option input:checked ~ .checkbox-checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-option input:checked ~ .checkbox-checkmark:after {
    display: block;
}

.convert-btn {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 25px;
    border-radius: 10px;
}

.convert-btn:hover {
    background-color: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

/* Progress Section */
.conversion-progress {
    margin-top: 30px;
    display: none;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-header h3 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-percent {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
}

.progress-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--gray-color);
}

.step.active .step-icon {
    background-color: var(--primary-color);
    color: white;
}

.step p {
    font-size: 14px;
    color: var(--gray-color);
}

.step.active p {
    color: var(--primary-color);
    font-weight: 500;
}

.status-text {
    text-align: center;
    color: var(--gray-color);
}

/* Download Section */
.download-section {
    text-align: center;
    margin-top: 30px;
    display: none;
}

.download-success {
    margin-bottom: 30px;
}

.success-icon {
    font-size: 60px;
    color: var(--success-color);
    margin-bottom: 15px;
}

.download-success h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.download-success p {
    color: var(--gray-color);
}

.download-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.preview-icon {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-icon i {
    font-size: 28px;
    color: var(--success-color);
}

.preview-details {
    flex: 1;
}

.preview-details h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.file-meta {
    color: var(--gray-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.download-btn {
    background-color: var(--success-color);
    color: white;
    padding: 12px 24px;
}

.download-btn:hover {
    background-color: #25a99a;
}

.share-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 12px 24px;
}

.share-btn:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.share-options {
    margin-bottom: 30px;
}

.share-options h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.storage-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.storage-btn {
    padding: 10px 15px;
    border-radius: 8px;
    background-color: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.storage-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.new-file-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 12px 24px;
    width: 100%;
}

.new-file-btn:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

/* Features Section */
.features-section {
    margin-bottom: 80px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray-color);
    font-size: 15px;
}

/* Footer Styles */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    color: #dfe6e9;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-about p {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.links-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.links-column ul {
    list-style: none;
}

.links-column ul li {
    margin-bottom: 12px;
}

.links-column ul li a {
    color: #dfe6e9;
    text-decoration: none;
    transition: color 0.3s;
}

.links-column ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b2bec3;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #b2bec3;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-section h1 {
        font-size: 36px;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .converter-card {
        padding: 20px 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 5px;
    }
}