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

:root {
    --bg: #0a0c0f;
    --surface: #111419;
    --surface2: #181d24;
    --border: #1e2530;
    --border2: #252d3a;
    --accent: #00e5a0;
    --accent2: #0066ff;
    --orange: #ff6b2b;
    --text: #e8ecf0;
    --muted: #5a6478;
    --text-body: #c5ccd8;
    --serif: 'Lora', serif;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Syne', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

/* Grid background */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
            linear-gradient(var(--border) 1px, transparent 1px),
            linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(10,12,15,0.85);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--bg);
}

.logo-text {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.05em;
}

.logo-text span { color: var(--accent); }

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

.nav-links a {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(0,229,160,0.05);
}

.nav-links .active {
    color: var(--accent);
    border-color: var(--border);
    background: var(--surface);
}

/* MAIN */
main {
    position: relative;
    z-index: 1;
    padding-top: 64px;
}

/* HERO */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
}

.hero-tag {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--accent);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.hero h1 .highlight {
    color: var(--accent);
    position: relative;
}

.hero h1 .highlight::after {
    content: '_';
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    margin-top: 1.5rem;
    line-height: 1.8;
    max-width: 500px;
}

.hero-desc span { color: var(--text); }

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat {
    border-left: 2px solid var(--border);
    padding-left: 1rem;
}

.stat-number {
    font-family: var(--mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

/* Terminal decoration */
.hero-terminal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 320px;
    overflow: hidden;
    animation: fadeSlide 0.8s ease 0.3s both;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.terminal-bar {
    background: var(--surface2);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbe2e; }
.dot-g { background: #28c941; }

.terminal-title {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    margin-left: auto;
}

.terminal-body {
    padding: 1rem;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 2;
}

.t-prompt { color: var(--accent); }
.t-cmd { color: var(--text); }
.t-comment { color: var(--muted); }
.t-output { color: #7dd3fc; }
.t-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: -2px;
}

/* DIVIDER */
.section-divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-divider::before, .section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 2px;
}

/* FEATURED */
.featured-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

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

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '▶';
    font-size: 8px;
    color: var(--accent);
}

.see-all {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.see-all:hover { color: var(--accent); }

/* Featured card (big) */
.featured-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1rem;
}

.card-featured {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
    animation: fadeUp 0.6s ease both;
}

.card-featured:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.card-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.card-accent-blob {
    position: absolute;
    bottom: -40px; right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(0,229,160,0.06), transparent 70%);
    border-radius: 50%;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(0,229,160,0.08);
    border: 1px solid rgba(0,229,160,0.2);
    padding: 3px 10px;
    border-radius: 3px;
    width: fit-content;
    margin-bottom: 1rem;
}

.card-featured h2 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    margin-top: auto;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-view-icon {
    width: 14px; height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

/* Side cards */
.cards-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-small {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.card-small:hover {
    border-color: var(--border);
    border-color: rgba(0,229,160,0.3);
    transform: translateX(4px);
}

.card-small-num {
    font-family: var(--mono);
    font-size: 2rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    min-width: 40px;
}

.card-small-content { flex: 1; }

.card-small h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 6px;
}

.card-small-meta {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    display: flex;
    gap: 12px;
}

.views-badge {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 2px 8px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
}

/* ALL POSTS */
.all-posts {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.card-post {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s, transform 0.2s;
    animation: fadeUp 0.6s ease both;
}

.card-post:nth-child(1) { animation-delay: 0.05s; }
.card-post:nth-child(2) { animation-delay: 0.1s; }
.card-post:nth-child(3) { animation-delay: 0.15s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-post:hover {
    border-color: rgba(0,229,160,0.3);
    transform: translateY(-3px);
}

.card-post h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.card-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.tag-pill {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--orange);
    background: rgba(255,107,43,0.08);
    border: 1px solid rgba(255,107,43,0.2);
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tag-pill.linux { color: var(--accent2); background: rgba(0,102,255,0.08); border-color: rgba(0,102,255,0.2); }

.post-date {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
}

/* FOOTER */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

.footer-left span { color: var(--accent); }

.footer-right {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
}

.footer-right a {
    color: var(--accent2);
    text-decoration: none;
}

/* Glow bar */
.glow-bar {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 0 2rem;
    opacity: 0.4;
}

/* Responsive */
@media (max-width: 900px) {
    .featured-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr 1fr; }
    .hero { grid-template-columns: 1fr; }
    .hero-terminal { display: none; }
}

@media (max-width: 600px) {
    .posts-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .hero-stats { gap: 1.5rem; }
    .article-title { font-size: 1.4rem; }
    .article-meta { gap: 0.75rem; }
    .meta-divider { display: none; }
}

.blogdetail {
    position: relative;
    z-index: 1;
    padding-top: 64px;
    max-width: 800px;        /* ← lebih kecil, lebih nyaman dibaca */
    margin: 0 auto;
    display: block;          /* ← ganti grid jadi block */
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 6rem;
}

/* ARTICLE */
article {
    min-width: 0;
}

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    margin-top: 3rem;
    margin-bottom: 2rem;
    animation: fadeUp 0.5s ease both;
}
.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border2); }
.breadcrumb-current { color: var(--text); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ARTICLE HEADER */
.article-header {
    margin-bottom: 2.5rem;
    animation: fadeUp 0.5s ease 0.1s both;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(0,229,160,0.08);
    border: 1px solid rgba(0,229,160,0.2);
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 1.25rem;
}

.article-tag::before {
    content: '●';
    font-size: 7px;
}

.article-title {
    font-family: var(--sans);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
}

.meta-item svg {
    width: 13px; height: 13px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.meta-item strong {
    color: var(--text);
    font-weight: 600;
}

.meta-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

/* ARTICLE BODY */
.article-body {
    animation: fadeUp 0.5s ease 0.2s both;
}

.article-intro {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    border-left: 3px solid var(--accent2);
    position: relative;
}

.article-intro::before {
    content: '"';
    position: absolute;
    top: -10px; left: 16px;
    font-size: 3rem;
    color: var(--accent2);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

/* CLOSING NOTE */
.closing-note {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeUp 0.5s ease 0.5s both;
}

.closing-icon {
    width: 40px; height: 40px;
    background: rgba(0,229,160,0.1);
    border: 1px solid rgba(0,229,160,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.closing-text {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
}

.closing-text strong { color: var(--accent); font-style: normal; }

/* SHARE / TAGS */
.article-footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeUp 0.5s ease 0.55s both;
}

.tag-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tag-pill {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0,229,160,0.08);
    border: 1px solid rgba(0,229,160,0.2);
    padding: 4px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-pill:hover {
    background: rgba(0,229,160,0.15);
    border-color: var(--accent);
}

.share-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.share-btn {
    width: 32px; height: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.share-btn:hover {
    border-color: var(--accent);
    background: rgba(0,229,160,0.05);
}

.share-btn svg {
    width: 14px; height: 14px;
    fill: var(--muted);
    transition: fill 0.2s;
}

.share-btn:hover svg { fill: var(--accent); }