/*
 * Halaman Tentang
 * Navigasi: dasar, navbar, tone bagian, konteks penelitian,
 * definisi, dataset, entitas, model, alur, batasan, footer, dan responsif.
 */

/* 01. Variabel dan gaya dasar */

:root {
    --green-dark: #0a2f20;
    --green: #1e7448;
    --green-pale: #eef8f1;
    --text: #17251d;
    --white: #ffffff;
    --cream: #f7f8f2;
    --line: #dbe5dd;
    --container: 1180px;
    --radius: 18px;
    --card-border: #c9dacf;
    --card-shadow: 0 12px 30px rgba(10, 47, 32, 0.07);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 999;
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--white);
    color: var(--green-dark);
    font-weight: 700;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* 02. Navigasi utama */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-content {
    width: min(calc(100% - 40px), var(--container));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    max-width: 430px;
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    padding: 9px 14px;
    border-radius: 999px;
    color: #405248;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover, .nav-links .nav-active {
    background: var(--green-pale);
    color: var(--green);
}

.nav-links .nav-cta {
    margin-left: 5px;
    padding-inline: 18px;
    background: var(--green-dark);
    color: var(--white);
}

.nav-links .nav-cta:hover {
    background: var(--green);
    color: var(--white);
}

/* 03. Responsif navigasi */

