/* ==========================================================
   REFRESH — dimuat paling akhir (setelah style.css & modern.css)
   1) Skala huruf yang nyaman dibaca
   2) Tampilan lebih berani: warna, bentuk, kartu
   ========================================================== */

:root {
    --pop: #ffcf3f;
    --coral: #ff6b4a;
    --radius: 24px;
}

body {
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ---------- 1. SKALA HURUF ---------- */
.eyebrow,
.skill-label,
.timeline-date,
.education-level,
.status-badge,
.project-card .project-type,
.visual-index,
.visual-caption { font-size: 12px; letter-spacing: 0.12em; }

.brand-text { font-size: 12px; }
.brand-text small { font-size: 10px; }
.main-nav a,
.header-contact { font-size: 14px; }
.theme-toggle { font-size: 12px; }
.main-nav { gap: 28px; }

.hero-kicker { font-size: 17px; }
.hero-description { max-width: 520px; font-size: 19px; line-height: 1.75; }
.button { font-size: 15px; padding: 17px 30px; }
.text-link { font-size: 15px; }

/* Perbaikan: jarak antarkata di judul tidak boleh hilang */
.hero h1,
.section-heading h2,
.contact-grid h2,
.detail-title {
    letter-spacing: -0.04em;
    word-spacing: 0.1em;
}

.hero h1 { font-size: clamp(50px, 6.6vw, 90px); line-height: 1; }
.section-heading h2,
.contact-grid h2 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1.05; }

.section-intro { font-size: 17px; max-width: 420px; line-height: 1.75; }
.about-copy { max-width: 600px; }
.about-copy p { font-size: 17px; line-height: 1.8; }
.about-copy .lead { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.5; letter-spacing: -0.02em; }

.project-card .project-info h3 { font-size: clamp(23px, 2.1vw, 30px); }
.project-card .project-summary { font-size: 16px; }
.project-open { font-size: 26px; }

.skill-tags span { font-size: 15px; padding: 11px 20px; }
.tool-list span { font-size: 16px; padding: 15px 0; }
.tool-list small { font-size: 12px; }

.timeline-item h3 { font-size: clamp(21px, 2vw, 25px); }
.timeline-role { font-size: 15px; }
.timeline-item p:last-child { font-size: 16px; }

.education-card h3 { font-size: clamp(22px, 2.4vw, 30px); }
.education-major { font-size: 17px; }
.education-description { font-size: 16px; line-height: 1.75; }

.contact-copy > p { font-size: 17px; }
.contact-email { font-size: clamp(18px, 2.2vw, 26px); }
.contact-links a { font-size: 15px; }

.site-footer p { font-size: 15px; }
.footer-brand { font-size: 24px; }
.footer-copy { font-size: 12px; }

.back-link { font-size: 15px; }
.detail-description { font-size: 19px; }
.project-facts > div { font-size: 15px; }
.detail-next span { font-size: 12px; }
.detail-next a { font-size: 16px; }

/* ---------- 2. RUANG ANTAR BAGIAN ---------- */
.work-section,
.about-section,
.skills-section,
.experience-section,
.education-section {
    margin-top: 0;
    padding-top: clamp(72px, 9vw, 120px);
    border-top: 0;
}

.section-heading { margin-bottom: 52px; }

/* Nomor bagian otomatis: 01, 02, 03 ... */
main { counter-reset: sec; }
.section-heading { counter-increment: sec; }

.section-heading .eyebrow::before {
    content: "0" counter(sec);
    padding: 5px 10px;
    border-radius: 99px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.section-heading .eyebrow-line { display: none; }

/* ---------- 3. HERO ---------- */
@media (min-width: 901px) {
    .hero-grid { grid-template-columns: 1.3fr 0.7fr; gap: 40px; }
}

.hero-kicker {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--card);
}

.hero .hero-grid .hero-portrait {
    position: relative;
    isolation: isolate;
}

.hero .hero-grid .hero-portrait img {
    border-radius: 150px 150px var(--radius) var(--radius);
    box-shadow: 0 30px 60px var(--shadow);
}

.hero .hero-grid .hero-portrait:hover img { box-shadow: 0 36px 70px var(--shadow); }

.hero .hero-grid .hero-portrait::before {
    content: "";
    position: absolute;
    top: -26px;
    right: -38px;
    z-index: -1;
    width: 88%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    animation: float 9s ease-in-out infinite reverse;
}

.hero .hero-grid .hero-portrait figcaption strong { font-size: 19px; }
.hero .hero-grid .hero-portrait figcaption span { font-size: 12px; }

