/* =====================================
   iLovePDF Style Master CSS (Header & Home)
===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #070b14; /* ToolVerse Dark Theme background */
    color: #f8fafc;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* --- Premium Header & Mega Menu --- */
.ilove-header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo-area {
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #38bdf8;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo-text {
    color: #38bdf8;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 15px;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #38bdf8;
}

/* Mega Menu Setup */
.dropdown {
    position: relative;
}

.arrow {
    font-size: 10px;
    margin-left: 4px;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    gap: 30px;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: max-content;
}

.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

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

.mega-column a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #f8fafc;
}

.mega-column a:hover {
    color: #38bdf8;
}

.badge {
    background: #ff4757;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

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

.login-btn {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 15px;
}

.signup-btn {
    background: #38bdf8;
    color: #0f172a;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    transition: 0.3s;
}

.signup-btn:hover {
    background: #0ea5e9;
}

/* --- Hero Section --- */
.ilove-hero {
    text-align: center;
    padding: 80px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.ilove-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.ilove-hero p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    transition: 0.2s;
}

.filter-btn:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

.filter-btn.active {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}

/* =====================================
   EXACT iLovePDF Grid Layout (Old Version)
===================================== */
.tools-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 15px 80px;
}

.ilove-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.ilove-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 12px;
    padding: 25px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 200px;
}

.ilove-card:hover {
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
    transform: translateY(-3px);
    border-color: #38bdf8;
}

.card-icon {
    font-size: 38px;
    margin-bottom: 18px;
    line-height: 1;
}

.ilove-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f8fafc;
    line-height: 1.2;
}

.ilove-card p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}

@media(max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; padding: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .mega-menu { display: none; }
    .ilove-hero h1 { font-size: 32px; }
    
    .ilove-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ilove-card { padding: 15px; min-height: 160px; border-radius: 10px; }
    .card-icon { font-size: 30px; margin-bottom: 12px; }
    .ilove-card h3 { font-size: 13px; margin-bottom: 6px; }
    .ilove-card p { font-size: 11px; line-height: 1.3; }
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 80px 20px;
    background: #0b0f19;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
}

