/* ===================================
   THEME VARIABLES
   =================================== */
:root {
    --bg-base:                    #000000;
    --bg-grid-color:              rgba(255, 255, 255, 0.02);
    --bg-gradient:                radial-gradient(circle at 50% 50%, rgba(20, 20, 30, 0.3) 0%, transparent 50%);

    --glass-bg:                   rgba(10, 10, 15, 0.4);
    --glass-border:               rgba(255, 255, 255, 0.05);
    --glass-shadow:               0 8px 32px rgba(0, 0, 0, 0.8);
    --glass-inset:                inset 0 1px 0 rgba(255, 255, 255, 0.03);

    --text-primary:               #ffffff;
    --text-secondary:             rgba(255, 255, 255, 0.6);
    --text-muted:                 rgba(255, 255, 255, 0.3);
    --text-body:                  rgba(255, 255, 255, 0.5);

    --nav-hover-bg:               rgba(255, 255, 255, 0.05);
    --btn-primary-bg:             #ffffff;
    --btn-primary-text:           #0a0a0a;
    --btn-secondary-border:       rgba(255, 255, 255, 0.2);
    --btn-secondary-hover:        rgba(255, 255, 255, 0.05);
    --btn-secondary-hover-border: rgba(255, 255, 255, 0.4);

    --input-bg:                   rgba(255, 255, 255, 0.03);
    --input-border:               rgba(255, 255, 255, 0.1);
    --input-focus-bg:             rgba(255, 255, 255, 0.05);
    --input-focus-border:         rgba(255, 255, 255, 0.3);
    --input-focus-shadow:         rgba(255, 255, 255, 0.05);

    --tag-bg:                     rgba(255, 255, 255, 0.05);
    --tag-border:                 rgba(255, 255, 255, 0.1);
    --tag-text:                   rgba(255, 255, 255, 0.6);

    --badge-bg:                   rgba(255, 255, 255, 0.05);
    --badge-border:               rgba(255, 255, 255, 0.1);
    --badge-text:                 rgba(255, 255, 255, 0.6);

    --modal-overlay:              rgba(0, 0, 0, 0.75);
    --modal-tabs-border:          rgba(255, 255, 255, 0.1);
    --tab-text:                   rgba(255, 255, 255, 0.6);
    --tab-active-line:            #ffffff;

    --code-bg:                    rgba(0, 0, 0, 0.4);
    --code-text:                  rgba(255, 255, 255, 0.9);
    --table-th-bg:                rgba(255, 255, 255, 0.05);
    --table-border:               rgba(255, 255, 255, 0.1);

    --footer-border:              rgba(255, 255, 255, 0.05);
    --skill-bar-bg:               rgba(255, 255, 255, 0.1);

    --subskill-bg:                rgba(255, 255, 255, 0.03);
    --subskill-border:            rgba(255, 255, 255, 0.08);
    --subskill-hover-bg:          rgba(255, 255, 255, 0.06);
    --subskill-hover-border:      rgba(255, 255, 255, 0.15);
    --subskill-icon-bg:           rgba(255, 255, 255, 0.1);

    --lightbox-bg:                rgba(0, 0, 0, 0.95);
    --lightbox-btn-bg:            rgba(0, 0, 0, 0.6);
    --lightbox-nav-bg:            rgba(255, 255, 255, 0.1);
    --lightbox-nav-border:        rgba(255, 255, 255, 0.2);
    --lightbox-counter-bg:        rgba(255, 255, 255, 0.1);
    --lightbox-counter-border:    rgba(255, 255, 255, 0.2);

    --toggle-bg:                  rgba(255, 255, 255, 0.08);
    --toggle-border:              rgba(255, 255, 255, 0.15);
    --toggle-color:               rgba(255, 255, 255, 0.7);
    --toggle-hover-bg:            rgba(255, 255, 255, 0.15);

    --hero-gradient-start:        #ffffff;
    --hero-gradient-end:          rgba(255, 255, 255, 0.5);
    --hero-badge-bg:              rgba(255, 255, 255, 0.05);
    --hero-badge-border:          rgba(255, 255, 255, 0.1);
    --hero-badge-text:            rgba(255, 255, 255, 0.8);

    --card-hover-bg:              rgba(255, 255, 255, 0.06);
    --card-hover-border:          rgba(255, 255, 255, 0.15);
    --indicator-bg:               rgba(255, 255, 255, 0.3);
    --indicator-active:           #ffffff;
    --carousel-nav-bg:            rgba(255, 255, 255, 0.1);
    --carousel-nav-border:        rgba(255, 255, 255, 0.2);
    --photo-overlay-grad:         linear-gradient(to top, rgba(0,0,0,0.9), transparent);

    --markdown-text:              rgba(255, 255, 255, 0.75);
    --markdown-h-border:          rgba(255, 255, 255, 0.1);
    --markdown-p:                 rgba(255, 255, 255, 0.7);
    --markdown-code-bg:           rgba(255, 255, 255, 0.08);
    --markdown-code-text:         #4facfe;
    --markdown-pre-bg:            rgba(0, 0, 0, 0.45);
    --markdown-pre-border:        rgba(255, 255, 255, 0.08);
    --markdown-pre-text:          rgba(255, 255, 255, 0.85);
    --markdown-quote-border:      rgba(79, 172, 254, 0.5);
    --markdown-quote-bg:          rgba(79, 172, 254, 0.05);
    --markdown-hr:                rgba(255, 255, 255, 0.1);
    --markdown-th-bg:             rgba(255, 255, 255, 0.07);
    --markdown-th-border:         rgba(255, 255, 255, 0.12);
    --markdown-td-border:         rgba(255, 255, 255, 0.07);
    --markdown-td-text:           rgba(255, 255, 255, 0.7);
}

