/* =========================================================================
   HAMDANI — PERSONAL BRAND SITE
   Gaya: Bold & Personal — hangat, berwarna, penuh karakter, tetap profesional.
   ========================================================================= */

/* ---- 1. RESET DASAR ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, p, li, span { overflow-wrap: break-word; word-break: break-word; }

/* ---- 2. DESAIN TOKEN (ganti warna di sini untuk re-brand cepat) -------- */
:root {
    --ink:        #1B1F3B;   /* teks utama / blok gelap */
    --ink-soft:   #4A4E70;
    --paper:      #FFFBF3;   /* latar utama, hangat bukan putih polos */
    --paper-alt:  #FFF3E4;
    --white:      #FFFFFF;
    --coral:      #FF5A36;   /* aksen utama — energik */
    --coral-dark: #E44A28;
    --yellow:     #FFC145;   /* aksen sekunder — highlight */
    --teal:       #17B890;   /* aksen tersier — tag/sukses */
    --muted:      #6B6F8A;
    --border:     rgba(27,31,59,0.10);
    --shadow:     0 20px 45px -20px rgba(27,31,59,0.35);
    --radius-lg:  28px;
    --radius-md:  18px;
    --radius-sm:  12px;
    --font-head:  'Sora', system-ui, sans-serif;
    --font-body:  'Inter', system-ui, sans-serif;
    --container:  1160px;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p  { color: var(--ink-soft); }
.lede { font-size: 1.15rem; color: var(--ink-soft); }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white);
    padding: 12px 20px; border-radius: 0 0 10px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---- 3. TOMBOL ---------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
    border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: var(--white); box-shadow: 0 10px 25px -8px rgba(255,90,54,.55); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #2b3164; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.tag {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    background: var(--paper-alt); color: var(--coral-dark); font-weight: 700; font-size: .8rem;
    letter-spacing: .03em; text-transform: uppercase;
}

/* ---- 4. HEADER / NAVIGASI ------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,251,243,0.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.brand-mark {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
    background: var(--ink); color: var(--yellow); font-family: var(--font-head); font-weight: 800; flex-shrink: 0;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; }
.site-nav a { font-weight: 600; color: var(--ink-soft); position: relative; padding: 6px 2px; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
    background: var(--coral); border-radius: 3px;
}
.nav-cta { padding: 10px 20px; font-size: .9rem; }
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    background: none; border: none; padding: 11px; width: 44px; height: 44px; border-radius: 10px;
}
.nav-toggle:hover { background: var(--paper-alt); }
.nav-toggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* ---- 5. HERO -------------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    padding: 72px 0 96px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hero-eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(23,184,144,.18); }
.hero-eyebrow span { font-weight: 700; color: var(--ink-soft); }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--coral); position: relative; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-blob {
    position: absolute; inset: 0; margin: auto; width: 320px; height: 320px;
    background: linear-gradient(135deg, var(--yellow), var(--coral));
    border-radius: 62% 38% 55% 45% / 48% 45% 55% 52%;
    filter: blur(0.5px); opacity: .9;
}
.hero-photo {
    position: relative; width: 280px; height: 280px; border-radius: 50%;
    background: var(--ink); color: var(--yellow); display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 800; font-size: 5rem;
    border: 6px solid var(--paper); box-shadow: var(--shadow);
}
.hero-photo small {
    position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
    background: var(--white); color: var(--ink); font-family: var(--font-body); font-weight: 700;
    font-size: .7rem; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap;
}
.hero-photo-img {
    position: relative; width: 280px; height: 280px; border-radius: 50%; object-fit: cover;
    border: 6px solid var(--paper); box-shadow: var(--shadow);
}

/* ---- 6. STATISTIK -------------------------------------------------------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--coral); }
.stat-label { color: var(--ink-soft); font-size: .92rem; font-weight: 600; }

/* ---- 7. SECTION GENERIK -------------------------------------------------- */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.75); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .tag { margin-bottom: 14px; }
.section-foot { margin-top: 40px; text-align: center; }

/* ---- 8. GRID KARTU -------------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--white); border-radius: var(--radius-md); padding: 32px;
    border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: var(--paper-alt); color: var(--coral); font-size: 1.5rem; margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

/* Portofolio */
.portfolio-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--border); }
.portfolio-thumb {
    height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--white); text-align: center; padding: 20px; gap: 6px;
}
.portfolio-thumb .ph-label { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.portfolio-thumb .ph-hint { font-size: .75rem; opacity: .85; font-weight: 600; }
.portfolio-thumb.grad-1 { background: linear-gradient(135deg, var(--coral), var(--yellow)); }
.portfolio-thumb.grad-2 { background: linear-gradient(135deg, var(--ink), #4A4E9E); }
.portfolio-thumb.grad-3 { background: linear-gradient(135deg, var(--teal), #0E7C63); }
.portfolio-thumb-img { width: 100%; height: 190px; object-fit: contain; background: var(--paper-alt); }
.portfolio-body { padding: 26px; }
.portfolio-body .tag { margin-bottom: 12px; }
.portfolio-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.portfolio-meta span {
    font-size: .78rem; font-weight: 700; color: var(--ink-soft); background: var(--paper-alt);
    padding: 5px 12px; border-radius: 999px;
}

/* Blog */
.blog-card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border); padding: 26px; display: flex; flex-direction: column; height: 100%; }
.blog-meta { display: flex; gap: 12px; align-items: center; font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--coral); }
.blog-card p { flex-grow: 1; margin: 12px 0 18px; }
.blog-readmore { font-weight: 700; color: var(--coral-dark); }

/* Testimoni */
.testimonial {
    background: var(--white); border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--border);
    position: relative;
}
.testimonial::before {
    content: '"'; font-family: var(--font-head); font-size: 5rem; color: var(--yellow);
    position: absolute; top: 4px; left: 24px; line-height: 1;
}
.testimonial blockquote { font-size: 1.15rem; color: var(--ink); font-weight: 500; padding-top: 24px; }
.testimonial cite { display: block; margin-top: 20px; font-style: normal; font-weight: 700; color: var(--ink-soft); font-size: .9rem; }

/* FAQ */
.faq-group { margin-bottom: 40px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group h2 { margin-bottom: 18px; font-size: 1.3rem; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border);
    padding: 4px 24px;
}
.faq-item summary {
    cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--ink);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--coral); flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding-bottom: 20px; margin: 0; }

