/* Main Design System */

/* Color & Design Variables */
:root {
    /* Background Colors */
    --bg: hsl(0, 0%, 100%);
    --bg-alt: hsl(0, 0%, 98.8%);

    /* Typography */
    --fg: hsl(220, 20%, 10%);
    --fg-muted: hsl(220, 10%, 40%);

    /* Primary Accent Color (Blue) */
    --primary: hsl(220, 100%, 45%);
    --primary-fg: hsl(0, 0%, 100%);
    --primary-10: hsla(220, 100%, 45%, 0.1);
    --primary-20: hsla(220, 100%, 45%, 0.2);
    --primary-30: hsla(220, 100%, 45%, 0.3);

    /* Secondary Glow (Purple) */
    --glow-sec: hsl(260, 80%, 60%);

    /* Borders & Cards */
    --border: hsl(220, 14%, 90%);
    --card: hsl(0, 0%, 100%);

    /* Radius */
    --radius: 0.75rem;

    /* Typography Base */
    --f-display: 'Unbounded', sans-serif;
    --f-body: 'Space Grotesk', sans-serif;
    --f-mono: 'JetBrains Mono', monospace;

    /* Animations & Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 0.2s ease;
    --t-med: 0.3s ease;
    --t-slow: 0.55s ease;
}

/* Global Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    font-family: var(--f-body);
    color: var(--fg);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--f-display);
    line-height: 1.15;
}

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

/* Mouse Spotlight Effect */
#mouselight {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 40;
    display: none;
}

@media (min-width: 768px) {
    #mouselight {
        display: block;
    }
}

/* Layout Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HELPER CLASSES */

/* Card Shadows */
.card-shadow {
    box-shadow:
        0 1px 3px hsla(220, 20%, 10%, 0.04),
        0 8px 24px hsla(220, 20%, 10%, 0.06);
}

.card-shadow-hover {
    box-shadow:
        0 4px 12px hsla(220, 100%, 50%, 0.08),
        0 16px 40px hsla(220, 20%, 10%, 0.1);
}

/* Glassmorphism Styles */
.glass {
    background: hsla(0, 0%, 100%, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Gradient Text Effects */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--glow-sec));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Blue Glow Box Utility */
.glow-blue {
    box-shadow: 0 0 20px hsla(220, 100%, 50%, 0.3);
}

/* Scroll Reveal */

/* Initial state: hidden */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

/* Active state: visible in viewport */
.reveal-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* NAVBAR */

.nav-elite {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    padding: 16px 0;
}

/* Navbar scrolled state */
.nav-elite.scrolled {
    padding: 12px 0;
    background: hsla(0, 0%, 100%, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px hsla(220, 20%, 10%, 0.04), 0 8px 24px hsla(220, 20%, 10%, 0.06);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    cursor: pointer;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--glow-sec));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    position: relative;
    font-family: var(--f-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fg-muted);
    transition: color var(--t-fast);
    background: none;
    border: none;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Mobile Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--fg);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Menu */
.nav-mobile-menu {
    display: none;
}

.nav-mobile-menu.open {
    display: block;
    background: hsla(0, 0%, 100%, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 12px 24px 24px;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-mobile-menu a,
.nav-mobile-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 0;
    font-family: var(--f-body);
    color: var(--fg-muted);
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: color var(--t-fast);
}

.nav-mobile-menu a:hover,
.nav-mobile-menu button:hover {
    color: var(--primary);
}

/* SECTIONS */

.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-alt);
}

/* Centered section headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-label {
    display: block;
    font-family: var(--f-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary);
    margin-bottom: 12px;
    opacity: 0.8;
}

.section-heading {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 0;
    position: relative;
}

.header-accent {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--glow-sec));
    border-radius: 10px;
    margin-top: 16px;
    box-shadow: 0 2px 10px var(--primary-10);
}

/* HERO */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Hapus text-align: center agar teks kiri tidak terpusat */
}

/* Background particle canvas */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Decorative background orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: floatOrb 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-orb-1 {
    top: 20%;
    left: -10%;
    width: 28rem;
    height: 28rem;
    background: hsla(220, 100%, 50%, 0.05);
    animation-delay: 0s;
}

