:root {
    --bg-dark: #020617;
    --card-bg: rgba(15, 23, 42, 0.85);
    --accent-neon: #38bdf8;
    --text-bright: #f8fafc;
    --text-dim: #94a3b8;

    /* Liquid glass (tipis, gaya iOS) */
    --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.025) 100%);
    --glass-blur: blur(14px) saturate(140%);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        0 10px 30px rgba(0, 0, 0, 0.3);
    --glass-edge: linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(125, 211, 252, 0.22));
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background-color: var(--bg-dark); color: var(--text-bright); overflow-x: hidden; }

/* Orb warna di belakang kaca: hanya animasi transform (GPU), sangat ringan */
.orbs { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.orbs i {
    position: absolute; width: 52vmax; height: 52vmax; border-radius: 50%;
    background: radial-gradient(circle, var(--c) 0%, transparent 65%);
    will-change: transform; animation: drift 28s ease-in-out infinite alternate;
}
.orbs i:nth-child(1) { --c: rgba(56, 189, 248, 0.16); top: -18vmax; left: -14vmax; }
.orbs i:nth-child(2) { --c: rgba(79, 110, 229, 0.14); bottom: -20vmax; right: -16vmax; animation-duration: 34s; animation-delay: -9s; }
.orbs i:nth-child(3) { --c: rgba(56, 130, 220, 0.09); top: 38%; left: 42%; width: 36vmax; height: 36vmax; animation-duration: 40s; animation-delay: -17s; }
@keyframes drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(9vmax, 7vmax, 0) scale(1.15); }
}

a:focus-visible, button:focus-visible, .cert-item-card:focus-visible {
    outline: 2px solid var(--accent-neon); outline-offset: 3px;
}

#scroll-progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8, #bae6fd, #38bdf8);
    background-size: 200% auto; z-index: 9999;
    box-shadow: 0 0 10px #38bdf8, 0 0 22px #38bdf8;
    animation: shimmer-bar 2s linear infinite;
    transition: width 0.08s linear;
}
@keyframes shimmer-bar { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

.matrix-bg { position: fixed; inset: 0; z-index: -1; opacity: 0.45; pointer-events: none; }
.matrix-bg canvas { display: block; width: 100%; height: 100%; }

/* =========================================
   LIQUID GLASS - basis bersama
   ========================================= */
.navbar, .skills-container, .contact-split, .card, .cert-item-card,
.contact-btn, .hero-location, .social-links a, .cert-modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}
.skills-container, .contact-split, .card, .contact-btn,
.hero-location, .social-links a {
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}
/* Tepi kaca tipis: gradien highlight 1px di pinggir */
.navbar::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
/* Tepi kaca: gradien highlight 1px */
.skills-container::before, .contact-split::before, .card::before,
.cert-item-card::before, .cert-modal-content::before, .navbar::before,
.contact-btn::after, .social-links a::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: var(--glass-edge); pointer-events: none; z-index: 4;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.skills-container, .contact-split, .card, .social-links a { position: relative; }

/* Sorotan specular yang mengikuti kursor (PC). Variabel diisi JS hanya untuk elemen yang di-hover. */
@property --hl { syntax: "<number>"; inherits: false; initial-value: 0; }
.skills-container::after, .contact-split::after, .card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
    background:
        radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, calc(var(--hl) * 0.1)), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%);
    transition: --hl 0.35s ease;
}
.hl-on { --hl: 1; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .navbar, .skills-container, .contact-split, .card, .contact-btn,
    .hero-location, .social-links a, .cert-modal-content { background: var(--card-bg); }
}

/* =========================================
   NAVBAR (floating glass)
   ========================================= */
.navbar {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
    padding: 6px 10px 6px 24px; margin: 12px 4% 0; border-radius: 999px;
    position: sticky; top: 12px; z-index: 1000;
}
.logo { justify-self: start; font-size: 1.1rem; font-weight: 800; color: var(--accent-neon); text-shadow: 0 0 10px var(--accent-neon); }
.nav-links { grid-column: 2; display: flex; list-style: none; gap: 2px; position: relative; }
.nav-links li { position: relative; z-index: 1; }
.nav-links a {
    display: block; text-decoration: none; color: var(--text-dim); font-size: 0.78rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.5px; padding: 7px 14px; border-radius: 999px;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-bright); }
