/* HINDIPDF UNIFIED THEME - v4.0 (ilovepdf inspired) */
:root {
    --primary: #e5322d;
    --primary-hover: #c42b27;
    --bg: #f3f0ec;
    --card-bg: #ffffff;
    --text: #33333b;
    --text-muted: #666666;
    --border: #e6e6e6;
    --radius: 4px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-hindi: 'Noto Sans Devanagari', 'Segoe UI', sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* NAVIGATION */
nav {
    padding: 0.75rem 0;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: #333; display: flex; align-items: center; gap: 0.25rem; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: #333; font-weight: 700; transition: color 0.2s; font-size: 0.9rem; text-transform: uppercase; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: block; }

/* HERO SECTION */
.hero { text-align: center; padding: 4rem 0 3rem; background: #ffffff; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
.badge { display: inline-block; padding: 0.25rem 0.75rem; background: #fff5f5; border: 1px solid #feb2b2; border-radius: 4px; color: var(--primary); font-size: 0.75rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; color: #33333b; }
.hero h1 span { color: var(--primary); }
.hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 700px; margin: 0 auto 2rem; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; }

/* CONVERTER SECTION */
.converter-section { padding: 2rem 0; }
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; gap: 1rem; }
.mode-selector { flex-grow: 1; }
.select-field { width: 100%; background: #ffffff; color: #333; border: 1px solid var(--border); padding: 0.75rem 1rem; border-radius: 4px; font-size: 0.95rem; font-weight: 700; cursor: pointer; outline: none; transition: border-color 0.2s; }
.select-field:focus { border-color: var(--primary); }
.swap-btn { background: #f8f9fa; border: 1px solid var(--border); color: #333; width: 3rem; height: 3rem; border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.swap-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.conversion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.input-group { display: flex; flex-direction: column; gap: 0.5rem; }
.input-header { display: flex; justify-content: space-between; align-items: center; color: #333; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; }
.input-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }

textarea {
    width: 100%; height: 320px; background: #ffffff; border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem; color: #333; font-size: 1.4rem; resize: none; line-height: 1.5; transition: border-color 0.2s; font-family: var(--font-hindi);
}
textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(229, 50, 45, 0.1); }
textarea[readonly] { background: #fdfdfd; color: var(--primary); font-weight: 500; }
.kruti-font { font-family: 'Kruti Dev 010', 'Kruti Dev', sans-serif !important; }

/* FEATURES GRID - ilovepdf style */
.features-section { padding: 4rem 0; text-align: center; background: #ffffff; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 3rem; color: #333; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.feature-card { background: #ffffff; border: 1px solid var(--border); padding: 2rem; border-radius: 4px; transition: all 0.2s; text-align: left; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: var(--primary); }
.feature-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: #333; font-weight: 800; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.4; }

/* SEO CONTENT */
.seo-content-section { padding: 4rem 0; }
.content-wrapper { max-width: 900px; margin: 0 auto; background: #ffffff; padding: 3rem; border-radius: 4px; border: 1px solid var(--border); }
.content-wrapper h2 { font-size: 1.75rem; margin-bottom: 1.25rem; color: #333; font-weight: 800; }
.content-wrapper h3 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--primary); font-weight: 800; }
.content-wrapper p { color: #555; margin-bottom: 1.25rem; font-size: 1rem; }
.content-wrapper ol { color: #555; margin-left: 1.25rem; margin-bottom: 1.5rem; }
.content-wrapper li { margin-bottom: 0.5rem; }

/* FAQ */
.faq-container { margin-top: 2.5rem; }
.faq-item { margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.faq-item h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #333; font-weight: 800; }
.faq-item p { font-size: 0.95rem; color: var(--text-muted); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.5rem; border-radius: 4px; font-weight: 700; cursor: pointer; transition: all 0.2s; text-decoration: none; border: none; font-size: 0.9rem; text-transform: uppercase; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: var(--primary-hover); transform: scale(1.02); }
.btn-outline { background: #33333b; color: #ffffff; }
.btn-outline:hover { background: #000; }
.btn-block { width: 100%; margin-top: 1rem; }

.icon-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; transition: color 0.2s; }
.icon-btn:hover { color: var(--primary); }

/* TOAST */
#toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px); background: #333; color: white; padding: 0.75rem 1.5rem; border-radius: 4px; font-weight: 700; transition: transform 0.3s; z-index: 2000; }
#toast.show { transform: translateX(-50%) translateY(0); }

/* FOOTER */
footer { background: #33333b; padding: 4rem 0 2rem; color: #ffffff; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-logo { font-size: 1.75rem; font-weight: 800; color: #ffffff; }
.footer-logo span { color: var(--primary); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #bbb; text-decoration: none; transition: color 0.2s; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; }
.footer-links a:hover { color: #ffffff; }
.copyright { color: #888; font-size: 0.8rem; margin-top: 1.5rem; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .conversion-grid { grid-template-columns: 1fr; }
    textarea { height: 280px; }
}

@media (max-width: 768px) {
    .hero { padding: 3rem 0 2rem; }
    .hero h1 { font-size: 2rem; }
    .nav-cta { display: none; }
    .content-wrapper { padding: 1.5rem; }
}