.hero-orb-2 {
    bottom: 20%;
    right: -10%;
    width: 22rem;
    height: 22rem;
    background: hsla(220, 100%, 50%, 0.08);
    animation-delay: 3s;
}

@keyframes floatOrb {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, -20px) scale(1.05);
    }
}

/* Two-column hero layout */
.hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    padding: 80px 24px 100px;
}

.hero-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    text-align: left;
}

/* Hero text column */
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-text .hero-sub {
    margin-left: 0;
    margin-right: 0;
}

/* Technical skill highlights */
.hero-signature {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
    animation: heroFadeIn 0.8s ease 0.6s both;
}

.signature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform var(--t-fast);
}

.signature-item:hover {
    transform: translateX(4px);
}

.signature-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-10);
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.signature-item span {
    font-family: var(--f-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--fg-muted);
    letter-spacing: 0.02em;
}

/* Scroll down indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 20;
    opacity: 0.5;
    transition: opacity var(--t-med);
    animation: heroFadeIn 1s ease 1.2s both;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-line {
    width: 1px;
    height: 40px;
    /* Lebih pendek sedikit agar minimalis */
    background: linear-gradient(to bottom, var(--primary), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    animation: scrollMove 2s infinite ease-in-out;
}

.scroll-txt {
    font-family: var(--f-mono);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fg-muted);
}


@keyframes scrollMove {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(300%);
    }
}


/* Profile Photo Section */
.hero-photo-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: heroFadeIn 0.8s ease 0.5s both;
}

.avatar-group {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 380px;
    height: 380px;
}

/* Profile photo container */
.hero-avatar {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-20);
    box-shadow:
        0 0 40px hsla(220, 100%, 50%, 0.15),
        0 20px 60px hsla(220, 20%, 10%, 0.1);
    background: linear-gradient(135deg, var(--primary-10), hsla(260, 80%, 60%, 0.1));
    flex-shrink: 0;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% 50%;
    display: block;
}

/* Initial fallback avatar */
.avatar-initials {
    display: none;
    /* tampil via JS jika img error */
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--glow-sec));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative animated rings */
.avatar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--primary-20);
    animation: spinRing 12s linear infinite;
    pointer-events: none;
}

.avatar-ring-1 {
    width: 310px;
    height: 310px;
    animation-duration: 12s;
}

.avatar-ring-2 {
    width: 360px;
    height: 360px;
    border-style: dashed;
    border-color: var(--primary-10);
    animation-direction: reverse;
    animation-duration: 18s;
}

@keyframes spinRing {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Online presence status badge */
.avatar-status {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: hsla(0, 0%, 100%, 0.9);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 14px;
    box-shadow: 0 4px 12px hsla(220, 20%, 10%, 0.1);
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    flex-shrink: 0;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
    }
}

.status-txt {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--fg);
}

/* Hero feature badge */
.hero-badge {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--primary-20);
    background: var(--primary-10);
    color: var(--primary);
    margin-bottom: 24px;

    /* Animasi masuk */
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.6s var(--ease) 0.1s forwards;
}

