/* ==========================================
PORTOFOLIO - ARDITYO CAHYO PRATAMA
External Stylesheet (style.css)
========================================== */

:root {
    --color-orange-primary: #f97316;
    --color-orange-dark: #ea580c;
    --color-dark-bg: #020617;
    --color-card-bg: rgba(30, 41, 59, 0.6);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    background-color: #020617;
    color: #f8fafc;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #090d16;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid #090d16;
}

::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

.glass-nav {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 20px 40px -15px rgba(249, 115, 22, 0.15);
}

.filter-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background-color: #f97316 !important;
    color: #ffffff !important;
    border-color: #f97316 !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

#add-modal:not(.hidden),
#cert-modal:not(.hidden),
#delete-modal:not(.hidden) {
    display: flex;
    animation: fadeIn 0.25s ease-out forwards;
}

#add-modal > div,
#cert-modal > div,
#delete-modal > div {
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast {
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
}

.experience-item:hover {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}