/* ==========================================================================
   ToolVigo PDF to JPG Gallery Grid Styles
   ========================================================================== */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
    text-align: center;
}
.image-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}
.image-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.card-footer {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.card-footer .page-num {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
}
.download-sm-btn {
    background: #10b981;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
    transition: background 0.2s;
}
.download-sm-btn:hover {
    background: #059669;
}

/* Master Top Actions */
.master-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}





/* ==========================================================================
   ToolVigo PDF Merger & Premium UI Styles
   ========================================================================== */
.file-list-container {
    display: none;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
    text-align: left;
}
.file-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s;
}
.file-list-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
}
.file-list-item:last-child {
    margin-bottom: 0;
}
.file-name-span {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
}
.remove-file-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}
.remove-file-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

/* File Count Indicator */
.file-count-badge {
    display: none;
    font-size: 0.9rem;
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 15px;
}







/* ==========================================================================
   ToolVigo PDF Compressor & Premium UI Styles
   ========================================================================== */
.file-info-card {
    display: none;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}
.file-info-card .file-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
    word-break: break-all;
    margin-bottom: 5px;
}
.file-info-card .file-size {
    color: #64748b;
    font-size: 0.9rem;
}

.compression-options {
    display: none;
    text-align: left;
    margin-bottom: 20px;
}
.compression-options label {
    font-weight: 600;
    color: #1e293b;
    display: block;
    margin-bottom: 10px;
}
.compression-select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.compression-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Premium Download Area & Stats */
.result-box {
    display: none;
    margin-top: 30px;
    padding: 30px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
}
.stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.stat-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.stat-box.highlight {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
}
.stat-box.highlight .stat-value {
    color: #16a34a;
}

/* Premium Glowing Download Button */
.premium-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}
.premium-download-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 25px -5px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.premium-download-btn .download-icon {
    font-size: 1.3rem;
    animation: bounceDownIcon 2s infinite;
}
@keyframes bounceDownIcon {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(4px); }
    60% { transform: translateY(2px); }
}








/* ==========================================================================
   ToolVigo PDF Splitter & Premium Download Button Styles
   ========================================================================== */
.pdf-preview-box {
    width: 100%;
    height: 450px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    display: none;
    background: #f8fafc;
    position: relative;
}
.pdf-preview-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.custom-input-group {
    text-align: left;
    margin-bottom: 20px;
    display: none;
}
.custom-input-group label {
    font-weight: 600;
    color: #1e293b;
    display: block;
    margin-bottom: 8px;
}
.custom-input-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.custom-input-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.custom-input-group .hint {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 6px;
}

/* Progress Bar Animation */
.progress-container {
    width: 100%;
    margin-top: 25px;
    display: none;
}
.progress-text {
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 10px;
    font-size: 1rem;
}
.progress-track {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 10px;
    transition: width 0.1s linear;
    position: relative;
    overflow: hidden;
}
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loadingShimmer 1.5s infinite;
}
@keyframes loadingShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Premium Download Area */
.result-box {
    display: none;
    margin-top: 30px;
    padding: 30px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
}
.success-heading {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* The Premium Glowing Download Button */
.premium-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}
.premium-download-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 25px -5px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.premium-download-btn .download-icon {
    font-size: 1.3rem;
    animation: bounceDownIcon 2s infinite;
}
@keyframes bounceDownIcon {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(4px); }
    60% { transform: translateY(2px); }
}

.action-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}