/* Strip berjalan: pita berwarna */
.hero-meta {
    margin-top: 64px;
    padding: 18px 0;
    border: 0;
    border-radius: 99px;
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    color: #fff;
    font: 800 18px "Manrope", sans-serif;
    letter-spacing: 0.04em;
    mask-image: none;
    -webkit-mask-image: none;
}

.marquee-track span::after { color: var(--pop); }

/* ---------- 4. KARTU KARYA ---------- */
.project-card {
    padding: 14px;
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
}

.project-card .project-visual { border-radius: 16px; }
.project-card .project-info { margin-top: 20px; padding: 0 10px; }
.project-card .project-summary { margin: 12px 10px 10px; }

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px var(--shadow), 0 0 0 2px var(--accent);
}

.project-open {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-size: 20px;
}

.project-card:hover .project-open { background: var(--accent); color: #fff; }

/* ---------- 5. TENTANG: KARTU BERWARNA ---------- */
.about-stats { gap: 20px; }

.about-stats > div {
    padding: 28px;
    border: 0;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--paper);
}

.about-stats > div:nth-child(1) { background: var(--accent); color: #fff; }
.about-stats > div:nth-child(2) { background: var(--pop); color: #171717; }

.about-stats > div:hover { border-color: transparent; }
.about-stats strong { font-size: 22px; }
.about-stats p { margin-top: 8px; color: inherit; font-size: 16px; opacity: 0.85; }
.stat-index { margin-bottom: 40px; color: inherit; font-size: 14px; opacity: 0.8; }
.about-stats > div:hover .stat-index { color: inherit; }

/* ---------- 6. KEAHLIAN ---------- */
.skill-tags { gap: 10px; }
.skill-tags span { background: var(--card); border-color: transparent; font-weight: 500; }

/* ---------- 7. PENGALAMAN ---------- */
.timeline { display: grid; gap: 16px; border: 0; }

.timeline-item {
    align-items: center;
    padding: 28px 32px;
    border: 0;
    border-radius: var(--radius);
    background: var(--card);
}

.timeline-date {
    display: inline-block;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 99px;
    background: var(--paper);
    color: var(--accent);
    font-weight: 500;
}

.timeline-item:hover { transform: translateY(-4px); box-shadow: 0 20px 40px var(--shadow); }

/* ---------- 8. PENDIDIKAN ---------- */
.education-card { padding: 34px; border: 0; border-radius: var(--radius); }
.education-current { border-left: 0; background: linear-gradient(135deg, rgba(49, 85, 231, 0.14), var(--card) 60%); }
.status-badge { padding: 8px 16px; border-radius: 99px; }

/* ---------- 9. KONTAK ---------- */
.contact-section {
    padding: clamp(32px, 6vw, 80px);
    border-radius: 36px;
    background: linear-gradient(135deg, #14205f 0%, #3155e7 70%, #8a5cff 120%);
    color: #fff;
}

.contact-section > .eyebrow,
.contact-copy > p { color: rgba(255, 255, 255, 0.85); }

.contact-grid h2 { color: #fff; }

.contact-grid h2 em {
    background: linear-gradient(100deg, var(--pop), #ffa24a);
    -webkit-background-clip: text;
    background-clip: text;
}

.contact-email { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.contact-email span { color: var(--pop); }

.contact-links a {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 99px;
    color: #fff;
}

.contact-links a:hover { background: #fff; border-color: #fff; color: #14205f; }
.contact-links { flex-wrap: wrap; gap: 12px; }

.site-footer { padding-top: 56px; padding-bottom: 40px; }

/* ---------- 10. LAYAR KECIL ---------- */
@media (max-width: 680px) {
    body { font-size: 16px; }

    .hero h1 { font-size: clamp(46px, 13vw, 72px); }
    .hero-description { font-size: 17px; }
    .section-intro,
    .about-copy p,
    .contact-copy > p { font-size: 16px; }

    .hero .hero-grid .hero-portrait { margin-top: 20px; }
    .hero .hero-grid .hero-portrait::before { right: -16px; }

    .hero-meta { font-size: 15px; margin-top: 44px; }
    .project-card { padding: 10px; }
    .timeline-item { padding: 22px; grid-template-columns: 1fr; gap: 12px; }
    .timeline-mark { display: none; }
    .education-card { padding: 24px; }
    .contact-section { border-radius: 26px; }
}


/* ---------- FOTO FORMAL DI "TENTANG SAYA" ---------- */
/* Tentang: judul di atas, foto kiri, teks kanan */
.about-section .section-heading {
    grid-template-columns: minmax(280px, 380px) 1fr;
    align-items: center;
    gap: 0 clamp(40px, 6vw, 88px);
}

.about-section .section-heading > div:first-child { display: contents; }
.about-section .section-heading .eyebrow,
.about-section .section-heading h2 { grid-column: 1 / -1; }
.about-section .section-heading h2 { margin-bottom: 56px; }
.about-section .section-heading h2 br { display: none; }
.about-section .section-heading h2 em { margin-left: 0.22em; }
.about-section .about-copy { grid-column: 2; max-width: 640px; margin: 0; align-self: center; }
.about-section .about-photo { grid-column: 1; }
.about-section .about-photo { margin: 0; }

.about-photo {
    width: 100%;
    max-width: 380px;
    margin: 44px 0 0;
}

.about-frame {
    position: relative;
    padding: 14px 14px 0;
    border: 2px solid var(--ink);
    background: #fbfaf6;
    color: #171717;
    outline: 1px solid var(--ink);
    outline-offset: 8px;
    box-shadow: 0 30px 60px var(--shadow);
    transition: transform 0.5s var(--ease), box-shadow 0.4s;
}

.about-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 70px var(--shadow);
}

/* Ukuran asli foto (3:4), tanpa dipotong */
.about-frame img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(23, 23, 23, 0.35);
}

/* Papan nama di bawah foto */
.about-frame figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 16px 8px 18px;
    text-align: center;
}

.about-frame figcaption strong {
    font: 700 18px "Manrope", sans-serif;
    letter-spacing: -0.01em;
}

.about-frame figcaption span {
    color: #5f5c55;
    font: 12px "DM Mono", monospace;
    letter-spacing: 0.14em;
}

@media (max-width: 900px) {
    .about-section .section-heading { grid-template-columns: 1fr; gap: 40px 0; }
    .about-section .section-heading h2 { margin-bottom: 8px; }
    .about-section .about-photo { max-width: 320px; margin: 0 auto; }
    .about-section .about-copy,
    .about-section .about-photo { grid-column: 1; }
    .about-frame { outline-offset: 6px; }
}

/* ---------- KEAHLIAN: bidang di atas, tools berupa kartu ---------- */
.skills-layout { grid-template-columns: 1fr; gap: 56px; }

.skill-label { margin-bottom: 22px; }
.skill-tags { gap: 12px; }

.tool-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    border: 0;
}

.tool-list span {
    min-height: 92px;
    padding: 22px 24px;
    border: 0;
    border-radius: 20px;
    background: var(--card);
    font-weight: 600;
    align-items: flex-start;
    gap: 16px;
}

.tool-list span:hover { background: var(--accent); color: #fff; }
.tool-list span:hover small { color: rgba(255, 255, 255, 0.8); }

/* ---------- PENYESUAIAN AKHIR ---------- */
.about-section .about-photo { margin: 10px 0 10px 10px; width: calc(100% - 10px); }
.stat-index { display: block; width: fit-content; }

@media (max-width: 680px) {
    .tool-list span { min-height: 0; padding: 18px 20px; }
    .about-section .about-photo { margin: 10px auto; width: 100%; }
}


/* ---------- HEADER: selalu tampil, logo ADIMAS. ---------- */
.site-header { position: sticky; top: 0; }

.brand-word {
    font: 800 28px/1 "Manrope", sans-serif;
    letter-spacing: -0.045em;
    transition: transform 0.4s var(--ease);
}

.brand-word span { color: var(--accent); }
.brand:hover .brand-word { transform: scale(1.06); }

/* ---------- KONTAK ---------- */
.contact-section { margin-top: clamp(72px, 9vw, 120px); }
.contact-section > .eyebrow { margin-bottom: clamp(36px, 5vw, 64px); }

.contact-section .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
    gap: clamp(40px, 6vw, 96px);
}

.contact-intro h2 {
    margin: 0 0 24px;
    font-size: clamp(42px, 5.4vw, 72px);
    line-height: 1.02;
}

.contact-intro p {
    max-width: 400px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.75;
}

.contact-list { border-top: 1px solid rgba(255, 255, 255, 0.28); }

.contact-row {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 24px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    transition: background 0.3s, padding 0.4s var(--ease);
}

.contact-row:hover { padding-left: 24px; background: rgba(255, 255, 255, 0.1); }

.contact-label {
    color: rgba(255, 255, 255, 0.75);
    font: 500 12px "DM Mono", monospace;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-value {
    font: 600 clamp(18px, 1.8vw, 22px) "Manrope", sans-serif;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.contact-arrow {
    color: var(--pop);
    font-size: 22px;
    transition: transform 0.3s var(--ease);
}

.contact-row:hover .contact-arrow { transform: translate(4px, -4px); }

/* ---------- FOOTER ---------- */
.site-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 40px;
}

.site-footer p,
.footer-copy {
    color: var(--muted);
    font: 400 14px/1.6 "DM Sans", sans-serif;
    letter-spacing: 0;
}

.site-footer p { text-align: center; }
.footer-copy { text-align: right; }
.footer-brand { font-size: 26px; letter-spacing: -0.045em; }
.footer-brand:hover { letter-spacing: -0.045em; }

@media (max-width: 900px) {
    .contact-section .contact-grid { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr; gap: 10px; text-align: center; }
    .site-footer p, .footer-copy { text-align: center; }
}

@media (max-width: 680px) {
    .brand-word { font-size: 24px; }
    .contact-row { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 20px 4px; }
    .contact-label { grid-column: 1 / -1; }
    .contact-intro p { font-size: 16px; }
}


/* ---------- KARYA: semua kartu berukuran sama ---------- */
#karya .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.project-card,
.project-card:nth-child(3) { grid-column: auto; }

.project-card { display: flex; flex-direction: column; }
.project-card .project-summary { flex: 1; }

.project-card .project-visual { flex-shrink: 0; aspect-ratio: 16 / 11; }

/* Visual untuk "Video Recap" */
.visual-recap { background: #f1c9bd; color: #3a1b14; }

.visual-recap .visual-art {
    display: flex;
    flex-direction: column;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: #3a1b14;
    color: #f5f3ee;
    box-shadow: 0 0 0 14px rgba(58, 27, 20, 0.12);
}

.visual-recap .recap-play { color: #f1c9bd; font-size: 64px; line-height: 1; }

.visual-recap .visual-art small {
    margin-top: 12px;
    font: 12px "DM Mono", monospace;
    letter-spacing: 0.12em;
}

@media (max-width: 680px) {
    #karya .project-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
}

/* Label di atas video harus terbaca (latar video gelap) */
.visual-umkm .visual-index,
.visual-umkm .visual-caption,
.visual-umkm .visual-arrow { color: #fff; }

/* ---------- Label hero: PORTOFOLIO PERSONAL ---------- */
.hero .hero-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--accent);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.hero .hero-label::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* ---------- Tombol "Hubungi saya" (hero) dibuat berkotak ---------- */
.hero-actions .text-link {
    display: inline-flex;
    align-items: center;
    padding: 17px 30px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1.5px var(--ink);
    transition: box-shadow 0.3s var(--ease), color 0.3s, background 0.3s, transform 0.3s var(--ease);
}

.hero-actions .text-link:hover {
    color: var(--accent);
    background: var(--card);
    box-shadow: inset 0 0 0 1.5px var(--accent);
    transform: translateY(-2px);
}

/* ---------- Kartu Ideasi / Eksekusi / Evaluasi: mengikuti tema ---------- */
.about-section .about-stats { gap: 20px; }

.about-section .about-stats > div {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 14px;
    row-gap: 2px;
    min-height: 0;
    padding: 20px;
    border: 0;
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
}

.about-section .about-stats > div:hover { box-shadow: 0 22px 44px var(--shadow); }

.about-section .stat-index {
    grid-row: 1 / span 2;
    align-self: center;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font: 700 15px "Manrope", sans-serif;
    opacity: 1;
}

.about-section .about-stats > div:hover .stat-index {
    transform: rotate(-8deg) scale(1.1);
    color: var(--white);
}

.about-section .about-stats strong {
    grid-column: 2;
    margin: 0;
    font: 700 19px / 1.2 "Manrope", sans-serif;
}

.about-section .about-stats p {
    grid-column: 2;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    opacity: 1;
}

/* ---------- Warna latar: putih lebih terang (mode terang) ---------- */
:root {
    --paper: #f9fafb;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #f0f2f5;
    --header: rgba(255, 255, 255, 0.88);
}

/* ---------- Navigasi: Kontak sejajar dengan menu lain ---------- */
.header-actions { display: none; }

@media (min-width: 681px) {
    .main-nav { margin-left: auto; }
}

@media (min-width: 901px) {
    .main-nav { gap: 30px; }
}

.main-nav a.nav-cta {
    padding: 11px 24px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 8px 20px var(--glow);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.main-nav a.nav-cta::after { display: none; }

.main-nav a.nav-cta:hover,
.main-nav a.nav-cta.is-active {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px var(--glow);
}

@media (max-width: 680px) {
    .header-actions { display: flex; }

    .main-nav a.nav-cta {
        margin-top: 14px;
        padding: 13px 24px;
        border-bottom: 0;
        text-align: center;
    }
}

/* ---------- Tombol tema: mengambang di pojok kanan bawah ---------- */
.theme-toggle.theme-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 10px 28px var(--shadow);
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.theme-float .theme-icon { font-size: 22px; line-height: 1; }
.theme-float .theme-label { display: none; }

.theme-toggle.theme-float:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 14px 32px var(--shadow);
}