body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #080C14;
    color: #E2E8F0;
}

html {
    scroll-behavior: smooth;
}

.site-footer {
    position: relative;
    z-index: auto;
    background-color: #060a12;
    background-image: none;
    opacity: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    isolation: isolate;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: #060a12;
    background-image: none;
    opacity: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: #1e293b;
    isolation: isolate;
    transform: translate3d(0, 0, 0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.site-nav.is-scroll-hidden {
    transform: translate3d(0, -100%, 0);
}

body.has-site-nav {
    padding-top: var(--site-nav-height, 4.5rem);
}

.site-footer .footer-social-link {
    background-color: #0f172a;
    border-color: #334155;
}

@media (prefers-reduced-motion: reduce) {
    .site-nav {
        transition: none;
    }

    .site-nav.is-scroll-hidden {
        transform: none;
    }
}

.glow-cyan {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}

.glow-purple {
    box-shadow: 0 0 25px rgba(112, 0, 255, 0.3);
}

.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
}

.reveal {
    opacity: 0;
    transform: translateX(-56px);
    transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.from-right {
    transform: translateX(56px);
}

.reveal.from-bottom {
    transform: translateY(48px);
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
    will-change: auto;
}

.reveal-delay-1 { transition-delay: 0.35s; }
.reveal-delay-2 { transition-delay: 0.65s; }
.reveal-delay-3 { transition-delay: 0.95s; }
.reveal-delay-4 { transition-delay: 1.25s; }

/* SRG Atom 2D */
.atom-container {
    position: relative;
    width: min(480px, 100%);
    aspect-ratio: 1;
    max-width: 100%;
    overflow: visible;
}

#atom-root {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.srg-atom-2d {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.srg-orbits-svg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.srg-orbit-path {
    fill: none;
    stroke: rgba(210, 225, 240, 0.48);
    stroke-width: 1;
    stroke-dasharray: 1.2 3.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.srg-orbit-path-0 { stroke-opacity: 0.55; }
.srg-orbit-path-1 { stroke-opacity: 0.45; }
.srg-orbit-path-2 { stroke-opacity: 0.5; }

.srg-nucleus-2d {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 168px;
    height: 168px;
    margin: -84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
    z-index: 5;
    background: radial-gradient(
        circle at 50% 45%,
        #00f2ff 0%,
        #0891b2 35%,
        #0c4a6e 68%,
        #041018 100%
    );
    box-shadow:
        0 0 35px rgba(0, 240, 255, 0.55),
        0 0 70px rgba(0, 180, 255, 0.25),
        inset 0 0 20px rgba(0, 240, 255, 0.2);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.9);
    animation: srg-nucleus-glow 3s ease-in-out infinite;
}

@keyframes srg-nucleus-glow {
    0%, 100% { box-shadow: 0 0 35px rgba(0,240,255,0.55), 0 0 70px rgba(0,180,255,0.25), inset 0 0 20px rgba(0,240,255,0.2); }
    50% { box-shadow: 0 0 50px rgba(0,240,255,0.75), 0 0 90px rgba(0,180,255,0.4), inset 0 0 28px rgba(0,240,255,0.35); }
}

.srg-electron-2d {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px;
    border-radius: 14px;
    background: rgba(8, 20, 40, 0.95);
    border: 1px solid rgba(0, 242, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00e5ff;
    box-shadow: 0 0 16px rgba(0, 242, 255, 0.35);
    z-index: 10;
    will-change: transform;
}

.srg-electron-2d svg {
    width: 32px;
    height: 32px;
}

.srg-electron-streaming svg { color: #ef4444; fill: currentColor; stroke: none; }
.srg-electron-photo svg,
.srg-electron-video svg,
.srg-electron-coding svg,
.srg-electron-www svg,
.srg-electron-phone svg { stroke: currentColor; }

@media (max-width: 1023px) {
    .atom-container {
        width: min(400px, 92vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .srg-nucleus-2d {
        animation: none !important;
    }
}

/* Nav CTA — pill button (Mulai Proyek / Kembali) */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 9999px;
    background-color: rgb(6 182 212);
    color: rgb(2 6 23);
    transition: background-color 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
    white-space: nowrap;
}

.nav-cta-btn:hover {
    background-color: rgb(34 211 238);
}

.nav-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background-color: rgb(6 182 212);
    color: rgb(2 6 23);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.nav-back-btn:hover {
    background-color: rgb(34 211 238);
    transform: scale(1.05);
}

.nav-back-icon {
    width: 1.125rem;
    height: 1.125rem;
}
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.lang-btn {
    color: rgb(100 116 139);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0.15rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.lang-btn:hover {
    color: rgb(34 211 238);
}

.lang-btn.active {
    color: rgb(34 211 238);
}

.lang-sep {
    color: rgb(51 65 85);
    font-weight: 400;
    user-select: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .nav-actions {
        gap: 1rem;
    }
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
}

.portfolio-card-title {
    font-size: 1.125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #f1f5f9;
    text-align: center;
}

#portfolio-grid .reveal.from-bottom {
    transform: translateY(24px);
    transition:
        opacity 2.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 2.6s cubic-bezier(0.22, 1, 0.36, 1);
}

#portfolio-grid .reveal.from-bottom.visible {
    opacity: 1;
    transform: translate(0, 0);
}

#portfolio-grid .reveal-delay-1 { transition-delay: 0.12s; }
#portfolio-grid .reveal-delay-2 { transition-delay: 0.28s; }
#portfolio-grid .reveal-delay-3 { transition-delay: 0.44s; }
#portfolio-grid .reveal-delay-4 { transition-delay: 0.6s; }

.portfolio-card-desc {
    margin-top: 1rem;
    color: rgb(148 163 184);
    font-size: 0.875rem;
    line-height: 1.6;
}

.portfolio-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 1rem;
}

.portfolio-card-date {
    font-size: 0.75rem;
    color: rgb(100 116 139);
    text-align: right;
}

.portfolio-media {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.5);
}

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

.portfolio-video {
    width: 100%;
    max-height: 240px;
    display: block;
    background: #0f172a;
}

.portfolio-video-wrap {
    position: relative;
}

.portfolio-video-play {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: transparent;
    line-height: 0;
}

.portfolio-video-play:focus-visible {
    outline: 2px solid rgb(34 211 238);
    outline-offset: 2px;
}

.portfolio-video-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #0f172a;
}

