:root {
    --bg-dark: #0B0B12;
    --bg-indigo: #1A1A2E;
    --bg-soft: #2A2A40;
    --neon: #A855F7;
    --bg-dark-rgb: 11, 11, 18;
    --bg-indigo-rgb: 26, 26, 46;
    --bg-soft-rgb: 42, 42, 64;
    --neon-rgb: 168, 85, 247;
    --bg-gray-rgba: rgba(255,255,255,0.15);
    --bg-dgray-rgba: rgba(255,255,255,0.06);
}

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
}

.bg-grid {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
}

.header {
    position: sticky;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    top: 0;
    width: 100%;
    height: 80px;
    padding: 0 60px;
    background: var(--bg-indigo);
    backdrop-filter: blur(12px);
    box-sizing: border-box;
    border-bottom: 1px solid var(--bg-indigo-rgb);
    z-index: 2000;
}

.header-left {
    display: flex;
    align-items: center;
    justify-self: start;
}

.logo img {
    height: 45px;
    cursor: pointer;
}

.header-center {
    display: flex;
    justify-content: center;
    justify-self: center;
    transform: translateX(20px);
}

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

.nav a {
    position: relative;
    font-size: 18px;
    font-weight: 500;
    padding: 6px 0;
    text-decoration: none;
    opacity: 0.8;
    color: whitesmoke;
}

.nav a:hover {
    color: white;
    opacity: 1;
}

.nav a::before {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav a:hover::before {
    width: 100%;
}

.nav a.active {
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 24px;
}

.lang {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    gap: 8px;
    padding: 8px 16px;
    color: white;
    background: var(--bg-dgray-rgba);
    border: 1px solid var(--bg-gray-rgba);
    border-radius: 28px;
    backdrop-filter: blur(10px);
    transition: 0.25s ease;
    cursor: pointer;
}

.lang-btn:hover {
    background: var(--bg-gray-rgba);
}

.arrow {
    display: inline-block;
    font-size: 20px;
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.lang-btn.active .arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: flex;
    flex-direction: column;
    position: absolute;
    font-family: "Inter", sans-serif;
    top: 120%;
    right: 0;
    width: 260px;
    padding: 10px;
    gap: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--bg-gray-rgba);
    border-radius: 18px;
    opacity: 0;
    backdrop-filter: blur(14px);
    transform: translateY(10px);
    transition: 0.25s ease;
    pointer-events: none;
}

.lang-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    transition: 0.2s ease;
}

.lang-item:hover {
    background: var(--bg-dgray-rgba);
}

.lang-item.active {
    background: var(--bg-gray-rgba);
}

.b-side {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: white;
    padding: 8px 18px;
    border-radius: 24px;
    background: var(--bg-dgray-rgba);
    transition: 0.25s ease;
}

.b-side:hover {
    background: white;
    color: black;
}

.b-side-btn {
    position: relative;
    display: inline-flex;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    overflow: hidden;
    color: white;
    background: var(--bg-dgray-rgba);
    border: 1px solid var(--bg-gray-rgba);
    backdrop-filter: blur(10px);
    transition:
    background 0.6s ease,
    transform 0.45s ease,
    box-shadow 0.45s ease,
    color 0.45s ease;
}

.b-side .label {
    position: relative;
    top: 3px;
    color: white;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: var(--bg-gray-rgba);
    opacity: 0;
    width: 20px;
    height: 20px;
    transform: scale(0);
    pointer-events: none;
}

.ripple.enter {
    animation: ripple-enter 1400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ripple.leave {
    animation: ripple-leave 1200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ripple-enter {
    from {
        transform: scale(0);
        opacity: 0.6;
    }
    to {
        transform: scale(4);
        opacity: 1;
}
}

@keyframes ripple-leave {
    from {
        transform: scale(4);
        opacity: 1;
}
    to {
        transform: scale(0);
        opacity: 0;
    }
}

.hamburger {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    padding: 0;
    background: none;
    border: none;
    z-index: 9999;
    cursor: pointer;
}

.hamburger span {
    display: block;
    transform: none;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 10px;
    transform-origin: center;
    transition: 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s, background-color 0.25s ease;
}

.hamburger:hover span {
    background-color: var(--neon);
}

.hamburger.active span {
    background-color: var(--neon);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg) translateX(0);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg) translateX(0);
}

.mobile-menu {
    position: fixed;
    display: flex;
    flex-direction: column;
    font-family: "Inter", sans-serif;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    padding: 120px 40px 40px 40px;
    gap: 32px;
    z-index: 1000;
    background: var(--bg-dgray-rgba);
    backdrop-filter: blur(18px);
    transition: right 0.45s cubic-bezier(.4,0,.2,1);
    box-sizing: border-box;
    pointer-events: none;
}

.mobile-menu.show {
    right: 0;
    pointer-events: auto;
}

.mobile-menu a {
    text-decoration: none;
    font-size: 22px;
    color: white;
    opacity: 0;
    transform: translateX(30px);
}

