/*
 * AKmal Broe Portfolio — Main CSS
 * Di-load via functions.php hanya pada front page
 */

/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:     #06080e;
    --bg2:    rgba(9, 13, 24, 0.82);
    --bg3:    rgba(14, 17, 32, 0.88);
    --border: rgba(255, 255, 255, 0.07);
    --green:  #00e87a;
    --orange: #ff6b35;
    --purple: #9b73ff;
    --text:   #eeeef8;
    --muted:  #5a5a8a;
    --fd: 'Syne', sans-serif;
    --fb: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
    background: #06080e; /* fallback kalau body belum render */
}

body {
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%,   rgba(0, 232, 122, 0.06)  0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 100%,  rgba(155, 115, 255, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%,   rgba(0, 232, 122, 0.02)  0%, transparent 70%),
        linear-gradient(160deg, #06080e 0%, #070c0f 30%, #080710 65%, #060810 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--fb);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Override GeneratePress margin/padding resets */
.ak-portfolio-page #page,
.ak-portfolio-page .site-content,
.ak-portfolio-page .content-area,
.ak-portfolio-page #content,
.ak-portfolio-page .inside-article,
.ak-portfolio-page .entry-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    float: none !important;
    background: transparent !important;
    width: 100% !important;
}

/* ─── GRAIN OVERLAY ─── */
body.ak-portfolio-page::after {
    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='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9000;
}

/* ─── CURSOR ─── */
#cur {
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .3s, height .3s;
    mix-blend-mode: screen;
}
#cur-ring {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 232, 122, 0.35);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width .3s, height .3s, border-color .3s;
}
body.hovering #cur        { width: 18px; height: 18px; }
body.hovering #cur-ring   { width: 56px; height: 56px; border-color: rgba(0, 232, 122, 0.6); }

/* ─── NAVIGATION ─── */
#nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    padding: 22px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .4s, padding .4s, border-color .4s;
    border-bottom: 1px solid transparent;
}
#nav.scrolled {
    background: rgba(7, 7, 14, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 14px 60px;
    border-color: var(--border);
}
.nav-logo {
    font-family: var(--fd);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.nav-logo span { color: var(--green); }

.nav-links {
    display: flex;
    gap: 26px;
    list-style: none;
    align-items: center;
}
.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-fn {
    color: var(--green) !important;
    border: 1px solid rgba(0, 232, 122, 0.3);
    padding: 6px 14px;
    border-radius: 100px;
}
.nav-fn:hover { background: rgba(0, 232, 122, 0.08) !important; }

.nav-cta {
    background: var(--green) !important;
    color: var(--bg) !important;
    padding: 7px 18px;
    border-radius: 100px;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
}
.nav-cta:hover { opacity: 0.9; }

/* ─── SCROLL REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .75s ease, transform .75s ease;
}
.reveal.vis    { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ─── SHARED SECTION LABELS ─── */
.sl {
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sl::before { content: ''; width: 22px; height: 1px; background: var(--green); }
.st {
    font-family: var(--fd);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.sd { color: var(--muted); font-size: 0.95rem; max-width: 500px; line-height: 1.7; }

/* ─── BUTTONS ─── */
.btn-p {
    background: var(--green);
    color: var(--bg);
    padding: 13px 30px;
    border-radius: 100px;
    font-family: var(--fb);
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .2s, box-shadow .2s;
}
.btn-p:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 232, 122, 0.28);
    color: var(--bg);
    text-decoration: none;
}
.btn-s {
    background: transparent;
    color: var(--text);
    padding: 13px 30px;
    border-radius: 100px;
    font-family: var(--fb);
    font-size: 0.92rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color .2s, color .2s;
}
.btn-s:hover { border-color: var(--green); color: var(--green); text-decoration: none; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 60px 80px;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    filter: brightness(0.17) saturate(0.6);
    z-index: 0;
    transform: scale(1.04);
    animation: hzoom 20s ease-in-out infinite alternate;
}
@keyframes hzoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.1); }
}
.hero-ov1 {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(7,7,14,.88) 0%, rgba(7,7,14,.5) 50%, rgba(7,7,14,.72) 100%);
    z-index: 1;
}
.hero-ov2 {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, transparent 40%);
    z-index: 1;
}
.hero-g1 {
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,232,122,.09) 0%, transparent 65%);
    top: 0; right: -80px;
    pointer-events: none;
    animation: fg 9s ease-in-out infinite;
    z-index: 2;
}
.hero-g2 {
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(155,115,255,.06) 0%, transparent 65%);
    bottom: 5%; right: 30%;
    pointer-events: none;
    animation: fg 12s ease-in-out infinite reverse;
    z-index: 2;
}
@keyframes fg {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-28px) scale(1.04); }
}
.hero-c { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,232,122,.07);
    border: 1px solid rgba(0,232,122,.2);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--green);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
    width: fit-content;
}
.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pd 2s infinite;
}
@keyframes pd { 0%,100% { opacity:1; } 50% { opacity:.4; } }