/* Filter tab (mis. segmen testimoni) */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-tab {
    padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .85rem;
    border: 2px solid var(--ink); color: var(--ink); transition: background .15s ease, color .15s ease;
}
.filter-tab:hover { background: var(--paper-alt); }
.filter-tab.is-active { background: var(--ink); color: var(--white); }

/* CTA banner */
.cta-banner {
    background: linear-gradient(135deg, var(--coral), var(--yellow)); border-radius: var(--radius-lg);
    padding: 56px; text-align: center; color: var(--ink);
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { color: rgba(27,31,59,.75); max-width: 520px; margin-inline: auto 18px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---- 9. FORM KONTAK ------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: .9rem; }
.form-field input, .form-field textarea, .form-field select {
    padding: 14px 16px; border-radius: var(--radius-sm); border: 2px solid var(--border);
    font-family: var(--font-body); font-size: 1rem; background: var(--white); color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    outline: none; border-color: var(--coral);
}
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.alert { padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 28px; }
.alert-success { background: rgba(23,184,144,.12); color: #0E7C63; border: 1px solid rgba(23,184,144,.3); }
.alert-error { background: rgba(255,90,54,.1); color: var(--coral-dark); border: 1px solid rgba(255,90,54,.3); }

.contact-info-card {
    background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding: 36px; height: 100%;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card p { color: rgba(255,255,255,.7); }
.contact-info-list { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list a { font-weight: 700; color: var(--yellow); }
.contact-info-list .label { display: block; font-size: .78rem; color: rgba(255,255,255,.55); font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* ---- 10. ARTIKEL BLOG (single post) --------------------------------------- */
.post-header { max-width: 760px; margin-inline: auto; text-align: center; padding-bottom: 40px; }
.post-body { max-width: 720px; margin-inline: auto; }
.post-body h2 { margin-top: 40px; margin-bottom: 14px; font-size: 1.5rem; }
.post-body p { margin-bottom: 18px; font-size: 1.05rem; }
.post-body ul { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.post-body li { margin-bottom: 8px; color: var(--ink-soft); }
.post-body a { color: var(--coral-dark); font-weight: 700; text-decoration: underline; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--coral-dark); font-weight: 600; }

/* ---- 11. TIMELINE (halaman Tentang) ---------------------------------------- */
.timeline { border-left: 3px solid var(--border); padding-left: 28px; display: flex; flex-direction: column; gap: 34px; }
.timeline-item { position: relative; }
.timeline-item::before {
    content: ''; position: absolute; left: -35px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--coral); border: 3px solid var(--paper);
}
.timeline-year { font-weight: 800; color: var(--coral-dark); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---- 12. FOOTER ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.25fr 1fr 1.25fr; gap: 48px; padding-bottom: 48px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-name { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: 1.1rem; }
.footer-role { max-width: 270px; font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.55; }
.footer-heading { font-weight: 700; color: var(--white); margin-bottom: 16px; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.footer-links ul, .footer-contact ul { display: flex; flex-direction: column; gap: 9px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.75); font-weight: 500; }
.footer-links a:hover, .footer-contact a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 16px; margin-top: 18px; }
.footer-social a { font-weight: 700; color: var(--yellow); font-size: .85rem; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.75); font-weight: 600; }

/* ---- 13. ANIMASI MASUK SAAT SCROLL ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---- 14. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { order: -1; margin-bottom: 20px; }
    .hero-blob, .hero-photo, .hero-photo-img { width: 220px; height: 220px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: 78px; left: 0; right: 0; background: var(--paper);
        flex-direction: column; align-items: stretch; padding: 20px 24px 28px; border-bottom: 1px solid var(--border);
        display: none; gap: 18px;
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 16px; }
    .nav-cta { text-align: center; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .cta-banner { padding: 36px 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding-block: 18px; }
}

@media (max-width: 480px) {
    .container { padding-inline: 18px; }
    .hero { padding: 48px 0 64px; }
    .hero-blob, .hero-photo, .hero-photo-img { width: 180px; height: 180px; font-size: 2.6rem; }
    .hero-photo small { font-size: .62rem; padding: 5px 10px; }
    .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn, .cta-actions .btn { justify-content: center; }
    .section { padding: 56px 0; }
    .card, .cta-banner, .contact-info-card, .testimonial { padding: 24px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stat-num { font-size: 1.7rem; }
    .site-footer { padding-top: 42px; }
    .footer-inner { gap: 32px 18px; padding-bottom: 36px; }
    .footer-brand { align-items: flex-start; }
    .footer-role { font-size: .78rem; }
    .footer-heading { margin-bottom: 12px; font-size: .78rem; }
    .footer-links ul, .footer-contact ul { gap: 8px; font-size: .88rem; }
    .footer-social { flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; }
}