/* Hero headline */
.hero-title {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: clamp(2.2rem, 7vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.7s var(--ease) 0.25s forwards;
}

/* Gradient text accent */
.accent-txt {
    background: linear-gradient(135deg, var(--primary), var(--glow-sec));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero subtext */
.hero-sub {
    font-family: var(--f-body);
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--fg-muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.7s var(--ease) 0.4s forwards;
}

/* Primary hero actions */
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeIn 0.5s ease 0.65s forwards;
}

.btn-primary {
    padding: 12px 28px;
    border-radius: var(--radius);
    background: var(--primary);
    color: var(--primary-fg);
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: opacity var(--t-fast);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    padding: 12px 28px;
    border-radius: var(--radius);
    background: transparent;
    color: var(--fg);
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.btn-outline:hover {
    color: var(--primary);
    border-color: var(--primary);
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
    }
}

/* EXPERIENCE TIMELINE */

.path-timeline {
    position: relative;
    max-width: 840px;
    margin: 0 auto;
}

/* Garis vertikal tengah */
.path-timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

@media (min-width: 768px) {
    .path-timeline::before {
        left: 50%;
        transform: translateX(-0.5px);
    }
}

.path-item {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 48px;
    padding-left: 48px;
}

@media (min-width: 768px) {
    .path-item {
        flex-direction: row;
        padding-left: 0;
    }

    .path-item:nth-child(even) {
        flex-direction: row-reverse;
    }
}

/* Titik bulat di garis */
.path-marker {
    position: absolute;
    left: 10px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 20px hsla(220, 100%, 50%, 0.3);
    z-index: 2;
}

@media (min-width: 768px) {
    .path-marker {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Konten pengalaman */
.path-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 1px 3px hsla(220, 20%, 10%, 0.04), 0 8px 24px hsla(220, 20%, 10%, 0.06);
    transition: box-shadow var(--t-med), border-color var(--t-med);
    width: 100%;
    position: relative;
}

@media (min-width: 768px) {
    .path-item .path-content {
        width: calc(50% - 32px);
        margin-right: auto;
        text-align: left; /* Teks di dalam konten rata kiri */
    }

    .path-item:nth-child(even) .path-content {
        margin-right: 0;
        margin-left: auto;
    }

    /* Panah penghubung ke garis timeline */
    .path-content::after {
        content: '';
        position: absolute;
        top: 24px;
        width: 0;
        height: 0;
        border-style: solid;
    }

    .path-item:nth-child(odd) .path-content::after {
        right: -10px;
        border-width: 10px 0 10px 10px;
        border-color: transparent transparent transparent var(--border);
    }

    .path-item:nth-child(even) .path-content::after {
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--border) transparent transparent;
    }

    /* Penyesuaian List Bullet Standar Rata Kiri */
    .path-item .path-details li {
        padding-left: 0;
        padding-right: 0;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }

    .path-item .path-details li::before {
        position: static;
        content: '→';
        color: var(--primary);
    }
}

.path-content:hover {
    box-shadow: 0 4px 12px hsla(220, 100%, 50%, 0.08), 0 16px 40px hsla(220, 20%, 10%, 0.1);
    border-color: var(--primary-30);
}

.path-meta {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 6px;
}

.path-header h3 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.company {
    font-family: var(--f-body);
    font-size: 0.875rem;
    color: var(--fg-muted);
    display: block;
    margin-bottom: 12px;
}

.path-details {
    list-style: none;
}

.path-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--fg-muted);
    line-height: 1.6;
}

.path-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* PROJECTS */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px hsla(220, 20%, 10%, 0.04), 0 8px 24px hsla(220, 20%, 10%, 0.06);
    transition: box-shadow var(--t-med);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    box-shadow: 0 4px 12px hsla(220, 100%, 50%, 0.08), 0 16px 40px hsla(220, 20%, 10%, 0.1);
}

/* Area gambar — pakai aspect-ratio agar tidak gepeng */
.project-media {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-10), hsla(220, 100%, 50%, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.project-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s var(--ease);
}

.project-card:hover .project-media img {
    transform: scale(1.06);
}

/* Overlay "View Live" */
.project-mask {
    display: none;
}

/* Nomor proyek di tengah media tanpa gambar */
.project-num {
    font-family: var(--f-mono);
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-30);
    user-select: none;
}

/* Data teks */
.project-data {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-data h3 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.project-data p {
    font-size: 0.875rem;
    color: var(--fg-muted);
    line-height: 1.6;
    margin-bottom: 0px;
}

/* Footer project: Icon di kiri, Button di kanan */
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
}

/* Icon teknologi di project card */
.project-tech-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Button "View Site" modern */
.btn-project {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--primary-10);
    border: 1px solid var(--primary-20);
    transition: transform var(--t-fast), border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast), opacity var(--t-fast);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.btn-project:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-20);
}

.btn-project i {
    font-size: 0.8rem;
}

.project-tech-icons i {
    font-size: 1.5rem;
    color: var(--fg-muted);
    transition: color var(--t-med), transform var(--t-fast);
}

.project-tech-icons i:hover {
    color: var(--primary);
    transform: scale(1.15);
}

.project-tech-icons img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    opacity: 0.75;
    transition: opacity var(--t-med), transform var(--t-fast);
}

.project-tech-icons img:hover {
    opacity: 1;
    transform: scale(1.15);
}

.proj-icon-img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    opacity: 0.75;
    transition: opacity var(--t-med), transform var(--t-fast);
}

