*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #0a0a0f;
    --bg2: #111118;
    --bg3: #1a1a24;
    --line: rgba(255,255,255,0.08);
    --accent: #c8a96e;
    --accent2: #7c6ef5;
    --text: #e8e6e0;
    --muted: #7a7870;
    --card: rgba(255,255,255,0.04);
}
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    cursor: none;
}
.cursor {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(200,169,110,0.4);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}
.cursor-ring.hover { width: 60px; height: 60px; border-color: var(--accent); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* NAV */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 3rem;
    transition: all 0.3s;
}
nav.scrolled {
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
    font-size: 0.78rem; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--muted);
    text-decoration: none; transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 1px; background: var(--accent);
    transform: scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* HERO */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 8rem 3rem 4rem;
    position: relative; overflow: hidden;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px; opacity: 0.4;
}
.hero-glow {
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,110,245,0.12) 0%, transparent 70%);
    top: -100px; right: -100px; pointer-events: none;
}
.hero-glow2 {
    position: absolute; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(200,169,110,0.08) 0%, transparent 70%);
    bottom: 0; left: 10%; pointer-events: none;
}
.hero-content { position: relative; max-width: 900px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: 'DM Mono', monospace; font-size: 0.72rem;
    letter-spacing: 0.2em; color: var(--accent); text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-badge::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700; line-height: 1.05; margin-bottom: 1.5rem;
    opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}
.hero-name .line2 { font-style: italic; font-weight: 400; color: var(--muted); }
.hero-desc {
    font-size: 1.1rem; color: var(--muted); max-width: 500px; margin-bottom: 3rem;
    opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}
.hero-cta {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    opacity: 0; animation: fadeUp 0.8s 0.8s forwards;
}
.btn-primary {
    padding: 0.85rem 2.2rem; background: var(--accent); color: #0a0a0f;
    font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
    border: none; cursor: none; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,169,110,0.3); }
.btn-outline {
    padding: 0.85rem 2.2rem; background: transparent; color: var(--text);
    font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
    border: 1px solid var(--line); cursor: none;
    transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.hero-scroll {
    position: absolute; bottom: 3rem; left: 3rem;
    display: flex; align-items: center; gap: 1rem;
    font-family: 'DM Mono', monospace; font-size: 0.7rem;
    letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase;
    opacity: 0; animation: fadeUp 0.8s 1s forwards;
}
.scroll-line {
    width: 1px; height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    animation: scrollPulse 2s ease-in-out infinite;
}

/* SECTIONS */
section { padding: 6rem 3rem; }
.section-header {
    display: flex; align-items: flex-end; gap: 2rem; margin-bottom: 4rem;
}
.section-num { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--accent); }
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1;
}
.section-line { flex: 1; height: 1px; background: var(--line); margin-bottom: 0.5rem; }

/* PROFIL */
#profil { background: var(--bg2); }
.profil-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; align-items: center; }
.profil-img-wrap { position: relative; aspect-ratio: 3/4; max-width: 340px; }
.profil-img-wrap::before {
    content: ''; position: absolute;
    top: 16px; left: 16px; right: -16px; bottom: -16px;
    border: 1px solid var(--accent); opacity: 0.3;
}
.profil-avatar {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--bg3) 0%, #1e1e2e 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 5rem; position: relative; z-index: 1;
}
.profil-tag {
    display: inline-block; font-family: 'DM Mono', monospace;
    font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--accent2); background: rgba(124,110,245,0.1);
    padding: 0.25rem 0.75rem; margin-bottom: 1.5rem;
}
.profil-text h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 1rem; }
.profil-text p { color: var(--muted); margin-bottom: 1.2rem; font-size: 0.95rem; }
.profil-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.info-item { border-left: 2px solid var(--line); padding-left: 1rem; }
.info-label {
    font-family: 'DM Mono', monospace; font-size: 0.65rem;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.25rem;
}
.info-val { font-size: 0.9rem; }

