
/* buat nyimpen warna secara langsung jadi tinggal panggil aja*/
:root {
    --ink: #16213a;
    --paper: #f6f4ef;
    --muted: #5d6678;
    --accent: #e4572e;
    --line: #d9d5ca;
    --card: #fff;
}

/*biar footer nempel dibawah */
body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, sans-serif;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* buat judul "weelcome...." dan ngeset ketentuan h1-h4*/
a {
    color: var(--accent);
}

h1,h2,h3,h4 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}

/* buat bagian navbar nyak*/
.navbar {
    background: var(--ink) !important;
    border-bottom: 4px solid var(--accent);
}

.navbar-brand {
    font-family: Georgia, serif;
    font-weight: 700;
    color: #fff !important;
    white-space: normal;
    font-size: 1rem;
}

.navbar .nav-link {
    color: #c9cfdd !important;
    padding: .5rem 1rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
    box-shadow: inset 0 -3px 0 var(--accent);
}

.navbar-toggler {
    border-color: #8a93a8;
}

/* ikon hamburger putih */
.navbar .navbar-toggler-icon {
    filter: none !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* buat layout bagian home awal*/
.hero {
    padding: 5rem 0;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.1;
}

.hero .role {
    font-size: 1.25rem;
    color: var(--muted);
    min-height: 2rem;
}

.hero .role span {
    color: var(--accent);
    font-weight: 600;
}

/* ini yang buat fotoku */
.photo {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1;
    object-fit: cover;
    border: 3px solid var(--ink);
    box-shadow: 14px 14px 0 var(--accent);
    background: #dfe3ea;
}

/* buat perbuttonan */
.btn-main {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    border-radius: 0;
    padding: .6rem 1.4rem;
    font-weight: 600;
}

.btn-main:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.btn-line {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 0;
    padding: .6rem 1.4rem;
    font-weight: 600;
}

.btn-line:hover {
    background: var(--ink);
    color: #fff;
}

/* buat judul halamann */
.page-head {
    padding: 3.5rem 0 2rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2.5rem;
}

.page-head p {
    color: var(--muted);
    max-width: 60ch;
    margin: 0;
}

/* buat tabel sama biodataa*/
.box {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 1.5rem;
    height: 100%;
}

.box h3 {
    font-size: 1.25rem;
}

.bio dt {
    color: var(--muted);
    font-weight: 500;
}

.bio dd {
    font-weight:600;overflow-wrap:anywhere
}

/* untuk bagian waktu pendidikannnya (timeline) */
.timeline {
    border-left: 3px solid var(--ink);
    padding-left: 1.5rem;
    margin-left: .4rem;
}

.timeline .item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline .item::before {
    content: "";
    position: absolute;
    left: calc(-1.5rem - 9px);
    top: .45rem;
    width: 15px;
    height: 15px;
    background: var(--accent);
    border: 3px solid var(--paper);
    border-radius: 50%;
}

.timeline small {
    color: var(--muted);
}

/* buat bagian skill dan persenannya */
.skill {
    margin-bottom: 1rem;
}

.skill .progress {
    height: 10px;
    border-radius: 0;
    background: var(--line);
}

.skill .progress-bar {
    background: var(--ink);
    width: 0;
    transition: width 1s ease;
}

/* buat bagian tabel dan isi minatnya*/
.chip {
    display: inline-block;
    border: 1px solid var(--ink);
    padding: .2rem .8rem;
    margin: 0 .4rem .5rem 0;
    font-size: .9rem;
}

/* =buat bagian prestasi dan sertif */
.ach {
    border-left: 5px solid var(--accent);
}

.ach .yr {
    font-family: Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}

.cert {
    background: var(--card);
    border: 1px dashed var(--ink);
    padding: 1.2rem;
    text-align: center;
    height: 100%;
}

.ach-img{
    width:100%;
    display:block;
    border-bottom:1px solid var(--line);cursor:zoom-in
}

.cert-img{
    width:100%;max-height:340px;
    object-fit:contain;
    cursor:zoom-in
}

.ach.p-0{
    overflow:hidden
}

/* ini buat tabell" proyek */
.proj {
    background: var(--card);
    border: 1px solid var(--line);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .2s;
}

.proj:hover {
    transform: translateY(-4px);
}

.proj .thumb {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-size: 2.4rem;
    color: #fff;
    background: var(--ink);
}

.proj .body {
    padding: 1.2rem;
    flex: 1;
}

.proj .tag {
    font-size: .8rem;
    color: var(--muted);
}

/**/
.filter .btn {
    border-radius: 0;
    border: 2px solid var(--ink);
    color: var(--ink);
    margin: 0 .4rem .5rem 0;
    font-weight: 600;
}

.filter .btn.on {
    background: var(--ink);
    color: #fff;
}

/* Buat bagian footernyaak*/
footer {
    background: var(--ink);
    color: #c9cfdd;
    padding: 2rem 0;
    margin-top: auto;
}

footer a {
    color: #fff;
}

/* kompatibilitas utilitas (g-4, g-5, gap-2) untuk Bootstrap 4 */
.row.g-4 { margin: -1.5rem -.75rem 0; }
.row.g-4 > * { padding: 0 .75rem; margin-top: 1.5rem; }
.row.g-5 { margin: -3rem -1.5rem 0; }
.row.g-5 > * { padding: 0 1.5rem; margin-top: 3rem; }
.gap-2 { gap: .5rem; }
