/* 
 * MODERN UI/UX DESIGN - PDF to Word Converter
 * Design Philosophy: Monochromatic + Strategic Accent
 * Color Palette:
 * - Primary Neutral (60%): #FFFFFF (Clean white backgrounds)
 * - Secondary Neutral (30%): #F0F0F0 (Light grey for sections)
 * - Text/Dark (5%): #212121 (Dark grey for text)
 * - Accent (5%): #02BFE7 (Turquoise for interactive elements)
 * - Supporting Grey: #666666 (Medium grey for secondary text)
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #FFFFFF; /* Primary neutral - 60% */
    min-height: 100vh;
    color: #212121; /* Dark grey for optimal readability */
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
.site-header {
    background: white;
    padding: 8px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-bottom: 1px solid #e5e5e5;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    text-decoration: none;
}

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

.nav-links a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: #007bff;
}

/* Tool Selector Buttons (Instagram style) */
.tool-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 0 2rem 0;
    flex-wrap: wrap;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    user-select: none;
    min-height: 34px;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tool-btn.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    color: #1a365d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tool-btn.active:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tool-btn .tool-icon {
    font-size: 14px;
    line-height: 1;
    margin-bottom: 0;
}

.tool-btn .tool-name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.2px;
    line-height: 1;
}

/* Mobile responsiveness for tool selector */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .tool-selector {
        gap: 6px;
        margin: 0 0 1.5rem 0;
    }
    
    .tool-btn {
        padding: 7px 14px;
        font-size: 12px;
        gap: 5px;
        min-height: 30px;
    }
    
    .tool-btn .tool-icon {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tool-selector {
        gap: 8px;
        margin: 0 0 1.5rem 0;
    }
    
    .tool-btn {
        padding: 6px 12px;
        font-size: 11px;
        min-height: 28px;
    }
    
    .tool-btn .tool-icon {
        font-size: 12px;
    }
}

/* Hero Section - True full width */
.hero-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 40px;
    padding: 40px 0;
    background: #0400F7;
    background: linear-gradient(90deg, rgba(4, 0, 247, 1) 0%, rgba(0, 220, 245, 1) 100%);
    color: white;
    box-shadow: 0 4px 32px rgba(59, 130, 246, 0.3);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-section > p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px auto;
    font-weight: 400;
}

/* Compact Converter Form */
.converter-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 8px;
    margin: 0 auto;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: stretch;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.file-input-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: 6;
    min-width: 0;
}

.form-row > .format-select,
.form-row > .btn-convert {
    flex: 1;
}

.btn-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    background: #F5F5F5;
    border: 2px dashed #CCCCCC;
    border-radius: 8px;
    color: #666666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 52px;
    font-size: 0.95rem;
    white-space: nowrap;
    width: 100%;
    overflow: visible;
    text-overflow: ellipsis;
}

.btn-upload:hover {
    background: #EEEEEE;
    border-color: #3b82f6;
    color: #3b82f6;
}

.upload-icon {
    font-size: 0.7rem;
    line-height: 1;
    width: 14px;
    height: 14px;
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
}

.file-info {
    display: none;
}

.format-select {
    padding: 12px 20px;
    border: 2px solid #F0F0F0;
    border-radius: 12px;
    font-size: 16px;
    background: #FFFFFF;
    color: #212121;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 48px;
    min-width: 160px;
    height: 48px;
}

.format-select:focus {
    outline: none;
    border-color: #02BFE7;
    box-shadow: 0 0 0 3px rgba(2, 191, 231, 0.1);
}

.format-select:hover {
    border-color: #02BFE7;
}

.btn-convert {
    padding: 14px 28px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 52px;
    width: 100%;
}

.btn-convert:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-convert:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
}


/* Tool Description Section */
.tool-description-section {
    margin: 0 0 40px 0;
    padding: 40px 32px;
    background: #FAFAFA;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(33, 33, 33, 0.04);
}

.tool-description-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.tool-image {
    flex-shrink: 0;
}

