::selection {
    background-color: #2563eb;
    color: #ffffff;
}

/* scroll */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
    background: #cacacb;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #707072;
}

/* error input */
.input-error {
    border-color: #d30005 !important;
}

.input-error::placeholder {
    color: #d30005 !important;
    opacity: 1;
}

/* animasi bawah nav link */
.nav-link {
    position: relative;
    padding: 4px 0;
    transition: all 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* filter chip */
.filter-chip.active {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}
.filter-chip:hover {
    border-color: #2563eb;
    color: #2563eb;
}
.filter-chip.active:hover {
    color: #ffffff !important;
}

/* navigasi sel */
@media (max-width: 767px) {
    #nav-center.show {
        display: flex !important;
    }
}

/* notifikasi */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 24px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background-color: #111111;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toast-in 0.4s ease;
    min-width: 280px;
}

.toast-success {
    border-left: 3px solid #007d48;
}

.toast-error {
    border-left: 3px solid #d30005;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ===== PARALLAX HERO ===== */
.parallax-hero {
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(17,17,17,0.3) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 20%, rgba(113,113,113,0.15) 0%, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* ===== NAVBAR ===== */
#primary-nav {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
#primary-nav.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* ===== FADE-IN ON SCROLL ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger delay untuk cards */
.fade-in-up[data-delay="100"] { transition-delay: 0.1s; }
.fade-in-up[data-delay="200"] { transition-delay: 0.2s; }
.fade-in-up[data-delay="300"] { transition-delay: 0.3s; }
.fade-in-up[data-delay="400"] { transition-delay: 0.4s; }

/* ===== MOBILE: matikan parallax fixed bg ===== */
@media (max-width: 768px) {
    .parallax-hero {
        background-attachment: scroll;
    }
}

/* ponytail: native JS scroll-linked horizontal translate. batas: scroll kartu horizontal terhubung ke sumbu vertikal. upgrade ke GSAP ScrollTrigger jika butuh snap otomatis atau scrub timeline multi-layer */
.portfolio-track {
    display: flex;
    will-change: transform;
    transition: transform 0.08s ease-out;
    padding-top: 12px;
    padding-bottom: 24px;
}

.portfolio-card {
    background-color: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

/* ===== HERO KINETIC TYPOGRAPHY ===== */
#hero-title {
    perspective: 1000px;
}

.hero-char {
    display: inline-block;
    will-change: transform, opacity;
    user-select: none;
    cursor: default;
}

/* ===== CONTACT CARD STACK (FAN & SHUFFLE) ===== */
.card-stack-wrapper {
    position: relative;
}

.contact-card {
    position: absolute;
    width: 50%;
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    will-change: transform, filter;
    transition: filter 0.35s ease;
}

.contact-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    pointer-events: none;
}

.contact-card.is-front {
    filter: brightness(1) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
}

.contact-card.is-behind {
    filter: brightness(0.92) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.contact-card:hover {
    filter: brightness(1.02) drop-shadow(0 24px 36px rgba(37, 99, 235, 0.25));
}

