/* ---------------------------------- */
/* IMAGE TO PDF TOOL STYLES           */
/* ---------------------------------- */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --dark: #0f172a;
    --border: #e2e8f0;
    --font: 'Inter', sans-serif;
}
/* Container for the main tool area */
.converter-section {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* ... (Existing styles for h2, stage-heading, tool-upload-box, etc. remain the same) ... */

/* ------------------ */
/* Preview Area (Simple scrolling for upload stage) */
/* ------------------ */
.preview-area-upload {
    display: flex;
    overflow-x: auto; /* Allows horizontal scrolling */
    white-space: nowrap;
    padding: 15px 10px;
    margin-bottom: 20px;
    gap: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f7f7f7;
    min-height: 120px;
    align-items: center; 
    justify-content: flex-start;

    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.preview-area-upload::-webkit-scrollbar {
    display: none;
}

#upload-preview-placeholder {
    color: #999;
    font-style: italic;
    width: 100%;
    text-align: center;
}

.preview-thumbnail {
    display: inline-block;
    width: 100px;
    height: 100px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0; 
    margin: 0 5px; 
}

.preview-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
}


/* ------------------ */
/* Stage 2: Carousel & Results */
/* ------------------ */

.carousel-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.carousel-nav {
    /* ... (Button styles remain the same) ... */
    background: var(--background-color);
    border: 1px solid #ddd;
    color: var(--text-color);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 6px;
    transition: background-color 0.3s;
    flex-shrink: 0; /* Important: Prevents button from shrinking */
}

.carousel-nav:hover:not(:disabled) {
    background-color: #eee;
}

.carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.preview-carousel {
    flex-grow: 1;
    display: flex;
    overflow-x: hidden; /* HIDDEN: We control scrolling via buttons now */
    scroll-behavior: smooth; /* For smooth transitions */
    padding: 10px;
    gap: 10px;
    margin: 0 10px;
}
/* IMPORTANT: The thumbnail style remains the same, but its behavior changes 
   due to the parent container's overflow-x: hidden. The JS will now manually 
   adjust the scroll position to show one image at a time. */

/* ... (Remaining styles for pdf-output, convert-btn, loader, download-btn are the same) ... */








/* footer description*/
/* --- SEO Description Section Styling --- */

.tool-seo-section {
    max-width: 800px; /* Constrains the width for better readability */
    margin: 40px auto; /* Centers the content and provides vertical spacing */
    padding: 20px;
    border-top: 2px solid #eee; /* Subtle separator from the tool above */
    line-height: 1.6; /* Improves readability of body text */
    font-family: Arial, sans-serif; /* Use a common, readable font */
    color: #333; /* Darker text for contrast */
}

/* Styling for the main section title (H2) */
.tool-seo-section .section-title {
    font-size: 24px;
    color: #007bff; /* Use your brand color here (e.g., a blue) */
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
}

/* Styling for the subsections titles (H3) */
.tool-seo-section .subsection-title {
    font-size: 20px;
    color: #555;
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Styling for regular paragraphs */
.tool-seo-section p {
    margin-bottom: 15px;
}

/* Styling for the feature list */
.tool-seo-section .feature-list {
    list-style: disc; /* Use standard bullet points */
    padding-left: 20px;
    margin-left: 0;
}

.tool-seo-section .feature-list li {
    margin-bottom: 8px;
}

/* Optional: Highlight the security note for emphasis */
.tool-seo-section .security-note {
    padding: 15px;
    background-color: #f7f9fc; /* Light background to make it stand out */
    border-left: 4px solid #007bff;
    margin-top: 20px;
    font-style: italic;
}

/* Ensure strong tags stand out */
.tool-seo-section strong {
    color: #1a1a1a;
}


/* FAQ Section Styling */
.faq-section {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Soft shadow */
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7; /* Light divider */
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item strong {
    display: block;
    font-size: 1.1rem;
    color: #2d3748; /* Darker blue-grey */
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.faq-item p {
    font-size: 1rem;
    color: #4a5568; /* Soft grey for readability */
    line-height: 1.6;
    margin: 0;
}

/* Optional: Hover effect to make it feel premium */
.faq-item:hover strong {
    color: #007bff; /* Change this to your brand color */
    transition: color 0.3s ease;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .faq-section {
        margin: 20px 10px;
        padding: 15px;
    }
    
    .faq-item strong {
        font-size: 1rem;
    }
}

/* Container for the whole section */
.how-to-use-container {
    margin-top: 60px;
    padding: 20px;
    background: #fdfdfd;
    border-radius: 15px;
}

/* Grid layout for steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

/* Individual step cards */
.step-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.2s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
}

/* Step numbering bubbles */
.step-number {
    background: #3b82f6;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.step-card strong {
    display: block;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        padding: 20px;
    }
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f0fdf4; /* Soft green background */
    border: 1px solid #bbf7d0; /* Light green border */
    padding: 12px 20px;
    border-radius: 50px; /* Pill shape */
    margin: 20px 0;
    text-align: left;
}

.badge-icon {
    background-color: #22c55e; /* Vibrant green */
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 1.1rem;
    flex-shrink: 0; /* Prevents icon from squishing */
}

.badge-content strong {
    display: block;
    font-size: 0.95rem;
    color: #166534; /* Dark green text */
    line-height: 1.2;
}

.badge-content p {
    font-size: 0.85rem;
    color: #15803d;
    margin: 0;
    font-weight: 400;
}

/* Pulse animation to draw the eye (Optional) */
@keyframes shield-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.badge-icon i {
    animation: shield-pulse 3s infinite ease-in-out;
}

/*about developer styling*/
.about-developer {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px;
    margin: 60px auto;
    max-width: 850px;
    border: 1px solid #e2e8f0;
}

.developer-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.developer-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.developer-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.developer-info p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.developer-links a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.developer-links a:hover {
    text-decoration: underline;
}

/* Mobile Layout */
@media (max-width: 600px) {
    .developer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Footer */
.main-footer { background: var(--dark); color: var(--white); padding: 40px 5%; text-align: center; }
.footer-link { color: var(--primary); text-decoration: none; font-weight: 600; display: block; margin-bottom: 10px; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.social-links a { color: white; border: 1px solid rgba(255,255,255,0.2); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.social-links a:hover { background: var(--primary); border-color: var(--primary); }

/* Mobile */
@media (max-width: 850px) {
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: white; border-bottom: 1px solid var(--border); }
    .main-nav.open { display: block; }
    .nav-list { flex-direction: column; padding: 20px; gap: 10px; }
    .form-group { flex-direction: column; }
}