/* ============================================
   DETAIL PAGES (about, projects, contact)
   Shared styles for full-page detail views
   ============================================ */

/* Reset overflow for scrollable pages */
body.detail-page,
body.detail-page ~ html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
}

/* Override html locked scroll when detail-page body is present */
:root:has(body.detail-page) {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
}

/* Skala desktop ~84% (setara 125% dari 67%) agar pas di zoom browser 100% */
@media (min-width: 861px) {
    :root:has(body.detail-page) {
        zoom: 0.84;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.detail-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px clamp(32px, 6vw, 100px);
    background: rgba(248, 248, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    animation: navSlideDown 0.5s var(--ease-wheel) both;
}

@keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--slate);
    transition: all 0.25s ease;
    padding: 6px 0;
}

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

.back-link:hover {
    color: var(--text-black);
}

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

.detail-nav-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--quote-gray);
    letter-spacing: 0.02em;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.detail-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 100px clamp(24px, 5vw, 60px) 60px;
    animation: pageEnter 0.6s var(--ease-wheel) both;
}

/* Halaman projects memakai layout lebar (object grid + highlight) */
.projects-page .detail-main {
    max-width: 1280px;
}

@keyframes pageEnter {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   DETAIL HERO
   ============================================ */
.detail-hero {
    margin-bottom: 56px;
}

.page-title {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 700;
    color: var(--text-black);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-title em {
    font-style: italic;
    color: var(--slate);
}

.page-subtitle {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 400;
    color: var(--quote-gray);
    line-height: 1.5;
    max-width: 600px;
}

/* Profile hero layout */
.profile-detail-layout {
    display: flex;
    align-items: center;
    gap: clamp(32px, 4vw, 64px);
}

/* ============================================
   SECTIONS
   ============================================ */
.detail-section {
    margin-bottom: 64px;
}

.section-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--quote-gray);
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.section-heading {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 600;
    color: var(--text-black);
    letter-spacing: -0.015em;
    margin-bottom: 28px;
}

/* ============================================
   ABOUT CONTENT
   ============================================ */
.about-content p {
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 400;
    color: var(--text-black);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    font-weight: 600;
}

/* ============================================
   STATS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    border-color: rgba(37, 53, 59, 0.15);
}

.stat-number {
    display: block;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--slate);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--quote-gray);
}

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-black);
    transition: all 0.25s ease;
    cursor: default;
}

.skill-tag:hover {
    background: var(--slate);
    color: var(--white);
    border-color: var(--slate);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 53, 59, 0.15);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--slate);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--slate);
}

.timeline-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 24px 28px;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-black);
}

.timeline-date {
    font-size: 13px;
    font-weight: 400;
    color: var(--quote-gray);
    background: rgba(0, 0, 0, 0.03);
    padding: 4px 12px;
    border-radius: 20px;
}

.timeline-company {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate);
    margin-bottom: 8px;
}

.timeline-card p:last-child {
    font-size: 15px;
    color: var(--text-black);
    line-height: 1.6;
    opacity: 0.75;
}

/* ============================================
   PROJECTS GRID
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.project-object {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    background: var(--slate);
    cursor: pointer;
    contain: layout paint style;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring);
}

.project-object:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.project-object:focus-visible {
    outline: 2px solid var(--slate);
    outline-offset: 4px;
}

.project-object-media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: transform 0.6s var(--ease-wheel), opacity 0.4s ease;
}

.project-object-media svg {
    width: 72px;
    height: 72px;
    stroke: var(--white);
    opacity: 0.75;
}

.project-object-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-object:hover .project-object-media {
    transform: scale(1.08);
    opacity: 0.35;
}

/* Badge tahun di kiri atas */
.project-object-year {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    padding: 10px 18px;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    background: rgba(37, 53, 59, 0.92);
    border-bottom-right-radius: 12px;
    transition: opacity 0.3s ease;
}

.project-object:hover .project-object-year {
    opacity: 0;
}

/* Badge kategori di kanan atas */
.project-object-category {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(17, 24, 27, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    transition: opacity 0.3s ease;
}

.project-object:hover .project-object-category {
    opacity: 0;
}

/* Overlay nama project muncul saat hover */
.project-object-info {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 34px;
    text-align: center;
    background: linear-gradient(180deg, rgba(37, 53, 59, 0.82) 0%, rgba(37, 53, 59, 0.96) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.project-object:hover .project-object-info,
.project-object:focus-visible .project-object-info {
    opacity: 1;
}

.project-object-info h3 {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.01em;
    margin: 0;
}

.project-object-info p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: 46ch;
    margin: 0;
}

.project-object-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.project-object-tags span {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.gradient-1 { background: linear-gradient(135deg, #25353B, #3a5a66); }
.gradient-2 { background: linear-gradient(135deg, #2d4a3e, #4a7a6a); }
.gradient-3 { background: linear-gradient(135deg, #3b2d4a, #6a4a7a); }
.gradient-4 { background: linear-gradient(135deg, #4a3b2d, #7a6a4a); }

/* ============================================
   HIGHLIGHT
   ============================================ */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.project-filter-item {
    display: inline-block;
}

.project-filter {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 500;
    color: var(--slate);
    background: var(--white);
    border: 1px solid rgba(37, 53, 59, 0.18);
    border-radius: 8px;
    padding: 11px 24px;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.project-filter:hover {
    background: rgba(37, 53, 59, 0.06);
}

.project-filter.active {
    background: var(--slate);
    border-color: var(--slate);
    color: var(--white);
}

.project-object.is-hidden {
    display: none;
}

.highlight-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
    background: rgba(37, 53, 59, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.highlight-visual {
    position: relative;
}

.mock-window {
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    transition: transform 0.45s var(--ease-wheel);
}

.highlight-visual:hover .mock-window {
    transform: translateY(-6px) rotate(-0.6deg);
}

.mock-window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #F1F2F2;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D2D5D5;
}

.mock-dot:nth-child(1) { background: #E0705C; }
.mock-dot:nth-child(2) { background: #E3BC55; }
.mock-dot:nth-child(3) { background: #6BBE7E; }

.mock-window-url {
    margin-left: 12px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--quote-gray);
}

.mock-window-screen {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.mock-window-screen svg {
    width: 84px;
    height: 84px;
    stroke: var(--white);
    opacity: 0.8;
}

.mock-window-screen img,
.mock-window-screen iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    display: block;
}

.highlight-float {
    position: absolute;
    right: -10px;
    bottom: -26px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 24px;
    background: var(--slate);
    color: var(--white);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(37, 53, 59, 0.28);
    transition: transform 0.45s var(--ease-wheel);
}

.highlight-visual:hover .highlight-float {
    transform: translateY(-6px);
}

.highlight-float-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}

.highlight-float strong {
    font-size: 18px;
    font-weight: 600;
}

.highlight-info h3 {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 600;
    color: var(--text-black);
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}

.highlight-info p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-black);
    opacity: 0.75;
    margin-bottom: 20px;
}

.highlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.highlight-tags span {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    background: rgba(37, 53, 59, 0.07);
    border-radius: 8px;
}

.highlight-actions {
    display: flex;
    gap: 12px;
}

.ui-btn-sm {
    height: 34px;
    padding: 0 18px;
    font-size: 14px;
    min-width: auto;
}

@media (hover: none) {
    .project-object-info {
        opacity: 1;
        transform: none;
    }

    .project-object-year {
        opacity: 0;
    }
}

/* ============================================
   CONTACT FORM & INFO
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-black);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-main);
    font-size: 15px;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: var(--white);
    color: var(--text-black);
    transition: all 0.25s ease;
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--slate);
    box-shadow: 0 0 0 3px rgba(37, 53, 59, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--quote-gray);
}

.ui-btn-full {
    width: 100%;
    height: 44px;
    gap: 8px;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    transition: all 0.25s ease;
}

.info-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transform: translateX(4px);
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 53, 59, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--slate);
}

.info-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 2px;
}

.info-card a,
.info-card p {
    font-size: 14px;
    color: var(--quote-gray);
    line-height: 1.4;
}

.info-card a:hover {
    color: var(--slate);
}

.contact-socials-section {
    margin-top: 12px;
}

.contact-socials-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 12px;
}

.contact-socials {
    display: flex;
    gap: 12px;
}

.contact-socials a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    transition: all 0.25s ease;
}

.contact-socials a:hover {
    background: var(--slate);
    color: var(--white);
    border-color: var(--slate);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 53, 59, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.detail-footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px clamp(24px, 5vw, 60px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-black);
}

.detail-footer p {
    font-size: 13px;
    color: var(--quote-gray);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    color: var(--quote-gray);
    transition: all 0.25s ease;
}

.footer-socials a:hover {
    color: var(--slate);
    transform: translateY(-2px);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.detail-section {
    opacity: 0;
    transform: translateY(24px);
    animation: sectionFadeIn 0.6s var(--ease-wheel) both;
}

.detail-section:nth-child(1) { animation-delay: 0.1s; }
.detail-section:nth-child(2) { animation-delay: 0.2s; }
.detail-section:nth-child(3) { animation-delay: 0.3s; }
.detail-section:nth-child(4) { animation-delay: 0.4s; }
.detail-section:nth-child(5) { animation-delay: 0.5s; }

@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.projects-page .detail-main,
.projects-page .detail-section {
    opacity: 1;
    transform: none;
    animation: none;
}

/* ============================================
   ANIMATIONS (PROJECTS PAGE)
   ============================================ */
@keyframes objectFadeUp {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes floatUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tagPop {
    from { opacity: 0; transform: translateY(10px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========================================================
   12 PRINCIPLES OF ANIMATION:
   - Principle 5: Follow Through & Overlapping Action (Overshoot & Lag)
   - Principle 6: Slow In and Slow Out (Cubic Ease Curve)
   - Principle 9: Timing & Staging (Staggered Entrance)
   Arah: Kiri ke Kanan dengan Follow Through & Overlapping Action
   ======================================================== */

/* Main Card & Elements: Masuk dari kiri (-48px), overshoot halus (+4px), lalu settle di 0 */
@keyframes gridSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-48px) scale(0.98);
    }
    68% {
        opacity: 1;
        transform: translateX(4px) scale(1.002);
    }
    86% {
        transform: translateX(-1px) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Overlapping Action: Ikon di dalam card ikut meluncur dari kiri dengan jeda waktu sedikit */
@keyframes innerFollowThrough {
    0% {
        opacity: 0;
        transform: translateX(-24px) scale(0.94);
    }
    72% {
        opacity: 0.75;
        transform: translateX(3px) scale(1.01);
    }
    100% {
        opacity: 0.75;
        transform: translateX(0) scale(1);
    }
}

/* Overlapping Action: Badge kategori di pojok card ikut mengayun halus */
@keyframes badgeFollowThrough {
    0% {
        opacity: 0;
        transform: translateX(-18px);
    }
    75% {
        opacity: 1;
        transform: translateX(2px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Kategori filter button: meluncur dari KANAN ke KIRI dengan overshoot halus */
@keyframes filterSlideFromRight {
    0% {
        opacity: 0;
        transform: translateX(28px);
    }
    70% {
        opacity: 1;
        transform: translateX(-3px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Elemen non-card (Teks, Judul, Label, Section): Meluncur dari KANAN ke KIRI */
@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(48px) scale(0.98);
    }
    68% {
        opacity: 1;
        transform: translateX(-4px) scale(1.002);
    }
    86% {
        transform: translateX(1px) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Hero bagian atas: meluncur dari KANAN ke KIRI */
.detail-hero .section-label {
    animation: slideFromRight 0.75s var(--ease-spring) 0.05s backwards;
    will-change: transform, opacity;
}

.detail-hero .page-title {
    animation: slideFromRight 0.8s var(--ease-spring) 0.12s backwards;
    will-change: transform, opacity;
}

.detail-hero .page-subtitle {
    animation: slideFromRight 0.8s var(--ease-spring) 0.18s backwards;
    will-change: transform, opacity;
}

/* Reveal teks & section non-card saat scroll: meluncur dari KANAN ke KIRI */
html.js .reveal {
    opacity: 0;
    will-change: transform, opacity;
}

html.js .reveal.is-visible {
    opacity: 1;
    animation: slideFromRight 0.75s var(--ease-spring) var(--reveal-delay, 0s) backwards;
}
.reveal-delay-1 { --reveal-delay: 0.06s; }
.reveal-delay-2 { --reveal-delay: 0.12s; }
.reveal-delay-3 { --reveal-delay: 0.18s; }
.reveal-delay-4 { --reveal-delay: 0.24s; }
.reveal-delay-5 { --reveal-delay: 0.3s; }
.reveal-delay-6 { --reveal-delay: 0.36s; }

/* Project card container & inner */
.project-object-inner {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    background: var(--slate);
}

html.js .project-object {
    opacity: 0;
    will-change: transform, opacity;
}

html.js .project-object.is-visible {
    opacity: 1;
    animation: gridSlideIn 0.8s var(--ease-spring) var(--stagger-delay, 0s) backwards;
}

html.js .project-object.is-visible .project-object-media svg {
    animation: innerFollowThrough 0.85s var(--ease-spring) calc(var(--stagger-delay, 0s) + 0.06s) backwards;
}

html.js .project-object.is-visible .project-object-category {
    animation: badgeFollowThrough 0.8s var(--ease-spring) calc(var(--stagger-delay, 0s) + 0.08s) backwards;
}

/* Hover tetap berfungsi setelah reveal selesai */
html.js .project-object.is-visible:hover {
    transform: translateY(-8px) scale(1.015);
}

/* Stagger default (Timing) */
.project-object:nth-child(6n + 1) { --stagger-delay: 0s; }
.project-object:nth-child(6n + 2) { --stagger-delay: 0.08s; }
.project-object:nth-child(6n + 3) { --stagger-delay: 0.16s; }
.project-object:nth-child(6n + 4) { --stagger-delay: 0.24s; }
.project-object:nth-child(6n + 5) { --stagger-delay: 0.32s; }
.project-object:nth-child(6n + 6) { --stagger-delay: 0.4s; }

/* Smooth filtering states */
.project-object.is-leaving {
    opacity: 0 !important;
    transform: translateX(20px) scale(0.96) !important;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 1, 1), transform 0.2s cubic-bezier(0.4, 0, 1, 1) !important;
    pointer-events: none;
}

.project-object.filter-entering {
    animation: gridSlideIn 0.65s var(--ease-spring) var(--stagger-delay, 0s) both;
}

.project-object.is-hidden {
    display: none !important;
}

/* Overlay muncul halus + tag muncul beruntun */
.project-object:hover .project-object-info,
.project-object:focus-visible .project-object-info {
    animation: overlayFadeIn 0.4s ease both;
}

.project-object:hover .project-object-info h3,
.project-object:focus-visible .project-object-info h3 {
    animation: floatUp 0.45s var(--ease-wheel) both;
}

.project-object:hover .project-object-info p,
.project-object:focus-visible .project-object-info p {
    animation: floatUp 0.5s 0.05s var(--ease-wheel) both;
}

.project-object:hover .project-object-tags span,
.project-object:focus-visible .project-object-tags span {
    animation: tagPop 0.4s var(--ease-wheel) both;
}

.project-object:hover .project-object-tags span:nth-child(1),
.project-object:focus-visible .project-object-tags span:nth-child(1) { animation-delay: 0.06s; }
.project-object:hover .project-object-tags span:nth-child(2),
.project-object:focus-visible .project-object-tags span:nth-child(2) { animation-delay: 0.12s; }
.project-object:hover .project-object-tags span:nth-child(3),
.project-object:focus-visible .project-object-tags span:nth-child(3) { animation-delay: 0.18s; }
.project-object:hover .project-object-tags span:nth-child(4),
.project-object:focus-visible .project-object-tags span:nth-child(4) { animation-delay: 0.24s; }

/* Highlight bagian atas */
.highlight-visual {
    animation: gridSlideIn 0.8s var(--ease-spring) 0.12s backwards;
    will-change: transform, opacity;
}

.highlight-visual .mock-window-screen svg {
    animation: innerFollowThrough 0.85s var(--ease-spring) 0.18s backwards;
    transition: transform 0.6s var(--ease-spring);
}

.highlight-float {
    animation: badgeFollowThrough 0.8s var(--ease-spring) 0.24s backwards, floatBob 4s ease-in-out 1.25s infinite;
    will-change: transform, opacity;
}

@keyframes floatBob {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -8px; }
}

.highlight-visual:hover .mock-window-screen svg {
    transform: scale(1.15) rotate(-6deg);
}

/* Filter buttons: masuk dari KANAN ke KIRI */
.project-filter-item {
    animation: filterSlideFromRight 0.6s var(--ease-spring) backwards;
}

.project-filter-item:nth-child(1) { animation-delay: 0.04s; }
.project-filter-item:nth-child(2) { animation-delay: 0.1s; }
.project-filter-item:nth-child(3) { animation-delay: 0.16s; }
.project-filter-item:nth-child(4) { animation-delay: 0.22s; }

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */
.project-detail-page .detail-main,
.project-detail-page .detail-section {
    opacity: 1;
    transform: none;
    animation: none;
}

.pd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
    animation: slideFromRight 0.75s var(--ease-spring) 0.24s backwards;
    will-change: transform, opacity;
}

.pd-showcase {
    animation: gridSlideIn 0.8s var(--ease-spring) 0.14s backwards;
    will-change: transform, opacity;
}

.pd-mock-window .mock-window-screen {
    aspect-ratio: 16 / 8;
}

.pd-mock-window .mock-window-screen.has-media {
    aspect-ratio: 16 / 9;
    background: #11181b;
}

.pd-screen-icon svg {
    width: 96px;
    height: 96px;
    stroke: var(--white);
    opacity: 0.85;
    animation: innerFollowThrough 0.85s var(--ease-spring) 0.2s backwards;
}

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

.pd-meta-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: slideFromRight 0.75s var(--ease-spring) backwards;
    will-change: transform, opacity;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pd-meta-card:nth-child(1) { animation-delay: 0.08s; }
.pd-meta-card:nth-child(2) { animation-delay: 0.14s; }
.pd-meta-card:nth-child(3) { animation-delay: 0.2s; }
.pd-meta-card:nth-child(4) { animation-delay: 0.26s; }

.pd-meta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.pd-meta-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--quote-gray);
}

.pd-meta-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--slate);
}

.pd-story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.pd-story-block {
    animation: slideFromRight 0.75s var(--ease-spring) 0.16s backwards;
    will-change: transform, opacity;
}

.pd-body-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-black);
    opacity: 0.8;
}

.pd-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-feature-list li {
    position: relative;
    padding-left: 22px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-black);
    opacity: 0.82;
}

.pd-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--slate);
}

.pd-tags {
    margin-bottom: 0;
}

/* Documentation Gallery */
.pd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pd-gallery-card {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #11181b;
    padding: 0;
    cursor: pointer;
    transition: transform 0.35s var(--ease-wheel), box-shadow 0.35s ease, border-color 0.35s ease;
}

.pd-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-wheel);
}

.pd-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(37, 53, 59, 0.14);
    border-color: var(--slate);
}

.pd-gallery-card:hover img {
    transform: scale(1.06);
}

.pd-gallery-index {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(17, 24, 27, 0.72);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* Lightbox Modal */
.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(12, 18, 21, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pd-lightbox[hidden] {
    display: none;
}

.pd-lightbox-content {
    max-width: min(1040px, 88vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pd-lightbox-content img {
    max-width: 100%;
    max-height: calc(86vh - 36px);
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pd-lightbox-caption {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.pd-lightbox-close,
.pd-lightbox-nav {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
}

.pd-lightbox-close:hover,
.pd-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.06);
}

.pd-lightbox-close {
    top: 20px;
    right: 24px;
}

.pd-lightbox-prev {
    left: 20px;
}

.pd-lightbox-next {
    right: 20px;
}

.pd-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pd-pager-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.3s var(--ease-wheel), box-shadow 0.3s ease, border-color 0.3s ease;
}

.pd-pager-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(37, 53, 59, 0.08);
    border-color: var(--slate);
}

.pd-pager-next {
    text-align: right;
}

.pd-pager-dir {
    font-size: 13px;
    color: var(--quote-gray);
}

.pd-pager-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--slate);
}

/* ============================================
   CERTIFICATES & AWARDS
   ============================================ */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.award-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 26px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), border-color 0.35s ease;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(37, 53, 59, 0.1);
    border-color: var(--slate);
}

.award-badge {
    align-self: flex-start;
    padding: 5px 14px;
    background: var(--slate);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
}

.award-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--slate);
    line-height: 1.3;
}

.award-card p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-black);
    opacity: 0.72;
}