.tool-image svg {
    width: 240px;
    height: 180px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.tool-content {
    flex: 1;
    text-align: left;
}

.tool-content h3 {
    color: #2563eb;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 0;
    letter-spacing: -0.02em;
}

.tool-content p {
    color: #666666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Main Content - Clean white background */
main {
    background: #FFFFFF; /* Primary neutral */
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 32px rgba(33, 33, 33, 0.08); /* Modern, subtle shadow */
    min-height: 500px;
    border: 1px solid rgba(240, 240, 240, 0.8); /* Subtle border */
}

.section {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Upload Section - Modern card design */
.upload-area {
    border: 2px dashed #F0F0F0; /* Light grey dashed border */
    border-radius: 16px;
    padding: 60px 40px;
    margin-bottom: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Modern easing */
    cursor: pointer;
    background: rgba(240, 240, 240, 0.3); /* Very subtle grey background */
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(2, 191, 231, 0.1), transparent);
    transition: left 0.5s;
}

.upload-area:hover {
    border-color: #02BFE7; /* Turquoise accent on hover */
    background: rgba(2, 191, 231, 0.05); /* Very subtle turquoise tint */
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 8px 32px rgba(2, 191, 231, 0.15); /* Accent color shadow */
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area.dragover {
    border-color: #02BFE7; /* Turquoise when dragging */
    background: rgba(2, 191, 231, 0.08);
    transform: scale(1.02); /* Subtle scale on dragover */
}

.upload-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.upload-area h2 {
    color: #212121; /* Dark grey for headers */
    margin-bottom: 16px;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.upload-area p {
    color: #666666; /* Medium grey for descriptions */
    margin-bottom: 24px;
    font-size: 1rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Conversion Options - Clean and minimal */
.conversion-options {
    margin-bottom: 40px;
    padding: 24px;
    background: #F0F0F0; /* Secondary neutral - 30% */
    border-radius: 12px;
    border: 1px solid rgba(240, 240, 240, 0.8);
}

.conversion-options label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #212121;
    font-size: 1rem;
}

#format-select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #F0F0F0;
    border-radius: 12px;
    font-size: 16px;
    background: #FFFFFF;
    color: #212121;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 48px;
    height: 52px;
}

#format-select:focus {
    outline: none;
    border-color: #02BFE7; /* Turquoise focus */
    box-shadow: 0 0 0 3px rgba(2, 191, 231, 0.1); /* Focus ring */
}

#format-select:hover {
    border-color: #02BFE7;
}

/* Buttons - Turquoise accent for primary actions */
.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 8px;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #02BFE7; /* Turquoise accent - strategic 10% */
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(2, 191, 231, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover:not(:disabled) {
    background: #01A8C7; /* Darker turquoise on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(2, 191, 231, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #F0F0F0; /* Light grey when disabled */
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #FFFFFF;
    color: #212121;
    border: 2px solid #F0F0F0;
}

.btn-secondary:hover {
    background: #F0F0F0;
    border-color: #02BFE7;
    color: #02BFE7;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(2, 191, 231, 0.15);
}

/* Loading Section - Minimal and clean */
.loading-animation {
    margin-bottom: 32px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #F0F0F0;
    border-top: 3px solid #02BFE7; /* Turquoise spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: #F0F0F0;
    border-radius: 4px;
    overflow: hidden;
    margin: 24px auto 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #02BFE7, #01A8C7); /* Turquoise gradient */
    width: 0%;
    animation: progress 3s ease-in-out forwards;
    border-radius: 4px;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

/* Download Section */
.success-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: #02BFE7; /* Turquoise success icon */
}

/* SEO Content Sections - Clean typography */
.features-section {
    margin-top: 60px;
    padding: 48px 0;
    border-top: 1px solid rgba(240, 240, 240, 0.8);
}

.features-section h3 {
    text-align: center;
    color: #212121;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

/* Other Tools Section */
.other-tools-section {
    background: #f8fafb;
    padding: 48px 0;
    margin: 48px 0;
    border-radius: 16px;
    border: 1px solid #e5e8eb;
}

.other-tools-section h3 {
    text-align: center;
    color: #2d3748;
    margin-bottom: 32px;
    font-size: 1.8rem;
    font-weight: 700;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.tool-card {
    background: white;
    border: 2px solid #e5e8eb;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.tool-card:hover {
    border-color: #02BFE7;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(2, 191, 231, 0.15);
    color: inherit;
}

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

.tool-card h4 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.tool-card p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.tool-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.tool-badge.new {
    animation: pulse 2s infinite;
}

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

.feature {
    text-align: center;
    padding: 32px 24px;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(240, 240, 240, 0.8);
    box-shadow: 0 2px 16px rgba(33, 33, 33, 0.04);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(33, 33, 33, 0.08);
}

.feature h4 {
    color: #212121;
    margin-bottom: 16px;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature p {
    color: #666666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.conversion-tips {
    margin-top: 40px;
    padding: 32px;
    background: #F0F0F0; /* Secondary neutral background */
    border-radius: 16px;
    border-left: 4px solid #02BFE7; /* Turquoise accent border */
}

.conversion-tips h3 {
    color: #212121;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
}

.conversion-tips ul {
    list-style: none;
    padding: 0;
}

.conversion-tips li {
    padding: 12px 0;
    color: #666666;
    border-bottom: 1px solid rgba(240, 240, 240, 0.8);
    position: relative;
    padding-left: 24px;
}

.conversion-tips li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #02BFE7; /* Turquoise bullet */
    font-weight: bold;
}

.conversion-tips li:last-child {
    border-bottom: none;
}

.seo-content {
    margin: 60px 0;
    padding: 48px 0;
    border-top: 1px solid rgba(240, 240, 240, 0.8);
}

.seo-content h2 {
    color: #212121;
    border-bottom: 3px solid #02BFE7; /* Turquoise accent underline */
    padding-bottom: 12px;
    margin-bottom: 32px;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.seo-content h3 {
    color: #212121;
    margin-top: 36px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.seo-content p {
    line-height: 1.7;
    color: #666666;
    margin-bottom: 20px;
    font-size: 1rem;
}

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

.seo-content li {
    line-height: 1.7;
    color: #666666;
    margin-bottom: 12px;
}

.seo-content strong {
    color: #212121;
    font-weight: 600;
}

/* Footer - Minimal and clean */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(240, 240, 240, 0.8);
    background: rgba(240, 240, 240, 0.3);
}

footer p {
    color: #666666;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

footer nav {
    margin-top: 16px;
}

footer nav a {
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

footer nav a:hover {
    color: #02BFE7; /* Turquoise on hover */
    text-decoration: underline;
}

/* File selected state */
.file-selected .upload-area {
    border-color: #02BFE7;
    background: rgba(2, 191, 231, 0.08);
}

.file-selected .upload-icon {
    color: #02BFE7; /* Turquoise when file selected */
    filter: grayscale(0%);
}

/* Modern animations */
.section {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(24px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Responsive Design - Mobile-first approach */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    /* Mobile Hero Section - Much more compact */
    .hero-section {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .hero-section > p {
        font-size: 1rem;
        margin: 0 auto 20px auto;
    }
    
    .converter-form {
        padding: 8px;
    }
    
    .form-row {
        gap: 8px;
        margin-bottom: 8px;
        flex-direction: row;
        align-items: stretch;
        flex-wrap: wrap;
    }
    
    .file-input-container {
        flex: 1 1 48%;
        min-width: 0;
    }
    
    #format-select {
        flex: 1 1 48%;
        min-width: 0;
    }
    
    .btn-convert {
        flex: 1 1 100%;
        width: 100%;
        margin-top: 8px;
    }
    
    .btn-upload {
        padding: 10px 16px;
        height: 40px;
        font-size: 0.85rem;
        min-width: 120px;
    }
    
    #format-select {
        min-width: 120px;
        padding: 10px 16px;
        height: 40px;
        font-size: 14px;
        padding-right: 40px;
        align-self: center;
        max-width: 200px;
    }
    
    .btn-convert {
        padding: 10px 20px;
        height: 40px;
        font-size: 0.85rem;
        min-width: 100px;
        align-self: center;
        max-width: 200px;
    }
    
    
    header {
        margin-bottom: 24px;
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    main {
        padding: 32px 24px;
    }
    
    .upload-area {
        padding: 40px 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Mobile Other Tools */
    .other-tools-section {
        margin: 32px 0;
        padding: 32px 0;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .tool-badge {
        top: 8px;
        right: 8px;
        font-size: 0.65rem;
    }
    
    .seo-content {
        padding: 32px 24px;
        margin: 40px 16px;
    }
    
    /* Mobile Tool Description */
    .tool-description-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .tool-content {
        text-align: center;
    }
    
    .tool-image svg {
        width: 200px;
        height: 150px;
    }
    
    .seo-content h2 {
        font-size: 1.6rem;
    }
    
    .seo-content h3 {
        font-size: 1.2rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 8px 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .upload-area {
        border-width: 3px;
    }
    
    .btn-primary {
        background: #0066CC;
    }
    
    .feature {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .upload-area:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Focus improvements for accessibility */
*:focus-visible {
    outline: 2px solid #02BFE7;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border-top: 1px solid rgba(240, 240, 240, 0.8);
    box-shadow: 0 -4px 20px rgba(33, 33, 33, 0.1);
    z-index: 10000;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-link {
    color: #02BFE7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #01A8C7;
    text-decoration: underline;
}

.cookie-accept-btn {
    background: #02BFE7;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cookie-accept-btn:hover {
    background: #01A8C7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 191, 231, 0.3);
}

.cookie-accept-btn:active {
    transform: translateY(0);
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 24px;
        gap: 16px;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
    }
    
    .cookie-accept-btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* Mobile Related Articles */
    .related-articles-section {
        margin: 40px 0;
        padding: 32px 0;
    }
    
    .related-title {
        font-size: 1.6rem;
    }
    
    .related-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .article-card {
        padding: 20px;
        gap: 14px;
    }
    
    .article-icon {
        font-size: 1.8rem;
        width: 40px;
        height: 40px;
    }
    
    .article-title {
        font-size: 1rem;
    }
    
    .article-desc {
        font-size: 0.9rem;
    }
    
    .view-all-link {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
    padding: 48px 0;
    border-top: 1px solid rgba(240, 240, 240, 0.8);
}

.faq-section h2 {
    color: #212121;
    border-bottom: 3px solid #02BFE7;
    padding-bottom: 12px;
    margin-bottom: 24px;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
}

.faq-intro {
    color: #666666;
    text-align: center;
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.6;
}

.faq-link {
    color: #02BFE7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.faq-link:hover {
    color: #01A8C7;
    text-decoration: underline;
}

.faq-container {
    max-width: 100%;
}

.faq-item {
    border: 1px solid rgba(240, 240, 240, 0.8);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(33, 33, 33, 0.08);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: #FFFFFF;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212121;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #F9F9F9;
}

.faq-question[aria-expanded="true"] {
    background: #F0F0F0;
    border-bottom: 1px solid rgba(240, 240, 240, 0.8);
}

.faq-icon {
    font-size: 1.4rem;
    color: #02BFE7;
    font-weight: 300;
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #FFFFFF;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 500px;
}

.faq-answer p,
.faq-answer ol {
    padding: 0 24px 20px 24px;
    margin: 0;
    color: #666666;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-answer ol {
    padding-left: 48px;
    padding-top: 0;
}

.faq-answer ol li {
    margin-bottom: 8px;
    padding-left: 8px;
}

/* Mobile FAQ styles */
@media (max-width: 768px) {
    .faq-section {
        margin: 40px 16px;
        padding: 32px 20px;
    }
    
    .faq-section h2 {
        font-size: 1.6rem;
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .faq-answer p,
    .faq-answer ol {
        padding: 0 20px 16px 20px;
        font-size: 0.95rem;
    }
    
    .faq-answer ol {
        padding-left: 40px;
    }
}

/* Learn More Link in Tool Description */
.learn-more-hint {
    margin-top: 16px !important;
    font-size: 0.95rem;
    color: #666666;
}

.learn-more-link {
    color: #02BFE7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.learn-more-link:hover {
    color: #01A8C7;
    text-decoration: underline;
}

/* Related Articles Section */
.related-articles-section {
    margin: 60px 0;
    padding: 48px 0;
    border-top: 2px solid #e9ecef;
}

.related-title {
    text-align: center;
    color: #495057;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.related-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.article-card {
    background: #FFFFFF;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(33, 33, 33, 0.04);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(33, 33, 33, 0.12);
    border-color: #02BFE7;
}

.article-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    opacity: 0.8;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 191, 231, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.article-card:hover .article-icon {
    opacity: 1;
    background: rgba(2, 191, 231, 0.15);
    transform: scale(1.05);
}

.article-content {
    flex: 1;
}

.article-title {
    color: #212121;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 0;
    line-height: 1.3;
}

.article-desc {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.view-all-articles {
    text-align: center;
    margin-top: 32px;
}

.view-all-link {
    color: #02BFE7;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 24px;
    border: 2px solid #02BFE7;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.view-all-link:hover {
    background: #02BFE7;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 191, 231, 0.3);
}

/* Desktop only cards (hidden on mobile) */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* This can be uncommented if dark mode is desired
    body {
        background: #121212;
        color: #E0E0E0;
    }
    
    main {
        background: #1E1E1E;
    }
    */
}

/* Images to PDF Preview Styles */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 50px));
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-width: 100%;
}

.image-preview-item {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    width: 50px !important;
    height: 50px !important;
    cursor: grab;
    transition: all 0.2s ease;
}

.image-preview-item:hover {
    border-color: #02BFE7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 191, 231, 0.2);
}

.image-preview-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.image-preview-item img {
    width: 100% !important;
    height: 100% !important;
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: cover !important;
    display: block !important;
}

.image-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.preview-header h3 {
    color: #2d3748;
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .image-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(40px, 40px));
        gap: 0.3rem;
    }
    
    .image-preview-item {
        width: 40px !important;
        height: 40px !important;
    }
    
    .image-preview-item img {
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    .image-remove {
        width: 14px;
        height: 14px;
        font-size: 10px;
    }
}