
/* =========================================================
   INDIA UTILITY HUB
   PREMIUM LIGHT GLASS DESIGN
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        radial-gradient(circle at 10% 5%, rgba(139,92,246,.10), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(59,130,246,.10), transparent 30%),
        linear-gradient(180deg, #f7f9ff 0%, #f1f5fb 50%, #eef3fa 100%);

    color: #172033;
    min-height: 100vh;
    overflow-x: hidden;
}


/* ================= HEADER ================= */

.header {
    width: 100%;
    height: 76px;

    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255,255,255,.82);
    backdrop-filter: blur(20px);

    border-bottom: 1px solid rgba(30,41,59,.08);

    box-shadow: 0 5px 25px rgba(30,41,59,.04);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(135deg, #7c3aed, #2563eb);

    font-size: 23px;

    box-shadow:
        0 10px 30px rgba(80,60,255,.20);
}

.logo {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .5px;
    color: #172033;
}

.logo span {
    background:
        linear-gradient(90deg, #7c3aed, #2563eb);

    -webkit-background-clip: text;
    color: transparent;
}

.tagline {
    font-size: 10px;
    color: #7b8498;
    margin-top: 2px;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: #536078;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition: .25s;
}

.nav a:hover {
    color: #4f46e5;
}

.menu-btn {
    display: none;

    border: 0;
    background: transparent;
    color: #172033;

    font-size: 26px;
}


/* ================= HERO ================= */

.hero {
    min-height: 590px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    position: relative;
    overflow: hidden;

    padding: 80px 20px;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;

    padding: 9px 17px;

    border: 1px solid rgba(124,58,237,.20);
    border-radius: 50px;

    background: rgba(124,58,237,.07);

    color: #6d28d9;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;

    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;

    font-weight: 900;
    letter-spacing: -3px;

    color: #182235;
}

.hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #7c3aed,
            #2563eb,
            #0891b2
        );

    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 650px;
    margin: 25px auto 35px;

    color: #667085;
    font-size: 17px;
    line-height: 1.7;
}


/* ================= SEARCH ================= */

.search-box {
    max-width: 720px;
    height: 64px;

    margin: auto;

    display: flex;
    align-items: center;

    padding: 6px;

    background: rgba(255,255,255,.90);

    border: 1px solid rgba(71,85,105,.13);

    border-radius: 18px;

    box-shadow:
        0 15px 45px rgba(30,41,59,.09);

    backdrop-filter: blur(20px);
}

.search-icon {
    font-size: 20px;
    margin: 0 13px;
}

.search-box input {
    flex: 1;

    height: 100%;

    background: transparent;
    border: 0;
    outline: none;

    color: #172033;

    font-size: 15px;
}

.search-box input::placeholder {
    color: #9aa3b5;
}

.search-box button {
    height: 50px;

    padding: 0 23px;

    border: 0;
    border-radius: 13px;

    background:
        linear-gradient(135deg, #7c3aed, #2563eb);

    color: white;

    font-weight: 800;

    cursor: pointer;

    transition: .25s;
}

.search-box button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(79,70,229,.25);
}

.search-suggestions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 17px;
}

.search-suggestions button {
    border: 1px solid rgba(71,85,105,.10);

    background: rgba(255,255,255,.70);

    color: #697386;

    padding: 8px 13px;

    border-radius: 30px;

    cursor: pointer;

    font-size: 11px;

    transition: .2s;
}

.search-suggestions button:hover {
    color: #5b21b6;
    background: rgba(124,58,237,.08);
}


/* ================= HERO GLOW ================= */

.hero-glow {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: .12;
}

.glow-one {
    background: #8b5cf6;
    top: -200px;
    left: -150px;
}

.glow-two {
    background: #3b82f6;
    right: -150px;
    bottom: -250px;
}


/* ================= STATS ================= */

.stats-section {
    max-width: 1100px;

    margin: -25px auto 80px;

    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 14px;

    position: relative;
    z-index: 5;
}

.stat-card {
    padding: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(248,250,255,.88)
        );

    border: 1px solid rgba(71,85,105,.10);

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 12px 35px rgba(30,41,59,.07);

    backdrop-filter: blur(15px);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-card strong {
    display: block;

    font-size: 22px;
    color: #172033;
}

.stat-card span {
    color: #7b8498;
    font-size: 11px;
}


/* ================= SECTION ================= */

.section {
    max-width: 1150px;

    margin: 0 auto;

    padding: 70px 20px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 28px;
}

.section-label {
    color: #6d5ce7;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: 31px;

    margin-top: 5px;

    color: #182235;
}

.section-heading p {
    color: #788398;

    margin-top: 7px;

    font-size: 13px;
}

