/* ============================================================
   Portfolio - Rafiqo Adib Destarachmad
   Black & Gold Theme — Inspired by Brittany Chiang v4
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #050505;
    --bg-tertiary: #1A1A1A;
    --bg-card: #151515;
    --gold: #D4AF37;
    --gold-dark: #B8860B;
    --gold-light: #F4C430;
    --gold-muted: rgba(212,175,55,0.15);
    --text: #FFFFFF;
    --text-muted: #9A9A9A;
    --border: rgba(212,175,55,0.1);
    --border-gold: rgba(212,175,55,0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 16px rgba(0,0,0,0.6);
    --shadow-gold: 0 4px 25px rgba(212,175,55,0.2);
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
    --danger: #e05555;
    --success: #3ecf8e;
    --warning: #f0a030;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #050505;
    background-image:
        /* Top-center golden ambient light — main focal glow */
        radial-gradient(ellipse 80% 40% at 50% -5%, rgba(212,175,55,0.18) 0%, transparent 70%),
        /* Top-left warm corner light */
        radial-gradient(ellipse 45% 35% at -5% 8%, rgba(184,134,11,0.13) 0%, transparent 60%),
        /* Top-right corner accent */
        radial-gradient(ellipse 40% 30% at 105% 5%, rgba(212,175,55,0.10) 0%, transparent 55%),
        /* Bottom-left ambient warmth */
        radial-gradient(ellipse 50% 40% at -8% 95%, rgba(59,42,0,0.35) 0%, transparent 60%),
        /* Bottom-right accent */
        radial-gradient(ellipse 40% 35% at 108% 92%, rgba(212,175,55,0.07) 0%, transparent 55%),
        /* Center dark vignette — keeps center focused */
        radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, rgba(0,0,0,0.55) 100%),
        /* Base luxury gradient */
        linear-gradient(165deg, #121210 0%, #0a0a09 35%, #050505 65%, #080806 100%);
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* ===== LUXURY BACKGROUND LAYER — curved lines + particles ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        /* Left-edge metallic curved shimmer */
        radial-gradient(ellipse 12% 55% at -4% 62%, rgba(212,175,55,0.12) 0%, transparent 80%),
        /* Right-edge metallic curved shimmer */
        radial-gradient(ellipse 12% 55% at 104% 38%, rgba(212,175,55,0.10) 0%, transparent 80%),
        /* Subtle mid-page horizontal band */
        radial-gradient(ellipse 100% 8% at 50% 48%, rgba(212,175,55,0.03) 0%, transparent 100%);
}

/* Gold curved line — left bottom */
body::after {
    content: '';
    position: fixed;
    bottom: -180px;
    left: -160px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top: 1.5px solid rgba(212,175,55,0.55);
    border-right: 1.5px solid rgba(244,196,48,0.30);
    box-shadow:
        0 0 22px rgba(212,175,55,0.22),
        0 0 55px rgba(212,175,55,0.08);
    transform: rotate(-25deg);
    pointer-events: none;
    z-index: 0;
}

/* Ensure all page content sits above the bg layers */
body > * {
    position: relative;
    z-index: 1;
}

/* Right-top curved line — separate element via main wrapper */
main::before {
    content: '';
    position: fixed;
    top: -180px;
    right: -160px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-bottom: 1.5px solid rgba(212,175,55,0.50);
    border-left: 1.5px solid rgba(244,196,48,0.25);
    box-shadow:
        0 0 22px rgba(212,175,55,0.20),
        0 0 55px rgba(212,175,55,0.07);
    transform: rotate(-25deg);
    pointer-events: none;
    z-index: 0;
}

/* Dot/particle pattern — left side */
main::after {
    content: '';
    position: fixed;
    left: 18px;
    bottom: 90px;
    width: 130px;
    height: 130px;
    background-image:
        radial-gradient(circle, rgba(212,175,55,0.40) 1.5px, transparent 1.5px);
    background-size: 13px 13px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
}

/* Dot/particle pattern — right side via nav pseudo */
nav::after {
    content: '';
    position: fixed;
    right: 18px;
    top: 80px;
    width: 130px;
    height: 130px;
    background-image:
        radial-gradient(circle, rgba(212,175,55,0.38) 1.5px, transparent 1.5px);
    background-size: 13px 13px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.60;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 99px; }

