:root {
    --bg-gradient: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(147, 86, 220, 0.22) 0%, rgba(8, 18, 38, 0) 60%),
        linear-gradient(180deg, #120822 0%, #0d1226 22%, #181238 55%, #23184d 82%, #0a081a 100%);
    --bg-void: #090514;
    --bg-panel: #130c26;
    --bg-panel-2: #1f143a;
    --line: rgba(210, 180, 255, 0.14);
    --gold: #e3b23c;
    --gold-light: #f6d888;
    --text-main: #f3ebfc;
    --text-heading: #ffffff;
    --ink: #0b1730;
    --muted: #a2a0c9;
    --nav-bg: rgba(13, 8, 26, 0.65);
    --btn-text: #0b1730;
    --serif: 'Playfair Display', serif;
    --sans: 'Work Sans', sans-serif;
    --mono: 'IBM Plex Mono', monospace;
}

section:not(#home) {
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
}

body.light-mode {
    --bg-gradient: linear-gradient(135deg, #fef5e7 0%, #e8d6f8 100%);
    --bg-void: #e8d6f8;
    --bg-panel: #ffffff;
    --bg-panel-2: #f4ebfc;
    --line: rgba(110, 50, 160, 0.15);
    --gold: #b88200;
    --gold-light: #8e6200;
    --text-main: #1e0a38;
    --text-heading: #120324;
    --ink: #ffffff;
    --muted: #64527d;
    --nav-bg: rgba(244, 235, 252, 0.85);
    --btn-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: var(--bg-gradient), var(--bg-void);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* NAVBAR */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    max-width: 1180px;
    margin: 0 auto;
}

.logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 38px;
    list-style: none;
}

.nav-links a {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    position: relative;
    padding-bottom: 4px;
    transition: color .25s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-heading);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-btn {
    background: var(--bg-panel-2);
    border: 1px solid var(--line);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-talk {
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 999px;
    transition: .25s;
}

.btn-talk:hover {
    background: var(--gold);
    color: var(--btn-text);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--text-main);
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(184, 130, 255, 0.18) 0%, transparent 65%);
    filter: blur(50px);
    pointer-events: none;
}

.hero-new-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-left,
.hero-right {
    flex: 1;
}

.hero-right {
    text-align: left;
}

.hero-center {
    flex: 0 0 auto;
    margin: 0 40px;
    display: flex;
    justify-content: center;
}

.hero-photo {
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
}

.greeting-text {
    font-size: 1.4rem;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-new-layout h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text-heading);
}

/* MULTI-ROLE LOOP ANIMATION CONTAINER */

.dynamic-role-container {
    height: 70px;
    /* Batasan tinggi pas untuk 1 baris teks */
    overflow: hidden;
    /* Sembunyikan teks yang belum gilirannya */
    display: flex;
}

.role-slider {
    display: flex;
    flex-direction: column;
    animation: slideRoles 7s infinite;
}

.dynamic-role {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 70px;
    /* Samakan dengan height container */
    white-space: nowrap;
    /* MENCEGAH teks terlipat ke bawah */
    background: linear-gradient(90deg, var(--gold-light), var(--text-heading));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    height: 70px;
}

/* Animasi gulung untuk 3 kalimat */
@keyframes slideRoles {

    0%,
    25% {
        transform: translateY(0);
    }

    /* Akuntan */
    33%,
    58% {
        transform: translateY(-70px);
    }

    /* Financial Analyst */
    66%,
    91% {
        transform: translateY(-140px);
    }

    /* Auditor */
    100% {
        transform: translateY(0);
    }

    /* Kembali ke awal */
}

/* GLOBAL SECTION STYLES */
section {
    padding: 110px 0;
    position: relative;
    z-index: 1;
}

.section-head {
    margin-bottom: 40px;
    max-width: 640px;
}

.section-eyebrow {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.section-head h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 700;
    color: var(--text-heading);
}

.section-head h2 em {
    color: var(--gold);
    font-style: italic;
}

.section-head p {
    color: var(--muted);
    margin-top: 12px;
    font-size: .98rem;
}

/* =========================================================
       SECTION ABOUT
       ========================================================= */
#about {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;

    padding-top: 10px;
    padding-bottom: 60px;


}

#about .section-head {
    margin-bottom: 26px;
}

.about-new-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: start;
}

@media (min-width: 921px) {
    .about-content {
        position: relative;
    }

    .about-content::before {
        content: "";
        position: absolute;
        top: 4px;
        bottom: 4px;
        left: -32px;
        width: 1px;
        background: linear-gradient(180deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
    }
}

.about-info-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.about-bio p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-visual {
    display: flex;
    justify-content: center;
    position: relative;
    padding-top: 6px;
}

.about-visual::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(227, 178, 60, 0.16) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}

.lanyard-wrapper {
    position: relative;
    z-index: 1;
    transform-origin: top center;
    animation: swing 5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite alternate;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lanyard-hook {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--gold-light), var(--gold));
    box-shadow: 0 0 0 4px var(--bg-panel-2), 0 4px 10px rgba(0, 0, 0, 0.35);
    margin-bottom: -3px;
    z-index: 2;
}