.hero-name {
    font-family: var(--fd);
    font-size: clamp(3.2rem, 9vw, 8.5rem);
    font-weight: 800;
    line-height: 0.91;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
}
.hero-name .acc { color: var(--green); }
.hero-name .dim { color: rgba(238, 238, 248, 0.22); }

.hero-sub {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: var(--muted);
    max-width: 500px;
    line-height: 1.75;
    margin-bottom: 16px;
}
.hero-sub strong { color: var(--text); font-weight: 500; }

.hero-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 40px;
    max-width: 600px;
}
.cert-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    background: rgba(0,232,122,.06);
    border: 1px solid rgba(0,232,122,.15);
    border-radius: 100px;
    color: rgba(0,232,122,.8);
    font-weight: 500;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 72px; }

.hero-stats {
    display: flex;
    gap: 52px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,.1);
    flex-wrap: wrap;
}
.stat-n {
    font-family: var(--fd);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
    letter-spacing: -0.02em;
}
.stat-n .u { color: var(--green); font-size: 1.4rem; }
.stat-l { font-size: 0.76rem; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; }

/* ═══════════════════════════════════════════
   EXPERTISE
═══════════════════════════════════════════ */
#expertise { padding: 100px 60px; background: var(--bg2); }

.exp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 56px;
}
.ec {
    background: var(--bg2);
    padding: 38px 32px;
    position: relative;
    overflow: hidden;
    transition: background .3s;
}
.ec::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,232,122,.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .4s;
}
.ec:hover                 { background: var(--bg3); }
.ec:hover::before         { opacity: 1; }
.ci {
    width: 46px; height: 46px;
    background: rgba(0,232,122,.07);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 22px;
    transition: background .3s, transform .3s;
}
.ec:hover .ci { background: rgba(0,232,122,.14); transform: scale(1.08); }
.ct { font-family: var(--fd); font-size: 1rem; font-weight: 700; margin-bottom: 9px; }
.cd { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }
.ctags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; }
.tag {
    font-size: 0.7rem;
    padding: 3px 9px;
    background: rgba(255,255,255,.04);
    border-radius: 100px;
    color: var(--muted);
    transition: color .2s, background .2s;
}
.ec:hover .tag { color: var(--text); background: rgba(255,255,255,.07); }

/* ═══════════════════════════════════════════
   EXPERIENCE
═══════════════════════════════════════════ */
#xp { padding: 100px 60px; }

.tl { position: relative; margin-top: 56px; }
.tl::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--green) 0%, rgba(0,232,122,.05) 100%);
}
.ti { position: relative; padding-left: 38px; padding-bottom: 48px; }
.ti:last-child { padding-bottom: 0; }
.tdot {
    position: absolute;
    left: -4px; top: 5px;
    width: 9px; height: 9px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0,232,122,.12);
}
.em  { font-size: 0.78rem; color: var(--green); font-weight: 500; letter-spacing: 0.04em; margin-bottom: 3px; }
.ec2 { font-family: var(--fd); font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.er  { font-size: 0.87rem; color: var(--muted); margin-bottom: 12px; }
.ep  { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.ep li {
    font-size: 0.85rem;
    color: var(--muted);
    padding-left: 16px;
    position: relative;
    line-height: 1.55;
}
.ep li::before { content: '→'; position: absolute; left: 0; color: var(--green); font-size: 0.72rem; }
.eh { color: var(--muted); font-weight: 400; }

/* ═══════════════════════════════════════════
   CONSULTING
═══════════════════════════════════════════ */
#consulting { padding: 80px 60px; background: var(--bg2); }

.consult-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 48px; }
.consult-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: border-color .3s;
}
.consult-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,232,122,.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .4s;
}
.consult-card:hover               { border-color: rgba(0,232,122,.3); }
.consult-card:hover::before       { opacity: 1; }
.cc-icon  { font-size: 2rem; margin-bottom: 16px; }
.cc-title { font-family: var(--fd); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.cc-desc  { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }
.cc-examples {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--green);
}

/* ═══════════════════════════════════════════
   PORTFOLIO
═══════════════════════════════════════════ */
#portfolio { padding: 100px 60px; }

.ftabs { display: flex; gap: 8px; margin: 36px 0 32px; flex-wrap: wrap; }
.fb {
    padding: 7px 18px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-family: var(--fb);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all .25s;
}
.fb.active, .fb:hover { border-color: var(--green); color: var(--green); background: rgba(0,232,122,.06); }

.pg { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }

.pc {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 22px;
    position: relative;
    overflow: hidden;
    transition: border-color .3s, transform .3s;
    transform-style: preserve-3d;
}
.pc::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,232,122,.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .3s;
}
.pc:hover             { border-color: rgba(0,232,122,.3); }
.pc:hover::after      { opacity: 1; }