.nav-links a.active { color: var(--accent-neon); }
/* Kapsul kaca yang meluncur ke menu aktif (gaya tab bar iOS) */
.nav-indicator {
    position: absolute !important; top: 0; bottom: 0; left: 0; width: 0; z-index: 0 !important;
    border-radius: 999px; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.menu-toggle {
    display: none; background: none; border: 0; color: var(--accent-neon);
    font-size: 1.5rem; cursor: pointer; line-height: 1;
}

/* =========================================
   HERO
   ========================================= */
.hero { display: flex; align-items: center; gap: 60px; padding: 90px 10% 100px; }
.hero-image { flex: 1; }
.cyber-bg-wrapper {
    position: relative; width: 350px; height: 450px; margin-left: auto;
    display: flex; align-items: center; justify-content: center;
}
.img-interactive-box { position: relative; z-index: 2; width: 100%; height: 100%; }
.img-interactive-box img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 18px; border: 1px solid rgba(56, 189, 248, 0.6);
    filter: grayscale(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer; display: block;
}
.img-interactive-box:hover img, .img-interactive-box:active img {
    transform: scale(1.05) translateY(-10px);
    filter: grayscale(0%);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.6);
}
.img-interactive-box .photo-color { display: none; }
.grain-overlay {
    position: absolute; inset: 0; border-radius: 18px; z-index: 3;
    pointer-events: none; opacity: 0.12; transition: opacity 0.5s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px; mix-blend-mode: overlay;
}
.img-interactive-box:hover .grain-overlay, .img-interactive-box:active .grain-overlay { opacity: 0; }

