/* --- 1. LIQUID GLASS SIDEBAR (DESKTOP) --- */
html {
    scroll-behavior: smooth;
}

.portfolio-sidebar {
    display: none;
}

@media screen and (min-width: 1300px) {
    .portfolio-sidebar {
        display: flex;
        position: fixed;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 100;
        padding: 0.75rem 0.5rem;
        border-radius: 3rem;

        background: linear-gradient(135deg,
                rgba(25, 25, 25, 0.78) 0%,
                rgba(15, 15, 15, 0.5) 100%);

        backdrop-filter: blur(20px) saturate(1.4) brightness(0.95);
        -webkit-backdrop-filter: blur(20px) saturate(1.4) brightness(0.95);

        border-top: 1px solid rgba(255, 255, 255, 0.13);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        border-right: 1px solid rgba(0, 0, 0, 0.25);
        border-bottom: 1px solid rgba(0, 0, 0, 0.3);

        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.55),
            0 0 40px rgba(201, 24, 60, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.07),
            inset 0 0 20px rgba(0, 0, 0, 0.15);
    }

    .sidebar__nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .sidebar__link {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }

    .sidebar__link:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .sidebar__dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar__link:hover .sidebar__dot {
        background: rgba(255, 255, 255, 0.6);
        transform: scale(1.3);
    }

    /* Active state */
    .sidebar__link.active-category .sidebar__dot {
        width: 7px;
        height: 7px;
        background: var(--first-color);
        box-shadow:
            0 0 8px rgba(201, 24, 60, 0.5),
            0 0 20px rgba(201, 24, 60, 0.2);
    }

    /* Tooltip label on hover */
    .sidebar__link::before {
        content: attr(data-label);
        position: absolute;
        right: calc(100% + 10px);
        white-space: nowrap;
        font-size: 0.65rem;
        font-weight: 500;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.85);
        background: rgba(25, 25, 25, 0.75);
        backdrop-filter: blur(12px) saturate(1.3);
        -webkit-backdrop-filter: blur(12px) saturate(1.3);
        padding: 0.3rem 0.6rem;
        border-radius: 0.4rem;
        border: 1px solid rgba(255, 255, 255, 0.06);
        opacity: 0;
        transform: translateX(6px);
        pointer-events: none;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar__link:hover::before {
        opacity: 1;
        transform: translateX(0);
    }

    .sidebar__link.active-category::before {
        color: var(--first-color);
    }
}

/* --- 2. LAYOUT --- */
.section__subtitle {
    margin-bottom: 4rem;
}

.category-wrapper {
    position: relative;
    margin-bottom: 3.5rem;
    width: 100%;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--title-color);
    padding-left: 0.5rem;
    scroll-margin-top: 50vh;
}

.category-title i {
    color: var(--first-color);
}

.category-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0) 100%);
    margin-left: 1rem;
}

/* --- 3. PREMIUM CARD STYLING --- */
.category-swiper {
    padding: 2rem 1rem !important;
    margin: -2rem -1rem !important;
}

.portfolio-card {
    position: relative;
    background-color: var(--container-color);
    padding: 1rem;
    border-radius: 1.5rem;
    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.portfolio-card .blob {
    position: absolute;
    top: -2rem;
    left: -2rem;
    width: 100px;
    height: 100px;
    background: var(--first-color);
    filter: blur(40px);
    opacity: 0.4;
    border-radius: 50%;
    z-index: -1;
    transition: 0.4s;
}

.portfolio-card:hover .blob {
    opacity: 0.8;
    transform: scale(1.2);
}

.portfolio-card:hover {
    border-color: var(--first-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.portfolio-img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block;
    z-index: 2;
}

/* --- 4. NAVIGATION ARROWS (Desktop) --- */
.cat-next,
.cat-prev {
    position: absolute;
    top: 50%;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(145deg, rgba(22, 22, 22, 0.82) 0%, rgba(12, 12, 12, 0.6) 100%);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
}

.category-wrapper:hover .cat-next,
.category-wrapper:hover .cat-prev {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.cat-next:hover,
.cat-prev:hover {
    background: var(--first-color);
    border-color: var(--first-color);
}

.cat-prev {
    left: 0.5rem;
}

.cat-next {
    right: 0.5rem;
}

/* --- 5. MOBILE OPTIMIZATIONS --- */
@media screen and (max-width: 968px) {

    .cat-next,
    .cat-prev,
    .swiper-pagination {
        display: none !important;
    }

    .portfolio-card {
        padding: 0.35rem;
        border-radius: 0.75rem;
        border-color: rgba(255, 255, 255, 0.03);
    }

    .portfolio-card .blob {
        width: 60px;
        height: 60px;
        opacity: 0.25;
        filter: blur(30px);
    }

    .portfolio-card:hover {
        transform: none;
        box-shadow: none;
        border-color: rgba(255, 255, 255, 0.08);
    }

    .portfolio-img {
        border-radius: 0.5rem;
    }

    .category-title {
        font-size: 0.875rem;
        margin-bottom: 0.4rem;
        padding-left: 0.25rem;
        gap: 0.5rem;
    }

    .category-title i {
        font-size: 0.875rem;
    }

    .category-title::after {
        margin-left: 0.5rem;
    }

    .category-wrapper {
        margin-bottom: 1.5rem;
    }

    .category-swiper {
        padding: 0.75rem 0.5rem !important;
        margin: -0.75rem -0.5rem !important;
    }

    .section {
        padding-block: 2.5rem 0.5rem;
    }

    .section__title {
        margin-bottom: 1.5rem;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0;
    }
}

/* --- 6. LOGO SHOWCASE BUTTON --- */
.showcase-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--second-font);
    font-size: 0.813rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--title-color);
    padding: 0.75rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 3rem;
    background: linear-gradient(145deg, rgba(22, 22, 22, 0.6) 0%, rgba(12, 12, 12, 0.35) 100%);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    transition: all 0.35s ease;
    text-decoration: none;
}

.showcase-btn:hover {
    color: #fff;
    border-color: var(--first-color);
    background: rgba(201, 24, 60, 0.15);
    box-shadow: 0 0 20px rgba(201, 24, 60, 0.2);
    transform: translateY(-2px);
}

.showcase-btn i {
    font-size: 1rem;
    color: var(--first-color);
    transition: transform 0.3s ease;
}

.showcase-btn:hover i:last-child {
    transform: translate(2px, -2px);
}

/* --- 7. EXPERIMENTAL WORKS GRID --- */
.experimental-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0.5rem;
}

.experimental-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.experimental-card .portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experimental-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.experimental-label i {
    color: var(--first-color);
    font-size: 0.75rem;
}

@media screen and (max-width: 968px) {
    .experimental-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.25rem;
    }

    .experimental-label {
        font-size: 0.6rem;
        padding: 0.4rem 0.5rem;
    }
}