/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background: #f9fafb;
    color: #111;
    scroll-behavior: smooth;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* ================= HEADER ================= */

.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* ================= LOGO ================= */

.logo a {
    font-weight: 600;
    font-size: 20px;
    text-decoration: none;
    color: #111;
}

/* ================= DESKTOP MENU ================= */

.nav {
    position: relative;
}

.menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    position: relative;
}

.menu > li > a {
    text-decoration: none;
    color: #111;
    padding: 10px 0;
    display: inline-block;
}

/* ===== DROPDOWN ===== */

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
}

/* TAMPIL HANYA SAAT HOVER */
.menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    padding: 0;
}

.sub-menu a {
    display: block;
    padding: 8px 18px;
    color: #111;
    text-decoration: none;
}

.sub-menu a:hover {
    background: #f3f3f3;
}

/* SUB LEVEL 2 */
.sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* ================= HAMBURGER ================= */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #111;
    transition: .3s;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0,0,0,.08);

        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
    }

    .nav.active {
        max-height: 500px;
    }

    .menu {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    /* MATIKAN DROPDOWN HOVER DI MOBILE */
    .menu li:hover > .sub-menu {
        opacity: 0;
        visibility: hidden;
        transform: none;
    }

/* ===== MOBILE DROPDOWN CLICK ONLY ===== */

.sub-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 15px;
}

/* jika aktif (dibuka via klik) */
.menu li.open > .sub-menu {
    display: block;
}

}


/* POSTS */
.post {
    background: #fff;
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: transform .3s ease;
}

.post:hover {
    transform: translateY(-5px);
}

.post h2 a {
    color: #111;
    text-decoration: none;
}

/* FOOTER */
.site-footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* FADE ANIMATION */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all .6s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media(max-width:768px){
    .nav ul {
        flex-direction: column;
    }
}


/*kedua*/
/* ==== SMOOTH GLOBAL ==== */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==== NAVBAR SHRINK ==== */
.site-header {
    transition: all .35s ease;
}

.site-header.shrink {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}


/* ==== FADE + SLIDE ==== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s cubic-bezier(.21,.6,.35,1);
    will-change: transform, opacity;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}



/* ======================
   PINTEREST MASONRY
====================== */

.masonry-grid {
    column-count: 3;
    column-gap: 28px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 28px;
    display: inline-block;
    width: 100%;
}

