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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f6f7;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
        header {
            position: sticky;
            top: 0;
            background: white;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            transition: box-shadow 0.3s ease;
        }

        header.scrolled {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            height: 64px;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Logo */
        .logo {
            font-size: 24px;
            font-weight: 700;
            color: #2563eb;
            text-decoration: none;
            white-space: nowrap;
            display: flex;
        }

        /* Main Navigation */
        .nav-main {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            justify-content: center;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 8px 16px;
            color: #64748b;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.2s ease;
            font-weight: 500;
            white-space: nowrap;
        }

        .nav-link:hover {
            color: #2563eb;
            background-color: #f1f5f9;
        }

        .nav-link.has-dropdown::after {
            content: '▼';
            font-size: 10px;
            margin-left: 4px;
            transition: transform 0.2s ease;
        }

        .nav-item:hover .nav-link.has-dropdown::after {
            transform: rotate(180deg);
        }

        /* Dropdown Styles */
        .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1001;
            min-width: 200px;
        }

        .nav-item:hover .dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(8px);
        }

        /* Convert PDF Dropdown - Two Column */
        .dropdown.convert-dropdown {
            width: 400px;
            padding: 20px;
        }

        .dropdown-columns {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }

        .dropdown-column h3 {
            font-size: 14px;
            font-weight: 600;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
        }

        .dropdown-link {
            display: block;
            padding: 8px 12px;
            color: #475569;
            text-decoration: none;
            border-radius: 6px;
            transition: all 0.2s ease;
            font-size: 14px;
        }

        .dropdown-link:hover {
            color: #2563eb;
            background-color: #f1f5f9;
        }

        /* All PDF Tools Mega Menu */
        .dropdown.mega-dropdown {
            width: 800px;
            padding: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(-10px);
        }

        .nav-item:hover .dropdown.mega-dropdown {
            transform: translateX(-50%) translateY(8px);
        }

        .mega-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 20px;
        }

        .mega-column h3 {
            font-size: 13px;
            font-weight: 600;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
        }

        .mega-column .dropdown-link {
            font-size: 13px;
            padding: 6px 8px;
        }

        /* Auth Buttons */
        .auth-buttons {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .btn {
            padding: 8px 20px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s ease;
            border: none;
            cursor: pointer;
            font-size: 14px;
        }

        .btn-secondary {
            color: #64748b;
            background: transparent;
        }

        .btn-secondary:hover {
            color: #2563eb;
            background-color: #f1f5f9;
        }

        .btn-primary {
            color: white;
            background: #2563eb;
        }

        .btn-primary:hover {
            background: #1d4ed8;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        /* Mobile Menu Button */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: background-color 0.2s ease;
        }

        .mobile-menu-btn:hover {
            background-color: #f1f5f9;
        }

        .hamburger {
            display: flex;
            flex-direction: column;
            gap: 4px;
            width: 24px;
        }

        .hamburger span {
            width: 100%;
            height: 2px;
            background: #64748b;
            transition: all 0.3s ease;
        }

        .mobile-menu-btn.active .hamburger span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .mobile-menu-btn.active .hamburger span:nth-child(2) {
            opacity: 0;
        }

        .mobile-menu-btn.active .hamburger span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

        /* Mobile Responsive */
        @media (max-width: 1023px) {
            nav {
                padding: 0 16px;
            }

            .nav-main {
                position: fixed;
                top: 64px;
                left: 0;
                right: 0;
                background: white;
                flex-direction: column;
                align-items: stretch;
                gap: 0;
                padding: 20px;
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
                max-height: calc(100vh - 64px);
                overflow-y: auto;
            }

            .nav-main.is-open {
                transform: translateX(0);
            }

            .nav-item {
                width: 100%;
            }

            .nav-link {
                width: 100%;
                padding: 12px 16px;
                justify-content: space-between;
            }

            .dropdown {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                background: #f8f9fa;
                margin: 8px 0 16px 0;
                display: none;
            }

            .dropdown.is-open {
                display: block;
            }

            .dropdown.convert-dropdown,
            .dropdown.mega-dropdown {
                width: 100%;
                padding: 16px;
                transform: none;
            }

            .nav-item:hover .dropdown.mega-dropdown {
                transform: none;
            }

            .mega-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .dropdown-columns {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .mobile-menu-btn {
                display: block;
            }

            .auth-buttons {
                display: none;
            }
        }

        @media (max-width: 640px) {
            nav {
                padding: 0 12px;
            }

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

/* Hero Section */
.hero {
    background: white;
    padding: 20px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    color: #1e293b;
}

.hero p {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s;
}

.tab.active, .tab:hover {
    background: #2563eb;
    color: white;
}

/* Tools Grid */
.tools-section {
    padding: 40px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.tool-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    min-width: 250px;
    max-width: 300px;
    text-decoration: none;
    color: inherit;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: #e0e7ff;
    border-radius: 12px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2563eb;
}

.tool-card h3 {
    margin-bottom: 10px;
    color: #1e293b;
}

.tool-card p {
    color: #64748b;
    font-size: 14px;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

/* Why Choose PDFlyst Section */
.why-choose {
    padding: 80px 0;
    background: #f8fafc;
}

.why-choose .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-choose .feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-choose .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.why-choose .feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.why-choose .feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1e293b;
}

.why-choose .feature-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 16px;
}




/* Work Your Way Section */
.work-way {
    background: white;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1e293b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
}

.feature-image {
    width: 100%;
    height: 200px;
    background: #e0e7ff;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 18px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
}

/* Premium Section */
.premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
}

.premium-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.premium h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.premium-features {
    list-style: none;
    margin-bottom: 30px;
}

.premium-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.premium-features li::before {
    content: "✓";
    background: white;
    color: #667eea;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.btn-premium {
    background: white;
    color: #667eea;
    padding: 15px 30px;
    font-size: 16px;
}

.btn-premium:hover {
    background: #f1f5f9;
}

.premium-image {
    width: 100%;
    height: 300px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

/* Image Editing Section */
.image-editing {
    background: white;
    padding: 80px 0;
}

.image-editing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-mockup {
    width: 100%;
    height: 400px;
    background: #e0e7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 18px;
}

.image-editing-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1e293b;
}

.image-editing-text p {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Trust Section */
.trust {
    background: white;
    padding: 60px 0;
    text-align: center;
}

.trust h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1e293b;
}

.trust p {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 40px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-badge {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
}

/* Footer */
footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.app-buttons {
    display: flex;
    gap: 15px;
}

.app-btn {
    background: #334155;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.app-btn:hover {
    background: #475569;
}

.language-selector {
    background: #334155;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

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

    .hero .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .premium-content,
    .image-editing-content {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* Tablet and Small Mobile */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 30px;
    }

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


/* Extra Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 0.9rem;
    }
}

/* Main Body Styles for Sign PDF Page */
.main-body .hero p {
    margin-bottom: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Tighter hero-to-tool gap on Sign PDF mobile */
    .main-body .hero {
        padding-bottom: 8px;
    }
    .main-body .hero p {
        margin-bottom: 6px;
    }
    .main-body .sign-pdf-section {
        padding-top: 6px;
    }
}

/* FAQ Section */
.faq-section {
    padding: 70px 0;
    background: #ffffff;
}

.faq-section .section-title {
    margin-bottom: 40px;
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.faq-item p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
}

/* Tool Features Section */
.tool-features {
    padding: 60px 0;
    background: #f8fafc;
}

.tool-features .section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1e293b;
}

.tool-features .features-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.tool-features .features-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    margin-top: 30px;
}

.tool-features .features-content h3:first-child {
    margin-top: 0;
}

.tool-features .features-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 20px;
}