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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8f7f4;
    color: #111827;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

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

button,
input,
select {
    font: inherit;
}


/* =========================================
   MAIN LAYOUT
========================================= */

.portfolio-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}


/* =========================================
   SIDEBAR
========================================= */

.sidebar {
    height: 100vh;
    height: 100dvh;

    position: sticky;
    top: 0;

    background: #0f1420;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 24px 20px 18px;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-top {
    flex-shrink: 0;
}

.sidebar-bottom {
    flex-shrink: 0;
}


/* =========================================
   LOGO
========================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.logo-mark {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -4px;
    color: white;
}

.logo-text h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.15;
}

.logo-text p {
    margin-top: 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e6ff72;
}


/* =========================================
   SIDEBAR NAVIGATION
========================================= */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 40px;

    padding: 0 14px;

    border: none;
    border-radius: 50px;

    background: transparent;

    color: #f5f5f5;

    font-size: 13px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.nav-item.active {
    background: #e6ff72;
    color: #111827;
}

.nav-icon {
    width: 20px;

    text-align: center;

    font-size: 18px;
}

.nav-divider {
    height: 1px;

    margin: 10px 4px;

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


/* MOBILE THEME BUTTON IS HIDDEN ON DESKTOP */

.mobile-theme-button {
    display: none;
}


/* =========================================
   SIDEBAR CONTACT CARD
========================================= */

.contact-card {
    margin-top: 18px;

    padding: 26px 20px;

    min-height: 150px;

    border-radius: 18px;

    background: #171d2b;
}

.contact-card p {
    margin-bottom: 22px;

    font-family: Georgia, serif;
    font-style: italic;

    font-size: 18px;
    line-height: 1.4;
}

.contact-button {
    display: block;

    width: 100%;

    padding: 13px 12px;

    border-radius: 10px;

    text-align: center;

    background: #e6ff72;
    color: #111827;

    font-size: 12px;
    font-weight: bold;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    background: #ddf765;
}


/* =========================================
   SOCIAL LINKS
========================================= */

.social-links {
    display: flex;
    justify-content: space-around;

    margin-top: 14px;
}

.social-links a {
    width: 30px;
    height: 30px;

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

    border-radius: 50%;

    font-size: 14px;

    color: white;

    transition: background 0.2s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* =========================================
   MAIN CONTENT
========================================= */

.main-content {
    min-width: 0;
}


/* =========================================
   TOPBAR
========================================= */

.topbar {
    height: 80px;

    display: flex;
    align-items: center;

    gap: 24px;

    padding: 0 30px;

    border-bottom: 1px solid #e5e3df;

    background: #fbfaf8;

    position: sticky;
    top: 0;

    z-index: 20;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}


/* =========================================
   SEARCH
========================================= */

.search-container {
    width: 100%;
    max-width: 620px;
    height: 42px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 16px;

    border: 1px solid #d8d6d2;
    border-radius: 50px;

    background: white;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.search-icon {
    color: #777b84;

    font-size: 18px;
}

.search-container input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: #111827;

    font-size: 13px;
}

.search-container input::placeholder {
    color: #999ca4;
}


/* =========================================
   TOP NAVIGATION
========================================= */

.top-navigation {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 28px;

    font-size: 13px;
}

.top-navigation a {
    transition: color 0.2s ease;
}

.top-navigation a:hover {
    color: #8b67f7;
}

.theme-button {
    width: 38px;
    height: 38px;

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

    border: 1px solid #dedbd7;
    border-radius: 50%;

    background: white;
    color: #111827;

    font-size: 17px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.theme-button:hover {
    transform: rotate(10deg);
    border-color: #8b67f7;
}

.profile-avatar {
    width: 42px;
    height: 42px;

    border-radius: 50%;

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

    background: #e6ff72;
    color: #111827;

    font-size: 12px;
    font-weight: bold;
}


/* =========================================
   PAGE CONTENT
========================================= */

.page-content {
    padding: 0 30px 40px;
}


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

.hero-section {
    min-height: 310px;

    display: grid;

    grid-template-columns:
        0.95fr 1.05fr;

    align-items: center;

    gap: 40px;

    padding: 36px 0 30px;

    border-bottom: 1px solid #e5e3df;

    overflow: hidden;

    transition: border-color 0.25s ease;
}

.hero-text h1 {
    margin-bottom: 26px;

    font-size:
        clamp(48px, 6vw, 76px);

    line-height: 0.95;

    letter-spacing: -4px;
}

.hero-text h1 span {
    position: relative;

    color: #8b67f7;

    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 500;
}

.hero-text h1 span::after {
    content: "";

    position: absolute;

    left: 8px;
    right: -2px;

    bottom: -8px;

    height: 4px;

    background: #e6ff72;

    transform: rotate(-2deg);
}

.hero-text p {
    max-width: 480px;

    margin-bottom: 26px;

    color: #383b43;

    font-size: 16px;

    line-height: 1.6;
}


/* =========================================
   HERO BUTTON
========================================= */

.hero-button {
    display: inline-flex;
    align-items: center;

    gap: 24px;

    padding: 14px 22px;

    border-radius: 12px;

    background: #111827;
    color: white;

    font-size: 13px;
    font-weight: bold;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.hero-button span {
    color: #e6ff72;

    font-size: 18px;
}

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

    background: #1a2232;
}


/* =========================================
   HERO VISUAL
========================================= */

.hero-visual {
    position: relative;

    width: 620px;
    max-width: 100%;
    min-height: 250px;

    justify-self: end;
}

.hero-shape {
    position: absolute;

    width: 330px;
    height: 220px;

    right: 140px;
    top: 20px;

    background: #d9c8ff;

    border-radius:
        48% 52% 58% 42%;

    transform: rotate(-7deg);
}


/* =========================================
   DESKTOP MOCKUP
========================================= */

.desktop-mockup {
    position: absolute;

    width: 340px;
    height: 210px;

    right: 80px;
    top: 22px;

    padding: 22px;

    border: 8px solid #e6e3df;

    border-radius: 18px;

    background: #101622;

    box-shadow:
        0 24px 50px
        rgba(40, 25, 85, 0.18);

    transform: rotate(-5deg);

    z-index: 2;
}

.mockup-header {
    width: 100%;
    height: 18px;

    margin-bottom: 18px;

    border-radius: 20px;

    background: #1b2434;
}

.mockup-content {
    display: grid;

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

    gap: 12px;
}

.mockup-content div {
    height: 58px;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(139, 103, 247, 0.85),
            rgba(139, 103, 247, 0.2)
        ),
        #182133;
}


/* =========================================
   MOBILE MOCKUP
========================================= */

.mobile-mockup {
    position: absolute;

    width: 120px;
    height: 205px;

    right: 18px;
    bottom: -10px;

    padding: 12px;

    border: 7px solid #e6e3df;

    border-radius: 28px;

    background: #111827;

    box-shadow:
        0 18px 40px
        rgba(20, 20, 35, 0.18);

    transform: rotate(8deg);

    z-index: 3;
}

.mobile-screen {
    width: 100%;
    height: 100%;

    border-radius: 18px;

    background:
        radial-gradient(
            circle at center 40%,
            #8b67f7 0,
            #8b67f7 24%,
            #282b42 25%,
            #111827 54%
        );
}


/* =========================================
   STICKY NOTE
========================================= */

.sticky-note {
    position: absolute;

    width: 150px;

    right: 455px;
    top: 92px;

    padding: 20px 18px;

    background: #e6ff72;
    color: #111827;

    font-family: Georgia, serif;
    font-style: italic;

    font-size: 17px;
    line-height: 1.45;

    box-shadow:
        0 16px 32px
        rgba(75, 72, 40, 0.15);

    transform: rotate(-4deg);

    z-index: 4;
}


/* =========================================
   MOBILE PROJECT FILTERS
========================================= */

.mobile-project-filters {
    display: none;
}


/* =========================================
   PROJECT SECTIONS
========================================= */

.projects-section {
    padding: 28px 0 18px;

    border-bottom:
        1px solid #e5e3df;

    transition: border-color 0.25s ease;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 22px;

    font-weight: 700;

    letter-spacing: -0.5px;
}

.section-header > a {
    color: #555862;

    font-size: 12px;

    transition: color 0.2s ease;
}

.section-header > a:hover {
    color: #8b67f7;
}


/* =========================================
   PROJECT GRID
========================================= */

.projects-grid {
    display: grid;

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

    gap: 18px;
}


/* =========================================
   PROJECT CARD
========================================= */

.project-card {
    min-width: 0;
}

.project-link {
    display: block;
}


/* =========================================
   PROJECT IMAGE
========================================= */

.project-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

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

    overflow: hidden;

    border-radius: 14px;

    background: #111827;

    color: white;

    font-size: 13px;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.project-card:hover .project-image {
    transform: translateY(-3px);

    box-shadow:
        0 12px 28px
        rgba(17, 24, 39, 0.12);
}


/* =========================================
   PROJECT THUMBNAILS
========================================= */

.project-thumbnail {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    background: #111827;
}


/* =========================================
   IMAGE FALLBACK
========================================= */

.fallback-text {
    display: none;
}

.project-image.image-fallback {
    background:
        linear-gradient(
            135deg,
            #5f45a7,
            #9b82f4
        );
}

.project-image.image-fallback
.fallback-text {
    display: block;

    color: white;

    font-size: 14px;
    font-weight: 600;
}


/* =========================================
   PROJECT DURATION
========================================= */

.project-duration {
    position: absolute;

    right: 8px;
    bottom: 8px;

    padding: 4px 7px;

    border-radius: 5px;

    background:
        rgba(10, 12, 18, 0.88);

    color: white;

    font-size: 11px;

    z-index: 2;
}


/* =========================================
   PROJECT INFORMATION
========================================= */

.project-info {
    padding-top: 10px;
}

.project-title-row {
    display: flex;
    align-items: flex-start;

    gap: 8px;
}

.project-title-row h3 {
    flex: 1;

    font-size: 14px;

    line-height: 1.35;

    font-weight: 700;
}

.project-title-row h3 a {
    color: inherit;

    transition: color 0.2s ease;
}

.project-title-row h3 a:hover {
    color: #8b67f7;
}

.project-menu-button {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

    border: none;

    border-radius: 50%;

    background: transparent;

    color: #171b24;

    font-size: 18px;

    cursor: pointer;
}

.project-menu-button:hover {
    background: #ece9e4;
}

.project-info p {
    margin-top: 6px;

    color: #6e7179;

    font-size: 11px;
}

.project-info > span {
    display: block;

    margin-top: 4px;

    color: #8a8c94;

    font-size: 11px;
}


/* =========================================
   EMPTY PROJECT MESSAGE
========================================= */

.empty-project-message {
    grid-column: 1 / -1;

    padding: 40px 20px;

    border: 1px dashed #d8d6d2;

    border-radius: 14px;

    color: #777b84;

    text-align: center;
}


/* =========================================
   SORT
========================================= */

.sort-container {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #6e7179;

    font-size: 12px;
}

.sort-container select {
    padding:
        8px 32px 8px 14px;

    border:
        1px solid #dedbd6;

    border-radius: 50px;

    background: white;

    color: #33363d;

    outline: none;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}


/* =========================================
   PROJECT PAGE
========================================= */

.project-page {
    min-height: 100vh;

    background: #fbfaf8;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}


/* =========================================
   PROJECT PAGE HEADER
========================================= */

.project-page-header {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;
    height: 80px;

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

    padding: 0 6%;

    border-bottom: 1px solid #e5e3df;

    background: rgba(251, 250, 248, 0.96);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}


/* =========================================
   PROJECT BRAND
========================================= */

.project-brand {
    display: flex;
    align-items: center;

    gap: 12px;
}

.project-brand-mark {
    color: #111827;

    font-size: 30px;
    font-weight: 900;

    letter-spacing: -3px;
    line-height: 1;
}

.project-brand-text {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.project-brand-text strong {
    color: #111827;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

.project-brand-text small {
    color: #8b67f7;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.3px;
}


/* =========================================
   PROJECT NAVIGATION
========================================= */

.project-navigation {
    display: flex;
    align-items: center;

    gap: 28px;
}

.project-navigation > a:not(.project-profile-avatar) {
    color: #30343c;

    font-size: 13px;
    font-weight: 500;

    transition: color 0.2s ease;
}

.project-navigation > a:not(.project-profile-avatar):hover {
    color: #8b67f7;
}


/* =========================================
   PROJECT THEME BUTTON
========================================= */

.project-theme-button {
    width: 38px;
    height: 38px;

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

    flex-shrink: 0;

    border: 1px solid #dedbd7;
    border-radius: 50%;

    background: white;
    color: #111827;

    font-size: 17px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.project-theme-button:hover {
    border-color: #8b67f7;

    transform: rotate(10deg);
}


/* =========================================
   PROJECT PROFILE AVATAR
========================================= */

.project-profile-avatar {
    width: 42px;
    height: 42px;

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

    flex-shrink: 0;

    border-radius: 50%;

    background: #e6ff72;
    color: #111827;

    font-size: 12px;
    font-weight: 800;
}


/* =========================================
   DARK MODE
========================================= */

body.dark-theme {
    background: #0d111a;
    color: #f4f4f5;
}

body.dark-theme .main-content {
    background: #0d111a;
}

body.dark-theme .topbar {
    background: #111722;
    border-bottom-color: #262d39;
}

body.dark-theme .search-container {
    background: #181f2b;
    border-color: #303846;
}

body.dark-theme
.search-container input {
    color: #f4f4f5;
}

body.dark-theme
.search-container input::placeholder {
    color: #858b96;
}

body.dark-theme .search-icon {
    color: #9ca3af;
}

body.dark-theme
.top-navigation a {
    color: #f4f4f5;
}

body.dark-theme
.top-navigation a:hover {
    color: #a88cff;
}

body.dark-theme .theme-button {
    background: #181f2b;
    border-color: #303846;
    color: #f4f4f5;
}

body.dark-theme
.theme-button:hover {
    border-color: #a88cff;
    background: #202838;
}

body.dark-theme .hero-section {
    border-bottom-color: #262d39;
}

body.dark-theme .hero-text p {
    color: #b7bbc4;
}

body.dark-theme
.hero-text h1 span {
    color: #a88cff;
}

body.dark-theme .hero-button {
    background: #f4f4f5;
    color: #111827;
}

body.dark-theme
.hero-button span {
    color: #7656d8;
}

body.dark-theme
.hero-button:hover {
    background: #e4e4e7;
}

body.dark-theme .hero-shape {
    background: #4c3c75;
}

body.dark-theme
.projects-section {
    border-bottom-color: #262d39;
}

body.dark-theme
.section-header > a {
    color: #aeb3bd;
}

body.dark-theme
.section-header > a:hover {
    color: #a88cff;
}

body.dark-theme
.project-title-row h3 {
    color: #f4f4f5;
}

body.dark-theme
.project-title-row h3 a:hover {
    color: #a88cff;
}

body.dark-theme
.project-info p {
    color: #aeb3bd;
}

body.dark-theme
.project-info > span {
    color: #858b96;
}

body.dark-theme
.project-menu-button {
    color: #f4f4f5;
}

body.dark-theme
.project-menu-button:hover {
    background: #202733;
}

body.dark-theme
.sort-container {
    color: #aeb3bd;
}

body.dark-theme
.sort-container select {
    background: #181f2b;
    border-color: #303846;
    color: #f4f4f5;
}

body.dark-theme
.sort-container select option {
    background: #181f2b;
    color: #f4f4f5;
}

body.dark-theme
.empty-project-message {
    border-color: #303846;
    color: #9ca3af;
}

body.dark-theme .project-page {
    background: #0d111a;
    color: #f4f4f5;
}

body.dark-theme
.project-page-header {
    background: rgba(17, 23, 34, 0.96);

    border-bottom-color: #262d39;
}

body.dark-theme
.project-brand-mark {
    color: #f4f4f5;
}

body.dark-theme
.project-brand-text strong {
    color: #f4f4f5;
}

body.dark-theme
.project-brand-text small {
    color: #a88cff;
}

body.dark-theme
.project-navigation > a:not(.project-profile-avatar) {
    color: #e4e7ec;
}

body.dark-theme
.project-navigation > a:not(.project-profile-avatar):hover {
    color: #a88cff;
}

body.dark-theme
.project-theme-button {
    background: #181f2b;

    border-color: #303846;

    color: #f4f4f5;
}

body.dark-theme
.project-theme-button:hover {
    background: #202838;

    border-color: #a88cff;
}


/* =========================================
   SHORT DESKTOP HEIGHT
========================================= */

@media
(max-height: 850px)
and (min-width: 651px) {

    .sidebar {
        padding-top: 16px;
        padding-bottom: 14px;
    }

    .logo {
        margin-bottom: 14px;
    }

    .logo-mark {
        font-size: 34px;
    }

    .sidebar-nav {
        gap: 2px;
    }

    .nav-item {
        min-height: 36px;
        font-size: 12px;
    }

    .nav-divider {
        margin: 7px 4px;
    }

    .social-links {
        margin-top: 8px;
    }
}


/* =========================================
   VERY SHORT DESKTOP HEIGHT
========================================= */

@media
(max-height: 720px)
and (min-width: 651px) {

    .social-links {
        display: none;
    }
}


/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 1100px) {

    .portfolio-layout {
        grid-template-columns:
            210px 1fr;
    }

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

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .top-navigation {
        gap: 18px;
    }
}


@media (max-width: 900px) {

    .project-page-header {
        padding-left: 4%;
        padding-right: 4%;
    }

    .project-navigation {
        gap: 18px;
    }

    .project-brand-text {
        display: none;
    }
}


/* =========================================
   SMALL TABLET
========================================= */

@media (max-width: 950px) {

    .portfolio-layout {
        grid-template-columns:
            80px 1fr;
    }

    .sidebar {
        padding: 22px 10px;
    }

    .logo {
        justify-content: center;
    }

    .logo-text {
        display: none;
    }

    .logo-mark {
        font-size: 30px;
    }

    .nav-item {
        width: 46px;
        height: 46px;

        min-height: 46px;

        padding: 0;

        margin: 0 auto;

        justify-content: center;
    }

    .nav-item span:last-child {
        display: none;
    }

    .nav-icon {
        width: auto;
    }

    .sidebar-bottom {
        display: none;
    }

    .topbar {
        padding: 0 18px;
    }

    .page-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .search-container {
        max-width: none;
    }

    .top-navigation a {
        display: none;
    }

    .hero-text h1 {
        font-size: 56px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    body {
        padding-bottom: 82px;
    }

    body:has(.project-page) {
        padding-bottom: 0;
    }

    .portfolio-layout {
        display: block;
    }


    /* =====================================
       MOBILE BOTTOM NAVIGATION
    ====================================== */

    .sidebar {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;
        top: auto;

        width: 100%;
        height: 76px;

        padding: 7px 10px;

        z-index: 100;

        overflow: visible;

        background: #0f1420;

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

        box-shadow:
            0 -8px 30px
            rgba(0, 0, 0, 0.08);
    }

    .sidebar-top {
        width: 100%;
        height: 100%;
    }

    .logo {
        display: none;
    }

    .sidebar-nav {
        width: 100%;
        height: 100%;

        display: grid;

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

        align-items: stretch;

        gap: 4px;
    }

    .sidebar-nav .nav-divider {
        display: none;
    }


    /* HIDE PROJECT FILTERS FROM BOTTOM BAR */

    .sidebar-nav
    .nav-item[data-filter="UI/UX Design"],

    .sidebar-nav
    .nav-item[data-filter="Web Development"],

    .sidebar-nav
    .nav-item[data-filter="Game Development"],

    .sidebar-nav
    .nav-item[data-filter="3D Design"],

    .sidebar-nav
    .nav-item[data-filter="Case Studies"] {
        display: none;
    }


    /* BOTTOM ITEMS */

    .sidebar-nav
    .mobile-bottom-item {
        width: 100%;
        height: 100%;

        min-height: 0;

        margin: 0;

        padding: 6px 4px;

        display: flex;

        flex-direction: column;

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

        gap: 4px;

        border-radius: 12px;

        color: #d8dbe2;

        font-size: 10px;

        line-height: 1;

        background: transparent;

        transform: none;
    }

    .sidebar-nav
    .mobile-bottom-item:hover {
        transform: none;

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

    .sidebar-nav
    .mobile-bottom-item
    .nav-icon {
        width: auto;

        display: block;

        font-size: 19px;

        line-height: 1;
    }

    .sidebar-nav
    .mobile-bottom-item
    span:last-child {
        display: block;

        font-size: 10px;

        white-space: nowrap;
    }


    /* ACTIVE HOME */

    .sidebar-nav
    .mobile-bottom-item.active {
        background: #e6ff72;
        color: #111827;
    }


    /* MOBILE THEME */

    .mobile-theme-button {
        display: flex;

        border: none;

        font-family: inherit;

        cursor: pointer;
    }


    /* =====================================
       TOPBAR
    ====================================== */

    .topbar {
        height: auto;

        min-height: 68px;

        padding: 12px 14px;

        gap: 10px;
    }

    .search-container {
        height: 40px;
    }

    .top-navigation {
        gap: 8px;
    }

    .top-navigation .theme-button {
        display: none;
    }

    .profile-avatar {
        width: 36px;
        height: 36px;

        flex-shrink: 0;

        font-size: 11px;
    }


    /* =====================================
       PAGE
    ====================================== */

    .page-content {
        padding-left: 14px;
        padding-right: 14px;
    }


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

    .hero-section {
        min-height: auto;

        padding: 34px 0 32px;
    }

    .hero-text h1 {
        font-size: 46px;

        letter-spacing: -3px;
    }

    .hero-text p {
        font-size: 14px;
    }


    /* =====================================
       MOBILE PROJECT FILTERS
    ====================================== */

    .mobile-project-filters {
        display: block;

        padding: 22px 0 4px;
    }

    .mobile-filter-header {
        margin-bottom: 10px;

        font-size: 12px;

        font-weight: 700;

        color: #6e7179;
    }

    .mobile-filter-scroll {
        display: flex;

        gap: 8px;

        width: calc(100% + 14px);

        padding-right: 14px;
        padding-bottom: 6px;

        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;

        -webkit-overflow-scrolling:
            touch;
    }

    .mobile-filter-scroll::-webkit-scrollbar {
        display: none;
    }

    .mobile-filter-chip {
        flex: 0 0 auto;

        min-height: 36px;

        padding: 0 16px;

        border:
            1px solid #d8d6d2;

        border-radius: 50px;

        background: white;

        color: #343740;

        font-size: 12px;

        font-weight: 600;

        cursor: pointer;

        transition:
            background 0.2s ease,
            border-color 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
    }

    .mobile-filter-chip:active {
        transform: scale(0.97);
    }

    .mobile-filter-chip.active {
        background: #e6ff72;

        border-color: #e6ff72;

        color: #111827;
    }


    /* =====================================
       PROJECTS
    ====================================== */

    .projects-grid {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .projects-section {
        padding-top: 24px;
    }

    .section-header {
        align-items: flex-end;

        gap: 10px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .project-title-row h3 {
        font-size: 15px;
    }


    /* =====================================
       SORT
    ====================================== */

    .sort-container {
        gap: 5px;
    }

    .sort-container label {
        display: none;
    }

    .sort-container select {
        padding:
            7px 26px 7px 11px;

        font-size: 11px;
    }


    .project-page {
        min-height: 100vh;
    }

    .project-page-header {
        height: 68px;

        padding: 0 14px;
    }

    .project-brand-mark {
        font-size: 28px;
    }

    .project-brand-text {
        display: none;
    }

    .project-navigation {
        gap: 10px;
    }

    .project-navigation
    > a:not(.project-profile-avatar) {
        display: none;
    }

    .project-theme-button {
        width: 36px;
        height: 36px;
    }

    .project-profile-avatar {
        width: 36px;
        height: 36px;

        font-size: 10px;
    }


    /* =====================================
       MOBILE DARK MODE
    ====================================== */

    body.dark-theme
    .mobile-filter-header {
        color: #aeb3bd;
    }

    body.dark-theme
    .mobile-filter-chip {
        background: #181f2b;

        border-color: #303846;

        color: #e4e7ec;
    }

    body.dark-theme
    .mobile-filter-chip.active {
        background: #e6ff72;

        border-color: #e6ff72;

        color: #111827;
    }
}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 420px) {

    .topbar {
        padding: 10px;
    }

    .page-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-button {
        width: 100%;

        justify-content: center;
    }

    .sidebar {
        padding-left: 6px;
        padding-right: 6px;
    }

    .sidebar-nav
    .mobile-bottom-item {
        padding-left: 2px;
        padding-right: 2px;
    }

    .sidebar-nav
    .mobile-bottom-item
    span:last-child {
        font-size: 9px;
    }
}


/* =========================================
   PROJECT HEADER ACTIONS
========================================= */

.project-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    flex-shrink: 0;
}

.project-brand-name {
    color: #111827;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

.project-brand-role {
    color: #8b67f7;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.3px;
}

body.dark-theme
.project-brand-name {
    color: #f4f4f5;
}

body.dark-theme
.project-brand-role {
    color: #a88cff;
}

@media (max-width: 650px) {

    .project-header-actions {
        gap: 8px;
    }
}