/* ==================== PDF TO IMAGE CONVERTER STYLES ==================== */

/* Override body background for PDF to Image page */
body {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%) !important;
    color: var(--text-primary);
}

.pdf-to-image-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: var(--text-primary);
}

.header-section {
    text-align: center;
    margin-bottom: 40px;
}

.header-section h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 800;
}

.header-section h1 i {
    color: #f79112;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 0;
}

/* Upload Section */
.upload-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.drop-zone-pdf {
    border: 3px dashed var(--primary-light);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.drop-zone-pdf:hover {
    border-color: #f79112;
    background: rgba(247, 145, 18, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 145, 18, 0.3);
}

.drop-zone-pdf.drag-over {
    border-color: #f79112;
    background: rgba(247, 145, 18, 0.15);
    transform: scale(1.02);
}

.drop-zone-pdf.loading {
    pointer-events: none;
    opacity: 0.7;
}

.drop-zone-pdf.loading .upload-content {
    opacity: 0.5;
}

.drop-zone-pdf.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247, 145, 18, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-icon i {
    font-size: 3rem;
    color: #f79112;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.drop-zone-pdf h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 10px 0;
}

.drop-zone-pdf p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 10px 0 20px 0;
}

.supported-formats {
    margin-top: 15px;
}

.supported-formats small {
    color: #f79112;
    font-size: 0.9rem;
}

.supported-formats i {
    margin-right: 5px;
}

/* Upload Progress Bar */
.upload-progress-container {
    width: 100%;
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.upload-progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, #f79112 100%);
    transition: width 0.3s ease;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
}