.circle-anim {
    position: absolute; width: 125%; height: 115%;
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    z-index: 1; animation: morph 8s linear infinite; will-change: transform;
}
.circle-anim.delay { animation-duration: 12s; animation-direction: reverse; }
@keyframes morph {
    0%   { transform: rotate(0deg);   border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
    50%  { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    100% { transform: rotate(360deg); border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
}

.typing-wrapper { position: relative; width: fit-content; margin-bottom: 25px; overflow: hidden; }
.typing-text {
    color: var(--accent-neon); font-size: 1.4rem; letter-spacing: 4px;
    border-right: 3px solid var(--accent-neon);
    width: fit-content; white-space: nowrap; overflow: hidden;
    animation: typing 4.5s steps(30, end) 0.5s infinite both, blink 0.7s 0.5s infinite;
    position: relative; z-index: 1;
}
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink  { 50% { border-color: transparent } }
.scan-line {
    position: absolute; top: 0; bottom: 0; width: 50px;
    background: linear-gradient(90deg, transparent 0%, rgba(186, 230, 253, 0.55) 50%, transparent 100%);
    pointer-events: none; z-index: 2;
    animation: scan-sweep 4.5s ease-in-out 0.5s infinite;
}
@keyframes scan-sweep {
    0%   { left: -60px; opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { left: calc(100% + 10px); opacity: 0; }
}

.hero-content { flex: 1.2; }
.hero-content h1 { font-size: 3rem; margin-bottom: 5px; font-weight: 900; cursor: default; }
.hero-content p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 35px; max-width: 550px; line-height: 1.7; }
.social-links { display: flex; gap: 14px; margin-top: 20px; }
.social-links a {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); font-size: 1.1rem; text-decoration: none;
    transition: color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.social-links a:hover { color: var(--accent-neon); transform: translateY(-3px); box-shadow: var(--glass-shadow), 0 0 18px rgba(56, 189, 248, 0.3); }

/* =========================================
   SECTIONS
   ========================================= */
.section-title { text-align: center; font-size: 2rem; margin: 80px 0 40px; color: var(--accent-neon); text-transform: uppercase; letter-spacing: 3px; }

.skills-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
    padding: 40px; border-radius: 24px; margin: 0 10%;
}
.skill-info { display: flex; justify-content: space-between; margin-bottom: 10px; }
.skill-info i { color: var(--accent-neon); margin-right: 10px; }
.progress-bar { background: rgba(255, 255, 255, 0.07); height: 8px; border-radius: 10px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4); }
.progress { background: linear-gradient(90deg, #0ea5e9, var(--accent-neon)); height: 100%; box-shadow: 0 0 15px var(--accent-neon); border-radius: 10px; width: 0%; }

/* =========================================
   CERT MARQUEE
   (kartu sengaja tanpa backdrop-filter: bergerak terus, blur per frame mahal)
   ========================================= */
.cert-marquee-container {
    position: relative; width: 100%; overflow: hidden; padding: 10px 0 40px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.cert-marquee-container:active { cursor: grabbing; }
.cert-track { display: flex; gap: 24px; width: max-content; will-change: transform; }

.cert-item-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.5));
    border-radius: 20px; padding: 16px; width: 330px; flex-shrink: 0;
    display: flex; flex-direction: column; gap: 12px;
    position: relative; overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.cert-item-card:hover {
    border-color: rgba(56, 189, 248, 0.6); transform: translateY(-6px);
    box-shadow: var(--glass-shadow), 0 12px 30px rgba(56, 189, 248, 0.22);
}
.cert-img-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #020617; }
.cert-img-blur {
    position: absolute; inset: -20px; background-size: cover; background-position: center;
    filter: blur(14px) brightness(0.55); transform: scale(1.2); z-index: 1;
}
.cert-img-wrapper img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.cert-item-info h4 { font-size: 1.1rem; color: var(--accent-neon); margin-bottom: 4px; font-weight: 700; }
.cert-item-info p { font-size: 0.85rem; color: var(--text-dim); margin: 0; line-height: 1.5; }

.cert-shimmer::after {
    content: ""; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent 20%, rgba(186, 230, 253, 0.18) 40%, rgba(56, 189, 248, 0.25) 50%, rgba(186, 230, 253, 0.18) 60%, transparent 80%);
    transform: skewX(-15deg); pointer-events: none; z-index: 5; opacity: 0; border-radius: inherit;
}
.cert-shimmer.shimmer-active::after { animation: cert-shimmer-sweep 1.4s ease-out forwards; }
@keyframes cert-shimmer-sweep { 0% { left: -80%; opacity: 0; } 10% { opacity: 1; } 100% { left: 120%; opacity: 0.2; } }

/* =========================================
   MODAL
   ========================================= */
.cert-modal {
    position: fixed; inset: 0; background: rgba(2, 6, 23, 0.78);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 24px;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cert-modal.active { opacity: 1; visibility: visible; }
.cert-modal-content {
    border-radius: 24px; padding: 18px; width: fit-content; max-width: 92vw; position: relative;
    box-shadow: var(--glass-shadow), 0 0 50px rgba(56, 189, 248, 0.25);
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    opacity: 0; transform: translateY(18px) scale(0.92); will-change: transform, opacity;
    transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.15), opacity 0.3s ease;
}
.cert-modal.active .cert-modal-content { opacity: 1; transform: none; }
.cert-modal { overscroll-behavior: contain; }
.cert-modal-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)), rgba(15, 23, 42, 0.62);
    box-shadow: var(--glass-shadow), 0 0 50px rgba(56, 189, 248, 0.12);
}
.cert-modal-img-box { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.cert-modal-close {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)), rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.22); color: var(--text-bright);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 18px rgba(0, 0, 0, 0.4);
}
.cert-modal-close:hover { background: rgba(56, 189, 248, 0.9); color: var(--bg-dark); }
.cert-modal-close {
    position: absolute; top: -15px; right: -15px; width: 40px; height: 40px;
    background: rgba(2, 6, 23, 0.85); border: 1px solid var(--accent-neon); color: var(--accent-neon);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.1rem; box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
    transition: background 0.3s, color 0.3s, transform 0.3s; z-index: 10;
}
.cert-modal-close:hover { background: var(--accent-neon); color: var(--bg-dark); transform: scale(1.1); }
.cert-modal-img-box { display: flex; justify-content: center; align-items: center; border-radius: 12px; overflow: hidden; }
.cert-modal-img-box img { display: block; width: auto; height: auto; max-width: 85vw; max-height: 75vh; border-radius: 12px; }
.cert-modal-info { width: 100%; text-align: center; }
.cert-modal-info h4 { font-size: 1.25rem; color: var(--accent-neon); margin-bottom: 4px; }
.cert-modal-info p { font-size: 0.92rem; color: var(--text-dim); margin: 0; line-height: 1.5; }

/* =========================================
   PORTFOLIO
   ========================================= */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin: 0 10% 80px; }
.card { border-radius: 22px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow), 0 14px 34px rgba(56, 189, 248, 0.18); }
.img-zoom { overflow: hidden; height: 200px; }
.img-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.card:hover .img-zoom img { transform: scale(1.05); }
.card-body { padding: 20px; }
.card-body h4 { font-size: 1.15rem; color: var(--accent-neon); margin-bottom: 10px; }
.card-body p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; }

/* =========================================
   CONTACT
   ========================================= */
