/* ========== GLOBAL ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --page-max-width: 1280px;
    --page-gutter: 32px;
    --page-gutter-mobile: 24px;
    --bg-main: #0f1115;
    --bg-card: #11141b;
    --border-subtle: #1f2430;
    --accent: #c0392b;
}

body {
    background: var(--bg-main);
    color: #ffffff;
}

/* helper: semua section besar */

.hero,
.about,
.experience,
.education {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

/* ========== NAVBAR ========== */

.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--page-max-width);
    padding: 20px var(--page-gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    padding-left: 4px;
    transform: translateX(4px);
}

.navbar ul {
    display: flex;
    gap: 35px;
    list-style: none;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.navbar ul li a:hover {
    color: var(--accent);
}

/* ========== HERO ========== */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 120px;
    column-gap: 80px;
}

.hero-text {
    flex: 1;
    max-width: 520px;
}

.hero-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-80px);
}

.hero-image-inner {
    position: relative;
    width: 430px;
    height: 480px;
    background-image: url("https://briefer.id/canvas.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    mix-blend-mode: screen;
    opacity: 0.9;
    pointer-events: none;
}

.hero-photo {
    max-width: 80%;
    height: auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding-top: 110px;
        padding-bottom: 60px;
        gap: 40px;
    }

    .hero-image {
        transform: translateX(0);
        align-self: center;
    }

    .hero-image-inner {
        width: 280px;
        height: 340px;
    }

    .hero-photo {
        max-width: 82%;
    }
}

.welcome {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.title {
    font-size: 55px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.highlight {
    color: var(--accent);
}

.subtitle {
    font-size: 15px;
    color: #bdbdbd;
    margin-bottom: 25px;
    margin-right: 40px;
}

.socials {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* tool icons */

.tool-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 25px;
    max-width: 500px;
}

.tool-icon {
    width: 38px;
    height: 38px;
    padding: 8px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: 0.3s;
    cursor: pointer;
}
.tool-icon:hover {
    filter: grayscale(0%);
    border-color: #e74c3c;
    transform: scale(1.08);
}


/* foto Adel di atas canvas */
.hero-photo {
    max-width: 72%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* ========== ABOUT SECTION ========== */

.about {
    padding-top: 80px;
    padding-bottom: 90px;
    background: var(--bg-main);
}

.about-header {
    max-width: 720px;
    margin-bottom: 50px;
}

.about-label {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bdbdbd;
    margin-bottom: 12px;
}

.about-title {
    font-size: 30px;
    line-height: 1.5;
    font-weight: 600;
    color: #ffffff;
}

.about-metrics {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

/* cards */

.metric-card {
    flex: 1;
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 28px 26px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
}

.metric-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.metric-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.metric-caption {
    font-size: 14px;
    color: #bdbdbd;
    margin-bottom: 20px;
}

.metric-divider {
    height: 1px;
    width: 100%;
    background: #232837;
    margin-bottom: 18px;
}

.metric-note {
    font-size: 13px;
    color: #9b9b9b;
}

/* Metric card traffic: clickable */
.metric-card--traffic {
    cursor: pointer;
}

/* INLINE TRAFFIC CHART */

.traffic-chart-wrapper {
    margin-top: 26px;
    padding: 20px 22px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: none; /* default: hidden */
    flex-direction: column;
    gap: 12px;
}

.traffic-chart-wrapper.is-visible {
    display: flex;
}

.traffic-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.traffic-chart-title {
    font-size: 14px;
    color: #bdbdbd;
}

.traffic-chart-value {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.traffic-chart-inner {
    width: 100%;
    height: 220px;
}

#trafficChart {
    width: 100%;
    height: 100%;
}

.traffic-chart-caption {
    font-size: 12px;
    color: #8b8b8b;
}

/* ========== EXPERIENCE SECTION (di dalam about) ========== */

.experience {
    padding-top: 80px;
    padding-bottom: 100px;
    background: var(--bg-main);
}

.experience-header {
    max-width: 780px;
    margin-bottom: 40px;
    margin-top: 60px;
}

.section-label {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bdbdbd;
    margin-bottom: 10px;
}

.experience-title {
    font-size: 28px;
    line-height: 1.6;
    font-weight: 600;
}

/* stepper */

.experience-stepper {
    position: relative;
    margin-bottom: 30px;
    padding-top: 18px;
}

.step-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 26px;
    height: 2px;
    background: #1f2430;
}

.step-bullets {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 520px;
}

.step-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #bdbdbd;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #bdbdbd;
    z-index: 1;
    transition: 0.3s;
}

.step-dot--active {
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.25);
}

/* slider */

.experience-slider {
    overflow: hidden;
    margin-top: 24px;
}

.experience-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s ease;
    will-change: transform;
}