/* ===== NAVBAR ===== */
.navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(10,10,10,0.97) !important;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.brand-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gold) !important;
    letter-spacing: 2px;
}

.brand-logo span {
    color: var(--text) !important;
}

.navbar-sticky .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.4rem 1rem !important;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-num {
    font-family: 'Fira Code', monospace;
    color: var(--gold);
    font-size: 0.78rem;
    margin-right: 3px;
}

.navbar-sticky .nav-link:hover,
.navbar-sticky .nav-link.active {
    color: var(--gold) !important;
    background: var(--gold-muted);
}

/* ===== ALERT ===== */
.alert-flash {
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
    background: rgba(212,175,55,0.08);
    color: var(--gold-light);
    font-size: 0.88rem;
    border-top: 1px solid var(--border-gold);
    border-right: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
}

/* ===== FOOTER ===== */
.footer-main {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

/* ===== CARD SECTION ===== */
.card-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: 270px 1fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1100px) {
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* ===== PROFILE CARD ===== */
.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 1.8rem 1.5rem;
    text-align: center;
}

.profile-avatar-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    padding: 2px;
}

.profile-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-card);
    display: block;
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-muted);
    border: 2px solid var(--bg-card);
}

.profile-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.profile-role {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.profile-bio {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.2rem;
}

.profile-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 7px;
    text-align: left;
}

.profile-info-item i {
    color: var(--gold);
    font-size: 0.8rem;
    flex-shrink: 0;
    width: 14px;
}

/* ===== FEATURED SECTION ===== */
.featured-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.featured-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    background: var(--bg-tertiary);
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    transition: var(--transition);
    margin-bottom: 0.6rem;
}

.featured-card:hover {
    border-color: var(--border-gold);
    background: rgba(212,175,55,0.05);
}

.featured-icon {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: var(--gold-muted);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.featured-info h6 {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text);
}

.featured-info p {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-tags { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 3px; }

.featured-tag {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    background: var(--gold-muted);
    color: var(--gold);
    border: 1px solid var(--border-gold);
}

/* ===== SKILLS CARD ===== */
.skills-display-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.skills-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skills-section-header h5 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.skill-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.3rem;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    cursor: default;
    transition: var(--transition);
    text-align: center;
}

.skill-icon-card:hover {
    border-color: var(--border-gold);
    background: var(--gold-muted);
    transform: translateY(-2px);
}

.skill-icon-card .skill-emoji { font-size: 1.4rem; margin-bottom: 4px; line-height: 1; }

.skill-icon-card .skill-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.2;
    word-break: break-word;
}

/* ===== WORKSHOP CARD ===== */
.workshop-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.workshop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.workshop-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.5px;
}

.workshop-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
}

.workshop-table thead th {
    background: var(--bg-tertiary);
    padding: 0.7rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.workshop-table tbody td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}

.workshop-table tbody tr:last-child td { border-bottom: none; }

.workshop-table tbody tr:hover td {
    background: rgba(212,175,55,0.03);
}

/* ===== BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-completed { background: rgba(62,207,142,0.12); color: #3ecf8e; border: 1px solid rgba(62,207,142,0.25); }
.status-progress  { background: rgba(240,160,48,0.12);  color: #f0a030; border: 1px solid rgba(240,160,48,0.25); }

.cat-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.cat-project  { background: var(--gold-muted); color: var(--gold); border: 1px solid var(--border-gold); }
.cat-jobsheet { background: rgba(62,207,142,0.1); color: #3ecf8e; border: 1px solid rgba(62,207,142,0.2); }
.cat-ujian    { background: rgba(224,85,85,0.1); color: #e07777; border: 1px solid rgba(224,85,85,0.2); }

.level-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.level-beginner     { background: rgba(240,160,48,0.1);  color: #f0a030; border: 1px solid rgba(240,160,48,0.25); }
.level-intermediate { background: var(--gold-muted);      color: var(--gold); border: 1px solid var(--border-gold); }
.level-advanced     { background: rgba(62,207,142,0.1);  color: #3ecf8e; border: 1px solid rgba(62,207,142,0.25); }

/* ===== ACTION BUTTONS ===== */
.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.action-btn-edit { color: var(--gold); border-color: var(--border-gold); background: var(--gold-muted); }
.action-btn-edit:hover { background: var(--gold); color: var(--bg-primary); border-color: var(--gold); }

