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

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #10b981;
    --accent: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header */
.header {
    overflow: hidden;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.logo {
    font-size: 2rem;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 1;
}

/* Main Content */
.main {
    padding: 60px 0;
}

.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* Converter Card */
.converter {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--gray-50);
    margin-bottom: 30px;
}

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

.upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.7;
}

.upload-area h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.upload-area p {
    color: var(--gray-500);
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

/* Options */
.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.format-options,
.quality-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.options label {
    font-weight: 600;
    color: var(--gray-900);
}

.options select,
.options input[type="range"] {
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font: inherit;
    background: white;
}

.options select:focus,
.options input:focus {
    outline: none;
    border-color: var(--primary);
}

/* File List */
.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--gray-50);
}

.file-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.file-item button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.file-item button:hover {
    background: var(--primary-dark);
}

/* Status */
.status {
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
}

.status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status.processing {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

/* Features */
.features {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

.feature {
    text-align: center;
    color: white;
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature p {
    opacity: 0.9;
}

/* Ad Space */
.ad-space {
    padding: 40px 0;
}

.ad-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    padding: 40px;
    text-align: center;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        gap: 20px;
    }

    .converter {
        padding: 30px 20px;
    }

    .options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .file-item {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .upload-area {
        padding: 40px 16px;
    }

    .nav {
        display: none;
    }
}

/* Page Content Styles - Add to existing styles.css */

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.last-updated {
    font-style: italic;
    opacity: 0.8;
}

.content-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.content-section {
    margin-bottom: 32px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-100);
}

.content-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.content-section p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 16px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.feature-list {
    display: grid;
    gap: 24px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.feature-item .feature-icon {
    font-size: 1.5rem;
    margin-top: 4px;
}

.policy-list {
    margin: 16px 0;
    padding-left: 24px;
}

.policy-list li {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 8px;
}

.inline-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.inline-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive adjustments for content pages */
@media (max-width: 768px) {
    .content-card {
        padding: 30px 20px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .content-card {
        padding: 24px 16px;
    }
    
    .content-section h3 {
        font-size: 1.25rem;
    }
}

/* Bulk Processing Styles */
.bulk-controls {
    margin-top: 30px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.bulk-actions {
    text-align: center;
}

.bulk-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 8px;
    transition: all 0.3s;
    font-size: 1rem;
}

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

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

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

.bulk-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bulk-progress {
    margin-top: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
    width: 0%;
}

#progress-text {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Enhanced file list for bulk processing */
.file-item {
    position: relative;
}

.file-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.file-item.completed::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .bulk-btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
}

/* Add this to your styles.css */
.convert-single-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
    position: relative;
    pointer-events: auto;
}

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

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--gray-50);
    position: relative;
    z-index: 1;
}

/* Add to styles.css */

/* JPEG XL highlight banner */
.jxl-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    padding: 12px 24px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.jxl-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Enhanced file display for JXL files */
.file-item.jxl-file {
    border-left: 4px solid #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

/* Format-specific styling */
.format-jxl {
    color: #f59e0b;
    font-weight: 600;
}

/* Compression stats display */
.compression-stats {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
}

/* Mobile responsive updates */
@media (max-width: 768px) {
    .jxl-highlight {
        font-size: 1rem;
        padding: 10px 20px;
        margin: 16px 0;
    }
    
    .jxl-badge {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
}

/* LIVE JPEG XL styling */
.jxl-live {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: pulse 2s infinite;
}

.jxl-live-badge {
    background: rgba(255, 255, 255, 0.3);
    animation: glow 1.5s infinite alternate;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

/* Success status for JPEG XL */
.status.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 700;
}

/* Enhanced Features Section */
.features {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.features-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature {
    text-align: center;
    color: white;
    padding: 30px 20px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 2px solid #fbbf24;
    animation: glow 2s infinite alternate;
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature p {
    opacity: 0.9;
    line-height: 1.6;
}

.feature-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(12deg);
    animation: pulse 2s infinite;
}

/* Comparison Section */
.comparison-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 60px;
}

.comparison-section h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.comparison-item {
    padding: 25px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.comparison-us {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.2) 100%);
    border-color: #10b981;
}

.comparison-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    text-align: center;
}