.award-year {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--quote-gray);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.gallery-filter {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(37, 53, 59, 0.16);
    background: transparent;
    color: var(--slate);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.gallery-filter:hover {
    border-color: var(--slate);
    transform: translateY(-1px);
}

.gallery-filter.active {
    background: var(--slate);
    border-color: var(--slate);
    color: var(--white);
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    contain: layout paint style;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring);
}

.gallery-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease-wheel);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 27, 0.08) 25%, rgba(17, 24, 27, 0.78) 100%);
    pointer-events: none;
}

.gallery-item:hover .gallery-thumb {
    transform: scale(1.06);
}

.gallery-play-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(17, 24, 27, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.gallery-item:hover .gallery-play-badge {
    transform: scale(1.1);
    background: rgba(37, 53, 59, 0.92);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.gallery-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
    transition: opacity 0.4s ease, transform 0.4s var(--ease-spring);
}

.gallery-icon svg {
    width: 56px;
    height: 56px;
}

.gallery-item:hover .gallery-icon {
    opacity: 0.25;
    transform: scale(1.1);
}

.gallery-meta {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(6px);
    transition: transform 0.4s var(--ease-spring);
}

.gallery-desc {
    font-size: 12.5px;
    line-height: 1.4;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.35s ease;
}

.gallery-item:hover .gallery-desc {
    opacity: 0.85;
    max-height: 40px;
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(12, 18, 21, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gallery-modal[hidden] {
    display: none;
}

.gallery-modal-card {
    width: min(760px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
}

.gallery-modal-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0d1316;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
    flex-shrink: 0;
    padding: 16px 20px;
}

.gallery-modal-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
    display: block;
}

.gallery-modal-media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    display: block;
}

.gallery-modal-strip {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(14, 20, 23, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    z-index: 3;
    max-width: 92%;
    overflow-x: auto;
}

.gallery-modal-thumb-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    cursor: pointer;
    background: #182024;
    transition: border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    flex-shrink: 0;
    opacity: 0.65;
}

.gallery-modal-thumb-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.gallery-modal-thumb-btn.active {
    border-color: var(--white);
    opacity: 1;
    transform: scale(1.05);
}

.gallery-modal-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-modal-placeholder-note {
    font-size: 13px;
    opacity: 0.82;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(17, 24, 27, 0.35);
}

.gallery-modal-body {
    padding: 22px 26px 26px;
}

.gallery-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.gallery-modal-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--quote-gray);
}

