/* ---------- RESET ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------- BODY ---------- */
body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f7fb;
    min-height: 100vh;
    padding: 20px;
    color: #111;
}

/* ================= HEADER ================= */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 20px;
    margin-bottom: 40px;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: #111;
}

.logo span { margin-left: 4px; }

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* Hamburger hidden on desktop */
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        display: none;
        border-top: 1px solid #eee;
    }

    .nav a {
        padding: 14px 16px;
        border-bottom: 1px solid #f1f1f1;
    }

    .nav.active {
        display: flex;
    }
}


.dark-btn {
    background: #f1f3f5;
    border: none;
    padding: 6px 10px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

/* ================= FOOTER ================= */
.site-footer {
    margin-top: 40px;
    padding: 25px 15px;
    text-align: center;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    margin: 0 8px;
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover { text-decoration: underline; }


/* ---------- CONTAINER ---------- */
.container.home {
    max-width: 1100px;
    margin: auto;
    background: #fff;
    padding: 40px 30px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: center;
}

/* ---------- HEADINGS ---------- */
h1 { font-size: 30px; margin-bottom: 8px; color: #222; }
.subtitle { font-size: 15px; color: #666; margin-bottom: 35px; }

/* ---------- TOOLS GRID ---------- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* ---------- TOOL CARD ---------- */
.tool-card {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 26px 15px;
    text-decoration: none;
    color: #111;
    font-size: 26px;
    border: 1px solid #e2e6ef;
    transition: all 0.25s ease;
    text-align: center;
}

.tool-card span { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; }

.tool-card:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ---------- TRUST ---------- */
.trust { margin-top: 30px; font-size: 13px; color: #1e7e34; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { 
    .container.home { padding: 25px 18px; } 
    h1 { font-size: 24px; } 
    .tools-grid { grid-template-columns: 1fr; } 
}


/* Tool page container */
.container {
    max-width: 480px;
    margin: auto;
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}

/* Tool title */
.container h1 { font-size: 22px; margin-bottom: 6px; color: #222; }

/* Subtitle */
.container .subtitle { font-size: 14px; color: #666; margin-bottom: 22px; }

/* File / text inputs */
.container input[type="file"],
.container input[type="text"],
.container input[type="password"] {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-bottom: 15px;
}

.container input:focus { outline: none; border-color: #007bff; }

/* Submit button */
.container button {
    width: 100%;
    padding: 13px;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.container button:hover { background: #c92f3c; }

/* Drag & Drop */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 35px 15px;
    cursor: pointer;
    margin-bottom: 18px;
    background: #fafafa;
    transition: 0.25s;
}

.drop-zone.dragover { background: #eaf2ff; border-color: #007bff; }
.drop-zone span { color: #007bff; font-weight: 600; }

/* Loading / Progress */
#loading { display: none; margin-top: 15px; font-size: 14px; color: #333; }
.progress-bar { display: none; width: 100%; height: 8px; background: #ddd; border-radius: 5px; margin-top: 10px; overflow: hidden; }
.progress-bar div { width: 0%; height: 100%; background: #28a745; animation: progress 2s linear infinite; }
@keyframes progress { 0% { width:0; } 100% { width:100%; } }

/* Legal text / Back link */
.container .legal { font-size: 11px; color: #777; margin-top: 8px; }
.container a { display: inline-block; margin-top: 15px; font-size: 14px; color: #007bff; text-decoration: none; }
.container a:hover { text-decoration: underline; }

/* Dark Mode */
body.dark { background: #121212; color: #eee; }
body.dark .container { background: #1e1e1e; }
body.dark input, body.dark button { background: #2c2c2c; color: #fff; border-color: #444; }
body.dark .drop-zone { background: #2a2a2a; border-color: #555; }
body.dark .drop-zone p { color: #ddd; }
body.dark .trust { color: #9ad29a !important; }




/* ---------- RESET ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------- BODY ---------- 
body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f7fb;
    min-height: 100vh;
    color: #111;
}

/* ================= HEADER ================= 
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 20px;
    margin-bottom: 0;
}

/* ================= HERO ================= */
.hero-section {
    background: linear-gradient(135deg, #ffffff, #f1f4ff);
    padding: 90px 20px;
    margin-bottom: 80px;
    text-align: center;
}

.hero-inner {
    max-width: 1100px;
    margin: auto;
}

.hero-section h1 {
    font-size: 34px;
    margin-bottom: 14px;
}

.hero-section .subtitle {
    font-size: 16px;
    color: #555;
    max-width: 700px;
    margin: 0 auto 25px;
}

/* CTA */
.cta-buttons {
    margin-bottom: 18px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin: 6px;
    gap: 22px;
}

.btn-primary {
    background: #e63946;
    color: #fff;
}

.btn-secondary {
    background: #eef2ff;
    color: #333;
    border: 1px solid #d6ddff;
}

/* ---------- TRUST ---------- */
.trust {
    margin-top: 18px;
    font-size: 13px;
    color: #1e7e34;
}

/* ================= HOME ================= 
.container.home {
    max-width: 1100px;
    margin: auto;
    background: #ffffff;
    padding: 45px 35px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* Category Headings 
.container.home h2 {
    margin: 55px 0 22px;
    font-size: 22px;
    text-align: left;
}

/* ---------- TOOLS GRID ---------- 
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.tool-card {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 26px 15px;
    text-decoration: none;
    color: #111;
    font-size: 26px;
    border: 1px solid #e2e6ef;
    text-align: center;
}

.tool-card span {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
}



/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .hero-section h1 {
        font-size: 26px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.site-logo {
    height: 40px;     /* yahi magic hai */
    width: auto;      /* image distort nahi hogi */
}

.pdf-heading {
    background-color: #e63946;
    color: white;
    padding: 20px 10px;  /* inside box space */
    border-radius: 8px; /* rounded corners */
    display: inline-block; 
    margin-top: 20px;    /* box ke upar space */
}


/* ===============================
   COMMON PAGES CONTAINER STYLE
   (About, Privacy, Terms, etc.)
================================ */

.pages-container {
    max-width: 1050px;
    margin: 60px auto;
    padding: 0 20px;
    animation: fadeUp 0.6s ease-in-out;
}

/* Main Card Sections */
.pages-container > * {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Page Title */
.pages-container h1 {
    font-size: 2.8rem;
    text-align: center;
    background: linear-gradient(90deg, #1a73e8, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

/* Section Headings */
.pages-container h2 {
    font-size: 2rem;
    color: #1a73e8;
    margin-bottom: 15px;
    position: relative;
}

.pages-container h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #1a73e8;
    margin-top: 6px;
    border-radius: 10px;
}

.pages-container h3 {
    font-size: 1.4rem;
    margin-top: 20px;
    color: #222;
}

/* Text */
.pages-container p {
    line-height: 1.8;
    color: #444;
    font-size: 1.02rem;
}

/* Lists */
.pages-container ul {
    margin-left: 20px;
}

.pages-container li {
    margin-bottom: 10px;
    padding-left: 6px;
}

/* Highlight blocks under services */
.pages-container h3 + p {
    background: #f5f9ff;
    padding: 18px;
    border-left: 4px solid #1a73e8;
    border-radius: 8px;
}

/* FAQ */
.faq-item {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 15px 18px;
    margin-bottom: 12px;
    transition: 0.3s ease;
}

.faq-item h4 {
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h4::after {
    content: "+";
    font-size: 1.4rem;
    transition: 0.3s ease;
}

.faq-item.active h4::after {
    content: "-";
}

.faq-item p {
    display: none;
    margin-top: 10px;
    color: #555;
}

.faq-item.active {
    background: #f9fbff;
    border-color: #1a73e8;
}

.faq-item.active p {
    display: block;
}

/* CTA Button */
.btn-home {
    display: inline-block;
    margin-top: 10px;
    padding: 14px 26px;
    font-size: 1rem;
    border-radius: 30px;
    background: linear-gradient(90deg, #1a73e8, #4facfe);
    color: #ffffff;
    transition: 0.3s ease;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26,115,232,0.35);
}

/* Mobile */
@media (max-width: 768px) {
    .pages-container h1 {
        font-size: 2.1rem;
    }
    .pages-container > * {
        padding: 22px;
    }
}

/* Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