/* ===================================
   LIGHT THEME OVERRIDES
   =================================== */
[data-theme="light"] {
    --bg-base:                    #f0f2f7;
    --bg-grid-color:              rgba(0, 0, 0, 0.04);
    --bg-gradient:                radial-gradient(circle at 50% 50%, rgba(180, 200, 240, 0.35) 0%, transparent 50%);

    --glass-bg:                   rgba(255, 255, 255, 0.65);
    --glass-shadow:               0 8px 32px rgba(0, 0, 0, 0.08);
    --glass-inset:                none;

    --text-primary:               #0a0a0f;
    --text-secondary:             rgba(0, 0, 0, 0.6);
    --text-muted:                 rgba(0, 0, 0, 0.35);
    --text-body:                  rgba(0, 0, 0, 0.55);

    --nav-hover-bg:               rgba(0, 0, 0, 0.04);
    --btn-primary-bg:             #0a0a0f;
    --btn-primary-text:           #ffffff;
    --btn-secondary-border:       rgba(0, 0, 0, 0.2);
    --btn-secondary-hover:        rgba(0, 0, 0, 0.04);
    --btn-secondary-hover-border: rgba(0, 0, 0, 0.35);

    --input-bg:                   rgba(255, 255, 255, 0.65);
    --input-border:               rgba(0, 0, 0, 0.1);
    --input-focus-bg:             rgba(255, 255, 255, 0.95);
    --input-focus-border:         rgba(0, 0, 0, 0.25);
    --input-focus-shadow:         rgba(0, 0, 0, 0.05);

    --tag-bg:                     rgba(0, 0, 0, 0.05);
    --tag-border:                 rgba(0, 0, 0, 0.1);
    --tag-text:                   rgba(0, 0, 0, 0.6);

    --badge-bg:                   rgba(0, 0, 0, 0.05);
    --badge-border:               rgba(0, 0, 0, 0.1);
    --badge-text:                 rgba(0, 0, 0, 0.5);

    --modal-overlay:              rgba(0, 0, 0, 0.25);
    --modal-tabs-border:          rgba(0, 0, 0, 0.1);
    --tab-text:                   rgba(0, 0, 0, 0.5);
    --tab-active-line:            #0a0a0f;

    --code-bg:                    rgba(0, 0, 0, 0.06);
    --code-text:                  rgba(0, 0, 0, 0.85);
    --table-th-bg:                rgba(0, 0, 0, 0.04);
    --table-border:               rgba(0, 0, 0, 0.08);

    --footer-border:              rgba(0, 0, 0, 0.08);
    --skill-bar-bg:               rgba(0, 0, 0, 0.08);

    --subskill-bg:                rgba(255, 255, 255, 0.55);
    --subskill-border:            rgba(0, 0, 0, 0.08);
    --subskill-hover-bg:          rgba(255, 255, 255, 0.85);
    --subskill-hover-border:      rgba(0, 0, 0, 0.15);
    --subskill-icon-bg:           rgba(0, 0, 0, 0.06);

    --lightbox-bg:                rgba(0, 0, 0, 0.85);
    --lightbox-btn-bg:            rgba(0, 0, 0, 0.5);
    --lightbox-nav-bg:            rgba(0, 0, 0, 0.12);
    --lightbox-nav-border:        rgba(0, 0, 0, 0.2);
    --lightbox-counter-bg:        rgba(0, 0, 0, 0.15);
    --lightbox-counter-border:    rgba(0, 0, 0, 0.2);

    --toggle-bg:                  rgba(0, 0, 0, 0.06);
    --toggle-border:              rgba(0, 0, 0, 0.12);
    --toggle-color:               rgba(0, 0, 0, 0.6);
    --toggle-hover-bg:            rgba(0, 0, 0, 0.1);

    --hero-gradient-start:        #0a0a0f;
    --hero-gradient-end:          rgba(10, 10, 15, 0.5);
    --hero-badge-bg:              rgba(0, 0, 0, 0.06);
    --hero-badge-border:          rgba(0, 0, 0, 0.12);
    --hero-badge-text:            rgba(0, 0, 0, 0.7);

    --card-hover-bg:              rgba(255, 255, 255, 0.75);
    --card-hover-border:          rgba(255, 255, 255, 0.95);
    --indicator-bg:               rgba(0, 0, 0, 0.2);
    --indicator-active:           #0a0a0f;
    --carousel-nav-bg:            rgba(0, 0, 0, 0.1);
    --carousel-nav-border:        rgba(0, 0, 0, 0.15);
    --photo-overlay-grad:         linear-gradient(to top, rgba(240,242,247,0.95), transparent);

    --markdown-text:              rgba(0, 0, 0, 0.75);
    --markdown-h-border:          rgba(0, 0, 0, 0.1);
    --markdown-p:                 rgba(0, 0, 0, 0.65);
    --markdown-code-bg:           rgba(0, 0, 0, 0.07);
    --markdown-code-text:         #1a6fbe;
    --markdown-pre-bg:            rgba(0, 0, 0, 0.05);
    --markdown-pre-border:        rgba(0, 0, 0, 0.08);
    --markdown-pre-text:          rgba(0, 0, 0, 0.8);
    --markdown-quote-border:      rgba(26, 111, 190, 0.5);
    --markdown-quote-bg:          rgba(26, 111, 190, 0.05);
    --markdown-hr:                rgba(0, 0, 0, 0.1);
    --markdown-th-bg:             rgba(0, 0, 0, 0.05);
    --markdown-th-border:         rgba(0, 0, 0, 0.1);
    --markdown-td-border:         rgba(0, 0, 0, 0.06);
    --markdown-td-text:           rgba(0, 0, 0, 0.65);
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global smooth transition saat switch theme */
*, *::before, *::after {
    transition:
        background-color 0.4s ease,
        border-color 0.4s ease,
        color 0.4s ease,
        box-shadow 0.4s ease;
}

/* Elemen dengan transition sendiri — override agar tidak bentrok */
.carousel-container,
.modal-carousel-container,
.lightbox-image,
.skill-progress,
.btn-primary,
.btn-secondary,
.btn-more,
.nav-links a,
.nav-links a::after,
.project-card,
.skill-card,
.subskill-item,
.modal-close,
.lightbox-close,
.lightbox-nav,
.nav-main,
.indicator,
.modal-indicator,
.carousel-nav,
.modal-carousel-nav,
.theme-toggle {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===================================
   BACKGROUND EFFECTS
   =================================== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(var(--bg-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid-color) 1px, transparent 1px);
    background-size: 120px 120px;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-gradient);
}