.b-sidee {
    position: relative;
    display: block;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
    padding: 5px 0px;
    margin-left: -20px;
    width: calc(100% + 40px);
    color: white;
    background: transparent;
    background: var(--bg-dgray-rgba);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.b-sidee::before {
    content: "";
    position: absolute;
    top: -25px;
    left: -20px;
    right: -40px;
    height: 1px;
    background: var(--bg-dgray-rgba);
}

.b-sidee:hover {
    background: var(--bg-indigo);
    color: white;
    transform: none;
}

.mobile-menu a:hover {
    color: var(--neon);
}

.mobile-menu.show a {
    animation: slideIn 0.5s forwards;
}

.mobile-menu.show a:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.show a:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.show a:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.show a:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.show a:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 800px) {
    .header-right > .b-side-btn {
        display: none;
    }

    .header-center {
        display: none;
        position: fixed;
        flex-direction: column;
        align-items: center;
        top: 90px;
        left: 0;
        width: 100%;
        gap: 26px;
        padding: 40px 0;
        background: var(--bg-dark);
        backdrop-filter: blur(14px);
        transform: translateY(-120%);
        transition: 0.35s ease;
    }

    .header-center.show {
        transform: translateY(0);
    }

    .nav {
        flex-direction: column;
    }

    .hamburger {
        display: flex;
        margin-left: 12px;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.project-detail {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0px;
    color: #fff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: "Inter", sans-serif;
    font-size: 14px;
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover {
    color: white;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

.project-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 7px;
    margin-top: 20px;
    font-family: "Space Grotesk", sans-serif;
    cursor: default;
}

.project-description {
    color: #9ca3af;
    margin-bottom: 30px;
    margin-left: 6px;
    font-family: monospace;
    cursor: default;
}

.project-image {
    border-radius: 14px;
    overflow: hidden;
    background: #1f2937;
    position: relative;
}

.project-image img {
    width: 100%;
    display: block;
}

.project-buttons {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.repo-btn,
.live-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-family: "Inter", sans-serif;
    text-decoration: none;
    color: white;
    background: var(--bg-dgray-rgba);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.25s ease;
}

.repo-btn svg,
.live-btn svg {
    opacity: 0.85;
}

.repo-btn:hover,
.live-btn:hover {
    background: var(--bg-indigo);
}

.live-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
}

.project-detail,
.project-content {
    padding-left: 60px;
    padding-right: 60px;
}

.project-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 1.2fr;
    gap: 70px;
    margin-top: 60px;
}

.content-left {
    color: white;
    cursor: default;
}

.content-left h2 {
    margin-bottom: 20px;
    margin-top: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 27px;
}

.content-left h2:not(:first-child) {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 26px;
}

.content-left p {
    margin-bottom: 20px;
    margin-top: 0;
    line-height: 1.7;
    text-align: justify;
    font-family: "Inter", sans-serif;
    font-size: 16px;
}

.content-left ul {
    margin-left: 20px;
    margin-top: 12px;
    margin-bottom: 24px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
}

.content-left li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.content-right {
    margin-left: 75px;
}

.sticky-box {
    position: sticky;
    top: 120px;
}

.info-block {
    margin-bottom: 32px;
    color: white;
}

.info-block h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    margin-bottom: 7px;
    cursor: default;
}

.info-block p {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    cursor: default;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1f1f1f;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #d1d5db;
    transition: all 0.2s ease;
    cursor: default;
    font-family: "Inter", sans-serif;
}

.tech-item img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.tech-item:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
    color: #ffffff;
}

@media (max-width: 768px) {
    .project-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .content-right {
        order: 1 !important;
        margin-left: 0 !important;
        width: 100% !important;
    }

    .content-left {
        order: 2 !important;
        width: 100% !important;
    }

    .sticky-box {
        position: relative !important;
        top: 0 !important;
    }

    .info-block {
        margin-bottom: 20px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .content-left h2 {
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    .content-right {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.footer {
    color: #d1d5db;
    padding: 50px 0 0;
    border-top: 1px solid #15151c;
    background: linear-gradient(
        to bottom,
        #0B0B12 0%,
        #151521  55%,
        #23283a  100%
    );
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer h4 {
    color: white;
    margin-bottom: 12px;
    font-size: 16px;
    cursor: default;
    font-family: "Space Grotesk", sans-serif;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer li {
    margin-bottom: 8px;
}

.footer a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 12px;
    transition: 0.2s;
    font-family: "Inter", sans-serif;
}

.footer a:hover {
    color: white;
}

.ft-logo {
    height: 40px;
}

.socials {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

.socials a {
    display: inline-flex;
    opacity: 0.7;
    transition: 0.25s;
}

.socials a:hover {
    opacity: 1;
    transform: translateY(-2px);
    filter: brightness(1.3);
}

.socials img {
    width: 22px;
    height: 22px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #18181b;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #3f3f46;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0; /* Sembunyi awal */
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #27272a;
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    font-size: 13px;
    opacity: 0.6;
    cursor: default;
    font-family: monospace;
}