/* Card */
.post {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

/* Image */
.thumb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 12px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* Card */
.post {
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.thumb img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}




/* ======================
   NAV SEARCH
====================== */

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-search {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.search-box {
    position: absolute;
    top: 120%;
    right: 0;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .3s ease;
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-box input[type="search"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    width: 200px;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-search {
        margin-top: 10px;
    }
}


/* =========================
   SCROLL PROGRESS BAR
========================= */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    z-index: 9999;
    transition: width 0.08s linear;
}




/* ======================
   PAGINATION
====================== */

.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #111;
    text-decoration: none;
    transition: .2s ease;
}

.pagination .page-numbers:hover {
    background: #e5e7eb;
}

.pagination .current {
    background: #111;
    color: #fff;
}




/*landing*/
/* HERO */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(120deg,#0f172a,#1e293b);
    color: #fff;
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 10px;
}

.hero p {
    opacity: .8;
    margin-bottom: 20px;
}

.btn-primary {
    background: #06b6d4;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
}

/* FEATURES */
.features {
    padding: 80px 0;
    background: #f8fafc;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.05);
    text-align: center;
}

/* BLOG PREVIEW */
.home-blog {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.home-more {
    text-align: center;
    margin-top: 30px;
}

.btn-secondary {
    background: #111;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
}

/* Responsive */
@media(max-width:768px){
    .grid-3 { grid-template-columns:1fr; }
}



/* ======================
   TECH BLOG CATEGORY
====================== */

.post-categories {
    margin: 10px 0 15px;
}

.post-categories a {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    margin-right: 6px;
    border-radius: 4px;
    border: 1px solid #334155;
    color: #334155;
    text-decoration: none;
    transition: all .25s ease;
}

/* Hover effect neon tech */
.post-categories a:hover {
    border-color: #06b6d4;
    color: #06b6d4;
    box-shadow: 0 0 8px rgba(6,182,212,.4);
}


/* ======================
   Q&A CHAT STYLE
====================== */

.qa-question {
    margin: 20px 0 6px;
    font-weight: 600;
    color: #0f172a;
}

/* Chat bubble answer */
.qa-answer {
    background: #f1f5f9;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    color: #0f172a;
    line-height: 1.6;
    border-left: 3px solid #94a3b8;
}

/* Tech style hover subtle */
.qa-answer:hover {
    background: #e2e8f0;
}

/* ======================
   AUTO Q&A CHAT STYLE
====================== */

.qa-question {
    margin: 24px 0 6px;
    font-weight: 600;
    font-size: 16px;
    color: #0f172a;
}

/* Answer bubble */
.qa-answer {
    background: #f1f5f9;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    border-left: 3px solid #94a3b8;
    line-height: 1.7;
    color: #0f172a;
}

/* Hover subtle */
.qa-answer:hover {
    background: #e2e8f0;
}

/* COPY BUTTON */

.qa-answer {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: #0ea5e9;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    opacity: .8;
    transition: .2s;
}

.copy-btn:hover {
    opacity: 1;
    background: #0284c7;
}

.qa-answer p {
    margin: 0 0 14px;
}

.qa-answer ul,
.qa-answer ol {
    margin: 0 0 14px 20px;
}



/* ======================
   POST TITLE TECH
====================== */

.post h2,
.post h1 {
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin-bottom: 6px;
    position: relative;
}

/* Link */
.post h2 a {
    color: #0f172a;
    text-decoration: none;
    transition: .25s ease;
}

/* Hover glow tech */
.post h2 a:hover {
    color: #0ea5e9;
}

/* Accent underline modern */
.post h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    margin-top: 6px;
    background: linear-gradient(90deg,#0ea5e9,transparent);
}




/* ======================
   SINGLE & PAGE TITLE
====================== */

.post-header,
.page-header {
    margin: 40px 0 30px;
}

/* Meta */
.post-meta {
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Date subtle */
.post-date {
    opacity: .7;
}

/* Main Title */
.single-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #0f172a;
    position: relative;
    margin-bottom: 10px;
}

/* Accent gradient underline */
.single-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    margin-top: 14px;
    background: linear-gradient(90deg,#0ea5e9,#06b6d4);
    border-radius: 2px;
}

/* Hover glow subtle */
.single-title:hover {
    text-shadow: 0 0 20px rgba(14,165,233,.15);
}

/* Responsive */
@media (max-width:768px){
    .single-title {
        font-size: 28px;
    }
}


/* ======================
   COMMENTS
====================== */

.comments-wrap {
    margin-top: 60px;
}

.comments-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.comment {
    margin-bottom: 18px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 4px;
}

.comment-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.comment-content {
    line-height: 1.6;
}

/* Form */
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.comment-form input[type=submit] {
    background: #0ea5e9;
    color: #fff;
    border: none;
    cursor: pointer;
}


/* ======================
   TECH COMMENTS STYLE
====================== */

.comments-wrap {
    margin-top: 70px;
}

.comments-title {
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 600;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-item {
    margin-bottom: 25px;
}

.comment-body {
    display: flex;
    gap: 16px;
}

.comment-avatar img {
    border-radius: 50%;
}

.comment-content-wrap {
    background: #f8fafc;
    padding: 16px;
    border-radius: 14px;
    flex: 1;
    position: relative;
}

.comment-meta {
    font-size: 13px;
    margin-bottom: 6px;
    color: #64748b;
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-author {
    font-weight: 600;
    color: #0f172a;
}

.author-badge {
    background: #0ea5e9;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
}

.comment-text {
    line-height: 1.7;
    font-size: 14px;
}

.comment-reply a {
    font-size: 12px;
    color: #0ea5e9;
    text-decoration: none;
}

.comment-reply a:hover {
    text-decoration: underline;
}

/* Reply indentation */
.comment-list .children {
    margin-left: 60px;
    margin-top: 15px;
}

/* Comment Form */
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.comment-submit-btn {
    background: #0ea5e9;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
}

.comment-submit-btn:hover {
    background: #0284c7;
}