* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --bg-dark: #111827;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.5);
    top: -250px;
    right: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.5);
    bottom: -200px;
    left: -200px;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Navigation */
.navbar {
    position: relative;
    z-index: 10;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
}

.logo-icon {
    font-size: 32px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 15px;
}

.nav-links a:hover {
    opacity: 0.8;
}

.admin-link {
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 100px 0;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.arrow {
    font-size: 24px;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    background: var(--bg-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon img {
    max-width: 6vh;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Formats Section */
.formats-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.format-category {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.format-category:hover {
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.category-icon {
    font-size: 36px;
}

.category-info h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.category-info p {
    font-size: 14px;
    color: var(--text-light);
}

.format-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.format-tag {
    padding: 6px 14px;
    background: var(--bg-gray);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

/* How It Works */
.how-section {
    background: var(--bg-gray);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.step-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.8;
}

.step-connector {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    margin: 0 20px;
    position: relative;
    top: -60px;
}

/* Converter Section */
.converter-card {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: var(--shadow-xl);
}

.alert {
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: none;
    font-weight: 500;
}

.alert.show {
    display: block;
    animation: slideDown 0.3s;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--error);
}

.alert.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.privacy {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 20px;
}

.privacy a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Upload Zone */
.upload-area {
    margin-bottom: 40px;
}

.upload-zone {
    border: 3px dashed var(--border);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-gray);
    position: relative;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: #f0f0ff;
}

.upload-zone.dragover {
    border-color: var(--primary);
    background: #e0e7ff;
    transform: scale(1.02);
}

.upload-icon-large {
    color: var(--primary);
    margin-bottom: 20px;
}

.upload-zone h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.upload-zone p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 20px;
}

.upload-specs {
    font-size: 14px;
    color: var(--text-lighter);
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-info-card {
    display: none;
    background: var(--bg-gray);
    padding: 24px;
    border-radius: 16px;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.file-info-card.show {
    display: flex;
    animation: fadeIn 0.3s;
}

.file-icon {
    font-size: 40px;
}

.file-details {
    flex: 1;
}

.file-details h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 4px;
    word-break: break-all;
}

.file-details p {
    font-size: 14px;
    color: var(--text-light);
}

.remove-file-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--error);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.remove-file-btn:hover {
    transform: scale(1.1);
}

/* Converter Selection */
.converter-selection,
.format-selection {
    display: none;
    margin-bottom: 40px;
}

.converter-selection.show,
.format-selection.show {
    display: block;
    animation: fadeIn 0.3s;
}

.selection-title {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.converter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.converter-option {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.converter-option:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.converter-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.converter-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.converter-option h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.converter-option p {
    font-size: 13px;
    opacity: 0.8;
}

/* Format Grid */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.format-option {
    padding: 16px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 16px;
}

.format-option:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.format-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* Convert Button */
.convert-button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.convert-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.convert-button:disabled {
    background: var(--border);
    cursor: not-allowed;
}

.btn-loader {
    display: none;
    align-items: center;
    gap: 12px;
}

.convert-button.loading .btn-text,
.convert-button.loading .btn-icon {
    display: none;
}

.convert-button.loading .btn-loader {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Progress */
.progress-container {
    display: none;
    margin-top: 30px;
}

.progress-container.show {
    display: block;
    animation: fadeIn 0.3s;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.progress-bar {
    height: 12px;
    background: var(--bg-gray);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    transition: width 0.3s;
    width: 0%;
}

/* Result Card */
.result-card {
    display: none;
    text-align: center;
    padding: 40px;
    background: var(--bg-gray);
    border-radius: 20px;
    margin-top: 30px;
}

.result-card.show {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.result-icon {
    margin-bottom: 20px;
}

.result-card h3 {
    font-size: 28px;
    color: var(--success);
    margin-bottom: 12px;
}

.result-card p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--success);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.download-button:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.convert-another-btn {
    display: block;
    margin: 16px auto 0;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.convert-another-btn:hover {
    background: var(--primary);
    color: white;
}

/* Trust Section */
.trust-section {
    color: var(--text-dark);
    background: var(--bg-gray);
    text-align: center;
}

.trust-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.trust-content p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 40px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.badge-icon img {
    max-width: 3vh;
}

/* Footer */
.footer {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}


.footer-brand p {
    opacity: 0.8;
    margin-top: 16px;
    line-height: 1.8;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        gap: 30px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-connector {
        width: 3px;
        height: 50px;
        top: 0;
        margin: 10px 0;
    }

    .converter-card {
        padding: 30px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }
}