.stat-box { text-align: center; padding: 20px; width: 250px; }
.stat-box h2 { font-size: 48px; color: #38bdf8; margin-bottom: 5px; font-weight: 800; }
.stat-box p { color: #94a3b8; font-size: 18px; font-weight: 600; }

/* Contact */
.contact { padding: 80px 20px; text-align: center; background: #070b14; border-top: 1px solid rgba(56, 189, 248, 0.15); }
.contact h2 { font-size: 36px; margin-bottom: 15px; color: #f8fafc; }
.contact p { font-size: 18px; color: #94a3b8; margin-bottom: 30px; }
.btn { display: inline-block; background: #38bdf8; color: #0f172a; padding: 14px 30px; border-radius: 8px; text-decoration: none; font-weight: 700; transition: .3s; border: none; cursor: pointer; }
.btn:hover { background: #0ea5e9; }

/* =========================================
   VVIP PDF TOOLS GRID (Solid Vibrant Colors & Icons)
   ========================================= */

.pdf-tools-section {
    padding: 80px 20px;
    background-color: #070b14;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.pdf-tools-section h1 {
    font-size: 2.5rem;
    color: #f8fafc;
    font-weight: 700;
    margin-bottom: 15px;
}

.pdf-tools-section p.subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

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

.category-pills span {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #cbd5e1;
    cursor: pointer;
    transition: 0.3s;
}

.category-pills span:hover, .category-pills span.active {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}

/* Tools Grid */
.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1250px;
    margin: 0 auto;
    text-align: left;
}

/* Individual Card */
.pdf-card {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    border: 1px solid rgba(56, 189, 248, 0.15);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pdf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
}

/* High Quality Solid Vibrant Icons Design */
.tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Solid Vibrant Colors */
.bg-red { background: #e5322d; color: #ffffff; }
.bg-green { background: #66b646; color: #ffffff; }
.bg-blue { background: #3583c7; color: #ffffff; }
.bg-orange { background: #f19b38; color: #ffffff; }
.bg-yellow { background: #f4cc44; color: #ffffff; }
.bg-purple { background: #9968aa; color: #ffffff; }
.bg-pink { background: #db5b94; color: #ffffff; }
.bg-dark { background: #525864; color: #ffffff; }

.tool-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
}

.tool-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* New Badge */
.badge-new {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

@media (max-width: 768px) {
    .pdf-grid { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); }
    .pdf-tools-section h1 { font-size: 2rem; }
}

/* =====================================
   Individual Tools CSS (Retained)
===================================== */
.tool-header { text-align: center; padding: 60px 20px 40px; background: #0f172a; border-bottom: 1px solid rgba(56, 189, 248, 0.15); }
.tool-header h1 { font-size: 38px; color: #f8fafc; margin-bottom: 10px; }
.tool-header p { color: #94a3b8; font-size: 18px; }

.resume-builder { padding: 60px 20px; background: #070b14; }
.resume-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; max-width: 1200px; margin: auto; }
.resume-form { background: #0f172a; padding: 35px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); border: 1px solid rgba(56, 189, 248, 0.15); }
.resume-form h2 { font-size: 18px; color: #38bdf8; margin: 25px 0 15px; border-bottom: 1px solid #334155; padding-bottom: 8px; }
.resume-form h2:first-child { margin-top: 0; }
.resume-form label { display: block; font-weight: 600; margin: 15px 0 5px; color: #cbd5e1; font-size: 14px; }
.resume-form input, .resume-form textarea, .resume-form select { width: 100%; padding: 12px 15px; border: 1px solid #334155; border-radius: 6px; font-size: 15px; outline: none; background: #1e293b; color: #fff; transition: 0.2s; }
.resume-form input:focus, .resume-form textarea:focus, .resume-form select:focus { border-color: #38bdf8; background: #0f172a; box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2); }
.input-row { display: flex; gap: 15px; }
.input-half { flex: 1; }
.action-btn { width: 100%; margin-top: 30px; font-size: 18px; padding: 16px; }

.resume-preview-container { position: relative; background: #0b0f19; padding: 20px; border-radius: 12px; display: flex; justify-content: center; overflow-x: auto; border: 1px solid rgba(56, 189, 248, 0.15); }
.preview-badge { position: absolute; top: 10px; right: 20px; background: #ff4757; color: white; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

.a4-sheet { background: #ffffff; width: 100%; max-width: 800px; min-height: 842px; padding: 50px; box-shadow: 0 15px 35px rgba(0,0,0,0.5); font-family: 'Merriweather', serif; color: #1f2937; }
.resume-header { text-align: center; border-bottom: 2px solid #374151; padding-bottom: 20px; margin-bottom: 20px; }
.resume-header h1 { font-size: 32px; color: #111827; margin-bottom: 5px; }
.resume-header h3 { font-size: 18px; color: #4b5563; font-weight: 400; margin-bottom: 10px; }
.resume-contact { font-size: 13px; color: #6b7280; font-family: 'Inter', sans-serif; }
.resume-section { margin-bottom: 25px; }
.section-title { font-size: 16px; text-transform: uppercase; color: #111827; margin-bottom: 10px; letter-spacing: 1px; border-bottom: 1px solid #d1d5db; padding-bottom: 5px; }
.resume-section p { font-size: 14px; line-height: 1.8; color: #374151; white-space: pre-wrap; }

.email-client-mockup { width: 100%; max-width: 600px; background: #0f172a; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.5); border: 1px solid #334155; display: flex; flex-direction: column; }
.email-top-bar { background: #1e293b; padding: 12px 20px; display: flex; align-items: center; border-bottom: 1px solid #334155; }
.dots { display: flex; gap: 6px; margin-right: auto; }
.dots span { width: 12px; height: 12px; border-radius: 50%; }
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }
.new-message-title { font-size: 14px; font-weight: 600; color: #94a3b8; transform: translateX(-50%); }
.email-header-mockup { padding: 15px 20px; border-bottom: 1px solid #334155; }
.email-line { font-size: 14px; color: #cbd5e1; margin-bottom: 8px; border-bottom: 1px solid #1e293b; padding-bottom: 8px; }
.email-line strong { color: #64748b; font-weight: 500; width: 60px; display: inline-block; }
.email-body-mockup { padding: 25px 20px; min-height: 250px; font-size: 15px; line-height: 1.8; white-space: pre-wrap; color: #f8fafc; }
.placeholder-text { color: #64748b; text-align: center; margin-top: 50px; font-style: italic; }
.email-footer-mockup, .mockup-footer { padding: 15px 20px; background: #1e293b; border-top: 1px solid #334155; display: flex; align-items: center; gap: 15px; }
.copy-btn { background: #38bdf8; border: none; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s; color: #0f172a; }
.copy-btn:hover { background: #0ea5e9; }
.copy-status { font-size: 14px; color: #4ade80; font-weight: 600; opacity: 0; transition: 0.3s; }
.copy-status.show { opacity: 1; }

.social-mockup { width: 100%; max-width: 380px; background: #0f172a; border-radius: 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.5); border: 1px solid #334155; margin: 0 auto; color: #f8fafc; }
.social-header { display: flex; align-items: center; padding: 12px 15px; border-bottom: 1px solid #1e293b; }
.social-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); margin-right: 12px; }
.social-user-info { flex-grow: 1; display: flex; flex-direction: column; }
.social-user-info strong { font-size: 14px; }
.social-user-info span { font-size: 12px; color: #94a3b8; }
.social-image { width: 100%; height: 220px; background: linear-gradient(135deg, #1e293b, #0f172a); display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 14px; }
.social-actions { padding: 12px 15px 5px; display: flex; gap: 15px; font-size: 14px; font-weight: 600; }
.social-caption { padding: 5px 15px 15px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; max-height: 200px; overflow-y: auto; color: #cbd5e1; }

.drag-drop-zone { border: 2px dashed #334155; border-radius: 12px; padding: 40px 20px; text-align: center; background: #0f172a; margin-bottom: 15px; }
.drag-drop-zone.dragover { background: #1e293b; border-color: #38bdf8; }
.upload-icon { font-size: 48px; margin-bottom: 15px; }
.browse-btn { background: #1e293b; border: 1px solid #334155; padding: 10px 20px; border-radius: 6px; cursor: pointer; color: #f8fafc; }
.file-info { display: flex; justify-content: space-between; align-items: center; background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3); padding: 12px 15px; border-radius: 8px; margin-bottom: 20px; color: #38bdf8; font-weight: 600; font-size: 14px; }
.remove-file { cursor: pointer; color: #ff4757; }
.document-mockup { width: 100%; max-width: 600px; background: #0f172a; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.5); border: 1px solid #334155; display: flex; flex-direction: column; min-height: 500px; color: #f8fafc; }
.doc-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #334155; background: #1e293b; border-radius: 12px 12px 0 0; }
.doc-title { font-size: 18px; font-weight: 700; }
.doc-badge { background: #38bdf8; color: #0f172a; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.doc-body { padding: 30px; flex-grow: 1; font-size: 15px; line-height: 1.8; white-space: pre-wrap; overflow-y: auto; color: #cbd5e1; }
.summary-bullets li { margin-bottom: 12px; margin-left: 20px; }

.premium-textarea { width: 100%; padding: 18px; border: 2px solid #334155; border-radius: 10px 10px 0 0; font-size: 16px; line-height: 1.7; outline: none; resize: vertical; border-bottom: none; background: #0f172a; color: #f8fafc; }
.premium-textarea:focus { border-color: #38bdf8; }
.editor-footer { display: flex; justify-content: flex-end; gap: 10px; background: #1e293b; padding: 10px 18px; border: 2px solid #334155; border-top: 1px solid #334155; border-radius: 0 0 10px 10px; font-size: 13px; color: #94a3b8; font-weight: 500; margin-bottom: 20px; }
.premium-textarea:focus + .editor-footer { border-color: #38bdf8; border-top-color: #334155; }
.editor-select { padding: 6px 12px; border-radius: 6px; border: 1px solid #334155; font-size: 13px; font-weight: 600; background: #0f172a; color: #f8fafc; }

.terminal-mockup { width: 100%; max-width: 600px; background: #0d1117; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.5); border: 1px solid #30363d; display: flex; flex-direction: column; min-height: 450px; }
.terminal-header { background: #161b22; padding: 12px 20px; display: flex; align-items: center; border-bottom: 1px solid #30363d; border-radius: 12px 12px 0 0; }
.terminal-dots { display: flex; gap: 6px; margin-right: auto; }
.terminal-dots span { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }
.terminal-title { font-family: 'Fira Code', monospace; font-size: 12px; color: #8b949e; transform: translateX(-50%); }
.terminal-body { padding: 25px 20px; flex-grow: 1; font-family: 'Fira Code', monospace; font-size: 14px; line-height: 1.7; color: #58a6ff; white-space: pre-wrap; overflow-y: auto; }
.terminal-empty { color: #484f58; }
.terminal-mockup .copy-btn { border: none; }
.terminal-mockup .copy-btn:hover { background: #238636 !important; color: white !important; }

@media(max-width: 992px) {
    .resume-grid { grid-template-columns: 1fr; }
    .input-row { flex-direction: column; }
}

/* --- Professional Footer Styles (Matched with Theme) --- */
.toolverse-footer {
    background-color: #0b0f19;
    color: #94a3b8;
    padding: 60px 20px 30px 20px;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    font-family: 'Inter', sans-serif;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-col h3 {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #38bdf8;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #f8fafc;
    margin-bottom: 15px;
}
