:root {
    --bg-main: #09090b;
    --bg-card: #141417;
    --border-color: #27272a;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent: #10b981;
    --accent-hover: #059669;

    /* CSS Variables Font */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
    --bg-main: #f4f4f5;
    --bg-card: #ffffff;
    --border-color: #e4e4e7;
    --text-main: #09090b;
    --text-muted: #71717a;
    --accent: #10b981;
    --accent-hover: #059669;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    width: 100%;
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

[data-theme="light"] .navbar {
    background-color: rgba(244, 244, 245, 0.9);
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

/* LAYOUT CONTAINER */
.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

/* HERO SECTION */
.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px 0 30px;
}

.hero-text {
    flex: 1;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    max-width: 480px;
}

.status-badge {
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 16px;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.role-tag {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-avatar-container {
    flex-shrink: 0;
}

.profile-avatar {
    width: 160px;
    height: 160px;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.social-icons-hero {
    display: flex;
    gap: 10px;
}

.social-icons-hero a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.social-icons-hero a:hover {
    border-color: var(--text-main);
    transform: translateY(-2px);
}

/* STATS (Clean Without Card) */
.stats-clean {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* SECTIONS & CLEAN LIST */
.section {
    margin-top: 48px;
}

.section-head {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.text-block {
    margin-bottom: 24px;
}

.block-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.block-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* FORM CARD */
.card-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--text-main);
}

.form-control.is-invalid {
    border-color: #ef4444 !important;
}

.error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
    display: none;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.btn {
    font-family: var(--font-heading);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

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

.turnstile-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
    width: 100%;
}

/* PROJEK */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.project-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.project-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}
.project-thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}
.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.project-card:hover .project-thumb img {
    transform: scale(1.04);
}
.project-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.project-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.project-title i {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.project-card:hover .project-title i {
    color: var(--accent);
}
.project-stack {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.stack-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2px;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0 30px;
    text-align: center;
    margin-top: 60px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    border-color: var(--text-main);
    transform: translateY(-2px);
}

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

/* MEDIA QUERY UNTUK HP (MOBILE VIEW FIX) */
@media (max-width: 650px) {
    .nav-links {
        display: none;
    }
    .hero-layout {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 20px;
    }
    .hero-avatar-container {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 8px;
    }
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .profile-avatar {
        width: 140px;
        height: 140px;
        border-radius: 20px;
    }
    .hero-name {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        text-align: center;
        font-size: 0.9rem;
    }
    .social-icons-hero {
        justify-content: center;
    }
    .stats-clean {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 20px;
    }
    .main-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* TECH STACK DENGAN LOGO */
.tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px 10px;
    line-height: 1;
}

.tech-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-color: var(--c, var(--text-main));
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.tech-fa {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* KEAHLIAN */
.skill-group {
    margin-bottom: 20px;
}

.skill-group .stack-label {
    margin-bottom: 8px;
}

.skill-group .tech-list {
    margin-top: 0;
}

.skill-group .tech-item {
    font-size: 0.85rem;
    padding: 8px 14px;
    background: var(--bg-card);
}

.skill-group .tech-icon {
    width: 16px;
    height: 16px;
}