/* ===================================
   GLASS EFFECT
   =================================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), var(--glass-inset);
}

/* ===================================
   THEME TOGGLE BUTTON
   =================================== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    color: var(--toggle-color);
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.theme-toggle:hover {
    background: var(--toggle-hover-bg);
    transform: none
}
.toggle-animate {
    transform: scale(1.08) rotate(15deg) !important;
    transition: transform 0.2s ease !important;
}
.theme-icon {
    display: block;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   NAVIGATION
   =================================== */
.nav-main {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 32px;
    z-index: 1000;
    border-radius: 20px;
}

.nav-main:hover {
    background: var(--nav-hover-bg);
    transform: translateX(-50%) translateY(-2px);
}

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

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    white-space: nowrap;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 40px;
}

.hero-content {
    max-width: 1000px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--hero-badge-bg);
    border: 1px solid var(--hero-badge-border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
    color: var(--hero-badge-text);
}

.hero h1 {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
    background: linear-gradient(180deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text-body);
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons a {
    text-decoration: none;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary,
.btn-secondary {
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover);
    border-color: var(--btn-secondary-hover-border);
    transform: translateY(-2px);
}

.btn-view-all {
    padding: 18px 60px;
    font-size: 17px;
    text-decoration: none;
    display: inline-block;
}

.btn-submit { width: 100%; }

.btn-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--btn-secondary-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-more:hover {
    background: var(--btn-secondary-hover);
    border-color: var(--btn-secondary-hover-border);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ===================================
   SECTIONS
   =================================== */
.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--badge-text);
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-body);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.text-center {
    text-align: center;
    margin-top: 60px;
}

