::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}


* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.05);
}


:root {
    color-scheme: dark;
}

html,
body,
#app {
    height: 100%;
}

.glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.nav-blur {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.02));
}

/* smooth image/3d transitions */
.smooth {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1),
        opacity 0.4s;
}

/* mobile full-screen slide panel */
.slide-panel {
    transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
    transform: translateX(100%);
}

.slide-panel.open {
    transform: translateX(0%);
}

.skill-bar {
    width: 0%;
    animation: fillBar 2s ease forwards;
}

@keyframes fillBar {
    to {
        width: var(--progress);
    }
}

/* Hilangkan efek selection (klik & drag teks) */
::selection {
    background: transparent;
}

.portfolio-container {
    position: relative;
    width: 100%;
    perspective: 1200px;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-card-wrapper {
    position: absolute;
    width: 320px;
    transition: transform 0.8s ease, opacity 0.8s ease,
        filter 0.8s ease;
    transform-style: preserve-3d;
}

.portfolio-card-wrapper.active {
    transform: translateX(0) scale(1) rotateY(0);
    opacity: 1;
    filter: blur(0);
    z-index: 3;
}

.portfolio-card-wrapper.left {
    transform: translateX(-280px) scale(0.9) rotateY(40deg);
    opacity: 0.5;
    filter: blur(2px);
    z-index: 2;
}

.portfolio-card-wrapper.right {
    transform: translateX(280px) scale(0.9) rotateY(-40deg);
    opacity: 0.5;
    filter: blur(2px);
    z-index: 2;
}

.portfolio-card-wrapper.hidden {
    opacity: 0;
    transform: scale(0.7);
    filter: blur(4px);
    z-index: 1;
}

/* Tombol Navigasi */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 20%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

.slider-btn:hover {
    border-color: #8a7cff;
    background: transparent;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.left {
    color: #8a7cff;
    left: 20px;
}

.slider-btn.right {
    color: #8a7cff;
    right: 20px;
}

.slider-btn:active {
    animation: bounce 0.3s ease;
}

@keyframes bounce {
    0% {
        transform: translateY(-50%) scale(1);
    }

    30% {
        transform: translateY(-50%) scale(0.85);
    }

    60% {
        transform: translateY(-50%) scale(1.15);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}