/* ================================
   ToolDigitalHub - Main Styles
================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #070914;
    color: #ffffff;
    min-height: 100vh;
}


/* ================================
   Navbar
================================ */

.navbar {
    width: 100%;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    background: rgba(7, 9, 20, 0.75);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 21px;
    font-weight: 700;
}

.logo-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: linear-gradient(135deg, #6c63ff, #00d4ff);

    box-shadow: 0 0 25px rgba(0, 212, 255, 0.25);

    font-size: 18px;
}

.navbar nav {
    display: flex;
    gap: 32px;
}

.navbar nav a {
    color: #aeb4c7;
    text-decoration: none;

    font-size: 14px;

    transition: 0.3s;
}

.navbar nav a:hover {
    color: #ffffff;
}

.nav-button {
    border: none;
    padding: 11px 18px;

    border-radius: 10px;

    color: white;

    background: linear-gradient(135deg, #6c63ff, #00bfff);

    cursor: pointer;

    font-weight: 600;

    transition: 0.3s;
}

.nav-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 30px rgba(0, 191, 255, 0.25);
}


/* ================================
   Hero
================================ */

.hero {
    min-height: 650px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px;

    position: relative;

    overflow: hidden;
}


/* Glow effects */

.hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    background: #5146ff;

    filter: blur(180px);

    opacity: 0.12;

    border-radius: 50%;

    top: -250px;
    left: 50%;

    transform: translateX(-50%);
}

.hero-content {
    max-width: 850px;

    position: relative;

    z-index: 2;
}

.badge {
    display: inline-block;

    padding: 9px 16px;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.1);

    color: #bfc5ff;

    font-size: 13px;

    margin-bottom: 25px;

    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(48px, 7vw, 82px);

    line-height: 1.05;

    letter-spacing: -3px;

    margin-bottom: 25px;
}

.hero h1 span {
    background: linear-gradient(
        90deg,
        #7c6cff,
        #00d9ff
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 650px;

    margin: auto;

    color: #9ba2b7;

    font-size: 17px;

    line-height: 1.7;
}


/* ================================
   Search
================================ */

.search-box {
    max-width: 650px;

    margin: 35px auto 18px;

    display: flex;
    align-items: center;

    padding: 7px;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 14px;

    backdrop-filter: blur(15px);
}

.search-box span {
    font-size: 25px;

    color: #8f96aa;

    padding-left: 15px;
}

.search-box input {
    flex: 1;

    border: none;
    outline: none;

    background: transparent;

    color: white;

    padding: 15px;

    font-size: 15px;
}

.search-box input::placeholder {
    color: #777f96;
}

.search-box button {
    border: none;

    padding: 13px 22px;

    border-radius: 10px;

    color: white;

    background: linear-gradient(
        135deg,
        #655bff,
        #00bfff
    );

    cursor: pointer;

    font-weight: 600;
}

.popular {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    font-size: 13px;
}

.popular span {
    color: #777f96;
}

.popular a {
    color: #aeb4ff;

    text-decoration: none;
}


/* ================================
   Sections
================================ */

.section {
    max-width: 1200px;

    margin: auto;

    padding: 90px 25px;
}

.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 30px;

    margin-bottom: 35px;
}

.small-title {
    color: #6e9cff;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 8px;
}

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

.section-heading > p {
    max-width: 380px;

    color: #8e96ab;

    line-height: 1.6;
}


/* ================================
   Categories
================================ */

.category-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.category-card {
    padding: 25px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.08);

    transition: 0.35s;

    position: relative;

    overflow: hidden;
}

.category-card::before {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    background: #5f5cff;

    filter: blur(80px);

    opacity: 0;

    transition: 0.35s;
}

.category-card:hover {
    transform: translateY(-7px);

    border-color: rgba(100, 150, 255, 0.35);

    background: rgba(255, 255, 255, 0.055);
}

.category-card:hover::before {
    opacity: 0.18;
}

.category-icon {
    font-size: 32px;

    margin-bottom: 18px;
}

.category-card h3 {
    margin-bottom: 10px;
}

.category-card p {
    color: #858da3;

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 20px;
}

.category-card span {
    color: #7f8cff;

    font-size: 13px;
}


/* ================================
   Tools
================================ */

.tools-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.tool-card {
    padding: 24px;

    border-radius: 18px;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.055),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);

    transition: 0.35s;

    display: flex;
    flex-direction: column;

    min-height: 245px;
}

.tool-card:hover {
    transform: translateY(-6px);

    border-color: rgba(0, 212, 255, 0.35);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3);
}

.tool-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 22px;
}

.tool-icon {
    font-size: 28px;
}

.tool-top span {
    font-size: 10px;

    color: #73d9ff;

    border: 1px solid rgba(0, 212, 255, 0.25);

    padding: 5px 8px;

    border-radius: 20px;
}

.tool-card h3 {
    margin-bottom: 10px;
}

.tool-card p {
    color: #858da3;

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 22px;
}

.tool-card button {
    width: 100%;

    border: none;

    padding: 11px;

    border-radius: 9px;

    color: white;

    background: rgba(255,255,255,0.07);

    cursor: pointer;

    transition: 0.3s;

    margin-top: auto;
}

.tool-card button:hover {
    background: linear-gradient(
        135deg,
        #625aff,
        #00bfff
    );
}


/* ================================
   Footer
================================ */

footer {
    text-align: center;

    padding: 60px 20px;

    border-top: 1px solid rgba(255,255,255,0.07);

    color: #7d8498;
}

.footer-logo {
    color: white;

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 12px;
}

.footer-line {
    max-width: 500px;

    height: 1px;

    background: rgba(255,255,255,0.08);

    margin: 30px auto;
}


/* ================================
   Responsive Design
================================ */

@media (max-width: 900px) {

    .navbar nav {
        display: none;
    }

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

    .section-heading {
        flex-direction: column;

        align-items: flex-start;
    }
}


@media (max-width: 600px) {

    .navbar {
        padding: 0 20px;
    }

    .nav-button {
        display: none;
    }

    .hero {
        min-height: 600px;

        padding-top: 60px;
    }

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

    .hero p {
        font-size: 15px;
    }

    .search-box {
        margin-top: 28px;
    }

    .search-box button {
        padding: 12px 15px;
    }

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

    .section {
        padding: 65px 20px;
    }

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

/* ================================
   Tool Filters
================================ */

.tool-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-btn {
    padding: 10px 17px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;

    background: rgba(255,255,255,0.04);
    color: #9da6ba;

    cursor: pointer;
    transition: 0.25s;
}

.filter-btn:hover {
    color: white;
    border-color: rgba(0,207,255,0.35);
}

.filter-btn.active {
    color: white;

    background: linear-gradient(
        135deg,
        #665cff,
        #00bfff
    );

    border-color: transparent;
}

/* ================================
   Tool Filters
================================ */

.tool-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-btn {
    padding: 10px 17px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;

    background: rgba(255,255,255,0.04);
    color: #9da6ba;

    cursor: pointer;
    transition: 0.25s;
}

.filter-btn:hover {
    color: white;
    border-color: rgba(0,207,255,0.35);
}

.filter-btn.active {
    color: white;

    background: linear-gradient(
        135deg,
        #665cff,
        #00bfff
    );

    border-color: transparent;
}