/* ===================================
   PROJECT CARDS
   =================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.project-card {
    padding: 40px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
}

.project-number {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-body);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 30px;
}

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

.tag {
    padding: 6px 14px;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--tag-text);
    font-weight: 500;
}

.tag-blue   { background: rgba(79,172,254,0.1); border-color: rgba(79,172,254,0.3); color: #4facfe; }
.tag-green  { background: rgba(67,233,123,0.1); border-color: rgba(67,233,123,0.3); color: #43e97b; }
.tag-pink   { background: rgba(250,112,154,0.1); border-color: rgba(250,112,154,0.3); color: #fa709a; }
.tag-purple { background: rgba(102,126,234,0.1); border-color: rgba(102,126,234,0.3); color: #667eea; }

/* ===================================
   IMAGE CAROUSEL (CARD)
   =================================== */
.image-carousel {
    position: relative;
    width: 100%;
    height: 220px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.carousel-container {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-slide { min-width: 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--carousel-nav-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--carousel-nav-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    color: var(--text-primary);
    font-size: 20px;
}

.image-carousel:hover .carousel-nav { opacity: 1; }
.carousel-nav:hover { background: var(--toggle-hover-bg); transform: translateY(-50%) scale(1.1); }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--indicator-bg);
    cursor: pointer;
    border: none;
    padding: 0;
}

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

/* ===================================
   MODAL
   =================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-content {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: 24px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 36px;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 100;
    line-height: 1;
}

.modal-close:hover { transform: rotate(90deg); }

.modal h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* ===================================
   MODAL IMAGE CAROUSEL
   =================================== */
.modal-image-carousel {
    max-height: 400px;
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.modal-carousel-container {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-carousel-slide { min-width: 100%; }

.modal-carousel-slide img {
    width: 100%;
    border-radius: 16px;
    display: block;
    cursor: zoom-in;
    height: 450px;
    object-fit: cover;
}

.modal-carousel-slide img:hover { transform: scale(1.02); transition: transform 0.3s ease; }

.modal-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--carousel-nav-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--carousel-nav-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    color: var(--text-primary);
}

.modal-carousel-nav:hover { background: var(--toggle-hover-bg); transform: translateY(-50%) scale(1.1); }
.modal-carousel-prev { left: 20px; }
.modal-carousel-next { right: 20px; }

.modal-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.modal-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--indicator-bg);
    cursor: pointer;
    border: none;
    padding: 0;
}

.modal-indicator.active {
    background: var(--indicator-active);
    width: 30px;
    border-radius: 5px;
}

/* ===================================
   IMAGE LIGHTBOX
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--lightbox-bg);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: lightboxFadeIn 0.3s ease;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

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

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    animation: lightboxZoomIn 0.3s ease;
    touch-action: none;
}

@keyframes lightboxZoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-image {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: none;
    display: block;
    cursor: grab;
    touch-action: none;
}

.lightbox-image.grabbing { cursor: grabbing; }

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--lightbox-btn-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--lightbox-nav-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 22px;
    z-index: 10000;
}

.lightbox-close:hover { background: rgba(255,255,255,0.15); transform: rotate(90deg); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--lightbox-nav-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--lightbox-nav-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 28px;
    touch-action: auto;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.1); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    background: var(--lightbox-counter-bg);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--lightbox-counter-border);
    white-space: nowrap;
}

.lightbox-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    pointer-events: none;
    z-index: 10000;
    white-space: nowrap;
}

/* ===================================
   MODAL TABS
   =================================== */
