/* Gaya Dasar & Reset */
:root {
    --blue-950: #082f63;
    --blue-800: #0b4f9c;
    --blue-600: #1675e0;
    --blue-100: #e8f3ff;
    --blue-50: #f4f9ff;
    --ink: #17263b;
    --muted: #66758a;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 18%, rgba(22, 117, 224, .12), transparent 28rem),
        linear-gradient(145deg, #ffffff 0%, #f5faff 52%, #edf6ff 100%);
    color: var(--ink);
    line-height: 1.65;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: auto;
}

main.container {
    padding: clamp(48px, 8vw, 96px) 0;
    min-height: calc(100vh - 168px);
}

h1, h2, h3 {
    color: var(--blue-950);
    line-height: 1.15;
}

a {
    color: var(--blue-600);
    text-decoration: none;
}

a:hover {
    color: var(--blue-800);
}

.card {
    background: rgba(255, 255, 255, .92);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid rgba(22, 117, 224, .11);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(12, 70, 132, .10);
}

/* Header & Navigasi */
header {
    background: rgba(255, 255, 255, .88);
    color: var(--ink);
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(22, 117, 224, .12);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo a {
    color: var(--blue-950);
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -.5px;
}

header .logo span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-right: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    color: var(--white);
    font-size: 14px;
    letter-spacing: 0;
    box-shadow: 0 8px 20px rgba(22, 117, 224, .22);
}

header ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

header li {
    display: inline;
    padding-left: 30px;
}

header li a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 650;
    transition: color .2s ease;
}

header a:hover {
    color: var(--blue-600);
    text-decoration: none;
}

/* Bagian Profil */
#profile {
    text-align: left;
}

.profile-card {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.6fr);
    align-items: center;
    gap: clamp(35px, 6vw, 78px);
    padding: clamp(30px, 5vw, 62px);
    overflow: hidden;
    position: relative;
}

.profile-card::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(22, 117, 224, .06);
    pointer-events: none;
}

.profile-visual {
    position: relative;
    z-index: 1;
}

.image-frame {
    position: relative;
    padding: 12px;
    border-radius: 30px;
    background: linear-gradient(145deg, var(--blue-100), var(--white));
    box-shadow: 0 20px 45px rgba(18, 83, 153, .16);
}

.image-frame::before {
    content: "";
    position: absolute;
    inset: -9px 25px 25px -9px;
    border: 2px solid rgba(22, 117, 224, .25);
    border-radius: 30px;
    z-index: -1;
}

.profile-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.06;
    border-radius: 21px;
    object-fit: cover;
    border: 0;
}

.availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.availability span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22b573;
    box-shadow: 0 0 0 5px rgba(34, 181, 115, .12);
}

.profile-content {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue-600);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

#profile h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    letter-spacing: -2.4px;
}

#profile .title {
    margin: 12px 0 22px;
    color: var(--blue-800);
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 650;
}

#profile .title span {
    color: var(--blue-600);
}

.intro {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 13px;
    border: 1px solid #dbeaff;
    border-radius: 15px;
    background: var(--blue-50);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    border-color: #a7cff9;
    box-shadow: 0 10px 24px rgba(22, 117, 224, .11);
}

.contact-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--white);
    color: var(--blue-600);
    box-shadow: 0 5px 14px rgba(12, 70, 132, .08);
}

.contact-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-icon .fill-icon {
    fill: currentColor;
    stroke: none;
}

.contact-item small,
.contact-item strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-item small {
    margin-bottom: 1px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.contact-item strong {
    color: var(--blue-950);
    font-size: 11px;
    font-weight: 700;
}

/* Riwayat Pendidikan */
.education-section {
    padding: clamp(48px, 7vw, 80px) 0 12px;
    scroll-margin-top: 92px;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1.4px;
}

.section-heading > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.education-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.education-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(22, 117, 224, .13);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    color: inherit;
    box-shadow: 0 16px 42px rgba(12, 70, 132, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: rgba(22, 117, 224, .3);
    box-shadow: 0 22px 50px rgba(12, 70, 132, .13);
}

.education-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    color: var(--white);
    box-shadow: 0 10px 25px rgba(22, 117, 224, .22);
}

.education-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.degree-level {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--blue-600);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.education-content h3 {
    margin: 0 0 5px;
    font-size: 21px;
}

.education-content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.campus-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    color: var(--blue-600);
    font-size: 12px;
    font-weight: 700;
}

.campus-link span {
    transition: transform .2s ease;
}

.education-card:hover .campus-link span {
    transform: translate(2px, -2px);
}

.education-number {
    color: rgba(22, 117, 224, .12);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -2px;
}

/* Riwayat Pekerjaan */
.experience-section {
    padding: clamp(48px, 7vw, 80px) 0 12px;
    scroll-margin-top: 92px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.experience-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 24px;
    border: 1px solid rgba(22, 117, 224, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 42px rgba(12, 70, 132, .08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.experience-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: rgba(22, 117, 224, .055);
    pointer-events: none;
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: rgba(22, 117, 224, .28);
    box-shadow: 0 22px 50px rgba(12, 70, 132, .13);
}

.experience-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 26px;
}

.experience-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--blue-50);
    color: var(--blue-600);
    border: 1px solid #dbeaff;
}

.experience-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.experience-number {
    color: rgba(22, 117, 224, .18);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.experience-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.experience-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Bagian Proyek */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(12, 70, 132, .13);
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
    color: #fff;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 10px;
    border: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
    color: #fff;
    text-decoration: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background: transparent;
    color: var(--muted);
    border-top: 1px solid rgba(22, 117, 224, .10);
    font-size: 13px;
}

@media (max-width: 850px) {
    .profile-card {
        grid-template-columns: 1fr;
    }

    .profile-visual {
        width: min(280px, 85%);
        margin: auto;
    }

    .profile-content {
        text-align: center;
    }

    .intro {
        margin-inline: auto;
    }

    .education-list {
        grid-template-columns: 1fr;
    }

    .experience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    header li {
        padding-left: 12px;
    }

    header li a {
        font-size: 12px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-item strong {
        font-size: 13px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        gap: 14px;
        padding: 22px 18px;
    }

    .education-number {
        display: none;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .experience-card {
        min-height: 0;
    }
}

@media (max-width: 430px) {
    .container {
        width: 92%;
    }

    header .logo a {
        font-size: 0;
    }

    header .logo span {
        margin-right: 0;
        font-size: 14px;
    }

    header li {
        padding-left: 9px;
    }

    .profile-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    #profile h1 {
        font-size: 38px;
        letter-spacing: -1.5px;
    }
}
