::-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%;
}
#comp-sci {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
}


@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* new glass effect */
.neo-navbar {
    position: relative;

    background:
        linear-gradient(180deg,
            rgba(78, 88, 140, .65) 0%,
            rgba(34, 39, 73, .65) 100%);

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, .15);

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, .25),
        inset 0 -1px 1px rgba(0, 0, 0, .4),
        0 10px 40px rgba(88, 101, 242, .15);

    overflow: hidden;
}
.neo-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .8),
            transparent);

    pointer-events: none;
}
.neo-navbar::after {
    content: '';

    position: absolute;

    inset: 0;

    border-radius: 999px;

    background:
        radial-gradient(circle at top,
            rgba(255, 255, 255, .15),
            transparent 60%);

    pointer-events: none;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.neo-btn {
    padding: 12px 30px;

    border-radius: 999px;

    color: white;
    font-weight: 600;

    background:
        linear-gradient(135deg,
            #8a7cff,
            #2e2af8);

    box-shadow:
        0 0 20px rgb(166, 134, 235),
        inset 0 1px 1px rgba(255, 255, 255, .3);

    transition: .3s;
}

.neo-btn:hover {
    transform: translateY(-2px);
}

div[id^="server-footer-ad"] {
    display: none !important;
}

/* new glass effect */

.glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
}

.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%);
}

.hero-content {
    opacity: 0;
    transform: translateX(-80px);
    will-change: transform, opacity;
}

.hero-content.show {
    animation: heroSlideIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-bar {
    width: 100%;
    transform: scaleX(0) translateZ(0);
    transform-origin: left center;
    transition: transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.skill-list {
    will-change: transform, opacity;
}

.skill-list.is-animated .skill-bar {
    transform: scaleX(var(--progress-scale, 1)) translateZ(0);
}

.percent {
    font-variant-numeric: tabular-nums;
}

/* 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 cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
}

.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);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