/* card */

.exp-card {
    flex: 0 0 340px;
    max-width: 340px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
}

/* header di dalam card (logo + info role/company) */

.exp-card-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #232837;
}

.exp-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 8px;
}

.exp-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg-main);
    opacity: 0.9;
}

.exp-role {
    font-size: 16px;
    font-weight: 600;
}

.exp-company {
    font-size: 13px;
    color: #bdbdbd;
    margin-top: 2px;
}

.exp-period {
    font-size: 12px;
    color: #8b8b8b;
    margin-top: 4px;
}

/* deskripsi company singkat */

.exp-company-desc {
    font-size: 12px;
    color: #9b9b9b;
    margin-top: 4px;
    line-height: 1.5;
}

/* deskripsi kerjaan 1–2 kalimat */

.exp-summary {
    font-size: 13px;
    color: #c5c5c5;
    line-height: 1.6;
    margin-top: 12px;
}

/* tombol link ke halaman lain */

.exp-button {
    margin-top: 14px;
    display: inline-block;
    width: fit-content;
    padding: 9px 16px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    transition: 0.25s;
}

.exp-button:hover {
    background: var(--accent);
    border-color: #e74c3c;
    transform: translateY(-1px);
}

/* ========== EDUCATION SECTION ========== */

.education {
    padding-top: 80px;
    padding-bottom: 100px;
    background: var(--bg-main);
}

.education-header {
    max-width: 780px;
    margin-bottom: 32px;
}

.education-title {
    font-size: 28px;
    line-height: 1.6;
    font-weight: 600;
}

.education-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 28px;
    align-items: flex-start;
}

/* left list */

.education-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edu-item {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: #151924;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    transition: 0.25s;
}

.edu-item--active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.25);
    background: #191e2a;
}

.edu-badge {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #ffffff;
}

.edu-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.edu-name {
    font-size: 14px;
    font-weight: 600;
    color: #f7f7f7;
}

.edu-sub {
    font-size: 12px;
    color: #bdbdbd;
}

/* right panel */

.education-content {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    padding: 22px 22px 24px;
    animation: fadeInEdu 0.3s ease;
}

.edu-panel {
    display: none;
}

.edu-panel--active {
    display: block;
}

.edu-panel-header {
    margin-bottom: 8px;
}

.edu-panel-title {
    font-size: 18px;
    font-weight: 600;
}

.edu-panel-meta {
    font-size: 13px;
    color: #bdbdbd;
    margin-top: 3px;
}

.edu-panel-desc {
    font-size: 14px;
    color: #d0d0d0;
    margin-top: 10px;
    line-height: 1.7;
}

.edu-panel-impact {
    font-size: 14px;
    color: #d0d0d0;
    margin-top: 16px;
    line-height: 1.7;
}

/* === Education photo slider & caption === */

.edu-image-wrapper {
    position: relative;
    margin-top: 18px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.edu-image-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.edu-photo {
    position: relative;
    min-width: 100%;
    max-width: 100%;
}

.edu-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* arrows */

.edu-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(15, 17, 21, 0.8);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
    z-index: 2;
}

.edu-arrow--prev {
    left: 12px;
}

.edu-arrow--next {
    right: 12px;
}

.edu-arrow:hover {
    border-color: var(--accent);
    background: var(--accent);
}

/* info icon + caption overlay */

.edu-photo-info {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: rgba(15, 17, 21, 0.75);
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
    z-index: 3;
}

.edu-photo-info:hover {
    background: var(--accent);
}

.edu-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    opacity: 0;
    transform: translateY(100%);
    transition: 0.3s ease;
    pointer-events: none;
}

.edu-photo.show-caption .edu-photo-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
    .navbar {
        padding: 16px var(--page-gutter-mobile);
    }

    .hero,
    .about,
    .experience,
    .education {
        padding-left: var(--page-gutter-mobile);
        padding-right: var(--page-gutter-mobile);
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding-top: 110px;
        padding-bottom: 60px;
        gap: 40px;
    }

    .hero-image img {
        width: 180px;
    }

    .about {
        padding-top: 60px;
        padding-bottom: 70px;
    }

    .experience {
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .experience-track {
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .exp-card {
        flex: 0 0 80%;
        max-width: none;
        scroll-snap-align: start;
    }

    .step-bullets {
        max-width: 360px;
    }

    .education {
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .education-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .education-content {
        padding: 20px 18px 22px;
    }

    .edu-image {
        height: 220px;
    }
}

/* animation */

@keyframes fadeInEdu {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