.action-btn-delete { color: var(--danger); border-color: rgba(224,85,85,0.25); background: rgba(224,85,85,0.08); }
.action-btn-delete:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.action-btn-view { color: #3ecf8e; border-color: rgba(62,207,142,0.25); background: rgba(62,207,142,0.08); }
.action-btn-view:hover { background: #3ecf8e; color: var(--bg-primary); border-color: #3ecf8e; }

/* ===== PROGRESS BAR ===== */
.progress-mini {
    height: 4px;
    border-radius: 99px;
    background: var(--border);
    overflow: hidden;
    min-width: 80px;
}

.progress-mini-bar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.52rem 1.1rem;
    font-size: 0.83rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary-custom {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.52rem 1.1rem;
    font-size: 0.83rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary-custom:hover {
    border-color: var(--border-gold);
    color: var(--gold);
    background: var(--gold-muted);
}

/* btn-round aliases used in form views */
.btn-round-gradient {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-primary) !important;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.52rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.btn-round-gradient:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
    color: var(--bg-primary) !important;
}

.btn-round-gradient-warning {
    background: linear-gradient(135deg, #c07828, #e09840) !important;
}

.btn-round-secondary {
    background: var(--bg-tertiary);
    color: var(--text-muted) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.52rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.btn-round-secondary:hover {
    border-color: var(--border-gold);
    color: var(--gold) !important;
}

.skill-manage-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gold-muted);
    color: var(--gold);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    padding: 0.38rem 0.85rem;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.skill-manage-btn:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

/* ===== CRUD HEADERS ===== */
.crud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.page-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== TABLE CARDS (skill/project index) ===== */
.skill-table-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.skill-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.skill-table thead th {
    background: var(--bg-tertiary);
    padding: 0.75rem 1.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.skill-table tbody td {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}

.skill-table tbody tr:last-child td { border-bottom: none; }

.skill-table tbody tr:hover td { background: rgba(212,175,55,0.03); }

/* ===== FORM CARD ===== */
.form-card, .card-modern {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-modern-header {
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.card-modern-header h3 {
    color: var(--text) !important;
    font-size: 1rem;
    font-weight: 700;
}

.card-modern-header h3 i {
    color: var(--gold) !important;
}

.card-modern-body { padding: 1.8rem; }

.form-label-modern, .form-label-custom {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control-modern, .form-control-custom, .form-select-custom,
.form-control.form-control-modern, .form-select.form-control-modern {
    width: 100%;
    padding: 0.62rem 0.9rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary) !important;
    color: var(--text) !important;
    transition: var(--transition);
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.form-control-modern:focus, .form-control-custom:focus, .form-select-custom:focus,
.form-control.form-control-modern:focus, .form-select.form-control-modern:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
    outline: none;
    background: var(--bg-tertiary) !important;
    color: var(--text) !important;
}

.form-control-modern::placeholder { color: #555; }

.form-group-custom { margin-bottom: 1.2rem; }

/* Textarea */
textarea.form-control-modern,
textarea.form-control-custom {
    resize: vertical;
}

/* Select arrow color fix */
.form-select.form-control-modern,
.form-select-custom {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 14px !important;
    padding-right: 2.5rem !important;
}

/* File input */
input[type="file"].form-control-modern {
    padding: 0.5rem 0.9rem;
    color: var(--text-muted);
}

/* ===== PROJECT SHOW PAGE ===== */
.project-card-image {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-badge { position: absolute; top: 1rem; right: 1rem; }

.badge-modern { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-modern-primary { background: var(--gold-muted); color: var(--gold); border: 1px solid var(--border-gold); }
.badge-modern-success { background: rgba(62,207,142,0.1); color: #3ecf8e; border: 1px solid rgba(62,207,142,0.2); }
.badge-modern-warning { background: rgba(224,85,85,0.1); color: #e07777; border: 1px solid rgba(224,85,85,0.2); }

/* project show - github box */
.github-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--border);
}

.empty-state p { font-size: 0.88rem; margin-bottom: 1rem; }

/* ===== ALERT DANGER override ===== */
.alert-danger {
    background: rgba(224,85,85,0.08);
    border-color: rgba(224,85,85,0.3);
    color: #f09090;
    border-radius: var(--radius-sm);
}

/* ===== GOLD SEPARATOR LINE ===== */
.gold-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.5rem 0;
    opacity: 0.4;
}

/* ===== NAVBAR TRANSPARENT + SCROLL ===== */
.navbar-sticky {
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.navbar-sticky.scrolled {
    background: rgba(10,10,10,0.98) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    border-bottom-color: rgba(212,175,55,0.15) !important;
}
.navbar-transparent {
    background: transparent !important;
    border-bottom-color: transparent !important;
}

/* Navbar link underline animation */
.navbar-sticky .nav-link {
    position: relative;
}
.navbar-sticky .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}
.navbar-sticky .nav-link:hover::after,
.navbar-sticky .nav-link.active::after {
    width: 60%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-number {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 1.2rem;
    display: block;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero-tagline {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-tagline span {
    color: var(--gold);
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-primary:hover {
    background: rgba(212,175,55,0.1);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.15);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-secondary:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.25);
}

/* ===== SECTION COMMON ===== */
.portfolio-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    white-space: nowrap;
}

.section-number {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: var(--gold);
    font-weight: 400;
}

.section-title-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    min-width: 50px;
    max-width: 300px;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
}

.about-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.about-text p a {
    color: var(--gold);
}

/* profile/index about text override */
.about-grid > div > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 0.8rem;
}

.about-skill-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 2rem;
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
}

.about-skill-list li {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.about-skill-list li::before {
    content: '▸';
    color: var(--gold);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.about-photo-wrap {
    position: relative;
}

.about-photo-inner {
    position: relative;
    width: 280px;
    margin: 0 auto;
}

.about-photo-inner img {
    width: 100%;
    border-radius: var(--radius);
    filter: grayscale(20%);
    transition: filter 0.4s ease;
    display: block;
    position: relative;
    z-index: 2;
}

.about-photo-inner:hover img {
    filter: none;
}

.about-photo-inner::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    z-index: 1;
    transition: all 0.3s ease;
}

.about-photo-inner:hover::after {
    top: 10px;
    left: 10px;
}

/* ===== SKILLS SECTION (portfolio page) ===== */
.skills-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.25s ease;
    cursor: default;
}

.skill-pill:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212,175,55,0.05);
    transform: translateY(-2px);
}

.skill-pill-emoji {
    font-size: 1rem;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(212,175,55,0.1);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.project-folder-icon {
    color: var(--gold);
    font-size: 2rem;
}

.project-links {
    display: flex;
    gap: 0.6rem;
}

.project-link-btn {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.project-link-btn:hover {
    color: var(--gold);
}

.project-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.project-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.5rem;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-tech-list li {
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    color: var(--gold);
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.2);
    padding: 2px 8px;
    border-radius: 3px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 0 120px;
    text-align: center;
}

.contact-overline {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
}

.contact-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.contact-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
    transition: color 0.2s ease;
    text-decoration: none;
}

.contact-link-item i {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.contact-link-item:hover {
    color: var(--gold);
}

.contact-link-item:hover i {
    color: var(--gold);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 1.5rem 0;
}

.footer-credit {
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    color: #444;
    transition: color 0.2s ease;
}

.footer-credit:hover { color: var(--gold); }

.footer-credit span { color: var(--gold); }

/* ===== AOS CUSTOM ===== */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .portfolio-section { padding: 70px 0; }
    .hero-section { padding: 80px 0 60px; min-height: auto; }
    .contact-section { padding: 70px 0 80px; }
    .projects-grid { grid-template-columns: 1fr; }
    .section-line { display: none; }
    .about-stats { grid-template-columns: 1fr; }
    .certificates-grid { grid-template-columns: 1fr; }
}

/* ===== SPLASH SCREEN ===== */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: #050505;
    background-image:
        radial-gradient(ellipse 75% 35% at 50% -2%, rgba(212,175,55,0.22) 0%, transparent 65%),
        radial-gradient(ellipse 45% 35% at -5% 8%,  rgba(184,134,11,0.14) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 105% 5%, rgba(212,175,55,0.10) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at -8% 95%, rgba(59,42,0,0.35)    0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 108% 92%,rgba(212,175,55,0.07) 0%, transparent 55%),
        radial-gradient(ellipse 60% 60% at 50% 50%, transparent 30%, rgba(0,0,0,0.50) 100%),
        linear-gradient(165deg, #121210 0%, #0a0a09 35%, #050505 65%, #080806 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
    overflow: hidden;
}

/* Garis lengkung kiri bawah */
#splash-screen::before {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -100px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top: 1.5px solid rgba(212,175,55,0.55);
    border-right: 1.5px solid rgba(244,196,48,0.30);
    box-shadow: 0 0 22px rgba(212,175,55,0.22), 0 0 55px rgba(212,175,55,0.08);
    transform: rotate(-30deg);
    pointer-events: none;
}

/* Garis lengkung kanan atas */
#splash-screen::after {
    content: '';
    position: absolute;
    top: -130px;
    right: -100px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-bottom: 1.5px solid rgba(212,175,55,0.50);
    border-left: 1.5px solid rgba(244,196,48,0.25);
    box-shadow: 0 0 22px rgba(212,175,55,0.20), 0 0 55px rgba(212,175,55,0.07);
    transform: rotate(-30deg);
    pointer-events: none;
}

/* Dot pattern kiri */
.splash-dots-left {
    position: absolute;
    left: 32px;
    bottom: 80px;
    width: 110px;
    height: 110px;
    background-image: radial-gradient(circle, rgba(212,175,55,0.45) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    pointer-events: none;
    opacity: 0.7;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
}

/* Dot pattern kanan */
.splash-dots-right {
    position: absolute;
    right: 28px;
    top: 70px;
    width: 110px;
    height: 110px;
    background-image: radial-gradient(circle, rgba(212,175,55,0.45) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    pointer-events: none;
    opacity: 0.7;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.splash-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 5.5rem;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.5), 0 0 50px rgba(212, 175, 55, 0.2);
    z-index: 10;
    animation: pulseGlow 2s infinite ease-in-out;
}

.splash-sub {
    font-family: 'Fira Code', monospace;
    color: var(--gold-light);
    letter-spacing: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    animation: slideUpFade 1.2s forwards 0.5s;
}

.orbit-circle {
    position: absolute;
    border: 1.5px solid rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    animation: rotate 15s linear infinite;
}

.orbit-1 {
    width: 140px;
    height: 140px;
    border-top: 2px solid var(--gold);
    animation-duration: 4s;
}

.orbit-2 {
    width: 180px;
    height: 180px;
    border-bottom: 2px solid var(--gold-light);
    animation-duration: 8s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 220px;
    height: 220px;
    border-left: 1.5px dashed var(--gold);
    animation-duration: 12s;
}

/* Splash Particle / Glow Elements */
.splash-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: ambientGlow 4s infinite ease-in-out;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.2); }
}

@keyframes slideUpFade {
    to { opacity: 0.8; transform: translateY(0); }
}

@keyframes ambientGlow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* ===== PORTFOLIO HERO AND SECTIONS ===== */
.hero-tagline span {
    background: linear-gradient(45deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Statistics */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== EXPERIENCE TIMELINE ===== */
.experience-timeline {
    position: relative;
    padding-left: 2.5rem;
    margin: 2.5rem 0;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 7.5px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), rgba(212, 175, 55, 0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #050505;
    border: 3px solid var(--gold);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

.timeline-year {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CERTIFICATES SECTION ===== */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.certificate-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.certificate-card:hover {
    transform: translateY(-7px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.certificate-img-wrap {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.certificate-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.certificate-card:hover .certificate-img-wrap img {
    transform: scale(1.05);
}

.certificate-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.certificate-org {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.certificate-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.certificate-field {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-cert-link {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    width: fit-content;
    transition: var(--transition);
}

.btn-cert-link:hover {
    color: var(--gold-light);
}

.btn-cert-link i {
    transition: transform 0.2s ease;
}

.btn-cert-link:hover i {
    transform: translate(2px, -2px);
}