.gallery-modal-meta {
    font-size: 12px;
    font-weight: 500;
    color: var(--quote-gray);
}

.gallery-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 10px;
}

.gallery-modal-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-black);
    opacity: 0.85;
    margin-bottom: 14px;
}

.gallery-modal-story {
    padding: 12px 16px;
    border-left: 3px solid var(--slate);
    background: rgba(37, 53, 59, 0.045);
    border-radius: 0 10px 10px 0;
    margin-bottom: 16px;
}

.gallery-modal-story[hidden] {
    display: none;
}

.gallery-modal-story-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 4px;
}

.gallery-modal-story p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-black);
    opacity: 0.8;
}

.gallery-modal-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-modal-tools span {
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(37, 53, 59, 0.08);
    color: var(--slate);
    font-size: 12px;
    font-weight: 500;
}

.gallery-item:hover .gallery-meta {
    transform: translateY(0);
}

.gallery-tag {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.8;
}

.gallery-meta h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .detail-nav {
        padding: 16px 20px;
    }

    .detail-main {
        padding: 80px 20px 40px;
    }

    .profile-detail-layout {
        flex-direction: column;
        gap: 24px;
    }

    .profile-photo-wrap {
        width: 200px;
        border-radius: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .awards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .highlight-float {
        right: 0;
        bottom: -20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pd-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .pd-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .pd-story-grid,
    .pd-pager {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pd-pager-next {
        text-align: left;
    }

    .pd-mock-window .mock-window-screen {
        aspect-ratio: 16 / 10;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .focus-grid,
    .community-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-cta {
        padding: 28px 22px;
    }

    .detail-footer {
        flex-direction: column;
        text-align: center;
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 32px;
    }

    .project-links {
        flex-direction: column;
    }

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

    .ui-btn-sm {
        width: 100%;
    }
}

/* ============================================
   ABOUT: FOCUS AREAS, COMMUNITY & CLOSING CTA
   ============================================ */
.focus-grid,
.community-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.skills-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
}

.skill-group {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 20px 22px;
}

.skill-group-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--slate);
    margin-bottom: 12px;
}

