/* HINDIPDF UNIFIED THEME - v4.0 (ilovepdf inspired) */
:root {
    --primary: #e5322d;
    --primary-hover: #d32f2f;
    --primary-light: #fff5f5;
    --accent-gradient: linear-gradient(90deg, #e5322d, #f97316, #3b82f6, #22c55e);
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-hindi: 'Noto Sans Devanagari', 'Segoe UI', sans-serif;
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

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

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

html, body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #ffffff !important;
}
html { scroll-behavior: smooth; }

body {
    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 {
    background: #1e293b !important; /* Professional Dark Navy */
    border-top: 4px solid var(--primary); 
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0 !important;
    z-index: 1000;
    padding: 0.25rem 0;
    margin: 0 !important;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 50px; }
.logo { 
    font-size: 1.8rem; 
    font-weight: 800; 
    text-decoration: none; 
    color: #ffffff; 
    display: flex; 
    align-items: center;
    letter-spacing: -1px;
}
.logo span { 
    color: var(--primary); 
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: #e2e8f0; font-weight: 600; transition: color 0.2s; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-links a:hover { color: #ffffff; }
.nav-cta { display: block; }

/* HERO SECTION */
.hero {
    background: #ffffff;
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.badge { display: inline-block; padding: 0.3rem 0.8rem; background: rgba(229, 50, 45, 0.1); color: var(--primary); border-radius: 20px; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; font-weight: 800; }
.hero h1 span { color: var(--primary); }
.hero p { color: #666; font-size: 1rem; max-width: 700px; margin: 0 auto 1rem; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; }

/* CONVERTER SECTION */
.converter-section { padding: 2rem 0; }
.card {
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: -4px; left: 0; right: 0; height: 4px;
    background: var(--accent-gradient);
}
.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: var(--primary); 
    color: #ffffff; 
    border: none; 
    padding: 0.75rem 1rem; 
    border-radius: 8px; 
    font-size: 1rem; 
    font-weight: 700; 
    cursor: pointer; 
    outline: none; 
    transition: all 0.2s; 
    box-shadow: 0 4px 10px rgba(229, 50, 45, 0.2);
}
.select-field:hover { background: var(--primary-hover); }
.select-field option { background: #fff; color: #333; }
.swap-btn { 
    background: var(--primary); 
    border: none; 
    color: #ffffff; 
    width: 3rem; 
    height: 3rem; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: all 0.2s; 
    box-shadow: 0 4px 10px rgba(229, 50, 45, 0.2);
}
.swap-btn:hover { background: var(--primary-hover); transform: rotate(180deg); }

.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: 350px;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.3rem;
    resize: none;
    outline: none;
    background: #fdfdfd;
    line-height: 1.7;
    font-family: var(--font-hindi);
    transition: all 0.3s;
}
textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-light); }
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 - TRUE ILOVEPDF STYLE */
.features-section { 
    padding: 3rem 0; 
    text-align: center; 
    background: #fff; 
}
.section-title { 
    font-size: 2.2rem; 
    font-weight: 800; 
    margin-bottom: 2rem; 
    color: #333; 
}
.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 1.5rem; 
    max-width: 1400px;
    margin: 0 auto;
}
.feature-card { 
    background: #ffffff; 
    border: 2px solid var(--primary); /* Permanent Primary Border */
    padding: 1.5rem; 
    border-radius: 12px; 
    transition: all 0.2s ease-in-out; 
    text-align: left; 
    display: flex;
    flex-direction: column;
    min-height: 240px; /* Use min-height instead of fixed height */
    height: auto; 
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.feature-card:hover { 
    border-color: var(--primary-hover); 
    box-shadow: 0 10px 25px rgba(229, 50, 45, 0.1); 
    transform: translateY(-5px);
}
.feature-icon { 
    font-size: 2.2rem; 
    margin-bottom: 1.25rem; 
    color: var(--primary); 
}
.feature-card h3 { 
    font-size: 1.3rem; 
    margin-bottom: 0.5rem; 
    color: #333; 
    font-weight: 700; 
}
.feature-card p { 
    color: #666; 
    font-size: 0.85rem; 
    line-height: 1.5; 
    margin: 0;
}

/* TOOL PAGE - ilovepdf centered style */
.tool-container { text-align: center; padding: 2rem 0; background: #fff; flex: 1; }
.tool-header { margin-bottom: 3rem; }
.tool-header h1 { 
    font-size: 3rem; 
    font-weight: 800; 
    margin-bottom: 0.75rem; 
    color: #1e293b; 
    letter-spacing: -1px;
}
.tool-header p { 
    font-size: 1.2rem; 
    color: #64748b; 
    max-width: 700px; 
    margin: 0 auto; 
    line-height: 1.6;
}

.pdf-box-container {
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.big-select-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    padding: 1.5rem 4rem;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(229, 50, 45, 0.25);
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}
.big-select-btn:hover { background: #d32f2f; transform: scale(1.02); box-shadow: 0 10px 30px rgba(229, 50, 45, 0.35); }
.drop-text { color: #888; font-size: 1.1rem; }

/* 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; }
}

/* FONT UTILITIES */
@font-face {
    font-family: 'Kruti Dev 010';
    src: local('Kruti Dev 010'), local('KrutiDev-010');
}

.kruti-font, .krutidev-font {
    font-family: 'Kruti Dev 010', 'Kruti Dev', sans-serif !important;
    font-size: 1.6rem !important;
}

#toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none;
    z-index: 10000;
}
#toast.show { display: block; animation: fadeIn 0.3s ease; }