.contact-section { padding: 60px 10% 100px; }
.contact-split { display: flex; gap: 60px; align-items: flex-start; border-radius: 28px; padding: 60px; }
.contact-left { flex: 1.1; }
.contact-tag { font-size: 0.78rem; color: var(--accent-neon); text-transform: uppercase; letter-spacing: 3px; font-weight: 600; display: block; margin-bottom: 16px; }
.contact-heading { font-size: 2.2rem; font-weight: 900; color: var(--text-bright); margin-bottom: 20px; line-height: 1.2; }
.contact-desc { color: var(--text-dim); font-size: 1rem; line-height: 1.8; margin-bottom: 28px; max-width: 420px; }
.contact-right { flex: 1; display: flex; flex-direction: column; gap: 14px; }

.contact-btn {
    display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px;
    text-decoration: none; color: var(--text-bright); position: relative; overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-btn::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.14), rgba(56, 189, 248, 0.04));
    transform: translateX(-100%); transition: transform 0.4s ease; z-index: 0; border-radius: inherit;
}
.contact-btn:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow), 0 8px 25px rgba(56, 189, 248, 0.2); border-color: rgba(56, 189, 248, 0.5); }
.contact-btn:hover::before { transform: translateX(0); }
.contact-btn-icon {
    width: 42px; height: 42px; border-radius: 12px; background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.22); display: flex; align-items: center; justify-content: center;
    color: var(--accent-neon); font-size: 1rem; flex-shrink: 0; position: relative; z-index: 1;
    transition: background 0.3s, border-color 0.3s;
}
.contact-btn:hover .contact-btn-icon { background: rgba(56, 189, 248, 0.2); border-color: var(--accent-neon); }
.contact-btn-text { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.contact-btn-text small { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; }
.contact-btn-text strong { font-size: 0.9rem; color: var(--text-bright); font-weight: 600; }
.contact-btn-arrow { margin-left: auto; color: var(--text-dim); font-size: 0.8rem; position: relative; z-index: 1; transition: transform 0.3s ease, color 0.3s; }
.contact-btn:hover .contact-btn-arrow { transform: translateX(4px); color: var(--accent-neon); }

.hero-location {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
    padding: 6px 14px 6px 10px; border-radius: 999px; width: fit-content;
    transition: box-shadow 0.3s ease;
}
.hero-location:hover { box-shadow: var(--glass-shadow), 0 0 14px rgba(56, 189, 248, 0.25); }
.hero-location i { color: var(--accent-neon); font-size: 0.78rem; animation: pulse-glow 2.5s ease-in-out infinite; }
.hero-location span { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.4px; }
@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 6px var(--accent-neon), 0 0 14px rgba(56, 189, 248, 0.4); }
    50%      { text-shadow: 0 0 12px var(--accent-neon), 0 0 28px rgba(56, 189, 248, 0.7); }
}

.contact-location { display: inline-flex; align-items: flex-start; gap: 10px; margin-top: 14px; }
.contact-location i { color: var(--accent-neon); font-size: 0.82rem; text-shadow: 0 0 8px var(--accent-neon); flex-shrink: 0; margin-top: 2px; }
.location-main { font-size: 0.85rem; color: var(--text-bright); letter-spacing: 0.3px; }