.skill-group .skills-grid {
    gap: 8px;
}

.focus-card,
.community-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 24px 26px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.focus-card:hover,
.community-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    border-color: rgba(37, 53, 59, 0.25);
}

.focus-index,
.community-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--quote-gray);
    margin-bottom: 10px;
}

.focus-card h3,
.community-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 8px;
}

.community-sub {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--slate);
    opacity: 0.78;
    margin-bottom: 10px;
}

.focus-card p,
.community-card p:last-child {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-black);
    opacity: 0.78;
}

.about-cta {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 36px 40px;
    text-align: left;
}

.about-cta .section-heading {
    margin-bottom: 12px;
}

.about-cta p {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--text-black);
    opacity: 0.78;
    max-width: 620px;
    margin-bottom: 24px;
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 768px) {
    .focus-grid,
    .community-grid,
    .skills-groups {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-cta {
        padding: 28px 22px;
    }

    /* Mobile-friendly project cards: judul selalu terbaca tanpa perlu hover */
    .project-object-info {
        opacity: 1 !important;
        background: linear-gradient(180deg, rgba(17, 24, 27, 0.08) 20%, rgba(17, 24, 27, 0.86) 100%);
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
        padding: 18px 20px;
    }

    .project-object-info h3 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .project-object-info p {
        display: none;
    }

    .project-object-tags {
        justify-content: flex-start;
        gap: 6px;
    }

    .project-object-tags span {
        font-size: 10.5px;
        padding: 3px 8px;
    }

    .project-object-year {
        padding: 8px 14px;
        font-size: 14px;
    }

    /* Filter tabs lebih nyaman di-tap di HP */
    .project-filters,
    .gallery-filters {
        justify-content: flex-start;
        gap: 8px;
    }

    .project-filter,
    .gallery-filter {
        padding: 7px 14px;
        font-size: 12.5px;
    }

    /* Timeline header tidak bertabrakan di layar sempit */
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Gallery & Lightbox Modal di Mobile */
    .gallery-modal,
    .pd-lightbox {
        padding: 14px;
    }

    .gallery-modal-card {
        width: 100%;
        max-height: 88vh;
        border-radius: 16px;
    }

    .gallery-modal-body {
        padding: 16px 18px 20px;
    }

    .gallery-modal-title {
        font-size: 18px;
    }

    .gallery-modal-desc {
        font-size: 14px;
    }

    .gallery-modal-story p {
        font-size: 13px;
    }

    .pd-lightbox-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 22px;
        z-index: 10;
    }

    .pd-lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
        z-index: 10;
    }

    .pd-lightbox-prev {
        left: 8px;
    }

    .pd-lightbox-next {
        right: 8px;
    }

    .highlight-float {
        padding: 12px 16px;
        right: 10px;
        bottom: -18px;
    }

    .highlight-float strong {
        font-size: 14px;
    }

    .contact-form {
        padding: 22px 18px;
    }
}

@media (max-width: 480px) {
    .detail-nav {
        padding: 14px 16px;
    }

    .detail-nav-label {
        display: none;
    }

    .detail-main {
        padding: 74px 16px 36px;
    }

    .section-heading {
        font-size: 24px;
    }

    .highlight-actions,
    .pd-hero-actions,
    .about-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .highlight-actions .ui-btn,
    .pd-hero-actions .ui-btn,
    .about-cta-actions .ui-btn {
        width: 100%;
        justify-content: center;
    }

    .pd-meta-grid {
        grid-template-columns: 1fr;
    }

    .pd-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gallery-modal-thumb-btn {
        width: 36px;
        height: 36px;
    }
}
