
/* ==========================================
   MY WEBSITE HUB
   BLACK + PURPLE PREMIUM DESIGN
========================================== */

:root {
    --page-bg: #050505;
    --surface: #0d0d10;
    --surface-hover: #17171c;
    --text: #f6f6fa;
    --muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.10);
    --purple: #873cff;
    --purple-light: #aa68ff;
}

/* GLOBAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--page-bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}


/* NAVIGATION */

.navbar {
    height: 62px;
    padding: 0 4.5%;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    background: rgba(5, 5, 5, 0.94);
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 100;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 12px;

    color: white;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.brand-mark,
.footer-mark {
    display: grid;
    place-items: center;

    color: #a56aff;
    font-size: 36px;
    font-weight: 950;
    font-style: italic;
    line-height: 1;

    text-shadow: 0 0 18px rgba(139, 65, 255, 0.55);
}

.brand-highlight {
    color: #a56aff;
}

.nav-links {
    height: 100%;

    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    height: 100%;
    padding: 0 18px;

    display: flex;
    align-items: center;
    gap: 8px;

    position: relative;

    color: #c0c0c8;
    font-size: 13px;
    font-weight: 500;

    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #a76bff;
}

.nav-link.active::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #8d3eff,
        #b36bff,
        transparent
    );
}

.nav-chevron {
    font-size: 15px;
}

.theme-toggle {
    justify-self: end;

    width: 43px;
    height: 43px;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: #121216;
    color: #ffffff;

    font-size: 23px;
    cursor: pointer;

    transition: 0.25s ease;
}

.theme-toggle:hover {
    background: #21172f;
    border-color: #8050d9;
    transform: rotate(20deg);
}


/* HERO */