/* =========================================
   1. Base Setup & Variables
========================================= */
:root {
    --primary-color: #4A90E2;
    --secondary-color: #2ECC71;
    --bg-color: #F8F9FA;
    --text-color: #333333;
    --card-bg: #FFFFFF;
    --border-radius: 8px;
    --transition: 0.3s ease-in-out;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a { text-decoration: none; color: inherit; }

/* =========================================
   2. UI Animations
========================================= */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-down {
    animation: slideDown 0.5s ease forwards;
}

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

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* =========================================
   3. Header Navigation
========================================= */
.site-header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.desktop-nav a {
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: var(--border-radius);
}

.desktop-nav a:hover {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
}

/* =========================================
   4. Main Content Area
========================================= */
.main-content {
    flex: 1; /* Pushes footer to bottom */
    padding: 40px 0;
}

/* =========================================
   5. Footer Styling
========================================= */

.site-footer{
    background:#fff;
    border-top:1px solid #e5e7eb;
    margin-top:50px;
}

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

.footer-logo{
    text-decoration:none;
    font-size:22px;
    font-weight:800;
    color:#111827;
}

.footer-left p{
    margin-top:4px;
    font-size:13px;
    color:#6b7280;
}

.footer-links{
    display:flex;
    gap:22px;
    flex-wrap:wrap;
}

.footer-links a{
    text-decoration:none;
    color:#4b5563;
    font-size:14px;
    font-weight:500;
    transition:.25s;
}

.footer-links a:hover{
    color:#2563eb;
}

.footer-copy{
    border-top:1px solid #f1f5f9;
    text-align:center;
    padding:12px;
    font-size:13px;
    color:#6b7280;
}

@media(max-width:768px){
    .footer-inner{
        flex-direction:column;
        text-align:center;
        padding:20px 15px;
    }

    .footer-links{
        justify-content:center;
        gap:15px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
    }
}













/* =========================================
   6. Mobile Responsive Design
========================================= */
@media screen and (max-width: 768px) {
    .desktop-nav {
        display: none; /* Mobile e amra JS diye toggle korbo pore */
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}
/* =========================================
   7. Homepage & Grid Styling (Updated 2 Per Line)
========================================= */
.text-center { text-align: center; }


.hero-section {
    padding: 20px 15px; /* Padding 40px theke komiye 20px kora holo */
    background: linear-gradient(135deg, var(--primary-color), #6dd5ed);
    color: white;
    border-radius: var(--border-radius);
    margin: 15px auto; /* Margin o ektu komano holo */
    width: 95%;
    max-width: 1200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-title { 
    font-size: 1.5rem; /* Font size 2rem theke komiye 1.5rem kora holo */
    margin-bottom: 5px; 
}

.hero-subtitle { 
    font-size: 0.9rem; /* Subtitle er size o komano holo */
    opacity: 0.9; 
}


.section-title {
    margin: 30px 0 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Ek line a 2 to card rakhar jonno Grid update */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Exactly 2 columns */
    gap: 15px; /* Gap komano holo */
    padding-bottom: 40px;
    max-width: 800px; /* Card gulo beshi chhoriye na jete width limit kora holo */
    margin: 0 auto; /* Grid majhkhan-e anar jonno */
}

/* Card gulo choto kora holo */
.category-card {
    background-color: var(--card-bg);
    padding: 15px; /* Padding 30px theke 15px kora holo */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #eaeaea;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2rem; /* Icon er size choto kora holo */
    margin-bottom: 8px;
}

.category-card h3 {
    margin-bottom: 5px;
    color: #222;
    font-size: 1.1rem; /* Font size choto kora holo */
}

.category-card p {
    color: #666;
    font-size: 0.85rem; /* Text size choto kora holo */
    line-height: 1.3;
}

/* Mobile responsive - Mobile eo jate 2 to theke ar choto thake */
@media screen and (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-card {
        padding: 10px;
    }
    .card-icon {
        font-size: 1.5rem;
    }
    .category-card h3 {
        font-size: 0.95rem;
    }
    .category-card p {
        font-size: 0.75rem;
    }
}


/* =========================================
   8. SEO Article & FAQ Section
========================================= */
.seo-article-section {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin: 30px auto;
    max-width: 800px;
    border-left: 4px solid var(--primary-color);
}

.seo-article-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.seo-article-section p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-section {
    margin: 40px auto;
    max-width: 800px;
    padding-bottom: 30px;
}

.faq-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--card-bg);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}


/* =========================================
   9. Tool Upload Box Styling
========================================= */
.tool-upload-section {
    margin: 30px auto;
    max-width: 600px;
}

.upload-box {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    border: 2px dashed #ccc;
    transition: var(--transition);
}

.upload-box:hover {
    border-color: var(--primary-color);
}

.file-drop-area {
    position: relative;
    padding: 40px 20px;
    margin-bottom: 20px;
}

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

.file-drop-area h2 {
    font-size: 1.2rem;
    color: var(--text-color);
}

.file-drop-area p {
    color: #888;
    font-size: 0.9rem;
}

/* Hide actual input to style the area */
.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.tool-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.tool-btn:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.4);
}

.success-msg {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.error-msg {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}




/* =========================================
   10. Download Area
========================================= */
.download-area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.download-btn {
    display: inline-block;
    background-color: var(--secondary-color); /* Sobuj rong er hobe */
    text-decoration: none;
    text-align: center;
}

.download-btn:hover {
    background-color: #27ae60;
}


/* =========================================
   11. Processing Progress Bar Animation
========================================= */
.progress-container {
    width: 100%;
    margin-top: 25px;
    display: none; /* Initially hidden */
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-line {
    height: 100%;
    width: 0%;
    background-color: var(--secondary-color); /* Green color */
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
    background-image: linear-gradient(
        45deg, 
        rgba(255, 255, 255, 0.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.15) 75%, 
        transparent 75%, 
        transparent
    );
    background-size: 1rem 1rem;
    animation: stripemove 1s linear infinite;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    font-weight: 500;
}

/* Striped animation effect */
@keyframes stripemove {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}


/* =========================================
   12. Premium Tool UI (Shared across tools)
========================================= */
.tool-upload-section {
    margin: 30px auto;
    max-width: 500px;
}
.upload-box {
    padding: 30px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    text-align: center;
    transition: all 0.3s ease;
}
.file-drop-area {
    padding: 30px 15px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}
.file-drop-area:hover, .file-drop-area.dragover {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}
.file-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}
.file-drop-area:hover .file-icon {
    transform: translateY(-5px);
}
.file-drop-area h2 {
    font-size: 1.1rem;
    color: #334155;
    margin-bottom: 5px;
}
.file-drop-area p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Premium Preview Card */
.preview-card {
    display: none;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: left;
    animation: fadeIn 0.4s ease;
}
.preview-thumbnail {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.preview-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.preview-info p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Target Input Premium */
.target-input {
    margin: 25px 0;
    text-align: left;
}
.target-input label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 8px;
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.target-input input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}
.target-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

/* Premium Buttons */
.premium-btn-submit {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    padding: 14px 20px;
    width: 100%;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}
.premium-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.premium-btn-download {
    display: block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    text-align: center;
    text-decoration: none;
}
.premium-btn-download:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Compress Another Button */
.premium-btn-secondary {
    display: block;
    background: #f1f5f9;
    color: #475569;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #cbd5e1;
    text-align: center;
}
.premium-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-1px);
}

