/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --primary-bg: rgba(37, 99, 235, 0.08);
    --secondary: #64748b;
    --accent: #0ea5e9;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --radius: 16px;
    --radius-sm: 8px;
    --nav-height: 72px;
}

[data-theme="dark"] {
    --primary: #60a5fa;
    --primary-light: #93c5fd;
    --primary-dark: #2563eb;
    --primary-bg: rgba(96, 165, 250, 0.1);
    --secondary: #94a3b8;
    --accent: #38bdf8;
    --bg-body: #060d1a;
    --bg-card: #0c1729;
    --text-main: #e8edf5;
    --text-muted: #8496b8;
    --text-light: #56688a;
    --border: #192740;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    transition: background 0.3s ease, color 0.3s ease;
}

.page-index { background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #f0fdf4 100%); }
.page-index[data-theme="dark"] { background: linear-gradient(135deg, #050e1f 0%, #0a1628 50%, #050e1a 100%); }
.page-projek { background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%); }
.page-projek[data-theme="dark"] { background: linear-gradient(135deg, #050e1a 0%, #0a1628 50%, #050e1f 100%); }
.page-artikel { background: linear-gradient(135deg, #fefce8 0%, #f8fafc 100%); }
.page-artikel[data-theme="dark"] { background: linear-gradient(135deg, #0a0e1a 0%, #0a1628 50%, #050e1f 100%); }
.page-detail_artikel { background: #f8fafc; }
.page-detail_artikel[data-theme="dark"] { background: #060d1a; }
.page-kontak { background: linear-gradient(135deg, #fff1f2 0%, #f8fafc 100%); }
.page-kontak[data-theme="dark"] { background: linear-gradient(135deg, #0f0a1a 0%, #0a1628 50%, #050e1f 100%); }
.page-tentang { background: linear-gradient(135deg, #f5f3ff 0%, #f8fafc 100%); }
.page-tentang[data-theme="dark"] { background: linear-gradient(135deg, #0a051a 0%, #0a1628 50%, #050e1f 100%); }

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    color: var(--text-light);
}

/* --- LAYOUT UTILITIES --- */
.container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    gap: 8px;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-main);
}

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

/* --- HEADER & NAV --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

[data-theme="dark"] header {
    background: rgba(11, 17, 33, 0.85);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-links a.active {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--border);
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.theme-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-bg);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.menu-toggle:hover {
    background: var(--primary-bg);
}

/* --- COMMON ELEMENTS --- */
.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.3px; }
.card p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.7; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.grid-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.grid-3 > * { flex: 1 1 300px; max-width: 360px; min-width: 0; }

.article-card {
    padding: 0;
    overflow: hidden;
}

.article-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 210px;
}
.article-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: transform 0.5s ease, filter 0.4s ease;
}
.article-card:hover .card-img-wrap img {
    transform: scale(1.07);
    filter: brightness(1.05);
}
.article-card .card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.article-card .card-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card .card-body .card-cat-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-bg);
    color: var(--primary);
    width: fit-content;
    margin-bottom: 0.5rem;
}
.article-card .card-body h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card .card-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.article-card .card-body .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.article-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.2s;
}
.card-action:hover {
    gap: 10px;
}

/* --- TECH TAGS (project card) --- */
.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.75rem;
}
.project-techs .skill-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.pagination a,
.pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1.5px solid var(--border);
    color: var(--text-main);
    background: var(--bg-card);
    transition: all 0.2s;
}
.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.12);
}
.pagination a.prev-next {
    border-color: transparent;
    background: transparent;
    font-weight: 500;
}
.pagination a.prev-next:hover {
    border-color: var(--border);
    background: var(--bg-card);
}
.pagination .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.pagination .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    color: var(--text-light);
    font-weight: 600;
}

/* --- SEARCH BOX --- */
.search-box {
    display: flex;
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}
.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.search-box input {
    flex: 1;
    border: none;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    background: transparent;
    color: var(--text-main);
    outline: none;
}
.search-box input::placeholder { color: var(--text-light); }
.search-box button {
    padding: 0.7rem 1.2rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
}
.search-box:focus-within button { color: var(--primary); }

/* --- PAGE HEADER --- */
.page-header {
    text-align: center;
    padding: 3rem 0 1rem;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-header p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* --- FILTER WRAPPER --- */
.filter-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

/* --- EMPTY STATE --- */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
    grid-column: 1 / -1;
}
.empty-state p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* --- SECTION SEPARATOR --- */
.section-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0 auto 3rem;
}

/* --- HERO SPECIFIC --- */
.hero {
    padding-top: calc(var(--nav-height) + 5rem);
    padding-bottom: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    min-height: 85vh;
}

.hero-content { flex: 1; max-width: 580px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-main) 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image { flex: 1; display: flex; justify-content: center; position: relative; }

.hero-img-wrapper {
    position: relative;
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0.15;
    animation: morph 8s ease-in-out infinite;
}

.hero-img-bg {
    width: 340px;
    height: 340px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    object-fit: cover;
    box-shadow: var(--shadow-xl);
    animation: morph 8s ease-in-out infinite;
    border: 3px solid var(--bg-card);
    position: relative;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40%/50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-bottom: 4rem;
}

.about-bio {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.9;
}

.skills-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-body));
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.skills-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.skills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.12);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* --- GALLERY GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-width: 540px;
    margin: 0 auto;
    justify-content: center;
}