.modal-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--modal-tabs-border);
    flex-wrap: wrap;
}

.tab {
    background: none;
    border: none;
    color: var(--tab-text);
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--text-primary); }

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--tab-active-line);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.tab-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--text-primary);
}

.tab-content p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

pre {
    background: var(--code-bg);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
}

code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--code-text);
}

table { width: 100%; border-collapse: collapse; margin: 20px 0; }

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--table-border);
}

th { background: var(--table-th-bg); font-weight: 600; color: var(--text-primary); }
td { color: var(--text-secondary); }

/* ===================================
   
 CARD
   =================================== */
.download-wrapper {
    padding: 20px 0;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: 16px;
}

.download-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-filename {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.download-meta {
    font-size: 13px;
    color: var(--text-body);
}

.btn-download-file {
    padding: 12px 24px;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    border-radius: 10px;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    margin-bottom: 100px;
    align-items: start;
}

.about-photo { padding: 0; overflow: hidden; position: relative; }

.about-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--photo-overlay-grad);
    padding: 30px 25px 25px;
    backdrop-filter: blur(10px);
}

.photo-overlay h3 { font-size: 24px; font-weight: 700; margin-bottom: 5px; color: var(--text-primary); }
.photo-overlay p { color: var(--text-secondary); font-size: 14px; }

.about-info { display: flex; flex-direction: column; gap: 30px; }
.info-card { padding: 40px; }

.gradient-text {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 35px;
    font-style: italic;
}

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.info-item { display: flex; gap: 15px; }
.info-icon { color: var(--text-muted); font-size: 20px; width: 30px; flex-shrink: 0; }
.info-details { flex: 1; }
.info-label { font-size: 12px; color: var(--text-body); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 5px; }
.info-value { color: var(--text-primary); font-size: 15px; font-weight: 500; }

.experience-card { padding: 35px; }
.experience-card p { color: var(--text-secondary); line-height: 1.8; font-size: 15px; margin-bottom: 20px; }
.experience-tags { display: flex; gap: 15px; flex-wrap: wrap; }

/* ===================================
   RESUME SECTION
   =================================== */
.resume-header { margin-top: 0; }