.lanyard-strap {
    width: 14px;
    height: 78px;
    background: linear-gradient(to right, #8a5e00, var(--gold), #8a5e00);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.4);
}

.id-card {
    background: #f7fafe;
    width: 250px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-top: -10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.id-clip {
    width: 46px;
    height: 14px;
    background: linear-gradient(to bottom, #e0e0e0, #999);
    border-radius: 6px;
    margin-top: -28px;
    margin-bottom: 16px;
}

.id-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    margin-bottom: 12px;
    background: #140924;
}

.id-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-details {
    text-align: center;
    color: #0b1730;
    width: 100%;
}

.id-name {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.id-role {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: #5a6b60;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
}

.id-barcode {
    font-family: var(--mono);
    font-size: 1.4rem;
    letter-spacing: 3px;
    opacity: 0.5;
}

@keyframes swing {
    0% {
        transform: rotate(3deg);
    }

    100% {
        transform: rotate(-3deg);
    }
}

.skills-title,
.edu-title {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.skill {
    margin-bottom: 16px;
}

.skill-top {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: .78rem;
    margin-bottom: 6px;
}

.skill-bar {
    height: 5px;
    background: var(--bg-panel-2);
    border-radius: 99px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    width: 0;
    transition: width 1.4s ease;
}

.edu-list {
    border-left: 1px solid var(--line);
    padding-left: 20px;
}

.edu-item {
    position: relative;
    padding-bottom: 20px;
}

.edu-item:last-child {
    padding-bottom: 0;
}

.edu-item::before {
    content: "";
    position: absolute;
    left: -25px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.edu-item .school {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-heading);
}

.edu-item .detail {
    color: var(--gold-light);
    font-size: .82rem;
}

.edu-item .period {
    font-family: var(--mono);
    font-size: .65rem;
    color: var(--muted);
}

/* =========================================================
       SECTION WORKS
       ========================================================= */
#works {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 0;
}

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

.project-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 280px;
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(19, 12, 38, 0.72) 0%, rgba(9, 5, 20, 0.94) 100%);
    transition: background 0.3s ease;
    z-index: 1;
}

.project-card-content {
    position: relative;
    z-index: 2;
    padding: 36px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.project-card:hover .project-card-overlay {
    background: linear-gradient(180deg, rgba(19, 12, 38, 0.55) 0%, rgba(9, 5, 20, 0.88) 100%);
}

.project-num {
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--gold);
    letter-spacing: 1px;
}

.project-card h3 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 10px 0;
    color: var(--text-heading);
}

.project-card p {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tags span {
    font-family: var(--mono);
    font-size: .65rem;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--muted);
    background: rgba(19, 12, 38, 0.6);
}

/* CERTIFICATES */
#certificates {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 0;
}

.cert-carousel-container {
    position: relative;
    width: 100%;
}

.cert-track {
    display: flex;
    gap: 24px;
    padding: 10px 4px 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.cert-track::-webkit-scrollbar {
    display: none;
}

.cert-card {
    scroll-snap-align: start;
    flex: 0 0 320px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: transform 0.3s;
}

.cert-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
}

.cert-card-top {
    display: flex;
    justify-content: space-between;
    padding: 22px 22px 0;
}

.cert-card-num {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-heading);
}

.cert-card-tag {
    font-family: var(--mono);
    font-size: .6rem;
    color: var(--gold-light);
    border: 1px solid var(--line);
    padding: 4px 10px;
    border-radius: 99px;
}

.cert-card-body {
    padding: 14px 22px 0;
}

.cert-card-body h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
}

.cert-card-body .issuer-line {
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--muted);
    margin-top: 6px;
}

.cert-visual {
    height: 160px;
    margin: 16px;
    border-radius: 8px;
    background: #23184d;
    position: relative;
    overflow: hidden;
}

.cert-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-label {
    padding: 0 22px 20px;
}

.cert-label .year {
    font-family: var(--mono);
    font-size: .65rem;
    color: var(--gold-light);
}

.cert-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.cert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: all 0.3s;
}

.cert-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

/* Modal Certificates */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 10, .85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 24px;
}

.modal-overlay.open {
    display: flex;
}

.modal-cert {
    width: 100%;
    max-width: 500px;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 36px;
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-panel-2);
    color: var(--text-main);
    border: 1px solid var(--line);
    cursor: pointer;
}

.modal-image {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 16px;
}

/* =========================================================
       SECTION CONTACT
       ========================================================= */
#contact {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
}

.contact-info h3 {
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.contact-info p {
    color: var(--muted);
    font-size: .92rem;
    margin-bottom: 24px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    border-top: 1px solid var(--line);
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
}

.contact-list li:last-child {
    border-bottom: 1px solid var(--line);
}

.contact-list .lbl {
    font-family: var(--mono);
    font-size: .68rem;
    color: var(--muted);
    text-transform: uppercase;
}

.contact-list .val {
    font-family: var(--mono);
    font-size: .85rem;
    color: var(--gold-light);
}

.form-card {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.field input,
.field textarea {
    width: 100%;
    background: var(--bg-void);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 13px 14px;
    color: var(--text-main);
    font-family: var(--sans);
    font-size: .92rem;
    transition: border-color .25s;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.submit-btn {
    width: 100%;
    background: var(--gold);
    color: var(--btn-text);
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 600;
    transition: background .25s;
}

.submit-btn:hover {
    background: var(--gold-light);
}

/* RESPONSIVE */
@media (max-width:920px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero-new-layout {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-right {
        text-align: center;
    }

    .hero-center {
        order: -1;
        margin-bottom: 10px;
    }

    .about-new-grid,
    .about-info-split,
    .contact-grid,
    .project-grid,
    .row2 {
        grid-template-columns: 1fr;
    }

    #about,
    #works,
    #certificates,
    #contact {
        min-height: auto;
        padding: 90px 0;
    }

    .about-content::before {
        display: none;
    }

    section {
        padding: 80px 0;
    }

}