
/* =========================
   GLOBAL SETTINGS
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #090d18;
    color: #f1f5f9;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section-padding {
    padding: 90px 0;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    background: #090d18;
    border-bottom: 1px solid #20283a;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px;
}

.nav-content {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: #38bdf8;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a,
.login-btn {
    color: #aab5c8;
    font-size: 14px;
    transition: 0.3s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.signup-btn,
.developer-btn {
    background: #38bdf8;
    color: #07111e;
    padding: 11px 20px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 14px;
}

.signup-btn:hover,
.developer-btn:hover {
    background: #7dd3fc;
}

.menu-btn {
    display: none;
    background: none;
    color: white;
    border: none;
    font-size: 25px;
    cursor: pointer;
}


/* =========================
   HERO SECTION
========================= */

.hero {
    min-height: 570px;
    display: flex;
    align-items: center;
    text-align: center;

    background:
        radial-gradient(
            ellipse at 50% 10%,
            rgba(14, 116, 190, 0.20),
            transparent 65%
        );
}

.hero-content {
    padding: 80px 0;
}

.hero-badge {
    display: inline-block;
    border: 1px solid #26364d;
    background: #111c2d;
    color: #9edcff;
    border-radius: 30px;
    padding: 7px 17px;
    font-size: 13px;
    margin-bottom: 25px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #38bdf8;
    border-radius: 50%;
    margin-right: 7px;
}

.hero h1 {
    font-size: clamp(45px, 7vw, 76px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero h1 span,
.developer-content h2 span {
    color: #38bdf8;
}

.hero-description {
    max-width: 620px;
    margin: 22px auto 30px;
    color: #9ba9bd;
    font-size: 17px;
}

.search-box {
    display: flex;
    align-items: center;
    max-width: 620px;
    margin: auto;
    padding: 7px;
    background: #151e2e;
    border: 1px solid #34445c;
    border-radius: 10px;
}

.search-icon {
    font-size: 25px;
    color: #8da5c2;
    padding: 0 12px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 15px;
}

.search-box input::placeholder {
    color: #8190a6;
}

.search-box button {
    background: #38bdf8;
    color: #07111e;
    border: none;
    border-radius: 7px;
    padding: 12px 23px;
    font-weight: 700;
    cursor: pointer;
}

.search-note {
    color: #718198;
    font-size: 12px;
    margin-top: 17px;
}


/* =========================
   SECTION HEADINGS
========================= */

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 35px;
}

.section-label {
    color: #38bdf8;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
}

.section-heading h2 {
    font-size: 32px;
    margin-top: 7px;
}

.section-heading p {
    color: #8492a8;
    font-size: 14px;
}

.view-all {
    color: #38bdf8;
    font-size: 14px;
}


/* =========================
   CATEGORY SECTION
========================= */

.categories {
    background: #0d1321;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.category-card {
    background: #141d2d;
    border: 1px solid #263247;
    padding: 25px;
    border-radius: 11px;
    transition: 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    background: #18283d;
}

.category-icon {
    display: block;
    color: #38bdf8;
    font-size: 30px;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 17px;
}

.category-card p {
    color: #8492a8;
    font-size: 13px;
    margin-top: 5px;
}


/* =========================
   FEATURED TOOLS
========================= */

.featured {
    background: #090d18;
}

.empty-state {
    text-align: center;
    border: 1px dashed #34445c;
    border-radius: 12px;
    padding: 65px 20px;
    background: #101827;
}

.empty-icon {
    color: #38bdf8;
    font-size: 45px;
}

.empty-state h3 {
    margin: 10px 0;
    font-size: 21px;
}

.empty-state p {
    color: #8492a8;
    font-size: 14px;
}


/* =========================
   DEVELOPER SECTION
========================= */

.developer-section {
    padding: 85px 0;
    background: #101a2b;
}

.developer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.developer-content h2 {
    font-size: 43px;
    line-height: 1.2;
    margin: 12px 0 18px;
}

.developer-content p {
    color: #9ba9bd;
    max-width: 470px;
    margin-bottom: 25px;
    font-size: 15px;
}

.developer-visual {
    background: #172840;
    border: 1px solid #29425f;
    border-radius: 15px;
    padding: 55px 30px;
    text-align: center;
}

.visual-icon {
    color: #38bdf8;
    font-size: 65px;
    margin-bottom: 10px;
}

.developer-visual h3 {
    font-size: 26px;
}

.developer-visual p {
    margin: 10px auto 0;
}


/* =========================
   FOOTER
========================= */

.footer {
    padding: 30px 0;
    background: #070b13;
    border-top: 1px solid #20283a;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-content p {
    color: #8492a8;
    font-size: 13px;
}


/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 768px) {

    .nav-links {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: #101827;
        flex-direction: column;
        padding: 25px;
        gap: 20px;
        border-bottom: 1px solid #263247;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-actions {
        margin-left: auto;
        margin-right: 15px;
    }

    .menu-btn {
        display: block;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .developer-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

}

@media (max-width: 480px) {

    .nav-actions {
        gap: 10px;
    }

    .login-btn {
        display: none;
    }

    .signup-btn {
        padding: 9px 12px;
        font-size: 12px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .search-box button {
        padding: 11px 13px;
    }

    .search-box input {
        font-size: 12px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

}

/* =========================
   KALVIX BRAND LOGO
========================= */

.brand-logo img {
    display: block;
    width: 145px;
    height: 82px;
    object-fit: contain;
    border-radius: 14px;
}

.footer-logo img {
    width: 175px;
    height: auto;
    border-radius: 14px;
}


/* =========================
   AI TOOLS DIRECTORY
========================= */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.tool-card {
    background: #121c2b;
    border: 1px solid #26384c;
    border-radius: 13px;
    padding: 25px;
    transition: 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: #20c9ad;
    box-shadow: 0 10px 30px rgba(32, 201, 173, 0.08);
}

.tool-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.tool-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #1d3543;
    color: #38d9bf;
    font-size: 27px;
}

.tool-category {
    color: #38d9bf;
    background: #17332f;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 11px;
}

.tool-card h3 {
    font-size: 20px;
    margin-bottom: 9px;
}

.tool-card p {
    color: #9ba9bd;
    font-size: 14px;
    min-height: 65px;
    margin-bottom: 20px;
}

.tool-card a {
    display: inline-block;
    color: #38bdf8;
    font-weight: 600;
    font-size: 14px;
}

.tool-card a:hover {
    color: #38d9bf;
}

.no-results {
    color: #9ba9bd;
    text-align: center;
    padding: 35px;
}

[hidden] {
    display: none !important;
}


/* Responsive tool cards */

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}


/* TOOL FILTERS */

.tool-filters {
    display: flex;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.filter-group select {
    min-width: 190px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.filter-group select:focus {
    border-color: #6c63ff;
}

#clearFilters {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #eee;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#clearFilters:hover {
    background: #ddd;
}

#resultsCount {
    margin: 15px 0 20px;
    color: #666;
    font-size: 14px;
}

@media (max-width: 600px) {
    .tool-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group select {
        width: 100%;
    }

    #clearFilters {
        width: 100%;
    }
}