.gallery-grid:has(> :last-child:nth-child(2)) {
    grid-template-columns: repeat(2, 175px);
    justify-content: center;
}

.gallery-grid:has(> :last-child:nth-child(1)) {
    grid-template-columns: 175px;
    justify-content: center;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
        max-width: 100%;
    }
    .gallery-grid:has(> :last-child:nth-child(2)),
    .gallery-grid:has(> :last-child:nth-child(1)) {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- CONTACT FORM (global) --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.contact-info h3 { margin-bottom: 1rem; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-group label {
    width: 100px;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    flex: 1;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-control::placeholder {
    color: var(--text-light);
}

/* --- FOOTER --- */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    text-align: center;
    margin-top: 5rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-light);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

footer p {
    font-size: 0.85rem;
}

/* --- ICONS --- */
.icon { width: 20px; height: 20px; stroke-width: 2; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }

/* --- STATUS BADGE (article category) --- */
.badge-cat {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* --- FILTER TAGS (artikel category) --- */
.filter-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}
.filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-tag.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- SOCIAL LOGOS (contact page) --- */
.social-logos-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}
.social-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 2px solid transparent;
}
.email-box { color: #2563eb; background: #dbeafe; }
.insta-box { color: #e1306c; background: #fce7f3; }
.github-box { color: #24292e; background: #f1f5f9; }
.social-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.08);
    border-color: var(--border);
}

/* --- DETAIL ARTIKEL --- */
/* --- DETAIL PAGE (projek & artikel) --- */
.detail-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

/* Image hero */
.detail-img-wrap {
    position: relative;
    margin-bottom: 2.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.detail-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.detail-img-wrap:hover .detail-img {
    transform: scale(1.03);
}
.detail-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.detail-cat-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Header area */
.detail-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.detail-meta .meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-light);
}

/* Tech tags section */
.detail-techs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2.5rem;
}
.detail-techs .skill-tag {
    font-size: 0.82rem;
    padding: 6px 16px;
    text-decoration: none;
}
.detail-techs .skill-tag:hover {
    transform: translateY(-2px);
}

/* Content area */
.detail-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    color: var(--text-main);
    line-height: 1.9;
    font-size: 1.05rem;
}

