:root {
    --bg: #0a0a0a;
    --panel: #0f1b2d;
    --panel-soft: #13243a;
    --text: #eef7ff;
    --muted: #a9bad0;
    --line: rgba(238, 247, 255, 0.13);
    --accent: #87CEEB;
    --accent-dark: #3aa7cf;
    --radius: 8px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
    scrollbar-width: none;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 82% 4%, rgba(124, 153, 164, 0), transparent 28rem),
        linear-gradient(rgba(135, 206, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(135, 206, 235, 0.04) 1px, transparent 1px),
        var(--bg);
    background-size: auto, 44px 44px, 44px 44px, auto;
    color: var(--text);
    font-family: "Outfit", Arial, sans-serif;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0;
}

p {
    color: var(--muted);
    line-height: 1.75;
}

a {
    color: var(--muted);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

section {
    position: relative;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 1rem 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
 
.navbar .container {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: center;
}
 
.navbar .row {
    align-items: center;
    justify-content: center;
    width: 100%;
}
 
/* Desktop: links horizontal & centered */
#nav-menu {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
 
.navbar a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: rgba(238, 247, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}
 
.navbar a:hover {
    background: rgba(135, 206, 235, 0.1);
    border-color: rgba(135, 206, 235, 0.24);
    color: var(--accent);
}
 
 
/* ─── HAMBURGER ─────────────────────────── */
 
/* Hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
 
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    border-radius: 3px;
    transition: transform 0.28s ease, opacity 0.2s ease;
}
 
/* Animasi jadi X saat menu terbuka */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
 
 
/* ─── MOBILE ( ≤ 767px ) ────────────────── */
 
@media (max-width: 767.98px) {
 
    .navbar {
        padding: 0.85rem 0;
    }
 
    /* Row jadi flex space-between supaya hamburger ke kanan */
    .navbar .row {
        justify-content: flex-end;
        padding: 0 1.25rem;
    }
 
    /* Tampilkan hamburger */
    .hamburger {
        display: flex;
        flex-shrink: 0;
    }
 
    /* Sembunyikan nav links secara default */
    #nav-menu {
        display: none;
 
        /* Dropdown: tempel persis di bawah navbar */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
 
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding: 0.6rem 1.25rem 1rem;
 
        /* Ikut estetika navbar: dark glass */
        background: rgba(10, 10, 10, 0.96);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
 
    /* Aktif: tampil + slide-in */
    #nav-menu.active {
        display: flex;
        animation: menuSlideIn 0.22s ease forwards;
    }
 
    @keyframes menuSlideIn {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }
 
    /* Link jadi full-width, touch-friendly */
    #nav-menu a {
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        font-size: 0.95rem;
        padding: 0.5rem 0.8rem;
    }
}


.title {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding: 7rem 0 6rem;
}

.title h1 {
    max-width: 980px;
    margin-inline: auto;
    font-size: clamp(3rem, 9vw, 5.3rem);
    line-height: 0.95;
}

.title h2 {
    margin-top: 1.5rem;
    color: var(--accent);
    font-size: clamp(1.25rem, 3vw, 2.3rem);
    font-weight: 800;
}

.title p {
    margin-top: 0.8rem;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 200;
    opacity: 60%;
}

.company,
.learning,
.project,
.personal {
    padding: 6.5rem 0;
    scroll-margin-top: 86px;
}

.company,
.project {
    background: rgba(15, 27, 45, 0.56);
    border-block: 1px solid var(--line);
}

.company h3,
.L-title h1,
.P-title h2,
.title-personal h2 {
    font-size: clamp(2.1rem, 5vw, 4.5rem);
    line-height: 1.05;
}

.company>.container>.row>.col-md-12:first-child {
    margin-bottom: 2.2rem;
}

.links {
    margin-bottom: 1.25rem;
}

.LIOA,
.LSIOA {
    padding: 1rem;
    background: rgba(135, 206, 235, 0.1);
    border: 1px solid rgba(135, 206, 235, 0.22);
    color: var(--accent);
    cursor: pointer;
    font-weight: 800;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
    user-select: none;
}

.gambar-sejarah {
    background: rgb(10, 10, 10, 0.5);
}

.LIOA {
    border-radius: var(--radius) 0 0 var(--radius);
}