.view-all {
    background: rgba(255,255,255,.75);

    border: 1px solid rgba(71,85,105,.12);

    color: #59657a;

    padding: 10px 15px;

    border-radius: 10px;

    cursor: pointer;

    transition: .2s;
}

.view-all:hover {
    color: #5b21b6;
    border-color: rgba(124,58,237,.25);
}


/* ================= TOOL CARDS ================= */

.tools-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}

.tool-card {
    min-height: 235px;

    padding: 23px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(248,250,255,.88)
        );

    border: 1px solid rgba(71,85,105,.10);

    box-shadow:
        0 10px 30px rgba(30,41,59,.055);

    transition: .3s;

    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-7px);

    border-color: rgba(124,58,237,.28);

    box-shadow:
        0 20px 50px rgba(30,41,59,.12);
}

.tool-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    font-size: 23px;
}

.purple {
    background: rgba(124,58,237,.10);
}

.blue {
    background: rgba(37,99,235,.10);
}

.green {
    background: rgba(34,197,94,.10);
}

.orange {
    background: rgba(249,115,22,.10);
}

.hot,
.new {
    font-size: 8px;

    padding: 5px 8px;

    border-radius: 20px;

    background: #f1f3f8;

    color: #6f788c;

    font-weight: 900;
}

.tool-card h3 {
    margin-top: 22px;

    font-size: 18px;

    color: #1d293d;
}

.tool-card p {
    color: #748096;

    font-size: 12px;

    line-height: 1.6;

    margin-top: 8px;
}

.tool-btn {
    margin-top: 20px;

    border: 0;

    background: transparent;

    color: #6d5ce7;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;
}


/* ================= CATEGORY ================= */

.category {
    margin-bottom: 35px;

    padding: 25px;

    border-radius: 24px;

    background:
        rgba(255,255,255,.68);

    border: 1px solid rgba(71,85,105,.09);

    box-shadow:
        0 10px 30px rgba(30,41,59,.045);
}

.category-title {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 22px;
}

.category-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    font-size: 22px;
}

.purple-bg {
    background: rgba(124,58,237,.10);
}

.blue-bg {
    background: rgba(37,99,235,.10);
}

.green-bg {
    background: rgba(34,197,94,.10);
}

.category-title h3 {
    font-size: 19px;
    color: #1d293d;
}

.category-title p {
    color: #7a8498;

    font-size: 11px;

    margin-top: 3px;
}

.mini-tools {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 10px;
}

.mini-tool {
    min-height: 115px;

    padding: 16px;

    background:
        rgba(255,255,255,.82);

    border: 1px solid rgba(71,85,105,.08);

    border-radius: 15px;

    cursor: pointer;

    transition: .25s;
}

.mini-tool:hover {
    background: rgba(124,58,237,.06);

    transform: translateY(-3px);

    border-color: rgba(124,58,237,.20);

    box-shadow:
        0 8px 20px rgba(30,41,59,.06);
}

.mini-tool span {
    font-size: 21px;

    display: block;

    margin-bottom: 11px;
}

.mini-tool strong {
    display: block;

    font-size: 12px;

    color: #263247;
}

.mini-tool small {
    display: block;

    color: #7d8799;

    font-size: 9px;

    margin-top: 5px;
}


/* ================= CALCULATORS ================= */

.calculator-section {
    padding-top: 30px;
}

.calculator-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}

.calculator-card {
    padding: 22px;

    min-height: 180px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.96),
            rgba(248,250,255,.88)
        );

    border: 1px solid rgba(71,85,105,.09);

    box-shadow:
        0 10px 30px rgba(30,41,59,.05);

    transition: .3s;
}

.calculator-card:hover {
    transform: translateY(-5px);

    border-color: rgba(96,165,250,.30);

    box-shadow:
        0 15px 35px rgba(30,41,59,.09);
}

.calculator-card span {
    font-size: 25px;
}

.calculator-card h3 {
    margin-top: 14px;

    font-size: 16px;

    color: #263247;
}

.calculator-card p {
    color: #778297;

    font-size: 11px;

    margin-top: 6px;
}

.calculator-card button {
    margin-top: 17px;

    border: 0;

    background: transparent;

    color: #3575d3;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;
}


/* ================= SEARCH RESULTS ================= */

.search-results-section {
    display: none;

    max-width: 1000px;

    margin: 20px auto;

    padding: 20px;
}

.search-result-box {
    padding: 25px;

    border-radius: 20px;

    background: rgba(255,255,255,.92);

    border: 1px solid rgba(71,85,105,.10);

    box-shadow:
        0 12px 30px rgba(30,41,59,.07);
}