.pt     { font-size: 0.69rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 9px; }
.pt.ads { color: var(--orange); }
.pt.seo { color: var(--purple); }
.pt.web { color: var(--green); }

.pn   { font-family: var(--fd); font-size: 0.98rem; font-weight: 700; margin-bottom: 5px; }
.pd   { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.pm   { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--green); font-weight: 500; }

.via {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.67rem;
    color: var(--muted);
    background: rgba(255,255,255,.04);
    padding: 2px 8px;
    border-radius: 100px;
}
.via::before { content: 'via '; }

.archived {
    font-size: 0.67rem;
    color: rgba(255,107,53,.7);
    background: rgba(255,107,53,.07);
    border: 1px solid rgba(255,107,53,.15);
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 4px;
}

.pc.hidden  { display: none; }
.pc.special {
    background: linear-gradient(135deg, rgba(0,232,122,.05), rgba(155,115,255,.05));
    border-color: rgba(0,232,122,.15);
}

/* ═══════════════════════════════════════════
   TOOLS
═══════════════════════════════════════════ */
#tools { padding: 100px 60px; background: var(--bg2); }

.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); gap: 10px; margin-top: 48px; }
.ti2 {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
    transition: all .25s;
    cursor: default;
}
.ti2:hover { border-color: rgba(0,232,122,.3); color: var(--text); background: rgba(0,232,122,.04); transform: translateY(-2px); }
.ti2 img   { width: 26px; height: 26px; object-fit: contain; margin: 0 auto 7px; display: block; opacity: .7; transition: opacity .25s; }
.ti2:hover img { opacity: 1; }
.ti2 .fallback { font-size: 1.3rem; margin-bottom: 6px; display: block; }

/* ═══════════════════════════════════════════
   FIELD NOTES
═══════════════════════════════════════════ */
#insights { padding: 100px 60px; }

.insights-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 52px; }
.ic {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .3s, transform .3s;
    text-decoration: none;
    display: block;
    color: var(--text);
}
.ic:hover { border-color: rgba(0,232,122,.3); transform: translateY(-4px); text-decoration: none; color: var(--text); }
.ic-img   { height: 150px; background: var(--bg); position: relative; overflow: hidden; }
.ic-img-inner {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(.65) saturate(.8);
    transition: transform .4s, filter .4s;
}
.ic:hover .ic-img-inner { transform: scale(1.06); filter: brightness(.82) saturate(1); }
.ic-cat {
    position: absolute;
    top: 12px; left: 14px;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
}
.ic-cat.g { background: rgba(0,232,122,.15);   color: var(--green);  border: 1px solid rgba(0,232,122,.25); }
.ic-cat.o { background: rgba(255,107,53,.15);  color: var(--orange); border: 1px solid rgba(255,107,53,.25); }
.ic-cat.p { background: rgba(155,115,255,.15); color: var(--purple); border: 1px solid rgba(155,115,255,.25); }
.ic-body  { padding: 20px 18px; }
.ic-title { font-family: var(--fd); font-size: 0.93rem; font-weight: 700; line-height: 1.4; margin-bottom: 7px; }
.ic-desc  { font-size: 0.79rem; color: var(--muted); line-height: 1.6; }
.ic-meta  { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.73rem; color: var(--muted); }
.ic-meta span { color: var(--green); }

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
#contact { padding: 100px 60px; background: var(--bg2); text-align: center; }
.ci2 { max-width: 580px; margin: 0 auto; }
.ctt { font-family: var(--fd); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 22px; }
.ctt .g { color: var(--green); }
.ctd    { color: var(--muted); font-size: 0.97rem; margin-bottom: 40px; line-height: 1.7; }
.clinks { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.clink  {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 22px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.88rem;
    color: var(--text);
    text-decoration: none;
    transition: all .25s;
}
.clink:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); text-decoration: none; }

/* ─── FOOTER ─── */
footer {
    padding: 28px 60px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 10px; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
    #nav              { padding: 16px 24px; }
    #nav.scrolled     { padding: 12px 24px; }
    .nav-links        { display: none; }
    #hero, #expertise, #xp, #consulting,
    #portfolio, #tools, #insights, #contact { padding: 72px 24px; }
    .exp-grid         { grid-template-columns: 1fr; }
    .pg               { grid-template-columns: repeat(2,1fr); }
    .consult-grid     { grid-template-columns: 1fr; }
    .insights-grid    { grid-template-columns: 1fr; }
    .hero-stats       { gap: 28px; }
    footer            { padding: 20px 24px; flex-direction: column; gap: 6px; text-align: center; }
}
@media (max-width: 600px) {
    .pg    { grid-template-columns: 1fr; }
    .tgrid { grid-template-columns: repeat(3,1fr); }
}