.proj-icon-img:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Tag teknologi (pertahankan untuk antisipasi) */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--primary-10);
    color: var(--primary);
    border: 1px solid var(--primary-20);
}

/* CERTIFICATES */

.merit-wrapper {
    position: relative;
}

.merit-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 4px 24px;
}

.merit-slider::-webkit-scrollbar {
    display: none;
}

.merit-slide {
    flex: 0 0 250px;
    scroll-snap-align: center;
    /* Sama tinggi dengan flexbox column stretch */
    display: flex;
}

.merit-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px hsla(220, 20%, 10%, 0.04), 0 8px 24px hsla(220, 20%, 10%, 0.06);
    cursor: pointer;
    transition: box-shadow var(--t-med), border-color var(--t-med);
    /* SAMA TINGGI: semua card stretch vertikal */
    display: flex;
    flex-direction: column;
    width: 100%;
}

.merit-card.active {
    border-color: var(--primary-30);
}

.merit-card:hover {
    box-shadow: 0 4px 12px hsla(220, 100%, 50%, 0.08), 0 16px 40px hsla(220, 20%, 10%, 0.1);
}

/* Kotak thumbnail sertifikat */
.merit-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-10), hsla(260, 80%, 60%, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    /* Selalu berwarna, tidak perlu efek grayscale */
    transition: box-shadow var(--t-med);
}

.merit-card:hover .merit-thumb,
.merit-card.active .merit-thumb {
    box-shadow: 0 4px 12px hsla(220, 100%, 50%, 0.15);
}

.merit-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
}

.merit-thumb-placeholder {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--fg-muted);
}

.merit-info {
    flex: 1;
    /* Isi sisa ruang agar semua card sama tingginya */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.merit-info h3 {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.merit-info p,
.merit-badge,
.view-indicator {
    display: none !important;
}

.merit-card:hover .merit-thumb img {
    transform: scale(1.08);
}

.merit-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    transition: transform var(--t-med);
}

/* Panah navigasi */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px hsla(220, 20%, 10%, 0.04), 0 8px 24px hsla(220, 20%, 10%, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg);
    cursor: pointer;
    transition: border-color var(--t-fast), color var(--t-fast);
    z-index: 5;
    font-size: 0.9rem;
}

.slider-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.slider-arrow.prev {
    left: -20px;
}

.slider-arrow.next {
    right: -20px;
}

/* Titik pagination */
.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background var(--t-med), transform var(--t-med), box-shadow var(--t-med);
    border: none;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.25);
    box-shadow: 0 0 20px hsla(220, 100%, 50%, 0.3);
}

/* SKILLS */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px hsla(220, 20%, 10%, 0.04), 0 8px 24px hsla(220, 20%, 10%, 0.06);
    cursor: default;
    transition: box-shadow var(--t-med), border-color var(--t-med);
}

.skill-item:hover {
    box-shadow: 0 4px 12px hsla(220, 100%, 50%, 0.08), 0 16px 40px hsla(220, 20%, 10%, 0.1);
    border-color: var(--primary-30);
}

.skill-item i,
.skill-item img {
    font-size: 2.2rem;
    height: 2.2rem;
    width: 2.2rem;
    object-fit: contain;
    flex-shrink: 0;
    color: var(--fg-muted);
    transition: color var(--t-med), transform var(--t-fast);
}

.skill-item:hover i,
.skill-item:hover img {
    color: var(--primary);
    transform: translateY(-2px);
}