.portfolio-video-thumb-placeholder {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
}

.portfolio-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.72);
    border: 2px solid rgba(34, 211, 238, 0.55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.portfolio-play-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-35%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.55rem 0 0.55rem 0.9rem;
    border-color: transparent transparent transparent rgb(34 211 238);
}

.portfolio-video-play:hover .portfolio-play-icon {
    background: rgba(8, 145, 178, 0.85);
    border-color: rgb(34 211 238);
    transform: translate(-50%, -50%) scale(1.06);
    transition: transform 0.2s ease, background 0.2s ease;
}

.portfolio-webframe {
    width: 100%;
    height: 220px;
    border: 0;
    display: block;
    background: #0f172a;
}

.portfolio-web-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: rgb(34 211 238);
    text-align: center;
    background: rgba(8, 20, 40, 0.6);
}

.portfolio-media-empty {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(100 116 139);
    font-size: 0.875rem;
}

/* Admin */
.admin-filter-btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgb(148 163 184);
    background: rgba(15, 23, 42, 0.5);
    transition: all 0.2s ease;
}

.admin-filter-btn:hover {
    color: rgb(34 211 238);
    border-color: rgba(34, 211, 238, 0.3);
}

.admin-filter-btn.active {
    color: rgb(15 23 42);
    background: rgb(34 211 238);
    border-color: rgb(34 211 238);
}

.admin-thumb {
    width: 5rem;
    height: 5rem;
    border-radius: 0.75rem;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.8);
}

.admin-thumb-empty,
.admin-thumb-web {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgb(100 116 139);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.admin-thumb-web {
    color: rgb(34 211 238);
}

.admin-thumb-processing {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgb(251 191 36);
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.admin-delete-btn,
.admin-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: rgba(0, 240, 255, 0.5);
}

.service-option {
    cursor: pointer;
    transition: all 0.2s;
}

.service-option.selected {
    border-color: rgba(0, 240, 255, 0.6);
    background: rgba(0, 240, 255, 0.1);
}

.service-option input {
    display: none;
}

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card-link:hover .card-arrow {
    transform: translateX(4px);
}

.card-arrow {
    transition: transform 0.2s;
}

/* Performance — ringan di perangkat lama */
@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.srg-electron-2d,
.srg-nucleus-2d {
    transform: translateZ(0);
}

.portfolio-webframe {
    content-visibility: auto;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.from-right,
    .reveal.from-bottom {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.portfolio-card-openable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card-openable:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 240, 255, 0.08);
}

.portfolio-gallery-badge {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    background: rgba(34, 211, 238, 0.15);
    color: rgb(34 211 238);
    vertical-align: middle;
}

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.portfolio-lightbox.hidden {
    display: none;
}

.portfolio-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(6px);
}

.portfolio-lightbox-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 56rem;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    border-radius: 1.5rem;
}

.portfolio-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    cursor: pointer;
}

.portfolio-lightbox-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    padding-right: 2.5rem;
}

.portfolio-lightbox-desc {
    text-align: center;
    color: rgb(148 163 184);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.portfolio-lightbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.portfolio-lightbox-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block;
    background: rgba(15, 23, 42, 0.8);
}

body.portfolio-lightbox-open {
    overflow: hidden;
}

.admin-gallery-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: rgba(34, 211, 238, 0.15);
    color: rgb(34 211 238);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(34, 211, 238, 0.35);
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.admin-gallery-add-btn:hover {
    background: rgb(34 211 238);
    color: rgb(2 6 23);
}

.admin-upload-progress-track {
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.8);
    overflow: hidden;
}

.admin-upload-progress-bar {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, rgb(6 182 212), rgb(59 130 246));
    transition: width 0.15s ease;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(148 163 184);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-social-link svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.footer-social-link:hover {
    color: rgb(34 211 238);
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.08);
}