.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.resume-column { display: flex; flex-direction: column; gap: 40px; }
.resume-heading { font-size: 32px; margin-bottom: 30px; font-weight: 700; color: var(--text-primary); }
.resume-card { padding: 30px; }
.resume-card h4 { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.resume-description { color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; font-size: 14px; font-style: italic; }
.resume-contacts { display: flex; flex-direction: column; gap: 12px; color: var(--text-secondary); font-size: 14px; }
.resume-institution { color: var(--text-body); font-size: 15px; font-weight: 600; margin-bottom: 15px; }
.resume-period { color: var(--text-body); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.resume-company { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; font-style: italic; }
.resume-text { color: var(--text-secondary); line-height: 1.7; font-size: 14px; }

.resume-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.resume-list li { color: var(--text-secondary); line-height: 1.7; font-size: 14px; padding-left: 20px; position: relative; }
.resume-list li::before { content: '•'; position: absolute; left: 0; color: var(--text-muted); }

/* ===================================
   SKILLS SECTION
   =================================== */
.skill-card { padding: 40px; }
.skill-card:hover { transform: translateY(-8px); background: var(--card-hover-bg); border-color: var(--card-hover-border); }
.skill-card h3 { margin-bottom: 25px; font-size: 24px; color: var(--text-primary); }
.skill-list { display: flex; flex-direction: column; gap: 15px; }
.skill-item { margin-bottom: 10px; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.skill-name { font-size: 14px; color: var(--text-secondary); }
.skill-percent { font-size: 13px; color: var(--text-body); }
.skill-bar { background: var(--skill-bar-bg); height: 8px; border-radius: 10px; overflow: hidden; }
.skill-progress { height: 100%; border-radius: 10px; transition: width 1s ease; }

.projects-grid .skill-card:nth-child(6n+1) .skill-progress { background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%); }
.projects-grid .skill-card:nth-child(6n+2) .skill-progress { background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%); }
.projects-grid .skill-card:nth-child(6n+3) .skill-progress { background: linear-gradient(90deg, #fa709a 0%, #fee140 100%); }
.projects-grid .skill-card:nth-child(6n+4) .skill-progress { background: linear-gradient(90deg, #a8edea 0%, #fed6e3 100%); }
.projects-grid .skill-card:nth-child(6n+5) .skill-progress { background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); }
.projects-grid .skill-card:nth-child(6n+6) .skill-progress { background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%); }

/* ===================================
   SUBSKILLS MODAL
   =================================== */
.subskill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--subskill-bg);
    border: 1px solid var(--subskill-border);
    border-radius: 12px;
    margin-bottom: 12px;
}

.subskill-item:hover { background: var(--subskill-hover-bg); border-color: var(--subskill-hover-border); transform: translateX(5px); }
.subskill-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--subskill-icon-bg); border-radius: 8px; font-size: 20px; flex-shrink: 0; }
.subskill-details { flex: 1; }
.subskill-name { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.subskill-desc { font-size: 13px; color: var(--text-body); line-height: 1.4; }
.subskill-level { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-form { max-width: 700px; margin: 0 auto; padding: 60px; }
.form-group { margin-bottom: 30px; }
.form-group label { display: block; margin-bottom: 12px; color: var(--text-secondary); font-size: 14px; font-weight: 600; letter-spacing: 0.5px; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--input-focus-bg);
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 4px var(--input-focus-shadow);
}

.form-group textarea { resize: vertical; min-height: 150px; }

/* ===================================
   FOOTER
   =================================== */
.footer { text-align: center; padding: 60px 40px; border-top: 1px solid var(--footer-border); }
.copyright { color: var(--text-muted); font-size: 13px; }

/* ===================================
   MARKDOWN BODY
   =================================== */
.markdown-body { color: var(--markdown-text); line-height: 1.85; font-size: 15px; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { color: var(--text-primary); font-weight: 700; margin-top: 28px; margin-bottom: 12px; letter-spacing: -0.3px; }
.markdown-body h1 { font-size: 24px; }
.markdown-body h2 { font-size: 20px; border-bottom: 1px solid var(--markdown-h-border); padding-bottom: 8px; }
.markdown-body h3 { font-size: 17px; }
.markdown-body p { margin-bottom: 14px; color: var(--markdown-p); }
.markdown-body ul, .markdown-body ol { margin: 12px 0 16px 20px; color: var(--markdown-p); }
.markdown-body li { margin-bottom: 6px; line-height: 1.7; }
.markdown-body strong { color: var(--text-primary); font-weight: 600; }
.markdown-body em { color: var(--text-secondary); font-style: italic; }
.markdown-body code { background: var(--markdown-code-bg); padding: 2px 7px; border-radius: 5px; font-size: 13px; color: var(--markdown-code-text); font-family: 'Consolas', 'Monaco', monospace; }
.markdown-body pre { background: var(--markdown-pre-bg); border: 1px solid var(--markdown-pre-border); border-radius: 10px; padding: 18px 20px; overflow-x: auto; margin: 16px 0; }
.markdown-body pre code { background: none; padding: 0; color: var(--markdown-pre-text); }
.markdown-body blockquote { border-left: 3px solid var(--markdown-quote-border); margin: 16px 0; padding: 10px 20px; background: var(--markdown-quote-bg); border-radius: 0 8px 8px 0; color: var(--text-secondary); font-style: italic; }
.markdown-body hr { border: none; border-top: 1px solid var(--markdown-hr); margin: 24px 0; }
.markdown-body a { color: var(--markdown-code-text); text-decoration: underline; text-decoration-color: rgba(79,172,254,0.4); }
.markdown-body a:hover { text-decoration-color: var(--markdown-code-text); }
.markdown-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.markdown-body th { background: var(--markdown-th-bg); color: var(--text-primary); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--markdown-th-border); }
.markdown-body td { padding: 10px 14px; border-bottom: 1px solid var(--markdown-td-border); color: var(--markdown-td-text); }

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-photo { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-main {
        top: 20px;
        padding: 15px 20px;
    }

    .nav-container {
        gap: 30px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 13px;
    }
    .logo { font-size: 16px; }
    .section { padding: 80px 20px; }
    .projects-grid { grid-template-columns: 1fr; }
    .modal { padding: 16px; }
    .modal-content { padding: 24px 20px; }
    .modal-tabs { gap: 15px; flex-wrap: wrap; }
    .contact-form { padding: 30px 20px; }
    .carousel-nav { width: 35px; height: 35px; font-size: 18px; }
    .modal-carousel-nav { width: 40px; height: 40px; font-size: 20px; }
    .resume-grid { grid-template-columns: 1fr; gap: 40px; }
    .info-grid { grid-template-columns: 1fr; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 22px; }
    .lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; }
    .lightbox-counter { bottom: 10px; }
    .download-card { flex-direction: column; text-align: center; }
    .about-grid { grid-template-columns: 1fr; }
    .download-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tab-download {
        width: 100%;
        text-align: center;
        border-top: 1px solid var(--modal-tabs-border);
        padding-top: 14px;
        margin-top: 4px;
    }

    .tab-download.active::after {
        display: none;
    }
}