/* Premium Success Card */
.premium-success-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: left;
}
.success-icon {
    font-size: 2.5rem;
}
.success-details strong {
    color: #065f46;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}
.size-comparison {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 8px;
}
.old-size { text-decoration: line-through; color: #94a3b8; }
.arrow { margin: 0 8px; color: #cbd5e1; }
.new-size { font-weight: 700; color: #10b981; }
.saved-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}



/* =========================================
   1. Base & Layout (Global)
========================================= */
body {
    font-family: 'Outfit', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    margin: 0;
    padding: 0;
}

/* =========================================
   2. Navbar Styling (Header)
========================================= */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #2563eb;
}
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #334155;
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding: 15px 20px;
        box-sizing: border-box;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
}

/* =========================================
   3. Footer Styling
========================================= */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 40px 20px 20px;
    margin-top: 50px;
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.footer-links a:hover {
    color: #2563eb;
}
.copyright {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* =========================================
   4. Homepage Specific Styling
========================================= */
.home-hero {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border-bottom: 1px solid #e2e8f0;
}
.home-title {
    font-size: 3rem;
    color: #1e293b;
    font-weight: 800;
    margin-bottom: 15px;
}
.home-title span {
    color: #2563eb; 
}
.home-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}
.main-categories {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-heading {
    text-align: center;
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 40px;
}
.mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 items per row */
    gap: 30px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .mega-grid {
        grid-template-columns: 1fr; /* 1 item per row on mobile */
    }
}

.mega-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mega-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #bfdbfe;
}
.mega-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.mega-card h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 10px;
}







/* ==========================================================================
   ToolVigo Next-Gen Ultra-Premium Navbar & Mobile Drawer
   ========================================================================== */
:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --nav-text: #1e293b;
    --nav-hover: #6366f1;
    --active-bg: rgba(99, 102, 241, 0.06);
}

body {
    margin-top: 85px !important; 
}

.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
    height: 75px !important;
    display: flex !important;
    align-items: center !important;
}

.nav-container {
    width: 90% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Navbar Logo */
.logo a {
    font-size: 26px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    color: var(--nav-text) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.logo-icon {
    display: inline-block;
    animation: toolPulse 2.5s infinite ease-in-out;
}

@keyframes toolPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.12) rotate(8deg); }
    100% { transform: scale(1); }
}

/* Desktop Navigation Menu */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Mobile Drawer Header - Desktop-e hidden thakbe */
.drawer-header {
    display: none;
}

.nav-links a {
    text-decoration: none !important;
    color: var(--nav-text) !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    position: relative !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Desktop Hover Interaction */
@media (min-width: 993px) {
    .nav-links a:hover {
        color: var(--nav-hover) !important;
        background: var(--active-bg) !important;
    }
    .active-link {
        color: #6366f1 !important;
        background: var(--active-bg) !important;
        font-weight: 600 !important;
    }
}

/* Background Dark Blur Overlay */
.menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s ease !important;
}

.menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Custom Hamburger Toggle Button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 1001 !important;
}

.mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--nav-text);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: #ef4444;
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: #ef4444;
}

/* Strict Mobile App-Drawer Customization */
@media (max-width: 992px) {
    .navbar .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important; /* Fully hidden offscreen */
        width: 300px !important;
        max-width: 85% !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 15px 0 40px rgba(15, 23, 42, 0.1) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 25px 20px !important;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        gap: 8px !important;
        z-index: 999 !important;
        box-sizing: border-box !important;
    }

    .navbar .nav-links.active {
        left: 0 !important;
    }

    .navbar .mobile-toggle {
        display: flex !important;
    }

    /* Mobile Brand Header Configuration */
    .navbar .drawer-header {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        font-size: 24px !important;
        font-weight: 700 !important;
        color: var(--nav-text) !important;
        width: 100% !important;
        padding-bottom: 20px !important;
        margin-bottom: 15px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    /* Mobile Drawer Pills Styling */
    .navbar .nav-links a {
        font-size: 16px !important;
        padding: 12px 16px !important;
        width: 100% !important;
        color: #475569 !important;
        text-align: left !important;
        display: block !important;
        box-sizing: border-box !important;
        border-bottom: none !important; /* Purono line style pipeline cut track */
    }

    /* Mobile Active Tab Highlight */
    .navbar .nav-links a.active-link {
        background: var(--primary-gradient) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2) !important;
    }
}