.upload-progress-text {
    margin-top: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* Preview Container */
.preview-container {
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
    flex-wrap: wrap;
    gap: 15px;
}

.preview-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-header h3 i {
    color: #f79112;
}

.preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-add-more {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.btn-add-more:hover {
    background-color: #f79112;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 145, 18, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-light);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    border-color: #f79112;
    transform: translateY(-2px);
}

/* Preview Grid */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Preview Limit Message - Always on new row */
.preview-limit-message {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px !important;
    margin: 0 !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

.preview-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    padding: 15px;
    cursor: move;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOutAndFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes slideIntoPlace {
    0% {
        opacity: 0.8;
        transform: translateX(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.preview-item:hover {
    border-color: #f79112;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(247, 145, 18, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.preview-image-container {
    position: relative;
    width: 100%;
    height: 150px;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-light);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-orientation: from-image;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-image-container:hover .preview-overlay {
    opacity: 1;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.btn-delete i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.btn-delete:hover {
    background-color: #c0392b;
    transform: scale(1.1) rotate(10deg);
}

.preview-info {
    text-align: center;
}

.preview-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 5px 0;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-size,
.preview-dimensions {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 3px 0;
}

.preview-order {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f79112;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(247, 145, 18, 0.4);
    transition: all 0.3s ease;
}

/* PDF Preview */
.pdf-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Preview Limit Message in PDF Preview - Always on new row */
.pdf-preview .preview-limit-message {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.pdf-page-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.pdf-page-preview:hover {
    border-color: #f79112;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(247, 145, 18, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.pdf-page-canvas {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: white;
    display: block;
    margin-bottom: 10px;
}

.pdf-page-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f79112;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(247, 145, 18, 0.4);
}

/* Image Settings */
.image-settings {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    color: var(--text-primary);
    animation: fadeIn 0.5s ease;
    backdrop-filter: blur(10px);
}

.image-settings h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.image-settings h3 i {
    color: #f79112;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
}

.setting-item label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.setting-select,
.setting-input {
    padding: 10px;
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.setting-select:focus,
.setting-input:focus {
    outline: none;
    border-color: #f79112;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(247, 145, 18, 0.2);
}

.setting-select option {
    background: var(--primary-dark);
    color: var(--text-primary);
    padding: 10px;
}

/* Convert Section */
.convert-section {
    margin-top: 30px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.batch-warning {
    background-color: rgba(247, 145, 18, 0.15);
    border: 2px solid #f79112;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #f79112;
    font-size: 0.95rem;
    animation: slideInFromTop 0.4s ease-out;
}

.batch-warning i {
    font-size: 1.2rem;
    color: #f79112;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #f79112;
    box-shadow: 0 6px 20px rgba(247, 145, 18, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.2rem;
}

/* Progress Container */
.progress-container {
    margin-top: 25px;
    animation: fadeIn 0.3s ease;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, #f79112 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
    border-radius: 15px;
}

.progress-text {
    margin-top: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

/* Instructions Section */
.instructions-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.instructions-section h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 800;
}

.instructions-section h2 i {
    color: #f79112;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(247, 145, 18, 0.3);
    border-color: #f79112;
    background: rgba(255, 255, 255, 0.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f79112 0%, #ff6b35 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(247, 145, 18, 0.4);
}

.step-content h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.step-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Blog Section */
.blog-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.blog-section h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 800;
}

.blog-section h2 i {
    color: #f79112;
    margin-right: 12px;
}

.blog-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-content h3:first-child {
    margin-top: 0;
}

.blog-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    text-align: justify;
}

.blog-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.blog-list li {
    padding: 12px 0 12px 35px;
    position: relative;
    font-size: 1.05rem;
}

.blog-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f79112;
    font-weight: bold;
    font-size: 1.3rem;
}

.blog-list li strong {
    color: var(--text-primary);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.feature-item-blog {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--primary-light);
    border-left: 4px solid #f79112;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item-blog:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #f79112;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 145, 18, 0.3);
}

.feature-icon-blog {
    font-size: 1.8rem;
    color: #f79112;
    margin-right: 15px;
    min-width: 40px;
    text-align: center;
    margin-top: 5px;
}

.feature-item-blog h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
}

.feature-item-blog p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: left;
}

.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.use-case-item {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--primary-light);
    border-left: 4px solid #f79112;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.use-case-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(247, 145, 18, 0.3);
    border-color: #f79112;
    background: rgba(255, 255, 255, 0.05);
}

.use-case-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.05rem;
    color: var(--text-primary);
}

/* Responsive adjustments for blog */
@media (max-width: 768px) {
    .blog-section {
        margin: 40px auto;
        padding: 30px 15px;
    }

    .blog-section h2 {
        font-size: 1.6rem;
    }

    .blog-content h3 {
        font-size: 1.3rem;
    }

    .blog-content p,
    .blog-list li {
        font-size: 1rem;
        text-align: left;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-item-blog {
        padding: 15px;
    }

    .feature-icon-blog {
        font-size: 1.5rem;
        min-width: 35px;
    }

    .use-cases {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.faq-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.faq-section h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 800;
}

.faq-section h2 i {
    color: #f79112;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item-pdf {
    margin-bottom: 15px;
    border: 2px solid var(--primary-light);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.faq-item-pdf:hover {
    border-color: #f79112;
}

.faq-question-pdf {
    padding: 15px 15px 15px 40px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.faq-question-pdf::before {
    content: '+';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: normal;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #f79112;
}

.faq-item-pdf.active .faq-question-pdf {
    background-color: rgba(247, 145, 18, 0.2);
    color: var(--text-primary);
    border-bottom: 2px solid #f79112;
}

.faq-item-pdf.active .faq-question-pdf::before {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer-pdf {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.faq-item-pdf.active .faq-answer-pdf {
    padding: 15px;
    max-height: 1000px;
}

.faq-answer-pdf p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Features Section */
.features-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.features-section h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 800;
}

.features-section h2 i {
    color: #f79112;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #f79112;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(247, 145, 18, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f79112 0%, #ff6b35 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(247, 145, 18, 0.4);
}

.feature-icon i {
    font-size: 2.5rem;
    color: white;
}

.feature-card h3 {
    color: var(--text-primary);
    margin: 15px 0 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .header-section h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .subtitle {
        font-size: 1rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .upload-section {
        padding: 20px;
    }
    
    .drop-zone-pdf {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .upload-content {
        width: 100%;
    }
    
    .upload-icon i {
        font-size: 3rem;
    }
    
    .drop-zone-pdf h3 {
        font-size: 1.2rem;
    }
    
    .preview-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    /* Preview Limit Message - Tablet responsive */
    .preview-limit-message {
        padding: 12px !important;
        font-size: 0.9rem !important;
        margin: 10px 0 !important;
    }
    
    /* PDF Preview Grid - 3 columns on mobile */
    .pdf-preview {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .preview-image-container {
        height: 120px;
    }
    
    .pdf-settings {
        padding: 20px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .instructions-section,
    .faq-section,
    .features-section {
        padding: 25px;
    }
    
    .instructions-section h2,
    .faq-section h2,
    .features-section h2 {
        font-size: 1.5rem;
        flex-direction: column;
    }
    
    .btn-large {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    .preview-actions {
        gap: 10px;
    }
    
    .btn-add-more,
    .btn-secondary {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    .batch-warning {
        font-size: 0.85rem;
        padding: 10px 15px;
        flex-direction: column;
        text-align: center;
    }
    
    /* GPU Acceleration for mobile - force hardware acceleration */
    .pdf-page-preview {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
    
    .pdf-page-canvas {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    /* Disable expensive backdrop-filter on mobile for performance */
    .pdf-page-preview,
    .upload-section,
    .image-settings,
    .instructions-section,
    .faq-section,
    .features-section,
    .blog-section {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    /* Adjust background since backdrop-filter is removed */
    .pdf-page-preview {
        background: rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 480px) {
    .pdf-to-image-container {
        padding: 10px;
    }
    
    .header-section h1 {
        font-size: 1.5rem;
    }
    
    .upload-section {
        padding: 15px;
    }
    
    .drop-zone-pdf {
        padding: 25px 15px;
        min-height: 180px;
    }
    
    .upload-content {
        width: 100%;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
    }
    
    /* Preview Limit Message - Mobile responsive */
    .preview-limit-message {
        padding: 10px !important;
        font-size: 0.85rem !important;
        margin: 8px 0 !important;
        border-radius: 8px !important;
    }
    
    .preview-limit-message strong {
        display: block;
        margin-bottom: 5px;
    }
    
    /* PDF Preview Grid - 3 columns even on very small screens */
    .pdf-preview {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    /* Make PDF page cards smaller on very small screens */
    .pdf-page-preview {
        padding: 10px;
    }
    
    .pdf-page-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .preview-header h3 {
        font-size: 1.1rem;
    }
    
    .btn-secondary {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .preview-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-add-more,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .faq-question-pdf {
        padding: 12px 15px 12px 45px;
        font-size: 0.95rem;
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    .faq-question-pdf::before {
        font-size: 1.3em;
        left: 12px;
    }
    
    .faq-answer-pdf p {
        font-size: 0.9rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-large {
        width: 100%;
        padding: 15px 25px;
    }
    
    /* Additional GPU acceleration for very small screens */
    .pdf-page-preview {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* ==================== END PDF TO IMAGE CONVERTER STYLES ==================== */

