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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #fff;
}

.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #6366f1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dark-mode-toggle {
    background: #f3f4f6;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.dark-mode-toggle:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-top: 70px;
}

.hero-container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: #6366f1;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-mockup {
    width: min(100%, 300px);
    aspect-ratio: 3 / 4;
    height: auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.8);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    color: #1f2937;
}

.features {
    padding: 6rem 0;
    background: #f8fafc;
}

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

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Tools Grid */
.tools-grid {
    padding: 6rem 0;
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-card {
    text-decoration: none;
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-top-color: #6366f1;
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.tool-card p {
    color: #6b7280;
    font-size: 0.95rem;
}

.tools-cta {
    text-align: center;
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: #6366f1;
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: serif;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 600;
    color: #1f2937;
}

.author-role {
    color: #6b7280;
    font-size: 0.9rem;
}

/* FAQ */
.faq {
    padding: 6rem 0;
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.faq-answer.active {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    color: #6b7280;
}

/* CTA */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo span {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: #f9fafb;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #6366f1;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Tool Pages */
.tool-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.tool-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.tool-container {
    padding: 4rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.upload-area {
    border: 3px dashed #d1d5db;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8fafc;
    cursor: pointer;
    margin-bottom: 2rem;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.file-info {
    flex: 1;
}

.file-remove {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.controls {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.control-group input,
.control-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: #6366f1;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.preview-page {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.preview-img {
    width: 100%;
    height: auto;
    display: block;
}

.process-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loading.active {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    width: 0%;
    transition: width 0.3s ease;
}

.success-message,
.error-message {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: none;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.success-message.active,
.error-message.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
        gap: 1.25rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid,
    .testimonials-grid,
    .tools-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-grid,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .tool-container {
        padding: 2rem 1rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .container,
    .nav-container,
    .hero-container {
        width: min(1200px, calc(100% - 1.5rem));
    }

    .hero {
        padding-top: 70px;
        min-height: calc(100vh - 70px);
    }

    .hero-title,
    .section-title,
    .cta h2 {
        line-height: 1.15;
    }

    .btn,
    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .stats-grid,
    .contact-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: 1.2rem 1rem;
        gap: 1rem;
    }

    .faq-answer p {
        padding: 0 1rem 1.2rem;
    }
}

/* Dark Mode */
[data-theme="dark"] {
    background: #111827;
    color: #f9fafb;
}

[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.95);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .tool-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .controls,
[data-theme="dark"] .file-item {
    background: #1f2937;
    color: #f9fafb;
}

[data-theme="dark"] .section-title {
    color: #f9fafb;
}

[data-theme="dark"] .faq-question {
    background: #1f2937;
}

.hidden-tools {
    display: none;
}

.hidden-tools.show {
    display: contents;
    /* keeps grid layout */
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.about-feature i {
    color: #10b981;
}

/* About Image */
.about-image {
    text-align: center;
}

.about-box {
    width: min(100%, 300px);
    aspect-ratio: 3 / 4;
    height: auto;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 24px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.about-box i {
    font-size: 6rem;
    color: #6366f1;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: f3f4f6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #6366f1;
}

/* Stats Section */
.stats {
    background: #f8fafc;
    /* light grey */
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    text-align: center;
    align-items: center;
    gap: 1.5rem;
}

/* Each item */
.stat-item h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    color: #374151;
}

/* Colors */
.blue {
    color: #6366f1;
}

.green {
    color: #10b981;
}

.orange {
    color: #f59e0b;
}

.red {
    color: #ef4444;
}

.contact {
    padding: 100px 0;
    background: #f9fafb;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-subtitle {
    color: #6b7280;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.contact-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-card i {
    font-size: 28px;
    margin-bottom: 10px;
    color: #6366f1;
}

.contact-card h3 {
    margin-bottom: 5px;
}

.contact-card p {
    font-size: 14px;
    color: #6b7280;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    justify-content: initial;
    align-items: stretch;
    flex-wrap: initial;
    overflow-x: visible;
}

.contact-card {
    min-width: 0;
    flex: initial;
}

/* .hero .btn-primary {
    padding: 16px 36px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 50px;
    background: linear-gradient(135deg, #6366f1, #7476f0);
    color: white;

    box-shadow: 0 10px 25px #6366f1;
    transition: all 0.3s ease;
} */

/* Footer section container */
.footer-section {
    padding: 4px 0;
    margin: 0;
}

/* Heading */
.footer-section h4 {
    font-size: 0.85rem;
    margin-bottom: 3px;
    line-height: 1.1;
}

/* List layout */
.footer-section ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 6px;
    /* tight spacing */
    padding: 0;
    margin: 0;
    list-style: none;
}

/* List items */
.footer-section ul li {
    margin: 0;
    padding: 0;
}

/* Links */
.footer-section a {
    font-size: 0.75rem;
    line-height: 1.1;
    padding: 0;
    margin: 0;
    display: inline-block;
}

/* Mobile view */
@media (max-width: 600px) {
    .footer-section ul {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* DARK MODE FULL FIX */
[data-theme="dark"] {
    background: #111827;
    color: #f9fafb;
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(17, 24, 39, 0.95) !important;
}

[data-theme="dark"] .navbar,
[data-theme="dark"] .navbar.scrolled,
[data-theme="dark"] .navbar.sticky {
    background: rgba(17, 24, 39, 0.95) !important;
}

/* Navbar */
[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.95);
}

[data-theme="dark"] .nav-link {
    color: #e5e7eb;
}

[data-theme="dark"] .nav-container {
    background: transparent;
    /* usually you don't need bg here */
}

/* Sections */
[data-theme="dark"] .features,
[data-theme="dark"] .tools-grid,
[data-theme="dark"] .faq,
[data-theme="dark"] .about,
[data-theme="dark"] .contact,
[data-theme="dark"] .stats {
    background: #111827;
}

/* Cards */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .tool-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .controls,
[data-theme="dark"] .file-item,
[data-theme="dark"] .faq-item {
    background: #1f2937;
    color: #f9fafb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Text fixes */
[data-theme="dark"] .section-title,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
    color: #f9fafb;
}

[data-theme="dark"] p {
    color: #d1d5db;
}

/* FAQ */
[data-theme="dark"] .faq-question {
    background: #1f2937;
}

[data-theme="dark"] .faq-answer {
    background: #111827;
}

/* Inputs */
[data-theme="dark"] input,
[data-theme="dark"] select {
    background: #111827;
    color: #f9fafb;
    border: 2px solid #374151;
}

/* Upload */
[data-theme="dark"] .upload-area {
    background: #1f2937;
    border-color: #374151;
}

/* Footer */
[data-theme="dark"] .footer {
    background: #030712;
}

[data-theme="dark"] .footer a {
    color: #9ca3af;
}

/* Buttons */
[data-theme="dark"] .btn-primary {
    background: #6366f1;
    color: white;
}

[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
}

/* About box */
[data-theme="dark"] .about-box {
    background: linear-gradient(135deg, #1f2937, #111827);
}

.footer {
    padding: 10px 0;
    /* small */
    margin: 0;
    height: auto;
}

.footer-bottom {
    font-size: 0.65rem;
    margin-top: 2px;
}

.footer-bottom {
    font-size: 0.7rem;
    /* smaller text */
    margin: 4px 0 0 0;
    /* almost no margin */
    padding: 0;
    /* remove padding */
    line-height: 1.2;
    text-align: center;
    opacity: 0.8;
    /* subtle look (optional) */
}
