:root {
    --primary-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --hero-bg: #0F172A;
    --accent-blue: #3B82F6;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    color: rgb(0, 0, 0);
    padding: 4rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    height: 100%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding-top: 4rem;
    /* Added padding to push content down below the absolute header */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: #94A3B8;
    margin-bottom: 2.5rem;
}

/* Search Bar */
.search-container {
    background: white;
    padding: 0.5rem;
    border-radius: 1rem;
    max-width: 600px;
    display: flex;

    align-items: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.search-icon {
    color: #94A3B8;
    padding: 0 1rem;
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 0.5rem;
    font-size: 1rem;
    color: var(--text-main);
}

.search-btn {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #2563EB;
}

/* Dashboard Content */
.dashboard-container {
    max-width: 1200px;
    margin: -3rem auto 2rem;
    padding: 0 2rem;
    position: relative;
    z-index: 20;
    flex-grow: 1;
    width: 100%;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

/* Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Tool Card */
.tool-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-blue);
}

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #EFF6FF;
    color: var(--accent-blue);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s;
}

.tool-card:hover .icon-box {
    background-color: var(--accent-blue);
    color: white;
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.tool-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.tool-arrow {
    margin-top: auto;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    display: none;
}

/* Footer */
footer {
    background-color: var(--hero-bg);
    color: #94A3B8;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar */
.tool-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--hero-bg);
    /* Or a slightly transparent version */
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tool-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-home-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-home-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Adjust Hero padding to prevent content from hiding behind fixed header */
.hero {
    margin-top: 80px;
    /* Approx height of navbar */
    padding-top: 2rem;
    /* Add some internal padding */
}

@media (max-width: 768px) {
    .hero {
        margin-top: 70px;
        padding: 2rem 1.5rem 5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tool-navbar {
        padding: 0.8rem 1rem;
    }

    .nav-logo img {
        height: 40px;
    }

    .dashboard-container {
        padding: 0 1rem;
    }
}


/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3B82F6;
    border-radius: 50%;
    animation: spin-loader 1s linear infinite;
}

@keyframes spin-loader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}





/* =========================================
   MOBILE FIRST ENHANCEMENTS (Added)
   ========================================= */

/* Sticky Bottom Bar */
.mobile-bottom-bar {
    display: none;
    /* Hidden by default (Desktop) */
}

@media (max-width: 991px) {
    .mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 12px 16px;
        display: flex;
        /* Flex is critical here */
        gap: 12px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        border-top: 1px solid #e2e8f0;
        align-items: center;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .btn-call,
    .btn-whatsapp {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px;
        border-radius: 50px;
        font-weight: 700;
        text-decoration: none;
        font-size: 0.95rem;
        transition: transform 0.2s;
        line-height: normal;
    }

    .btn-call {
        border: 2px solid #3B82F6;
        color: #3B82F6;
        background: transparent;
    }

    .btn-whatsapp {
        background: #25D366;
        color: white;
        border: none;
        box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    }

    .btn-call:active,
    .btn-whatsapp:active {
        transform: scale(0.96);
    }

    .btn-call i,
    .btn-whatsapp i {
        font-size: 1.1rem;
    }

    /* Adjust Body for Bar */
    body {
        padding-bottom: 80px;
    }

    /* Mobile Typography & Spacing */
    .hero h1 {
        font-size: 2rem !important;
        /* Force smaller size on mobile */
    }

    .hero p {
        font-size: 1rem !important;
    }

    .dashboard-container {
        padding: 0 1rem;
        margin-top: -2rem;
    }

    /* Card Adjustments */
    .tool-card {
        padding: 1.5rem;
    }

    /* Make inputs large and tappable */
    select,
    input {
        height: 50px;
        font-size: 16px;
        /* Prevents iOS zoom */
    }

    /* FAQ Styling for Mobile */
    .faq-container {
        padding-bottom: 2rem;
    }

    .faq-item {
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 1rem;
        overflow: hidden;
    }

    .faq-question {
        width: 100%;
        text-align: left;
        background: white;
        border: none;
        padding: 1.25rem;
        font-weight: 600;
        font-size: 1rem;
        color: var(--text-main);
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .faq-question::after {
        content: '+';
        font-size: 1.25rem;
        color: var(--accent-blue);
        transition: transform 0.3s;
    }

    .faq-question.active {
        background: #f8fafc;
        color: var(--accent-blue);
    }

    .faq-question.active::after {
        transform: rotate(45deg);
    }

    .faq-answer {
        display: none;
        /* JS toggles this to block */
        padding: 0 1.25rem 1.25rem;
        color: var(--text-muted);
        line-height: 1.6;
        font-size: 0.95rem;
        background: #f8fafc;
        border-top: 1px solid #e2e8f0;
    }
}