#floating-toggle-wrapper {
    display: none;
}

@media (max-width: 480px) {

    .nav-container {
        justify-content: space-between;
    }

    /* Wrapper floating aktif di mobile */
    #floating-toggle-wrapper {
        display: block;
        position: fixed;
        top: 90px;   /* tepat di bawah navbar */
        right: 16px;
        z-index: 1100;
    }

    /* Toggle di dalam wrapper */
    #floating-toggle-wrapper .theme-toggle {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
}

/* ===================================
   PERFORMANCE — TOUCH DEVICE
   =================================== */
.is-touch .glass {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.is-touch .lightbox-image {
    image-rendering: auto;
    will-change: auto;
}

/* ===================================
   TOPOLOGY SEARCH
   =================================== */

/* ===================================
   TOPOLOGY SEARCH
   =================================== */

.topology-search-wrapper {
    width: 100%;
    max-width: 720px;
    margin: -35px auto 35px;
}

.topology-search-box {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 15px 20px;
    border-radius: 18px;

    background: var(--glass-bg);
    border: 1px solid var(--glass-border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.topology-search-icon {
    color: var(--text-muted);
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.topology-search-input {
    width: 100%;
    border: none;
    outline: none;

    background: transparent;
    color: var(--text-primary);

    font-size: 15px;
    font-weight: 500;
}

.topology-search-input::placeholder {
    color: var(--text-muted);
}

.topology-search-clear {
    display: none;

    width: 32px;
    height: 32px;

    border: none;
    border-radius: 50%;

    background: var(--tag-bg);
    color: var(--text-secondary);

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}

.topology-search-clear.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topology-search-clear:hover {
    background: var(--card-hover-bg);
    color: var(--text-primary);
}

.topology-result-info {
    margin-top: 12px;

    text-align: center;
    color: var(--text-body);

    font-size: 13px;
    font-weight: 500;
}

/* ===================================
   FILTER TAGS - AUTO SCROLL
   =================================== */

.filter-tags-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 55px;
    overflow: hidden;
}

.filter-tags-wrapper::before,
.filter-tags-wrapper::after {
    content: "";
    position: absolute;
    top: 0;

    width: 70px;
    height: 100%;

    z-index: 2;
    pointer-events: none;
}

.filter-tags-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-base), transparent);
}

.filter-tags-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-base), transparent);
}

.filter-tags {
    display: flex;
    align-items: center;
    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 8px 4px 14px;

    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;

    scroll-behavior: auto;
}

.filter-tags::-webkit-scrollbar {
    display: none;
}

.filter-tag {
    flex: 0 0 auto;
    white-space: nowrap;

    padding: 11px 18px;
    border-radius: 999px;

    background: var(--glass-bg);
    border: 1px solid var(--glass-border);

    color: var(--text-secondary);

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

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.filter-tag:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
}

.filter-tag.active {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* ===================================
   PAGINATION
   =================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;

    margin-top: 70px;
    flex-wrap: wrap;
}