.LSIOA {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.company .LIOA:hover,
.company .LSIOA:hover,
.company .LIOA:focus-visible,
.company .LSIOA:focus-visible {
    background: rgba(135, 206, 235, 0.22);
    border-color: var(--accent);
    color: var(--text);
    outline: none;
}

.company .LIOA.active,
.company .LSIOA.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.company .LIOA.active:hover,
.company .LSIOA.active:hover,
.company .LIOA.active:focus-visible,
.company .LSIOA.active:focus-visible {
    background: #b9e9fb;
    border-color: #b9e9fb;
    color: var(--bg);
}

.IOA[hidden],
.SIOA[hidden] {
    display: none !important;
}

.IOA,
.SIOA {
    margin-top: 1rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.IOA .row,
.SIOA .row {
    align-items: stretch;
}

.IOA img,
.SIOA img,
.img-placeholder {
    width: 100%;
    min-height: 100px;
    display: block;
    background:
        linear-gradient(135deg, rgba(135, 206, 235, 0.36), rgba(15, 27, 45, 0.95)),
        radial-gradient(circle at 78% 18%, rgba(238, 247, 255, 0.25) 0 13%, transparent 14%);
    border: 1px solid rgba(135, 206, 235, 0.22);
    border-radius: var(--radius);
    object-fit: cover;
}

.IOA .col-md-4,
.SIOA .col-md-4 {
    padding: clamp(1.2rem, 3vw, 2rem);
}

.IOA strong,
.SIOA strong {
    color: var(--text);
    font-size: 1.25rem;
}

.L-title {
    margin-bottom: 2rem;
}

.L-title .row {
    align-items: end;
}

.L-title p {
    max-width: 520px;
    margin-left: auto;
}

.L-card {
    padding: 0.6rem;
}

.L-card h3 {
    min-height: 180px;
    display: flex;
    align-items: end;
    padding: 1.15rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--accent);
    font-size: clamp(1.3rem, 3vw, 2rem);
}

.P-title,
.title-personal {
    margin-bottom: 2rem;
}

.P-card,
.personal-card {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
}

.P-card>div,
.personal-card>div {
    background: var(--panel);
}

.P-card .img-placeholder,
.personal-card .img-placeholder {
    min-height: 290px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.P-card .img-placeholder img,
.personal-card .img-placeholder img {
    max-height: 340px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

.title-placeholder {
    min-height: 110px;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
}

.title-placeholder h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.P-card,
.personal-card,
.L-card {
    transition: transform 180ms ease, filter 180ms ease;
}

.P-card:hover,
.personal-card:hover,
.L-card:hover {
    transform: translateY(-4px);
    filter: brightness(1.05);
}

@media (max-width: 992px) {
    .navbar .col-md-4:nth-child(2) {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .title {
        min-height: auto;
    }

    .L-title p {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    body {
        margin: 0 10px;
    }

    .navbar {
        position: static;
        border-radius: 0 0 20px 20px;
    }

    .navbar .col-md-4:nth-child(2) {
        justify-content: flex-start;
    }

    .navbar a {
        width: calc(50% - 0.25rem);
        justify-content: center;
        font-size: 0.82rem;
    }

    .company {
        border-radius: 20px;
    }

    .company>.container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .company>.container>.row {
        --bs-gutter-x: 1rem;
    }

    .title,
    .company,
    .learning,
    .project,
    .personal {
        padding: 4.5rem 0;
    }

    .LIOA,
    .LSIOA {
        border-radius: var(--radius);
        margin-bottom: 0.75rem;
    }

    .IOA,
    .SIOA {
        margin-left: 0;
        margin-right: 0;
    }

    .IOA img,
    .SIOA img,
    .img-placeholder,
    .P-card .img-placeholder,
    .personal-card .img-placeholder {
        min-height: 220px;
    }

    .IOA .col-md-4,
    .SIOA .col-md-4 {
        padding: 1.2rem 0.4rem 0.4rem;
    }
}

/* ===== PROJECT SLICK: center card menonjol ===== */
.project .slider-projek-carousel {
    --bs-gutter-x: 0;
    position: relative;
    overflow: hidden;
    padding: 44px 0 72px;
}

.project .slider-projek-carousel .slick-list {
    overflow: visible !important;
}

.project .slider-projek-carousel .slick-track {
    display: flex;
    align-items: center;
}

.project .slider-projek-carousel .slick-slide {
    display: flex !important;
    justify-content: center;
    float: none;
    height: auto;
    padding: 0 18px;
    transition: opacity 0.45s ease;
    will-change: transform;
}

.project .slider-projek-carousel .slick-slide .P-card {
    backface-visibility: hidden;
    transform-origin: center center;
    opacity: 0.28 !important;
    transform: scale(0.62) !important;
    filter: blur(1px) grayscale(0.1) !important;
    transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease;
}

.project .slider-projek-carousel .slick-slide.slick-center .P-card {
    opacity: 1 !important;
    transform: scale(1) !important;
    filter: none !important;
    z-index: 5;
}

.project .slider-projek-carousel .P-card {
    width: min(820px, 72vw) !important;
    max-width: none;
    margin: 0 auto;
    padding: 0.75rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    box-shadow: none;
    overflow: hidden;
}

.project .slider-projek-carousel .slick-center .P-card {
    box-shadow: 0 28px 80px rgba(0,0,0,0.34);
    border-color: rgba(135,206,235,0.3);
}

.project .slider-projek-carousel .img-placeholder {
    min-height: 0;
    height: 360px;
    padding: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.project .slider-projek-carousel .img-placeholder img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

.project .slider-projek-carousel .title-placeholder {
    min-height: 76px;
    padding: 16px 18px;
    border-radius: 0 0 12px 12px;
    background: var(--panel);
    text-align: center;
}

.project .slider-projek-carousel .title-placeholder h2 {
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    margin: 0;
}

/* arrow tetap di samping seperti referensi */
.project .slick-prev-custom,
.project .slick-next-custom {
    width: 48px;
    height: 48px;
    background: #fff;
    z-index: 20;
}

.project .slick-prev-custom {
    left: 28px;
}

.project .slick-next-custom {
    right: 28px;
}

@media (max-width: 1200px) {
    .project .slider-projek-carousel .slick-slide {
        padding: 0 12px;
    }

    .project .slider-projek-carousel .slick-slide .P-card {
        transform: scale(0.68) !important;
    }

    .project .slider-projek-carousel .slick-slide.slick-center .P-card {
        transform: scale(1) !important;
    }

    .project .slider-projek-carousel .img-placeholder {
        height: 310px;
    }
}

@media (max-width: 768px) {
    .project .slider-projek-carousel {
        padding: 28px 0 48px;
    }

    .project .slider-projek-carousel .slick-slide .P-card {
        opacity: 0.45 !important;
        transform: scale(0.86) !important;
    }

    .project .slider-projek-carousel .slick-slide.slick-center .P-card {
        opacity: 1 !important;
        transform: scale(1) !important;
    }

    .project .slider-projek-carousel .img-placeholder {
        height: 230px;
    }

    .project .slick-prev-custom {
        left: 8px !important;
    }

    .project .slick-next-custom {
        right: 8px !important;
    }
}

.project .project-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;

    width: 54px !important;
    height: 54px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(238, 247, 255, 0.24) !important;

    background: rgba(238, 247, 255, 0.92) !important;
    color: #07111f !important;

    cursor: pointer !important;
    padding: 0 !important;
    outline: none !important;

    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease !important;
}

.project .slick-prev-custom {
    left: 32px !important;
}

.project .slick-next-custom {
    right: 32px !important;
}

.project .project-arrow i {
    font-size: 17px;
    line-height: 1;
    color: currentColor !important;
    transition: transform 0.22s ease;
}

.project .project-arrow:hover {
    transform: translateY(-50%) scale(1.06) !important;
    background: var(--accent) !important;
    color: var(--bg) !important;
    border-color: rgba(135, 206, 235, 0.9) !important;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.42),
        0 0 0 6px rgba(135, 206, 235, 0.12) !important;
}

.project .slick-prev-custom:hover i {
    transform: translateX(-2px);
}

.project .slick-next-custom:hover i {
    transform: translateX(2px);
}

.project .project-arrow:active {
    transform: translateY(-50%) scale(0.98) !important;
}

@media (max-width: 768px) {
    .project .project-arrow {
        width: 44px !important;
        height: 44px !important;
    }

    .project .slick-prev-custom {
        left: 10px !important;
    }

    .project .slick-next-custom {
        right: 10px !important;
    }

    .project .project-arrow i {
        font-size: 15px;
    }
}