.footer-bar { background: rgba(0, 0, 0, 0.6); border-top: 1px solid var(--glass-border); color: var(--text-dim); text-align: center; padding: 40px; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .navbar { display: flex; justify-content: space-between; margin: 8px auto 0; top: 8px; width: 92%; padding: 8px 8px 8px 18px; }
    .menu-toggle { display: block; }
    .nav-links {
        position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; gap: 0;
        padding: 6px 14px; border-radius: 24px; display: flex;
        background: var(--glass-bg), rgba(15, 23, 42, 0.5);
        border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
        -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
        opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.94); transform-origin: 85% 0;
        transition: opacity 0.25s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.18), visibility 0s linear 0.5s;
        will-change: transform, opacity;
    }
    .nav-links.active {
        opacity: 1; visibility: visible; transform: none;
        transition: opacity 0.25s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.18), visibility 0s;
    }
    .nav-links::before {
        content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
        background: var(--glass-edge);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor; mask-composite: exclude;
    }
    .nav-links li { opacity: 0; transform: translateY(-6px); transition: opacity 0.25s ease, transform 0.35s ease; }
    .nav-links.active li { opacity: 1; transform: none; }
    .nav-links.active li:nth-child(1) { transition-delay: 0.04s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.08s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.12s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.16s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.20s; }
    .nav-links li + li { border-top: 1px solid rgba(255, 255, 255, 0.07); }
    .nav-links a { padding: 13px 8px; font-size: 0.85rem; border-radius: 0; }
    .nav-indicator { display: none; }
    /* HP: blur hanya di elemen besar; kartu kecil pakai kaca tanpa blur supaya scroll tetap mulus */
    .card, .contact-btn, .social-links a, .hero-location {
        -webkit-backdrop-filter: none; backdrop-filter: none;
        background: linear-gradient(180deg, rgba(40, 55, 85, 0.55), rgba(20, 30, 52, 0.45));
    }
    .skills-container, .contact-split {
        -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
    }
    .orbs i { animation-duration: 45s; }
    .cert-modal { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(2, 6, 23, 0.8); }

    .hero { flex-direction: column; padding: 50px 6% 40px; text-align: center; gap: 30px; }
    .hero-image { width: 100%; display: flex; justify-content: center; flex: none; }
    .cyber-bg-wrapper { width: 220px; height: auto; aspect-ratio: 3 / 4; margin: 0 auto; }
    .hero-content { flex: none; width: 100%; }
    .hero-content h1 { font-size: 1.75rem; line-height: 1.25; }
    .typing-wrapper { margin: 0 auto 20px; }
    .typing-text { font-size: 1rem; letter-spacing: 2px; }
    .hero-content p { margin: 0 auto 28px; font-size: 0.95rem; line-height: 1.75; }
    .social-links { justify-content: center; }
    .hero-location { margin: 16px auto 0; }

    .skills-container { grid-template-columns: 1fr; padding: 22px; gap: 18px; margin: 0 6%; }
    .section-title { font-size: 1.45rem; letter-spacing: 2px; margin: 50px 0 22px; }

    .cert-marquee-container { padding: 5px 0 30px; }
    .cert-item-card { width: 280px; padding: 14px; }
    .cert-modal { padding: 16px; }
    .cert-modal-content { padding: 14px; max-width: 94vw; }
    .cert-modal-close { top: -12px; right: -10px; width: 36px; height: 36px; font-size: 1rem; }
    .cert-modal-img-box img { max-width: 88vw; max-height: 68vh; }
    .cert-modal-info h4 { font-size: 1.1rem; }
    .cert-modal-info p { font-size: 0.85rem; }

    .portfolio-grid { grid-template-columns: 1fr; margin: 0 6% 60px; gap: 20px; }
    .img-zoom { height: 180px; }
    .card-body { padding: 16px; }
    .card-body h4 { font-size: 1.05rem; }
    .card-body p { font-size: 0.88rem; }

    .contact-section { padding: 40px 6% 80px; }
    .contact-split { flex-direction: column; gap: 30px; padding: 28px 20px; }
    .contact-heading { font-size: 1.7rem; }
    .contact-desc { max-width: 100%; font-size: 0.95rem; }
    .contact-location { margin-top: 12px; }
    .location-main { font-size: 0.82rem; }
    .contact-btn { padding: 14px 16px; gap: 12px; }
    .contact-btn-text small { font-size: 0.65rem; }
    .contact-btn-text strong { font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .hero { padding: 40px 5% 30px; }
    .cyber-bg-wrapper { width: 185px; }
    .hero-content h1 { font-size: 1.45rem; }
    .typing-text { font-size: 0.88rem; }
    .skills-container { padding: 16px; gap: 14px; }
    .cert-item-card { width: 250px; padding: 12px; }
    .cert-item-info h4 { font-size: 1rem; }
    .cert-item-info p { font-size: 0.8rem; }
    .cert-modal-img-box img { max-width: 86vw; max-height: 60vh; }
    .portfolio-grid { gap: 16px; }
    .contact-split { padding: 20px 14px; }
    .contact-btn { padding: 12px 14px; gap: 10px; }
    .contact-btn-icon { width: 36px; height: 36px; font-size: 0.88rem; }
    .contact-btn-text strong { font-size: 0.75rem; }
    .contact-heading { font-size: 1.5rem; }
    .footer-bar { padding: 28px 16px; font-size: 0.82rem; }
}

@media (hover: none) {
    /* HP: saat foto masuk layar, warnanya muncul perlahan (sekali saja). Hanya animasi opacity -> ringan. */
    .img-interactive-box .photo-color {
        display: block; position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none;
        filter: none !important; transform: none !important; box-shadow: none !important;
        transition: opacity 1.4s ease;
    }
    .img-interactive-box.is-colored .photo-color { opacity: 1; }
    .img-interactive-box:hover img { transform: none; filter: grayscale(100%); box-shadow: none; }
    .img-interactive-box:hover .grain-overlay { opacity: 0.12; }
    .skills-container::after, .contact-split::after, .card::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%); }
    .card:hover, .contact-btn:hover, .cert-item-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .img-interactive-box .photo-color { transition: none; }
    .orbs i { animation: none !important; }
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .typing-text { width: 100%; }
    .scan-line { display: none; }
}