@media (max-width: 700px) {
    .navbar-content {
        width: 100%;
        min-height: auto;
        padding: 10px 14px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .navbar .brand {
        max-width: none;
        font-size: 0.7rem;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

}

/* 04. Struktur halaman dan tone warna bagian */

:root {
    --green-light: #dff2e6;
    --muted: #617068;
}

.about-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.about-container > section, .about-container > aside {
    margin: 0;
    padding: 82px max(20px, calc((100% - var(--container)) / 2));
    scroll-margin-top: 68px;
}

.project-overview, .about-entities {
    background: #f7f8f2;
}

.ner-definition-about {
    background: #eef7f1;
}

.toga-definition-about, .workflow-about {
    background: #fbf9ed;
}

.project-purpose {
    background: #e5f2e9;
}

.about-models {
    background: #edf4ef;
}

.project-limit-section {
    background: #f1f3ef;
}

/* 05. Heading dan teks bersama */

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 24px;
    height: 2px;
    background: currentColor;
}

.about-section-heading {
    max-width: 850px;
    margin-bottom: 38px;
}

.about-section-heading h2 {
    margin: 9px 0 0;
    color: var(--green-dark);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading {
    margin-bottom: 38px;
    display: grid;
    grid-template-columns: 1fr 0.55fr;
    align-items: end;
    gap: 50px;
}

.section-title {
    margin: 9px 0 0;
    color: var(--green-dark);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.lead-paragraph {
    color: #34473c !important;
    font-size: 1.05rem !important;
}

/* 06. Latar belakang dan konteks penelitian */

.project-overview-grid {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    gap: 70px;
}

.about-prose p, .purpose-copy p, .dataset-copy p {
    margin: 0 0 17px;
    color: var(--muted);
    font-size: 0.92rem;
}

.project-context-card, .entity-about-card, .model-about-card, .workflow-grid article, .responsible-note {
    padding: 24px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--card-shadow);
}

.context-card-label {
    display: block;
    padding: 0 0 13px;
    color: var(--green);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.project-context-card dl {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.project-context-card dl > div {
    padding: 13px 0;
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 15px;
    border-bottom: 1px solid var(--line);
}

.project-context-card dl > div:last-child {
    border-bottom: 0;
}

.project-context-card dt {
    color: #8a978f;
    font-size: 0.68rem;
}

.project-context-card dd {
    margin: 0;
    color: var(--green-dark);
    font-size: 0.74rem;
    font-weight: 700;
}

/* 07. Definisi NER, TOGA, dan tujuan penelitian */

.ner-definition-about {
    border: 0;
    border-radius: 0;
}

.toga-definition-about {
    border: 0;
}

.ner-definition-heading h2 {
    margin: 6px 0 0;
    color: var(--green-dark);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.ner-definition-about > p {
    max-width: 980px;
    margin: 24px 0 20px;
    color: var(--muted);
    font-size: 0.92rem;
}

.ner-definition-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.ner-definition-tags span {
    padding: 6px 10px;
    border: 1px solid #c9e4d2;
    border-radius: 999px;
    color: var(--green);
    font-size: 0.63rem;
    font-weight: 700;
}

.purpose-copy h2, .dataset-copy h2 {
    margin: 9px 0 20px;
    color: var(--green-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

/* 08. Dataset dan skema BIO */

.dataset-about {
    display: grid;
    grid-template-columns: 1fr 0.65fr;
    align-items: center;
    gap: 65px;
    background: var(--green-dark);
}

.dataset-copy .section-kicker {
    color: #9de0b6;
}

.dataset-copy h2 {
    color: var(--white);
}

.dataset-copy p {
    color: rgba(255, 255, 255, 0.65);
}

.bio-panel {
    padding: 0;
    border: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    background: transparent;
}

.bio-panel-heading {
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.68rem;
}

.bio-row {
    padding: 15px 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bio-row:last-child {
    border-bottom: 0;
}

.bio-letter {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--green-dark);
    font-weight: 900;
}

.bio-b {
    background: #aee9c1;
}

.bio-i {
    background: #fae9b7;
}

.bio-o {
    background: #d5eef2;
}

.bio-row strong {
    color: var(--white);
    font-size: 0.78rem;
}

.bio-row p {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.66rem;
}

/* 09. Kategori entitas */

.entity-about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.entity-about-card > span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--green-pale);
    color: var(--green);
    font-size: 0.56rem;
    font-weight: 800;
}

.entity-about-card h3 {
    margin: 24px 0 7px;
    color: var(--green-dark);
}

.entity-about-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
}

/* 10. Model prediksi */

.model-about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.model-card-topline {
    display: flex;
    justify-content: space-between;
    color: var(--green);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.model-about-card h3 {
    margin: 30px 0 10px;
    color: var(--green-dark);
    font-size: 1.8rem;
}

.model-about-card p, .model-about-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.model-about-note {
    max-width: 800px;
    margin: 24px 0 0;
    text-align: left;
}

/* 11. Alur kerja sistem */

.workflow-heading {
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    align-items: end;
    gap: 50px;
}

.workflow-title {
    margin: 9px 0 0;
    color: var(--green-dark);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.workflow-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.workflow-grid article {
    position: relative;
    min-height: 230px;
    overflow: hidden;
}

.workflow-grid article::after {
    content: none;
}

.workflow-grid article > span {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green-dark);
    color: #c8f2d5;
    font-size: 0.66rem;
    font-weight: 800;
}

.workflow-grid h3 {
    position: relative;
    z-index: 1;
    margin: 30px 0 9px;
    color: var(--green-dark);
    font-size: 1.15rem;
}

.workflow-grid p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

/* 12. Batasan dan manfaat penelitian */

.responsible-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
}

.note-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green);
    font-weight: 900;
}

.responsible-note span {
    color: var(--green);
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
}

.responsible-note h2 {
    margin: 5px 0 8px;
    color: var(--green-dark);
    font-size: 1.5rem;
}

.responsible-note p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.research-benefit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-radius: 0;
    background: var(--green-light);
}

.research-benefit h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.research-benefit p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.research-benefit > a {
    min-width: 190px;
    padding: 11px 17px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-radius: 999px;
    background: var(--green-dark);
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

/* 13. Footer */

.footer {
    padding: 44px 20px;
    background: var(--green-dark);
    color: var(--white);
}

.footer-inner {
    width: min(100%, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    align-items: center;
    gap: 28px;
}

.footer-inner > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer p, .footer small {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
}

/* 14. Responsif konten dan footer */

@media (max-width: 900px) {
    .project-overview-grid, .dataset-about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .entity-about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer small {
        grid-column: 1 / -1;
    }

}

@media (max-width: 700px) {
    .model-about-grid, .section-heading, .workflow-heading, .workflow-grid {
        grid-template-columns: 1fr;
    }

    .research-benefit {
        align-items: flex-start;
        flex-direction: column;
    }

    .research-benefit > a {
        width: 100%;
    }

    .responsible-note {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 520px) {
    .about-container {
        width: 100%;
        padding: 0;
    }

    .about-container > section, .about-container > aside {
        margin: 0;
        padding: 56px 14px;
    }

    .project-context-card, .entity-about-card, .model-about-card, .workflow-grid article, .responsible-note {
        padding: 22px;
    }

    .workflow-grid article {
        min-height: auto;
    }

    .entity-about-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-inner > div {
        justify-content: center;
    }

    .footer small {
        grid-column: auto;
    }

}
