/* Root Colors - Modern Interaction Palette */
:root {
    --primary-color: #20143a;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --light-color: #f8f9fa;
    --gray-color: #284c6b;
    --success-color: #4bb543;
    --gradient-bg: linear-gradient(135deg, #4361ee, #3f37c9, #4cc9f0);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --card-hover: translateY(-8px);
    --glass-bg: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7ff;
    color: #333;
    line-height: 1.6;
    padding-top: 80px;
}

/* Top Navigation */
.top-nav {
    background: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 28px;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 5px;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.search-container {
    position: relative;
}

.search-box {
    padding: 10px 20px;
    padding-right: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    width: 250px;
    transition: var(--transition);
    background: white;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 300px;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    font-size: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* PDF Hero Section */
.pdf-hero {
    background: var(--gradient-bg);
    border-radius: 32px;
    padding: 2rem 2.5rem;
    color: white;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 2rem;
}

.pdf-hero::before {
    content: "📄";
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 120px;
    opacity: 0.1;
}

.pdf-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.pdf-hero p {
    font-size: 1.05rem;
    max-width: 520px;
    margin-bottom: 0;
    opacity: 0.95;
}

.pdf-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.pdf-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pdf-stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 0.8rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pdf-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
}

.pdf-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.pdf-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--dark-color);
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pdf-hero-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* PDF Search Bar */
.pdf-search-section {
    margin-bottom: 3rem;
}

.pdf-search-container {
    background: white;
    border-radius: 60px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
}

.pdf-search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
}

.pdf-search-icon {
    padding: 0 1rem 0 1.5rem;
    color: var(--gray-color);
}

#pdfSearchInput {
    flex: 1;
    padding: 1.2rem 0;
    border: none;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
}

#pdfSearchBtn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#pdfSearchBtn:hover {
    background: var(--secondary-color);
    transform: scale(1.02);
}

.pdf-categories {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pdf-category-tag {
    padding: 0.6rem 1.2rem;
    background: white;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: var(--transition);
}

.pdf-category-tag:hover,
.pdf-category-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.8rem;
    margin: 2rem 0 4rem;
}

.tool-card {
    background: white;
    border-radius: 20px;
    padding: 1.8rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: var(--card-hover);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(108, 92, 231, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.tool-icon i {
    font-size: 1.8rem;
    color: var(--success-color);
}

.tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.tool-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    background: #f1f5f9;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-color);
    letter-spacing: 0.3px;
}

.popularity-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Blog Section - 4000+ Words SEO Optimized */
.pdf-blog-section {
    background: white;
    border-radius: 32px;
    padding: 3rem;
    margin: 4rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.blog-header p {
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.blog-content {
    max-width: 1000px;
    margin: 0 auto;
}

.blog-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.blog-section h3 {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.blog-section h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

.blog-section p {
    color: #334155;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-section ul,
.blog-section ol {
    margin: 1.2rem 0 1.5rem 1.8rem;
}

.blog-section li {
    margin-bottom: 0.6rem;
    color: #334155;
    font-size: 1.05rem;
}

.tip-box {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-left: 4px solid var(--accent-color);
    padding: 1.8rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.tip-box strong {
    color: var(--primary-color);
}

.table-of-contents {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
}

.table-of-contents h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.table-of-contents ul {
    columns: 2;
    list-style: none;
    margin-left: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
}

.faq-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-question {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.faq-answer {
    color: var(--gray-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    margin-top: 4rem;
    border-radius: 32px 32px 0 0;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
        height: auto;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 15px;
        width: 100%;
        border-radius: 5px;
        justify-content: flex-start;
        font-size: 16px;
    }

    .nav-actions {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    .search-container {
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .search-box:focus {
        width: 100%;
    }

    .pdf-hero {
        grid-template-columns: 1fr;
    }

    .pdf-hero-actions {
        align-items: flex-start;
    }

    .pdf-hero-button {
        align-self: flex-start;
    }

    .pdf-stats {
        justify-content: flex-start;
    }

    .pdf-hero h1 {
        font-size: 2rem;
    }

    .table-of-contents ul {
        columns: 1;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .top-nav {
        height: 70px;
    }

    .nav-menu {
        top: 70px;
        max-height: calc(100vh - 70px);
    }

    .pdf-hero {
        padding: 1.6rem;
    }

    .pdf-hero::before {
        font-size: 90px;
    }

    .pdf-hero p {
        font-size: 1rem;
    }

    .pdf-hero-actions {
        width: 100%;
    }

    .pdf-hero-button {
        width: 100%;
        justify-content: center;
    }

    .pdf-stats {
        width: 100%;
        justify-content: center;
    }

    .pdf-stat-item {
        flex: 1 1 30%;
        text-align: center;
    }

    .pdf-search-container {
        flex-direction: column;
        border-radius: 24px;
    }

    .pdf-search-icon {
        padding: 0.6rem 1rem 0.2rem;
    }

    #pdfSearchInput {
        width: 100%;
        padding: 0.9rem 0.2rem;
        text-align: center;
    }

    #pdfSearchBtn {
        width: 100%;
        justify-content: center;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .pdf-blog-section {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .pdf-hero {
        padding: 1.3rem;
        border-radius: 24px;
    }

    .pdf-hero h1 {
        font-size: 1.6rem;
    }

    .pdf-stats {
        gap: 0.6rem;
    }

    .pdf-stat-item {
        padding: 0.6rem 0.7rem;
    }

    .pdf-stat-number {
        font-size: 1.4rem;
    }

    .pdf-search-container {
        padding: 0.4rem;
    }

    #pdfSearchBtn {
        padding: 0.9rem 1.2rem;
    }

    .blog-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 400px) {
    body {
        padding-top: 64px;
    }

    .top-nav {
        height: 64px;
    }

    .nav-menu {
        top: 64px;
        max-height: calc(100vh - 64px);
    }

    .logo h1 {
        font-size: 20px;
    }

    .pdf-hero {
        padding: 1.1rem;
        border-radius: 20px;
        gap: 1rem;
    }

    .pdf-hero h1 {
        font-size: 1.45rem;
    }

    .pdf-hero p {
        font-size: 0.95rem;
    }

    .pdf-hero::before {
        font-size: 70px;
    }

    .pdf-stats {
        gap: 0.5rem;
    }

    .pdf-stat-item {
        flex: 1 1 100%;
        padding: 0.5rem 0.6rem;
    }

    .pdf-stat-number {
        font-size: 1.2rem;
    }

    .pdf-hero-button {
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
    }

    .pdf-search-container {
        padding: 0.35rem;
    }

    #pdfSearchInput {
        font-size: 0.95rem;
    }

    #pdfSearchBtn {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
    }

    .pdf-category-tag {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }

    .tool-card {
        padding: 1.2rem;
    }

    .blog-header h2 {
        font-size: 1.5rem;
    }

    .table-of-contents {
        padding: 1.3rem;
    }
}