/* Share section */
.detail-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.detail-share span.label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.5rem;
}
.detail-share .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary-bg);
    color: var(--primary);
    border: 1.5px solid transparent;
    transition: all 0.2s;
}
.detail-share .share-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.12);
}
.detail-share .share-btn.wa { background: #dcfce7; color: #15803d; }
.detail-share .share-btn.wa:hover { border-color: #15803d; }
.detail-share .share-btn.fb { background: #dbeafe; color: #1e40af; }
.detail-share .share-btn.fb:hover { border-color: #1e40af; }
.detail-share .share-btn.x { background: #f1f5f9; color: #0f172a; }
.detail-share .share-btn.x:hover { border-color: #0f172a; }

/* Prev/next navigation */
.detail-prevnext {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    justify-content: space-between;
}
.detail-prevnext .pn-card {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.detail-prevnext .pn-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.detail-prevnext .pn-card .pn-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}
.detail-prevnext .pn-card .pn-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.detail-prevnext .pn-card:hover .pn-title { color: var(--primary); }
.detail-prevnext .pn-card.next { text-align: right; }
.detail-prevnext .pn-card.prev { text-align: left; }

/* Related section */
.detail-related {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border);
}
.detail-related h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* CTA button area */
.detail-cta {
    text-align: center;
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-bg), transparent);
    border-radius: var(--radius);
}
.detail-cta .btn {
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .detail-img { height: 260px; }
    .detail-title { font-size: 1.6rem; }
    .detail-content { padding: 1.5rem; font-size: 1rem; }
    .detail-prevnext { flex-direction: column; }
    .detail-prevnext .pn-card.next { text-align: left; }
    .detail-share .share-btn { font-size: 0.8rem; padding: 0.5rem 1rem; }
}

/* --- SCROLL REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- READING PROGRESS BAR --- */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 10001;
    width: 0%;
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        justify-content: center;
        padding-top: 6rem;
        min-height: auto;
        gap: 2rem;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        max-width: 100%;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-img-bg {
        width: 260px;
        height: 260px;
    }
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-xl);
    }
    .nav-links a {
        padding: 0.75rem 1rem;
    }
    .nav-links.active { transform: translateY(0); }
    .menu-toggle { display: block; }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .social-box {
        width: 60px;
        height: 60px;
    }

    .detail-title {
        font-size: 1.8rem;
    }
    .detail-img {
        height: 250px;
    }
    .detail-content {
        padding: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
    .grid-3 > * { flex: 1 1 240px; max-width: 100%; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-img-bg { width: 220px; height: 220px; }
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-group label {
        width: auto;
    }
    .contact-wrapper { padding: 1rem; }
    .section-title { font-size: 1.5rem; }
    .page-header h1 { font-size: 1.5rem; }
}

/* --- ADMIN RESPONSIVE --- */
@media (max-width: 768px) {
    .admin-container { flex-direction: column !important; }
    .admin-sidebar { width: 260px !important; position: fixed; left: -280px; top: 0; bottom: 0; z-index: 1000; transition: left 0.3s; padding-top: 1rem; }
    .admin-sidebar.active { left: 0; }
    .admin-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }
    .admin-sidebar-overlay.active { display: block; }
    .admin-btn-menu { display: inline-flex !important; }
    .admin-content { margin-left: 0 !important; padding: 1rem !important; }
    .table-wrap { overflow-x: auto; }
    .table-wrap table { font-size: 0.8rem; }
    .table-wrap table th, .table-wrap table td { padding: 0.5rem 0.4rem !important; white-space: nowrap; }
    .stat-cards { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem !important; }
}
@media (max-width: 480px) {
    .stat-cards { grid-template-columns: 1fr !important; }
    .admin-content h1 { font-size: 1.3rem; }
}

/* --- PRINT CSS --- */
@media print {
    header, footer, .back-to-top, #backToTop, .reading-progress, .mobile-overlay,
    .detail-share, .detail-prevnext, .detail-cta, .breadcrumb, .filter-wrap, .search-box,
    .pagination, .hero-actions, .nav-actions, .menu-toggle, .theme-btn { display: none !important; }
    body { background: white !important; color: black !important; }
    .container { max-width: 100% !important; padding: 0 !important; }
    .card, .detail-content { box-shadow: none !important; border: 1px solid #ddd !important; background: white !important; }
    .detail-img { height: auto !important; max-height: 300px !important; }
    .detail-wrapper { max-width: 100% !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    a { color: #2563eb !important; text-decoration: underline !important; }
    .page-header h1 { -webkit-text-fill-color: initial !important; color: black !important; }
}
