/* ---------------------------------- */
/* 1. RESET & BASE STYLES             */
/* ---------------------------------- */
:root {
    --primary-color: #007bff; /* A nice blue for accents */
    --text-color: #333;
    --background-color: #f4f7f6; /* Adjusted for better content contrast */
    --white-color: #ffffff;
    --dark-color: #1a1a1a;
    --font-family: 'Inter', sans-serif;
    --max-width: 1200px;
    --light-border: #ddd;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --dark: #0f172a;
    --border: #e2e8f0;
    --font: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3; /* A darker blue on hover */
}

ul {
    list-style: none;
}

/* ---------------------------------- */
/* 2. HEADER & NAVIGATION LAYOUT      */
/* ---------------------------------- */
.main-header {
    background-color: var(--white-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    text-transform: lowercase;
}

.logo .dot {
    color: var(--primary-color);
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 400;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* ---------------------------------- */
/* 3. MAIN CONTENT STYLES             */
/* ---------------------------------- */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
}




/* -------------------------------------- */
/* 4. PDF MERGER TOOL STYLES (ADAPTED)    */
/* -------------------------------------- */

.pdf-merger-section {
    background-color: var(--background-color);
    border-radius: 12px;
    padding: 30px 40px;
    border-bottom: none;
    display: flex;
    justify-content: center;
}

.container-wrapper {
    max-width: 700px; /* Constrain the merger tool width for better readability */
    width: 100%;
}

.control-panel {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.control-panel h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
}

.control-panel p {
    text-align: left;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: #666;
}

/* Input Group for File Input */
.input-group {
    margin-bottom: 30px;
}



#pdf-files {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-border);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#pdf-files:focus {
    outline: none;
    border-color: var(--primary-color);
}


/* File List and Display */
.file-list {
    min-height: 50px;
    padding: 15px;
    border: 1px solid var(--light-border);
    border-radius: 6px;
    background-color: #f9f9f9;
    margin-bottom: 30px;
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

.file-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-style: normal;
}

.file-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: var(--text-color);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}

.file-list li:last-child {
    border-bottom: none;
}


/* Action Buttons (Merge Button) */
.action-buttons-group {
    margin-bottom: 20px;
}

.primary-button {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 1.1rem;
}

.primary-button:hover:not(:disabled) {
    background-color: #0056b3;
}

.primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status and Download Area */
.status-message {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    padding: 10px;
    border-radius: 6px;
}

.status-message.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.download-area {
    text-align: center;
    margin-top: 25px;
}

.download-area a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: #28a745;
    color: var(--white-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
}

.download-area a:hover {
    background-color: #1e7e34;
    color: var(--white-color);
}

.hidden {
    display: none !important;
}


/* ---------------------------------- */
/* 5. MEDIA QUERIES (Responsiveness)  */
/* ---------------------------------- */
@media (max-width: 850px) {
    /* Breakpoint for tablets/smaller devices */
    
    .main-header {
        padding: 10px 20px;
    }
    
    .logo a {
        font-size: 1.3rem;
    }

    .menu-toggle {
        display: block;
    }

    /* Mobile Navigation Logic */
    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 99;
    }

    .main-nav.open {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 10px 0;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-list a {
        display: block;
        padding: 15px 0;
    }
    
    .nav-list a::after {
        display: none;
    }

    /* Content adjustments */
    .content-section {
        padding: 40px 0;
    }
    
    .content-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .pdf-merger-section {
        padding: 30px 20px;
    }
}


/* --- NEW DROP ZONE STYLES --- */

.drop-zone {
    border: 3px dashed var(--light-border);
    border-radius: 10px;
    background-color: #fcfcfc;
    padding: 10px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    margin-bottom: 30px;
}

.drop-zone:hover {
    border-color: var(--primary-color);
    background-color: #f0f8ff; /* Light blue tint on hover */
}

.drop-zone.dragover {
    border-color: #28a745; /* Green border when files are dragged over */
    background-color: #e6ffe6;
}

.drop-zone i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.drop-zone p {
    color: #666;
    margin: 5px 0;
    text-align: center; /* Override control-panel p alignment */
}

.or-separator {
    font-size: 0.8rem;
    color: #aaa !important;
    margin: 10px 0 !important;
    font-weight: 500;
}

.secondary-button {
    /* Style for the "Select Files" button */
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    background-color: var(--white-color);
    color: var(--primary-color);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 10px;
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}


/*how to section */
.modern-seo-section {
        font-family: 'Inter', -apple-system, sans-serif;
        color: var(--text-dark);
        max-width: 1000px;
        margin: 50px auto;
        padding: 40px;
        background: var(--glass-bg);
        border-radius: 24px;
        border: 1px solid var(--border-color);
        box-shadow: var(--card-shadow);
    }

    .modern-seo-section h2 {
        font-size: 2rem;
        font-weight: 800;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        margin-bottom: 20px;
		align-items: center;
    }

    .modern-seo-section p {
        font-size: 1.1rem;
        line-height: 1.7;
        color: var(--text-light);
    }
	.modern-seo-section strong {
		color: #007bff;
	}

    /* Features Grid */
    .seo-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin: 40px 0;
    }

    .seo-card {
        padding: 25px;
        background: #f8fafc;
        border-radius: 16px;
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
    }

    .seo-card:hover {
        transform: translateY(-5px);
        background: white;
        box-shadow: var(--card-shadow);
        border-color: #6366f1;
    }

    .seo-card h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
        color: var(--text-dark);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Steps List */
    .how-to-list {
        list-style: none;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin: 30px 0;
		align-items: center;
    }

    .how-to-list li {
        background: white;
        padding: 15px 20px;
        border-radius: 12px;
        border-left: 4px solid #6366f1;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
        font-weight: 500;
    }

    /* FAQ Section */
    .faq-container {
        margin-top: 50px;
        border-top: 2px solid #f1f5f9;
        padding-top: 40px;
    }

    .faq-item {
        background: #f8fafc;
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .faq-item strong {
        font-size: 1.1rem;
        margin-bottom: 8px;
        color: #007bff
    }

    .faq-item p {
        font-size: 0.95rem;
        margin: 0;
    }

    .highlight {
        color: #6366f1;
        font-weight: 600;
    }

    @media (max-width: 640px) {
        .modern-seo-section { padding: 20px; }
        .modern-seo-section h2 { font-size: 1.5rem; }
    }
/* 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 */