.page-link,
.page-current {
    min-height: 46px;

    padding: 12px 18px;
    border-radius: 14px;

    background: var(--glass-bg);
    border: 1px solid var(--glass-border);

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

    color: var(--text-secondary);

    font-size: 14px;
    font-weight: 600;
}

.page-link {
    cursor: pointer;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.page-link:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
}

.page-current {
    color: var(--text-primary);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .topology-search-wrapper {
        margin: -25px auto 30px;
    }

    .topology-search-box {
        padding: 13px 15px;
        border-radius: 16px;
    }

    .topology-search-input {
        font-size: 14px;
    }

    .filter-tags-wrapper {
        margin: 0 auto 45px;
    }

    .filter-tags-wrapper::before,
    .filter-tags-wrapper::after {
        width: 35px;
    }

    .filter-tag {
        padding: 10px 15px;
        font-size: 12px;
    }

    .pagination {
        margin-top: 55px;
        gap: 10px;
    }

    .page-link,
    .page-current {
        min-height: 42px;
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* ===================================
   TOPOLOGY LOADING + ENTER ANIMATION
   =================================== */

.topology-card-animate {
    opacity: 0;
    animation: topologyCardEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
}

@keyframes topologyCardEnter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.985);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ===================================
   SKELETON CARD
   =================================== */

.topology-skeleton-card {
    pointer-events: none;
    opacity: 0;
    animation:
        topologySkeletonEnter 0.35s ease forwards,
        topologySkeletonPulse 1.4s ease-in-out infinite;
    will-change: opacity, transform;
}

@keyframes topologySkeletonEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes topologySkeletonPulse {
    0% {
        opacity: 0.62;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.62;
    }
}

.skeleton-line,
.skeleton-image,
.skeleton-tags span {
    position: relative;
    overflow: hidden;

    background: var(--tag-bg);
    border: 1px solid var(--glass-border);

    border-radius: 999px;
}

.skeleton-line::after,
.skeleton-image::after,
.skeleton-tags span::after {
    content: "";
    position: absolute;
    inset: 0;

    transform: translateX(-100%);

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );

    animation: skeletonShimmer 1.4s infinite;
}

@keyframes skeletonShimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-number {
    width: 48px;
    height: 12px;
    margin-bottom: 20px;
}

.skeleton-image {
    width: 100%;
    height: 220px;
    margin-bottom: 24px;

    border-radius: 12px;
}

.skeleton-title {
    width: 70%;
    height: 26px;
    margin-bottom: 18px;
}

.skeleton-text {
    width: 100%;
    height: 14px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 78%;
    margin-bottom: 28px;
}

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

.skeleton-tags span {
    width: 72px;
    height: 28px;
}

/* ===================================
   EMPTY STATE
   =================================== */

.topology-empty-state {
    grid-column: 1 / -1;

    padding: 48px 32px;
    text-align: center;

    opacity: 0;
    animation: topologyCardEnter 0.45s ease forwards;
}

.topology-empty-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 50%;
    background: var(--tag-bg);
    border: 1px solid var(--glass-border);

    color: var(--text-secondary);
    font-size: 28px;
}

.topology-empty-state h3 {
    color: var(--text-primary);
    font-size: 22px;
    margin-bottom: 10px;
}

.topology-empty-state p {
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.7;
}

/* ===================================
   REDUCED MOTION
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .topology-card-animate,
    .topology-skeleton-card,
    .topology-empty-state {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }

    .skeleton-line::after,
    .skeleton-image::after,
    .skeleton-tags span::after {
        animation: none;
    }
}
/* ===================================
   CONFIG COPY BUTTON
   =================================== */

.config-block {
    margin-bottom: 28px;
}

.config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-top: 30px;
    margin-bottom: 12px;
}

.config-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-primary);
}

.config-copy-btn {
    flex-shrink: 0;

    padding: 8px 14px;
    border-radius: 10px;

    background: var(--glass-bg);
    border: 1px solid var(--glass-border);

    color: var(--text-secondary);

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

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.config-copy-btn:hover {
    color: var(--text-primary);
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    transform: translateY(-1px);
}

.config-copy-btn.copied {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
}

.config-pre {
    margin-top: 0;
}

@media (max-width: 768px) {
    .config-header {
        align-items: flex-start;
    }

    .config-copy-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
}