.skill-item span {
    font-family: var(--f-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    width: 100%;
}

/* CONTACT */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: stretch;
    /* PENTING: form sejajar penuh dari atas ke bawah */
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h2 {
    font-family: var(--f-display);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.contact-info h2 span {
    color: var(--primary);
}

.contact-info>p {
    font-size: 0.95rem;
    color: var(--fg-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px hsla(220, 20%, 10%, 0.04), 0 8px 24px hsla(220, 20%, 10%, 0.06);
    transition: box-shadow var(--t-med), transform var(--t-med);
}

.method-card:hover {
    box-shadow: 0 4px 12px hsla(220, 100%, 50%, 0.08), 0 16px 40px hsla(220, 20%, 10%, 0.1);
    transform: translateX(6px);
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.method-card h3 {
    font-family: var(--f-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 4px;
}

.method-card p {
    font-family: var(--f-mono);
    font-size: 0.85rem;
    color: var(--fg-muted);
}

/* Form kontak — sejajar dengan info kontak */
.contact-form-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 1px 3px hsla(220, 20%, 10%, 0.04), 0 8px 24px hsla(220, 20%, 10%, 0.06);
    display: flex;
    flex-direction: column;
}

.elite-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    /* Isi ruang agar form memenuhi box */
}

/* Container tombol selalu di bawah */
.form-footer {
    margin-top: auto;
    padding-top: 4px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group,
.input-group-msg {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label,
.input-group-msg label {
    font-family: var(--f-body);
    font-size: 0.8rem;
    color: var(--fg-muted);
}

.input-group input,
.input-group-msg textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--fg);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--f-body);
    font-size: 0.875rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    width: 100%;
}

.input-group input:focus,
.input-group-msg textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-20);
}

.input-group-msg textarea {
    min-height: 140px;
    resize: none;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    background: var(--fg);
    color: var(--bg);
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background var(--t-med), color var(--t-med);
}

.btn-submit:hover {
    background: var(--primary);
    color: var(--primary-fg);
}

/* FOOTER */

.footer-elite {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

.footer-social-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

.footer-copyright-info {
    font-size: 0.75rem;
    color: var(--fg-muted);
    opacity: 0.6;
}

.footer-social a:hover .footer-icon-svg {
    filter: brightness(0) saturate(100%) invert(45%) sepia(93%) saturate(1352%) hue-rotate(201deg) brightness(101%) contrast(101%);
}

.footer-copyright-mini {
    font-size: 0.65rem;
    color: var(--fg-muted);
    opacity: 0.5;
    letter-spacing: 0.02em;
}

@media (max-width: 860px) {
    .footer-social-wrapper {
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }
}

/* LIGHTBOX */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 10, 20, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.lightbox.open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--t-fast);
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s var(--ease);
}

.lightbox.open .lightbox-content {
    transform: scale(1);
}

/* ===================================================================
   RESPONSIVE
=================================================================== */