/* SKILL */
#skill { background: var(--bg); }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.skill-card {
    background: var(--card); border: 1px solid var(--line);
    padding: 2rem; transition: border-color 0.2s, transform 0.2s;
    position: relative; overflow: hidden;
}
.skill-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.skill-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-4px); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-icon { font-size: 2rem; margin-bottom: 1rem; }
.skill-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 0.5rem; }
.skill-desc { font-size: 0.85rem; color: var(--muted); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.skill-tag {
    font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.1em;
    color: var(--accent2); background: rgba(124,110,245,0.1); padding: 0.2rem 0.6rem;
}

/* PENUGASAN */
#penugasan { background: var(--bg2); }
.penugasan-tabs {
    display: flex; flex-wrap: wrap;
    border-bottom: 1px solid var(--line); margin-bottom: 3rem;
}
.tab-btn {
    padding: 0.85rem 1.8rem; background: none; border: none;
    font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
    letter-spacing: 0.08em; color: var(--muted); cursor: none;
    position: relative; transition: color 0.2s;
}
.tab-btn::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
    height: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.2s;
}
.tab-btn.active { color: var(--accent); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-btn:hover { color: var(--text); }
.penugasan-panel { display: none; animation: fadeUp 0.4s; }
.penugasan-panel.active { display: block; }
.penugasan-card {
    background: var(--bg3); border: 1px solid var(--line);
    padding: 2.5rem; margin-bottom: 1.5rem;
}
.penugasan-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.penugasan-num {
    font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--accent);
    background: rgba(200,169,110,0.1); padding: 0.25rem 0.6rem; letter-spacing: 0.1em;
}
.penugasan-date { font-size: 0.8rem; color: var(--muted); }
.penugasan-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 0.8rem; }
.penugasan-card p { color: var(--muted); font-size: 0.92rem; }
.penugasan-result { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.penugasan-result-label {
    font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--accent2); margin-bottom: 0.5rem;
}

/* PORTFOLIO */
#portfolio { background: var(--bg); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.portfolio-card {
    background: var(--card); border: 1px solid var(--line);
    overflow: hidden; transition: transform 0.3s, border-color 0.3s;
}
.portfolio-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.15); }
.portfolio-thumb {
    height: 200px;
    background: linear-gradient(135deg, var(--bg3), #1e1e2e);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; position: relative; overflow: hidden;
}
.portfolio-thumb::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--bg3));
}
.portfolio-body { padding: 1.8rem; }
.portfolio-category {
    font-family: 'DM Mono', monospace; font-size: 0.65rem;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem;
}
.portfolio-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 0.6rem; }
.portfolio-desc { font-size: 0.85rem; color: var(--muted); }
.portfolio-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1.2rem; padding-top: 1.2rem;
    border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted);
}
.portfolio-link {
    color: var(--accent2); text-decoration: none;
    font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em;
}
.portfolio-link:hover { color: var(--accent); }

/* KONTAK */
#kontak { background: var(--bg2); }
.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.kontak-info h3 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 1.5rem; }
.kontak-info p { color: var(--muted); margin-bottom: 2rem; }
.kontak-links { display: flex; flex-direction: column; gap: 1rem; }
.kontak-link {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.5rem; background: var(--bg3); border: 1px solid var(--line);
    text-decoration: none; color: var(--text);
    transition: border-color 0.2s, transform 0.2s;
}
.kontak-link:hover { border-color: var(--accent); transform: translateX(6px); }
.kontak-link-icon { font-size: 1.2rem; }
.kontak-link-info { flex: 1; }
.kontak-link-type { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; }
.kontak-link-val { font-size: 0.9rem; }
.kontak-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
    font-family: 'DM Mono', monospace; font-size: 0.68rem;
    letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent);
}
.form-input, .form-textarea {
    background: var(--bg3); border: 1px solid var(--line);
    padding: 0.85rem 1.2rem; color: var(--text);
    font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
    outline: none; transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent2); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-submit {
    padding: 0.95rem; background: var(--accent); color: #0a0a0f;
    border: none; cursor: none;
    font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
    font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    transition: opacity 0.2s, transform 0.2s;
}
.form-submit:hover { opacity: 0.85; transform: translateY(-2px); }

footer {
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 2rem 3rem;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.78rem; color: var(--muted);
}
.footer-brand { font-family: 'Playfair Display', serif; color: var(--accent); font-size: 1.1rem; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    nav { padding: 1.2rem 1.5rem; }
    .nav-links { display: none; }
    section { padding: 4rem 1.5rem; }
    .hero { padding: 7rem 1.5rem 3rem; }
    .profil-grid, .kontak-grid { grid-template-columns: 1fr; gap: 3rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}