.hero {
    min-height: 315px;
    padding: 35px 20px 25px;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.hero::before {
    content: "";

    position: absolute;
    top: -170px;
    left: -12%;

    width: 75%;
    height: 330px;

    border-bottom: 2px solid rgba(113, 48, 255, 0.75);
    border-radius: 0 0 55% 42%;

    transform: rotate(9deg);

    box-shadow: 0 15px 35px rgba(115, 48, 255, 0.15);

    z-index: -1;
    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;
    top: -165px;
    right: -12%;

    width: 75%;
    height: 340px;

    border-bottom: 2px solid rgba(139, 76, 255, 0.8);
    border-radius: 0 0 45% 55%;

    transform: rotate(-10deg);

    box-shadow: 0 15px 40px rgba(116, 54, 255, 0.18);

    z-index: -1;
    pointer-events: none;
}

.hero-waves {
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        radial-gradient(
            ellipse at 15% 65%,
            rgba(75, 31, 160, 0.11),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 88% 62%,
            rgba(78, 34, 165, 0.14),
            transparent 40%
        ),
        #050505;

    pointer-events: none;
}

.hero-content {
    width: 100%;
    max-width: 850px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    width: fit-content;

    margin: 0 auto 9px;
    padding: 6px 16px;

    display: flex;
    align-items: center;
    gap: 8px;

    color: #eeeeee;
    background: #17171b;

    border: 1px solid #29292e;
    border-radius: 30px;

    font-size: 11px;
    font-weight: 600;
}

.hero-badge > span:first-child {
    font-size: 14px;
}

.badge-separator {
    color: #8e8e99;
}

.hero h1 {
    margin: 7px 0 2px;

    color: #f8f8fb;

    font-size: clamp(42px, 5.5vw, 61px);
    font-weight: 850;
    letter-spacing: -2.5px;
    line-height: 1.2;
}

.hero h1 span {
    color: transparent;

    background: linear-gradient(
        100deg,
        #863bff,
        #ba5eff,
        #8d4bff
    );

    background-clip: text;
    -webkit-background-clip: text;
}

.hero-description {
    margin-top: 2px;

    color: #b6b6c0;
    font-size: 16px;
}


/* SEARCH BAR */

.search-box {
    width: min(100%, 745px);
    height: 49px;

    margin: 18px auto 0;
    padding: 4px 5px 4px 21px;

    display: flex;
    align-items: center;
    gap: 14px;

    background: rgba(10, 10, 13, 0.94);

    border: 1px solid #33333a;
    border-radius: 35px;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);

    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box:focus-within {
    border-color: #8f45ff;

    box-shadow:
        0 0 0 3px rgba(133, 56, 255, 0.10),
        0 0 24px rgba(133, 56, 255, 0.12);
}

.search-icon {
    color: #c8c8d0;
    font-size: 24px;
    line-height: 1;
}

.search-box input {
    flex: 1;
    min-width: 0;

    border: none;
    outline: none;

    background: transparent;
    color: white;

    font-size: 14px;
}

.search-box input::placeholder {
    color: #85858f;
}

.search-box input::-webkit-search-cancel-button {
    cursor: pointer;
}

.search-submit {
    flex-shrink: 0;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    background: linear-gradient(135deg, #a02fff, #7024e8);
    color: white;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 0 18px rgba(135, 54, 255, 0.4);

    transition: transform 0.2s ease;
}

.search-submit:hover {
    transform: scale(1.08);
}


/* COLLECTION */

.collection {
    width: 100%;
    max-width: 1540px;

    margin: 0 auto;
    padding: 0 26px 28px;
}


/* CATEGORY BUTTONS */

.categories {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin: 0 auto 23px;
}

.category {
    min-height: 40px;
    padding: 8px 19px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: #d2d2da;
    background: linear-gradient(145deg, #121215, #0a0a0d);

    border: 1px solid #29292f;
    border-radius: 30px;

    font-size: 12px;
    font-weight: 550;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.category > span {
    font-size: 14px;
}

.category:hover {
    color: white;
    background: #1a1723;
    border-color: #6540a5;
    transform: translateY(-2px);
}

.category.active {
    color: white;

    background: linear-gradient(
        110deg,
        #7024e8,
        #9638fa
    );

    border-color: #a35bff;

    box-shadow:
        0 0 15px rgba(129, 46, 255, 0.3),
        inset 0 0 12px rgba(255, 255, 255, 0.08);
}


/* WEBSITE GRID */

.websites {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 19px;
}


/* WEBSITE CARD */

.website-card {
    min-width: 0;
    min-height: 171px;

    padding: 15px 17px 12px;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    position: relative;
    overflow: hidden;
    isolation: isolate;

    background: linear-gradient(
        145deg,
        #111114,
        #08080a
    );

    border: 1px solid #25252b;
    border-radius: 16px;

    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.website-card::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    background: radial-gradient(
        circle at 100% 0%,
        rgba(125, 72, 255, 0.09),
        transparent 57%
    );

    opacity: 0.8;
    pointer-events: none;
}

.website-card:hover {
    transform: translateY(-5px);

    border-color: rgba(143, 78, 255, 0.55);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.32),
        0 0 19px rgba(126, 50, 255, 0.12);
}


/* CARD TOP */

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 8px;
}

.card-icon {
    width: 49px;
    height: 49px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    color: white;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;

    font-size: 23px;
    font-weight: 800;

    box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.15);
}

.card-category {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    padding: 4px 10px;

    color: #c6c6d0;
    background: #19191e;

    border: 1px solid #26262d;
    border-radius: 20px;

    font-size: 10px;
    line-height: 1.5;
}


/* CARD ICON COLOURS */

.icon-tools {
    background: linear-gradient(135deg, #168aff, #1745dc);
}

.icon-utilities {
    background: linear-gradient(135deg, #17c878, #078d43);
}

.icon-converters {
    background: linear-gradient(135deg, #ab59ff, #5135d4);
}

.icon-design {
    background: linear-gradient(135deg, #fa4eaa, #c51b78);
}

.icon-development {
    background: linear-gradient(135deg, #5cdc4b, #158c35);
}

.icon-others {
    background: linear-gradient(135deg, #f59a32, #d65c15);
}


/* CARD TEXT */

.website-card h3 {
    margin-top: 9px;

    color: #f5f5fa;

    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.3px;
}

.website-card p {
    margin-top: 2px;

    color: #b3b3bc;

    font-size: 11px;
    line-height: 1.55;
}


/* CARD ACTION */

.card-action {
    min-height: 35px;

    margin-top: auto;
    padding: 6px 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    color: #f0eff7;
    background: linear-gradient(145deg, #17171b, #101014);

    border: 1px solid #26262d;
    border-radius: 25px;

    font-size: 11px;
    font-weight: 600;

    transition: 0.25s ease;
}

.card-action > span {
    color: #b68bff;
    font-size: 15px;
}

.card-action.is-disabled {
    color: #a7a7b1;
    cursor: default;
}

.website-card:hover .card-action.is-disabled {
    border-color: #564177;
    background: #1b1725;
}


/* EMPTY STATE */

.empty-state {
    padding: 55px 20px;
    text-align: center;

    border: 1px dashed #33333d;
    border-radius: 15px;
    background: #0d0d11;
}

.empty-state[hidden] {
    display: none;
}

.empty-icon {
    color: #a16bff;
    font-size: 38px;
}

.empty-state h3 {
    margin-top: 8px;
    font-size: 19px;
}

.empty-state p {
    color: var(--muted);
    font-size: 12px;
}


/* SHOW MORE */

.load-more-wrap {
    padding-top: 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.load-more-wrap p {
    color: #85858f;
    font-size: 11px;
}

.load-more-button {
    padding: 10px 22px;

    color: white;
    background: #15121d;

    border: 1px solid #5b3d8e;
    border-radius: 25px;

    font-size: 12px;
    font-weight: 650;

    cursor: pointer;
    transition: 0.2s ease;
}

.load-more-button:hover {
    background: #281a40;
    border-color: #9c61ff;
    transform: translateY(-2px);
}

.load-more-button[hidden] {
    display: none;
}


/* PRIVATE WEBSITE BANNER */

.private-section {
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 26px 16px;
}

.private-banner {
    min-height: 87px;
    padding: 15px 20px;

    display: flex;
    align-items: center;
    gap: 18px;

    position: relative;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            ellipse at 100% 50%,
            rgba(112, 48, 255, 0.19),
            transparent 40%
        ),
        linear-gradient(110deg, #100d18, #08080b);

    border: 1px solid rgba(145, 76, 255, 0.43);
    border-radius: 16px;

    box-shadow:
        0 0 22px rgba(103, 47, 200, 0.10);
}

.private-banner::after {
    content: "";

    position: absolute;
    width: 360px;
    height: 150px;

    right: 1%;
    top: -115px;

    border-bottom: 1px solid rgba(145, 88, 255, 0.45);
    border-radius: 50%;

    transform: rotate(-15deg);

    pointer-events: none;
    z-index: -1;
}

.private-lock {
    width: 62px;
    height: 62px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    background: radial-gradient(
        circle,
        rgba(139, 66, 255, 0.30),
        rgba(80, 28, 160, 0.08)
    );

    border: 1px solid rgba(158, 91, 255, 0.48);
    border-radius: 50%;

    box-shadow: 0 0 20px rgba(133, 61, 255, 0.22);

    font-size: 25px;
}

.private-info {
    flex: 1;
    min-width: 0;
}

.private-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.private-title-row h2 {
    color: white;
    font-size: 19px;
    font-weight: 750;
}

.private-badge {
    padding: 4px 12px;

    color: white;
    background: linear-gradient(110deg, #7928e8, #a03bff);

    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;
}

.private-info p {
    margin-top: 2px;

    color: #a5a5af;
    font-size: 11px;
}

.private-button {
    flex-shrink: 0;

    padding: 11px 16px;

    color: white;
    background: linear-gradient(110deg, #7726e8, #9e34ff);

    border: 0;
    border-radius: 10px;

    font-size: 11px;
    font-weight: 700;

    opacity: 0.8;
    cursor: not-allowed;
}

.private-button span {
    margin-left: 6px;
}


/* FOOTER */

.footer {
    margin-top: 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    min-height: 55px;

    padding: 8px 4.5%;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 15px;
}

.footer-brand {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #e9e9ed;
    font-size: 11px;
    font-weight: 650;
}

.footer-mark {
    font-size: 27px;
}

.copyright {
    color: #92929c;
    text-align: center;
    font-size: 10px;
}

.heart {
    color: #922eff;
    font-size: 15px;
    margin-left: 3px;
}

.back-to-top {
    justify-self: end;

    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    color: #c8b4ff;
    background: #16121f;

    border: 1px solid #36234f;
    border-radius: 50%;

    font-size: 17px;
}


/* LIGHT THEME OPTION */

body.light-theme {
    --page-bg: #f1f2f8;
    --surface: #ffffff;
    --surface-hover: #ececf5;
    --text: #202033;
    --muted: #696a7c;
    --border: rgba(25, 25, 45, 0.13);
}

body.light-theme .navbar,
body.light-theme .footer {
    background: #ffffff;
}

body.light-theme .brand,
body.light-theme .brand-highlight,
body.light-theme .nav-link,
body.light-theme .hero h1,
body.light-theme .section-heading h2 {
    color: #202033;
}

body.light-theme .hero {
    background: transparent;
}

body.light-theme .hero-description,
body.light-theme .section-heading p {
    color: #646477;
}

body.light-theme .search-box,
body.light-theme .category,
body.light-theme .website-card {
    color: #202033;
    background: #ffffff;
    border-color: #dedeea;
}

body.light-theme .search-box input {
    color: #202033;
}

body.light-theme .website-card h3 {
    color: #202033;
}

body.light-theme .website-card p,
body.light-theme .footer p {
    color: #66677a;
}

body.light-theme .card-action {
    color: #26243a;
    background: #f3f2fa;
    border-color: #dddded;
}

body.light-theme .private-banner {
    background: linear-gradient(110deg, #eee8ff, #ffffff);
}

body.light-theme .private-title-row h2 {
    color: #29223f;
}

body.light-theme .private-info p {
    color: #646077;
}


/* TABLET */

@media (max-width: 1200px) {
    .websites {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 950px) {
    .websites {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .categories {
        gap: 9px;
    }
}

@media (max-width: 700px) {
    .websites {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .navbar {
        padding: 0 20px;
    }

    .nav-link {
        padding: 0 10px;
        font-size: 11px;
    }

    .collection,
    .private-section {
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* MOBILE */

@media (max-width: 520px) {
    .navbar {
        height: 60px;
        grid-template-columns: 1fr auto;
        padding: 0 15px;
    }

    .brand {
        font-size: 15px;
        gap: 8px;
    }

    .brand-mark {
        font-size: 29px;
    }

    .nav-links {
        display: none;
    }

    .theme-toggle {
        width: 37px;
        height: 37px;
        font-size: 20px;
    }

    .hero {
        min-height: 285px;
        padding: 42px 17px 25px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1.9px;
    }

    .hero-description {
        max-width: 340px;
        margin: 5px auto 0;
        font-size: 12px;
    }

    .hero-badge {
        font-size: 9px;
    }

    .search-box {
        height: 47px;
        margin-top: 19px;
        padding-left: 14px;
    }

    .search-submit {
        width: 37px;
        height: 37px;
    }

    .collection,
    .private-section {
        padding-left: 13px;
        padding-right: 13px;
    }

    .categories {
        justify-content: flex-start;
        gap: 7px;
        margin-bottom: 17px;
    }

    .category {
        min-height: 35px;
        padding: 7px 11px;
        font-size: 10px;
    }

    .websites {
        gap: 10px;
    }

    .website-card {
        min-height: 170px;
        padding: 12px;
        border-radius: 13px;
    }

    .card-icon {
        width: 41px;
        height: 41px;
        font-size: 19px;
    }

    .card-number {
        font-size: 21px;
    }

    .card-category {
        max-width: 75px;
        padding: 3px 7px;
        font-size: 8px;
    }

    .website-card h3 {
        font-size: 13px;
    }

    .website-card p {
        font-size: 10px;
    }

    .card-action {
        min-height: 31px;
        padding: 5px 7px;
        font-size: 9px;
    }

    .private-banner {
        padding: 14px;
        flex-wrap: wrap;
        gap: 11px;
    }

    .private-lock {
        width: 46px;
        height: 46px;
        font-size: 19px;
    }

    .private-info {
        flex-basis: calc(100% - 60px);
    }

    .private-title-row h2 {
        font-size: 15px;
    }

    .private-info p {
        font-size: 10px;
    }

    .private-button {
        width: 100%;
        padding: 10px;
    }

    .footer-inner {
        grid-template-columns: 1fr auto;
        padding: 12px 15px;
    }

    .copyright {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: left;
    }
}


/* VERY SMALL SCREENS */

@media (max-width: 350px) {
    .websites {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }
}


/* ACCESSIBILITY */

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #a76bff;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}


/* COMPLETE LIGHT THEME */

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-color: #dedee8;
}

body.light-theme .brand,
body.light-theme .nav-link {
    color: #252438;
}

body.light-theme .brand-highlight {
    color: #8150df;
}

body.light-theme .theme-toggle {
    color: #29213f;
    background: white;
    border-color: #dedee8;
}

body.light-theme .hero-badge {
    color: #493277;
    background: #eee8ff;
    border-color: #d9caff;
}

body.light-theme .hero h1 {
    color: #242033;
}

body.light-theme .hero-description {
    color: #686579;
}

body.light-theme .hero-waves {
    background:
        radial-gradient(ellipse at 15% 65%, #e8dcff, transparent 45%),
        radial-gradient(ellipse at 88% 62%, #e5eaff, transparent 45%),
        #f7f7fb;
}

body.light-theme .search-box {
    background: white;
    border-color: #dcdce8;
}

body.light-theme .search-box input {
    color: #252438;
}

body.light-theme .category {
    color: #55536a;
    background: white;
    border-color: #dedee8;
}

body.light-theme .category.active {
    color: white;
    background: linear-gradient(110deg, #7024e8, #9638fa);
}

body.light-theme .website-card {
    background: #ffffff;
    border-color: #dedee8;
    box-shadow: 0 6px 20px rgba(20, 20, 50, 0.06);
}

body.light-theme .website-card h3 {
    color: #252438;
}

body.light-theme .website-card p {
    color: #69677a;
}

body.light-theme .card-category {
    color: #55536a;
    background: #f2f0f8;
    border-color: #e3e0ed;
}

body.light-theme .card-action {
    color: #39334e;
    background: #f5f3fa;
    border-color: #e2deed;
}

body.light-theme .private-banner {
    background: linear-gradient(110deg, #eee5ff, #ffffff);
    border-color: #d7c4ff;
}

body.light-theme .private-title-row h2 {
    color: #302344;
}

body.light-theme .private-info p {
    color: #706983;
}

body.light-theme .footer {
    background: white;
    border-color: #dedee8;
}

body.light-theme .footer-brand {
    color: #252438;
}

body.light-theme .copyright {
    color: #777488;
}


/* FIX: COMING SOON BUTTON IN LIGHT MODE */

body.light-theme .website-card .card-action.is-disabled {
    color: #51406f !important;
    background: #eee8ff !important;
    border: 1px solid #d8c7ff !important;
    opacity: 1;
    -webkit-text-fill-color: #51406f;
}

/* Keep the button readable when hovering */

body.light-theme .website-card:hover .card-action.is-disabled {
    color: #ffffff !important;
    background: linear-gradient(
        110deg,
        #7651df,
        #9638fa
    ) !important;
    border-color: #9638fa !important;
    -webkit-text-fill-color: #ffffff;
}

/* Disabled button appearance */

body.light-theme .card-action.is-disabled:disabled {
    opacity: 1;
    cursor: not-allowed;
}


/* ==========================================
   NAVIGATION DROPDOWN
========================================== */

.nav-dropdown {
    height: 100%;
    position: relative;

    display: flex;
    align-items: center;
}

.nav-dropdown-toggle {
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);

    width: 195px;
    padding: 8px;

    display: grid;
    gap: 4px;

    background: #111116;
    border: 1px solid #34313e;
    border-radius: 13px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);

    z-index: 200;
}

.nav-dropdown-menu[hidden] {
    display: none;
}

.nav-category-option {
    width: 100%;
    min-height: 37px;

    justify-content: flex-start;

    padding: 8px 12px;

    color: #ccccd5;
    background: transparent;

    border: 1px solid transparent;
    border-radius: 8px;

    text-align: left;
    font-size: 12px;
}

.nav-category-option:hover,
.nav-category-option.active {
    color: white;
    background: #27183d;
    border-color: #55347f;
}


/* ==========================================
   ABOUT SECTION
========================================== */

.about-section {
    padding-bottom: 30px;
}

.about-panel {
    padding: 35px;

    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 40px;

    background:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(135, 60, 255, 0.17),
            transparent 55%
        ),
        linear-gradient(120deg, #111016, #09090c);

    border: 1px solid rgba(145, 76, 255, 0.25);
    border-radius: 17px;
}

.about-copy h2 {
    margin: 8px 0 12px;

    color: white;
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: -1px;
}

.about-copy h2 span {
    display: block;

    color: transparent;

    background: linear-gradient(
        90deg,
        #a16bff,
        #d18aff,
        #818cf8
    );

    background-clip: text;
    -webkit-background-clip: text;
}

.about-copy p {
    max-width: 520px;

    color: #a4a4b0;
    font-size: 12px;
    line-height: 1.9;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.about-highlight {
    min-height: 105px;
    padding: 15px 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;

    text-align: center;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.about-highlight strong {
    color: #b38aff;
    font-size: 25px;
    font-weight: 800;
}

.about-highlight span {
    color: #a4a4b0;
    font-size: 9px;
    line-height: 1.5;
}


/* ==========================================
   LIGHT THEME
========================================== */

body.light-theme .nav-dropdown-menu {
    background: white;
    border-color: #dedee8;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

body.light-theme .nav-category-option {
    color: #55536a;
}

body.light-theme .nav-category-option:hover,
body.light-theme .nav-category-option.active {
    color: white;
    background: #7651df;
}

body.light-theme .about-panel {
    background: linear-gradient(120deg, #eee8ff, #ffffff);
    border-color: #ddd0ff;
}

body.light-theme .about-copy h2 {
    color: #29243e;
}

body.light-theme .about-copy p,
body.light-theme .about-highlight span {
    color: #696579;
}

body.light-theme .about-highlight {
    background: rgba(255, 255, 255, 0.7);
    border-color: #ded9eb;
}


/* ==========================================
   MOBILE NAVIGATION AND ABOUT
========================================== */

@media (max-width: 520px) {

    .navbar {
        grid-template-columns: auto 1fr auto;
        gap: 7px;
    }

    .nav-links {
        display: flex;
        justify-content: flex-end;
        gap: 0;
        min-width: 0;
    }

    .nav-links > .nav-link:first-child {
        display: none;
    }

    .nav-links > .nav-link:last-child {
        padding: 0 7px;
    }

    .nav-link {
        padding: 0 8px;
        font-size: 10px;
    }

    .nav-dropdown-toggle {
        padding: 0 8px;
    }

    .nav-dropdown-menu {
        left: auto;
        right: 0;
        transform: none;
    }

    .about-panel {
        padding: 23px 16px;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .about-copy h2 {
        font-size: 23px;
    }

    .about-highlight {
        min-height: 90px;
        padding: 10px 5px;
    }

    .about-highlight strong {
        font-size: 21px;
    }
}

@media (max-width: 360px) {
    .nav-links > .nav-link:last-child {
        display: none;
    }
}



/* TOP NAVIGATION SCROLL */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

#top {
    scroll-margin-top: 0;
}

/* LOGO AND HOME LINK */

.brand,
.nav-link[href="#top"] {
    cursor: pointer;
}


/* ==========================================
   MOBILE HAMBURGER NAVIGATION
========================================== */

.mobile-menu-toggle {
    display: none;

    width: 38px;
    height: 38px;

    color: white;
    background: #15121f;

    border: 1px solid #38274f;
    border-radius: 9px;

    font-size: 21px;
    cursor: pointer;
}


/* MOBILE MENU */

@media (max-width: 520px) {

    .navbar {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .nav-links {
        display: none;

        position: absolute;
        top: 60px;
        left: 0;
        right: 0;

        height: auto;
        padding: 12px 18px;

        flex-direction: column;
        align-items: stretch;
        gap: 5px;

        background: #0d0d12;
        border-bottom: 1px solid #292934;

        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
    }

    .navbar.mobile-menu-open .nav-links {
        display: flex;
    }

    .nav-links > .nav-link {
        display: flex;
        width: 100%;
        height: 42px;
        padding: 0 12px;
        justify-content: flex-start;
    }

    .nav-dropdown {
        width: 100%;
        height: auto;
        display: block;
    }

    .nav-dropdown-toggle {
        width: 100%;
        height: 42px;
        justify-content: space-between;
        text-align: left;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        transform: none;
        margin-top: 5px;

        background: #15121f;
        box-shadow: none;
    }

    body.light-theme .nav-links {
        background: #ffffff;
        border-color: #dedee8;
    }

    body.light-theme .mobile-menu-toggle {
        color: #29213f;
        background: #f3efff;
        border-color: #dedee8;
    }
}


/* ==========================================
   PROFESSIONAL EMPTY SEARCH EXPERIENCE
========================================== */

.empty-state {
    padding: 65px 20px;
    text-align: center;
    background:
        radial-gradient(
            circle at center,
            rgba(135, 60, 255, 0.10),
            transparent 65%
        ),
        #0d0d11;
    border: 1px solid #292432;
    border-radius: 17px;
}

.empty-state[hidden] {
    display: none;
}

.empty-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 16px;

    display: grid;
    place-items: center;

    color: #bc91ff;
    background: #211533;
    border: 1px solid #50336f;
    border-radius: 50%;

    font-size: 32px;
}

.empty-state h3 {
    color: #ffffff;
    font-size: 21px;
    font-weight: 750;
}

.empty-state p {
    max-width: 380px;
    margin: 8px auto 20px;

    color: #9999a8;
    font-size: 12px;
    line-height: 1.8;
}

.clear-filters-button {
    padding: 11px 19px;

    color: #ffffff;
    background: linear-gradient(110deg, #7024e8, #9638fa);

    border: 1px solid #a35bff;
    border-radius: 25px;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.25s ease;
}

.clear-filters-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(135, 60, 255, 0.3);
}

.clear-filters-button span {
    margin-left: 8px;
}

/* LIGHT MODE */

body.light-theme .empty-state {
    background: #ffffff;
    border-color: #ded6ef;
}

body.light-theme .empty-state h3 {
    color: #29243e;
}

body.light-theme .empty-state p {
    color: #696579;
}



/* ==========================================
   WEBSITE PROGRESS TRACKER
========================================== */

.progress-section {
    max-width: 1000px;
    margin: 0 auto 75px;
}

.progress-panel {
    padding: 25px 30px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(142, 67, 255, 0.17),
            transparent 50%
        ),
        linear-gradient(120deg, #121019, #0b0b10);

    border: 1px solid rgba(145, 76, 255, 0.30);
    border-radius: 17px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}

.progress-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.progress-heading h2 {
    margin-top: 5px;
    color: white;
    font-size: 22px;
    font-weight: 750;
}

.progress-heading p {
    margin-top: 3px;
    color: #9999a8;
    font-size: 11px;
}

.progress-percentage {
    color: #bd91ff;
    font-size: 35px;
    font-weight: 850;
}

.progress-information {
    margin: 22px 0 14px;

    display: flex;
    gap: 35px;
    flex-wrap: wrap;
}

.progress-information div {
    display: flex;
    flex-direction: column;
}

.progress-information strong {
    color: white;
    font-size: 19px;
}

.progress-information span {
    color: #9999a8;
    font-size: 10px;
}

.progress-track {
    height: 10px;
    overflow: hidden;

    background: #25212e;

    border: 1px solid #363040;
    border-radius: 20px;
}

.progress-fill {
    width: 0%;
    height: 100%;

    background: linear-gradient(
        90deg,
        #7024e8,
        #a044ff,
        #df70ff
    );

    border-radius: 20px;

    box-shadow: 0 0 15px rgba(153, 65, 255, 0.6);

    transition: width 0.6s ease;
}

.progress-note {
    margin-top: 11px;
    color: #92919f;
    font-size: 10px;
}

/* LIGHT MODE */

body.light-theme .progress-panel {
    background: linear-gradient(120deg, #eee7ff, #ffffff);
    border-color: #d9c7ff;
}

body.light-theme .progress-heading h2,
body.light-theme .progress-information strong {
    color: #29243e;
}

body.light-theme .progress-heading p,
body.light-theme .progress-information span,
body.light-theme .progress-note {
    color: #706983;
}

body.light-theme .progress-track {
    background: #ded6ed;
    border-color: #d3c9e5;
}

/* MOBILE */

@media (max-width: 520px) {

    .progress-section {
        margin-bottom: 55px;
    }

    .progress-panel {
        padding: 20px 17px;
    }

    .progress-heading h2 {
        font-size: 19px;
    }

    .progress-percentage {
        font-size: 29px;
    }

    .progress-information {
        gap: 22px;
    }

    .progress-information strong {
        font-size: 17px;
    }

}


/* ==========================================
   FINAL CSS FIXES
   MY WEBSITE HUB
========================================== */


/* FIX CATEGORY BUTTON TRANSITION */

.category {
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* FIX MOBILE NAVIGATION */

@media (max-width: 520px) {

    /* Show Home when hamburger menu is open */
    .navbar.mobile-menu-open
    .nav-links > .nav-link:first-child {
        display: flex !important;
    }

}


/* SHOW ABOUT ON SMALL SCREENS */

@media (max-width: 360px) {

    /* Show About when hamburger menu is open */
    .navbar.mobile-menu-open
    .nav-links > .nav-link:last-child {
        display: flex !important;
    }

}


/* ENSURE MENU ITEMS ARE VISIBLE */

@media (max-width: 520px) {

    .navbar.mobile-menu-open .nav-links {
        display: flex;
    }

}