@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Hero dua kolom — compact di tablet */
    .hero-two-col {
        gap: 36px;
    }

    .hero-avatar {
        width: 210px;
        height: 210px;
    }

    .avatar-group {
        width: 320px;
        height: 320px;
    }

    .avatar-ring-1 {
        width: 255px;
        height: 255px;
    }

    .avatar-ring-2 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 860px) {

    /* Stack vertikal di layar kecil */
    .hero-two-col {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .hero-text {
        align-items: center;
        text-align: center;
        order: 2;
    }

    .hero-text .hero-btns {
        justify-content: center;
    }

    .hero-text .hero-sub {
        margin: 0 auto 24px;
    }

    .hero-signature {
        align-items: flex-start;
        text-align: left;
        margin-bottom: 40px;
    }

    .project-tech-icons {
        gap: 10px;
    }

    .project-tech-icons i, 
    .project-tech-icons img,
    .proj-icon-img {
        font-size: 1.25rem;
        height: 1.25rem;
        width: 1.25rem;
    }

    .btn-project {
        padding: 6px 10px;
        font-size: 0.7rem;
        gap: 6px;
    }

    .btn-project i {
        font-size: 0.7rem;
    }

    .hero-photo-wrap {
        order: 1;
        padding: 0;
        margin-bottom: 24px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .avatar-group {
        width: 280px;
        height: 280px;
    }

    .avatar-status {
        position: relative;
        bottom: 0px;
        transform: none;
        left: 0;
    }

    .hero-social {
        margin-top: 20px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .section {
        padding: 72px 0;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .contact-form-box {
        padding: 28px 20px;
    }

    .path-timeline::before {
        left: 16px;
    }

    .path-item {
        padding-left: 44px;
    }

    .path-marker {
        left: 10px;
        top: 10px;
        transform: none;
    }

    .path-item .path-content {
        width: 100%;
    }

    .path-item:nth-child(even) .path-content {
        margin: 0;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    /* Slider arrow tetap terlihat di layar kecil */
    .slider-arrow.prev {
        left: -4px;
    }

    .slider-arrow.next {
        right: -4px;
    }

    /* Slide lebih kecil di mobile */
    .merit-slide {
        flex: 0 0 240px;
    }

    /* Avatar lebih kecil */
    .hero-avatar {
        width: 180px;
        height: 180px;
    }

    .avatar-ring-1 {
        width: 220px;
        height: 220px;
    }

    .avatar-ring-2 {
        width: 260px;
        height: 260px;
    }
}

/* SOCIAL SIDEBAR (Desktop Centered) */

.social-sidebar {
    position: fixed;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 100;
    display: none;
    animation: sidebarEntry 1s var(--ease) 1s both;
}

@media (min-width: 1024px) {
    .social-sidebar {
        display: block;
    }
}

.sidebar-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--fg-muted);
    transition: transform var(--t-fast), border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast), opacity var(--t-fast);
}

.sidebar-link i {
    font-size: 1.25rem;
}

.sidebar-link img {
    width: 1.1rem;
    height: 1.1rem;
    filter: brightness(0) saturate(100%) invert(46%) sepia(10%) saturate(1000%) hue-rotate(185deg) brightness(92%) contrast(88%);
    transition: filter var(--t-fast);
}

.sidebar-link:hover {
    color: var(--primary);
    transform: translateY(-4px);
}

.sidebar-link:hover img {
    filter: brightness(0) saturate(100%) invert(45%) sepia(93%) saturate(1352%) hue-rotate(201deg) brightness(101%) contrast(101%);
}

.sidebar-line {
    width: 1px;
    height: 100px;
    background: var(--border);
}

/* Specific scale for Credly in sidebar */
.sidebar-credly img {
    width: 1.4rem;
    height: 1.4rem;
}

/* HERO SOCIAL (Initially hidden on desktop, shown on mobile via query above) */

.hero-social {
    display: none;
    gap: 20px;
    animation: heroFadeIn 0.8s ease 0.7s both;
}

.hero-social a {
    color: var(--fg-muted);
    font-size: 1.2rem;
    transition: transform var(--t-fast), border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast), opacity var(--t-fast);
}

.hero-social img {
    width: 1.2rem;
    height: 1.2rem;
    filter: brightness(0) saturate(100%) invert(46%) sepia(10%) saturate(1000%) hue-rotate(185deg) brightness(92%) contrast(88%);
    transition: filter var(--t-fast);
}

.hero-social a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-social a:hover img {
    filter: brightness(0) saturate(100) invert(45%) sepia(93%) saturate(1352%) hue-rotate(201deg) brightness(101%) contrast(101%);
}

/* Specific scale for Credly in Hero */
.hero-credly img {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 1024px) {
    .hero-social {
        display: flex;
    }
}

/* MOBILE NAV SOCIAL */

.mobile-nav-social {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.mobile-nav-social a {
    color: var(--fg-muted);
    font-size: 1.25rem;
}

.mobile-nav-social img {
    width: 1.25rem;
    height: 1.25rem;
    filter: brightness(0) saturate(100%) invert(46%) sepia(10%) saturate(1000%) hue-rotate(185deg) brightness(92%) contrast(88%);
}

.mobile-credly img {
    width: 1.6rem !important;
    height: 1.6rem !important;
}

@keyframes sidebarEntry {
    from {
        opacity: 0;
        transform: translateY(-40%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* DEVELOPMENT MODAL EXCLUSIVE */
.modal-elite {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-elite.open {
    display: flex;
}

.modal-content-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.modal-elite.open .modal-content-box {
    transform: scale(1);
    opacity: 1;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-10);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 24px;
}

.modal-content-box h3 {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-content-box p {
    font-size: 0.95rem;
    color: var(--fg-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.btn-cancel {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    background: var(--bg-alt);
    color: var(--fg);
    border: 1px solid var(--border);
    font-family: var(--f-body);
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--t-fast), border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast), opacity var(--t-fast);
}

.btn-proceed {
    flex: 1.5;
    padding: 14px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-family: var(--f-body);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t-fast), border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast), opacity var(--t-fast);
}

.btn-cancel:hover {
    background: var(--border);
}

.btn-proceed:hover {
    box-shadow: 0 4px 15px var(--primary-30);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .modal-actions {
        flex-direction: column;
    }
    .modal-content-box {
        padding: 32px 24px;
    }
}