.comparison-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-yes, .feature-no {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-yes {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.feature-no {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Formats Section */
.formats-section {
    text-align: center;
}

.formats-section h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.format-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.format-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.format-new {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.3) 100%);
    border-color: #f59e0b;
    animation: pulse 3s infinite;
}

.format-coming {
    opacity: 0.7;
    background: rgba(156, 163, 175, 0.2);
}

.format-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.format-name {
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.format-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes glow {
    0% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
    100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.8); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .formats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .feature {
        padding: 25px 15px;
    }
    
    .comparison-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .features {
        padding: 60px 0;
    }
    
    .formats-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.benefits-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.benefits-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.benefits-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
}

.comparison-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.comparison-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.comparison-card.our-tool {
    border: 3px solid var(--secondary);
    position: relative;
    transform: scale(1.05);
}

.comparison-card.our-tool::before {
    content: "RECOMMENDED";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
}

.card-icon {
    font-size: 2rem;
}

.card-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-list li {
    padding: 12px 0;
    font-size: 1rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.comparison-list li:last-child {
    border-bottom: none;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.trust-item {
    text-align: center;
    color: white;
}

.trust-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 8px;
}

.trust-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .benefits-content h3 {
        font-size: 2rem;
    }
    
    .comparison-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comparison-card.our-tool {
        transform: none;
    }
    
    .trust-indicators {
        gap: 30px;
    }
    
    .trust-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .benefits {
        padding: 60px 0;
    }
    
    .comparison-card {
        padding: 24px 20px;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 20px;
    }
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

/* Ad Space */
.ad-space {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.05);
}

.adsbygoogle {
    border-radius: var(--radius);
    min-height: 200px;
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
}

/* FAQ and Help Page Styles */
.faq-item {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

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

.faq-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.format-guide,
.troubleshoot-list {
    margin: 16px 0;
    padding-left: 24px;
}

.format-guide li,
.troubleshoot-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.help-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.help-button {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

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

.help-button.primary:hover {
    background: var(--primary-dark);
}

.help-button.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.help-button.secondary:hover {
    background: var(--gray-200);
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font: inherit;
    background: white;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.submit-button:hover {
    background: var(--primary-dark);
}

.form-note {
    margin-top: 16px;
    text-align: center;
    color: var(--gray-500);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.quick-link {
    background: var(--gray-50);
    color: var(--gray-700);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.quick-link:hover {
    background: var(--primary);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .help-actions {
        flex-direction: column;
    }
    
    .help-button {
        text-align: center;
    }
    
    .quick-links {
        justify-content: center;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments for 6 cards */
@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Ad Placeholder Styles */
.ad-placeholder-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-content {
    color: rgba(255, 255, 255, 0.8);
}

.ad-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.ad-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.ad-content p {
    margin-bottom: 8px;
}

.ad-content small {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* Mobile Navigation Fixes */
.header {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    z-index: 1001;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Desktop Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

/* Mobile Navigation */
/* Mobile Navigation Fixes */
.header {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: visible; /* Allow dropdown to show */
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    z-index: 1001;
}

.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Desktop Navigation */
.nav {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

/* Mobile Navigation - Dropdown Style */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
        margin-top: 10px;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-link {
        padding: 15px 20px;
        font-size: 1rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: background 0.3s;
    }
    
    .nav-link:last-child {
        border-bottom: none;
        border-radius: 0 0 8px 8px;
    }
    
    .nav-link:first-child {
        border-radius: 8px 8px 0 0;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Hamburger Animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }
}

/* Converter Options Mobile Fix */
.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.format-options,
.quality-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0; /* Allow flex items to shrink */
}

.options label {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9rem;
}

.options select {
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font: inherit;
    background: white;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

/* Quality Slider Container - FIXED */
.quality-slider-container {
    position: relative;
    width: 100%;
    padding: 10px 0; /* Add vertical padding for touch target */
    box-sizing: border-box;
}

.options input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    margin: 0; /* Remove default margins */
}

.options input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    margin-top: -6px; /* Center the thumb */
}

.options input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: none;
    margin-top: -6px;
}

.options select:focus,
.options input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Mobile Responsive for Options */
@media (max-width: 768px) {
    .options {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .options select {
        padding: 14px 12px;
        font-size: 1rem;
    }
    
    .options label {
        font-size: 1rem;
    }
    
    .quality-slider-container {
        padding: 15px 10px; /* More padding on mobile */
        width: 100%;
        box-sizing: border-box;
    }
    
    .options input[type="range"] {
        height: 12px; /* Bigger on mobile */
        margin: 0;
    }
    
    .options input[type="range"]::-webkit-slider-thumb {
        height: 28px;
        width: 28px;
        margin-top: -8px;
    }
    
    .options input[type="range"]::-moz-range-thumb {
        height: 28px;
        width: 28px;
        margin-top: -8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .converter {
        padding: 25px 20px;
        box-sizing: border-box;
    }
    
    .options {
        gap: 16px;
    }
    
    .quality-slider-container {
        padding: 15px 5px;
    }
}

/* Prevent body overflow */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Add this to your existing styles.css file */

/* Blog Specific Styles */
.blog-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

.blog-post {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-post.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid var(--primary);
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.post-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.post-category {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-post h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    line-height: 1.3;
}

.blog-post h3 a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-post h3 a:hover {
    color: var(--primary);
}

.blog-post p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 60px;
}

.newsletter-signup h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.newsletter-signup p {
    opacity: 0.9;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form button {
    background: white;
    color: var(--primary);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Article Page Styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.article-description {
    font-size: 1.2rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--gray-900);
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--gray-900);
    margin: 30px 0 15px 0;
}

.article-content p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 8px;
}

.article-content strong {
    color: var(--gray-900);
    font-weight: 600;
}

.comparison-table {
    overflow-x: auto;
    margin: 30px 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-900);
}

.cta-box {
    background: linear-gradient(135deg, var(--secondary) 0%, #059669 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.cta-box p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: var(--secondary);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-post.featured {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .article-content {
        padding: 30px 20px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
}