.search-result-box h2 {
    font-size: 22px;

    color: #182235;
}

.search-result-box p {
    color: #7a8498;

    font-size: 13px;

    margin-top: 6px;
}

.result-item {
    margin-top: 12px;

    padding: 15px;

    border-radius: 13px;

    background: #f7f9fc;

    border: 1px solid rgba(71,85,105,.07);

    cursor: pointer;

    transition: .2s;
}

.result-item:hover {
    background: #f1f3ff;
    border-color: rgba(124,58,237,.15);
}

.result-item strong {
    font-size: 14px;

    color: #273247;
}

.result-item small {
    display: block;

    color: #7c8599;

    margin-top: 4px;
}


/* ================= CTA ================= */

.cta {
    max-width: 1110px;

    margin: 50px auto 90px;

    padding: 55px;

    border-radius: 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background:
        linear-gradient(
            120deg,
            rgba(124,58,237,.09),
            rgba(37,99,235,.08)
        );

    border: 1px solid rgba(124,58,237,.15);

    box-shadow:
        0 15px 40px rgba(30,41,59,.06);
}

.cta span {
    color: #6d5ce7;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 2px;
}

.cta h2 {
    font-size: 36px;

    margin-top: 9px;

    line-height: 1.15;

    color: #182235;
}

.cta p {
    color: #788398;

    font-size: 13px;

    margin-top: 12px;
}

.cta button {
    border: 0;

    padding: 15px 24px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #2563eb
        );

    color: white;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(79,70,229,.18);
}


/* ================= FOOTER ================= */

.footer {
    border-top: 1px solid rgba(71,85,105,.09);

    background:
        rgba(255,255,255,.65);

    padding: 50px 6% 20px;
}

.footer-main {
    max-width: 1100px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    gap: 40px;
}

.footer-logo {
    font-weight: 900;

    font-size: 15px;

    color: #263247;
}

.footer-brand p {
    max-width: 300px;

    color: #788398;

    font-size: 11px;

    line-height: 1.7;

    margin-top: 10px;
}

.footer-links {
    display: flex;

    gap: 80px;
}

.footer-links h4 {
    font-size: 12px;

    margin-bottom: 12px;

    color: #344054;
}

.footer-links a {
    display: block;

    color: #748096;

    text-decoration: none;

    font-size: 10px;

    margin: 8px 0;

    transition: .2s;
}

.footer-links a:hover {
    color: #5b21b6;
}

.footer-bottom {
    max-width: 1100px;

    margin: 40px auto 0;

    padding-top: 18px;

    border-top: 1px solid rgba(71,85,105,.07);

    display: flex;

    justify-content: space-between;

    color: #8992a4;

    font-size: 9px;
}


/* ================= MOBILE MENU ================= */

.mobile-menu {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: none;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 25px;

    background: rgba(248,250,255,.97);

    backdrop-filter: blur(20px);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu button {
    position: absolute;

    top: 25px;
    right: 25px;

    border: 0;

    background: transparent;

    color: #172033;

    font-size: 25px;
}

.mobile-menu a {
    color: #273247;

    text-decoration: none;

    font-size: 22px;

    font-weight: 800;
}

.mobile-menu a:hover {
    color: #6d28d9;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1000px) {

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mini-tools {
        grid-template-columns: repeat(3, 1fr);
    }

    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    .header {
        padding: 0 20px;
    }

    .nav {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        min-height: 560px;

        padding: 60px 15px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 14px;
    }

    .search-box {
        height: 58px;
    }

    .search-box button {
        padding: 0 15px;
    }

    .search-box input {
        min-width: 0;

        font-size: 12px;
    }

    .stats-section {
        margin-top: -10px;
    }

    .section {
        padding: 50px 15px;
    }

    .section-heading {
        align-items: start;
        gap: 15px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .mini-tools {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .category {
        padding: 18px;
    }

    .cta {
        margin: 30px 15px 60px;

        padding: 30px;

        flex-direction: column;

        align-items: start;

        gap: 25px;
    }

    .cta h2 {
        font-size: 29px;
    }

    .footer-main {
        flex-direction: column;
    }

    .footer-links {
        gap: 40px;

        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 8px;
    }
}


@media (max-width: 420px) {

    .stats-section {
        grid-template-columns: 1fr;
    }

    .mini-tools {
        grid-template-columns: 1fr 1fr;
    }

    .logo {
        font-size: 14px;
    }

    .tagline {
        font-size: 8px;
    }

    .logo-icon {
        width: 39px;
        height: 39px;
        font-size: 20px;
    }

    .search-suggestions {
        display: none;
    }
}


/* ================= LINK FIX ================= */

.tool-btn,
.mini-tool {
    text-decoration: none;
}