/* === RESET & VARIABEL CSS === */
:root {
    --primary-color: #007BFF;
    --primary-rgb: 0, 123, 255;
    --primary-hover: #0056b3;
    --font-family: 'Inter', sans-serif;
    --font-family-code: 'Fira Code', monospace;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --bg-color: #121212;
    --bg-light-color: #1e1e1e;
    --text-color: #E0E0E0;
    --text-muted: #A0A0A0;
    --border-color: #333;
    --header-bg-idle: rgba(28, 28, 28, 0.5);
    --header-bg-scrolled: rgba(28, 28, 28, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.2);
}

body.light-mode {
    --bg-color: #f4f4f9;
    --bg-light-color: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #e0e0e0;
    --header-bg-idle: rgba(244, 244, 249, 0.5);
    --header-bg-scrolled: rgba(244, 244, 249, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-family); background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; transition: background-color var(--transition-speed), color var(--transition-speed); }

/* [REKOMBINASI] Menggunakan .container dari MODIF agar konten halaman rapi di tengah */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.section-title { font-size: 2.5rem; margin-bottom: 1rem; text-align: center; color: var(--text-color); }
.highlight { color: var(--primary-color); }
.bg-light { background-color: var(--bg-light-color); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.text-center { text-align: center; }
.content-section, .hero-section { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.content-section.visible, .hero-section.visible { opacity: 1; transform: translateY(0); }

/* Header tetap full-width seperti ORI */
#main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: var(--header-bg-idle); backdrop-filter: blur(10px); transition: box-shadow var(--transition-speed), background-color var(--transition-speed); border-bottom: 1px solid transparent; }
#main-header.scrolled { background-color: var(--header-bg-scrolled); box-shadow: 0 4px 15px var(--shadow-color); border-bottom-color: var(--border-color); }

/* [REKOMBINASI] Kunci perbaikan ada di sini */
#main-header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0.75rem 2rem; 
    gap: 1rem;
    max-width: none; /* <-- INI PERBAIKANNYA: Paksa container di header agar full-width seperti ORI */
}

.logo { font-weight: 700; font-size: 1.5rem; text-decoration: none; color: var(--text-color); }
nav { background-color: var(--bg-light-color); padding: 0.5rem; border-radius: 50px; border: 1px solid var(--border-color); transition: all var(--transition-speed); }
nav ul { list-style: none; display: flex; gap: 0.25rem; flex-wrap: nowrap; justify-content: center; }
nav a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: color var(--transition-speed); padding: 0.5rem 1rem; position: relative; }
nav a:hover { color: var(--text-color); }
nav a.active { color: var(--text-color); font-weight: 700; }
#theme-toggle { background: transparent; border: none; cursor: pointer; color: var(--text-muted); padding: 0.5rem; }
#theme-toggle:hover { color: var(--primary-color); }
#theme-toggle svg { width: 24px; height: 24px; }
.hero-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 1rem; }
.hero-title { font-size: clamp(2.5rem, 8vw, 5rem); margin-bottom: 1rem; line-height: 1.1; }
#typed-text-container::after { content: '|'; animation: blink 0.7s infinite; color: var(--primary-color); }
@keyframes blink { 50% { opacity: 0; } }
.hero-subtitle { font-size: 1.25rem; max-width: 600px; margin: 0 auto 2rem; color: var(--text-muted); }
.btn { display: inline-block; padding: 0.75rem 1.5rem; text-decoration: none; border-radius: var(--border-radius); font-weight: 500; transition: background-color var(--transition-speed), transform var(--transition-speed); cursor: pointer; border: 1px solid transparent; }
.btn-primary { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--text-color); border: 1px solid var(--text-muted); }
.btn-secondary:hover { background-color: var(--text-color); color: var(--bg-color); border-color: var(--text-color); }
.btn-secondary.disabled { cursor: not-allowed; opacity: 0.6; }
.btn-secondary.disabled:hover { background-color: transparent; color: var(--text-color); border-color: var(--text-muted); }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.content-section { padding: 6rem 0; }
.about-content { display: flex; align-items: flex-start; gap: 3rem; }
.profile-pic { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg-light-color); }
.about-text { flex: 1; }
.skills-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.skills-list li { background-color: var(--bg-light-color); padding: 0.5rem 1rem; border-radius: var(--border-radius); font-size: 0.9rem; color: var(--text-color); border: 1px solid var(--border-color); }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.project-card { background-color: var(--bg-color); border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed); border: 1px solid var(--border-color); display: flex; flex-direction: column; position: relative; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2); border-color: var(--primary-color); }
.project-image { width: 100%; height: 200px; object-fit: cover; }
.project-info { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.project-title { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-color); }
.project-description { color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }
.contact-subtitle { max-width: 500px; margin: 0 auto 3rem; color: var(--text-muted); }
.contact-choices { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.contact-choice { background-color: var(--bg-light-color); border: 1px solid var(--border-color); color: var(--text-color); padding: 1.5rem 2rem; border-radius: var(--border-radius); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; min-width: 140px; transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed); cursor: pointer; font-family: var(--font-family); font-size: 1rem; }
.contact-choice:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: var(--primary-color); }
.contact-choice svg { width: 32px; height: 32px; color: var(--primary-color); }
.modal-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity var(--transition-speed) ease, visibility 0s var(--transition-speed) ease; }
.modal-container.visible { opacity: 1; visibility: visible; transition: opacity var(--transition-speed) ease, visibility 0s ease; }
.modal-content { background-color: var(--bg-color); padding: 2.5rem; border-radius: var(--border-radius); width: 90%; max-width: 550px; position: relative; transform: scale(0.95) translateY(10px); transition: transform var(--transition-speed) ease; border: 1px solid var(--border-color); text-align: left; }
.modal-container.visible .modal-content { transform: scale(1) translateY(0); }
.modal-content h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--text-color); text-align: center; }
.modal-subtitle { color: var(--text-muted); margin-bottom: 2rem; text-align: center; }
.modal-close-btn { position: absolute; top: 1rem; right: 1.5rem; background: none; border: none; font-size: 2.5rem; color: var(--text-muted); cursor: pointer; line-height: 1; padding: 0; }
.modal-close-btn:hover { color: var(--text-color); }
#contact-form { max-width: 100%; margin: 0; }
.form-group { margin-bottom: 1.5rem; }
#contact-form input, #contact-form textarea { width: 100%; padding: 1rem; border-radius: var(--border-radius); border: 1px solid var(--border-color); background-color: var(--bg-light-color); color: var(--text-color); font-family: var(--font-family); font-size: 1rem; }
#contact-form input:focus, #contact-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); }
#form-status { margin-top: 1rem; font-weight: 500; text-align: center; }
footer { padding: 2rem 0; text-align: center; color: var(--text-muted); margin-top: 0rem; }
.logo-footer { text-decoration: none; color: var(--text-color); font-weight: 500; }

@media (max-width: 768px) { 
    html { font-size: 14px; } 
    .about-content { flex-direction: column; align-items: center; text-align: center; } 
    #main-header .container { padding: 0.5rem 0.75rem; gap: 0.4rem; }
    .logo { font-size: 1.2rem; }
    nav { padding: 0.25rem; flex-shrink: 1; min-width: 0; }
    nav a { padding: 0.35rem 0.45rem; font-size: 0.78rem; }
}

#page-transitioner { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; background-color: transparent; pointer-events: none; opacity: 0; visibility: hidden; }
#page-transitioner.is-active { pointer-events: all; opacity: 1; visibility: visible; }
#transition-bubble { position: absolute; width: 1px; height: 1px; border-radius: 50%; background-color: var(--bg-color); transform: scale(0); transition: transform 0.7s cubic-bezier(0.7, 0, 0.3, 1); will-change: transform; }
#page-transitioner.is-active #transition-bubble.is-expanding { transform: scale(3000); }

.lab-background { background-image: radial-gradient(var(--border-color) 1px, transparent 1px); background-size: 20px 20px; }
.modal-content.tool-modal { max-width: 800px; padding: 2rem; }
.tool-controls { margin-bottom: 1.5rem; }
.form-control { width: 100%; padding: 0.75rem; border-radius: var(--border-radius); border: 1px solid var(--border-color); background-color: var(--bg-light-color); color: var(--text-color); font-family: var(--font-family-code); font-size: 1rem; transition: border-color var(--transition-speed); }
.form-control:focus { outline: none; border-color: var(--primary-color); }
.tool-io-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.io-panel { display: flex; flex-direction: column; gap: 0.5rem; }
.io-panel textarea { resize: vertical; }
.swap-panel { justify-content: center; }
.btn-swap { background-color: var(--bg-light-color); border: 1px solid var(--border-color); color: var(--text-color); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition-speed); }
.btn-swap:hover { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.btn-copy { margin-top: 0.5rem; align-self: flex-end; }
.bubble-select-container { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.bubble-group { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.group-label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); margin-right: 0.5rem; }
.bubble-btn { padding: 0.5rem 1rem; border-radius: 20px; border: 1px solid var(--border-color); background-color: var(--bg-light-color); color: var(--text-muted); cursor: pointer; transition: all var(--transition-speed); }
.bubble-btn:hover { background-color: var(--border-color); color: var(--text-color); }
.bubble-btn.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.project-card-icon { background-color: var(--bg-light-color); padding: 1.5rem; text-align: center; border-bottom: 1px solid var(--border-color); }
.project-card-icon svg { width: 48px; height: 48px; color: var(--primary-color); }
.project-info .btn { margin-top: auto; align-self: center; }
.coming-soon-badge { position: absolute; top: 1rem; right: 1rem; background-color: var(--primary-color); color: white; padding: 0.25rem 0.75rem; border-radius: 1rem; font-size: 0.8rem; font-weight: 500; }
#terminal-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity var(--transition-speed), visibility 0s var(--transition-speed); }
#terminal-container.visible { opacity: 1; visibility: visible; }
#terminal-window { width: 90%; max-width: 800px; max-height: 70vh; min-height: 120px; background-color: var(--bg-color); border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden; }
#terminal-header { background-color: var(--bg-light-color); padding: 0.5rem 1rem; border-bottom: 1px solid var(--border-color); cursor: move; user-select: none; display: flex; justify-content: space-between; align-items: center; }
#terminal-title { font-family: var(--font-family-code); font-weight: 500; }
.terminal-close-btn { background: #ff5f56; border: 1px solid #e0443e; border-radius: 50%; width: 14px; height: 14px; font-size: 0; cursor: pointer; }
#terminal-body { flex-grow: 1; font-family: var(--font-family-code); font-size: 1rem; line-height: 1.5; display: flex; flex-direction: column; overflow: hidden; }
#terminal-output { flex-grow: 1; overflow-y: auto; padding: 1rem; white-space: pre-wrap; word-break: break-all; }
#terminal-input-line { display: flex; align-items: baseline; padding: 0 1rem 1rem 1rem; }
.prompt { color: var(--primary-color); font-weight: 700; margin-right: 0.5rem; }
#terminal-input { flex-grow: 1; background: transparent; border: none; color: var(--text-color); font-family: var(--font-family-code); font-size: 1rem; }
#terminal-input:focus { outline: none; }
#terminal-output .error { color: #ff5f56; }
.help-table, #terminal-output table { border-collapse: collapse; width: 100%; }
.help-table td, #terminal-output td { vertical-align: top; padding-bottom: 0.5em; padding-right: 1em; }
.help-table td.command-name { color: var(--primary-color); font-weight: 500; width: 120px; }
.neofetch-logo { color: var(--primary-color); } 

/* === BAGIAN BARU: FITUR GALLERY DARI KODE MODIF === */

/* === GALLERY SHORTCUT BARU === */
.gallery-shortcut-card.gallery-shortcut-flex {
  display: flex;
  flex-direction: column;
  background: linear-gradient(120deg, var(--bg-light-color) 70%, var(--primary-color) 100%);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(var(--primary-rgb), 0.08);
  transition: box-shadow 0.3s, transform 0.3s;
  padding: 0;
}
.gallery-shortcut-card.gallery-shortcut-flex:hover {
  box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.18);
  transform: translateY(-4px) scale(1.01);
}
.gallery-shortcut-card .shortcut-image-wrapper {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #181818;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
}
.gallery-shortcut-img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.4s cubic-bezier(.4,2,.6,1);
}
.gallery-shortcut-card:hover .gallery-shortcut-img {
  transform: scale(1.04) rotate(-1deg);
}
.gallery-shortcut-card .shortcut-text {
  flex: 1 1 50%;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: transparent;
}
.shortcut-title {
  text-align: left;
  margin-bottom: 0.5rem;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  font-weight: 900;
  background: linear-gradient(90deg, var(--primary-color), var(--text-color) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.shortcut-desc {
  color: var(--text-muted);
  font-size: 1.13rem;
  margin: 0.5rem 0 1.5rem 0;
  max-width: 480px;
}
.shortcut-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  border-radius: 2rem;
  padding: 0.42rem 1.05rem;
  font-size: 0.98rem;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.10);
  margin-top: 0.5rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.shortcut-link-btn i {
  color: #fff;
  font-size: 1.2em;
  transition: transform 0.3s;
}
.gallery-shortcut-card:hover .shortcut-link-btn {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.18);
  transform: translateY(-2px) scale(1.04);
}
.gallery-shortcut-card:hover .shortcut-link-btn i:last-child {
  transform: translateX(6px);
}
@media (min-width: 768px) {
  .gallery-shortcut-card.gallery-shortcut-flex {
    flex-direction: row;
    min-height: 320px;
    padding: 0;
  }
  .gallery-shortcut-card .shortcut-image-wrapper {
    min-width: 44%;
    max-width: 48%;
    height: 100%;
  }
  .gallery-shortcut-img {
    min-height: 320px;
    max-height: 420px;
  }
  .gallery-shortcut-card .shortcut-text {
    padding: 3.5rem 3rem;
    min-width: 40%;
  }
}
@media (max-width: 767px) {
  .gallery-shortcut-card.gallery-shortcut-flex {
    flex-direction: column;
  }
  .gallery-shortcut-card .shortcut-image-wrapper {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 180px;
    max-height: 220px;
  }
  .gallery-shortcut-img {
    min-height: 180px;
    max-height: 220px;
  }
  .gallery-shortcut-card .shortcut-text {
    padding: 2rem 1.2rem;
  }
  .shortcut-link-btn {
    padding: 0.32rem 0.7rem;
    font-size: 0.89rem;
    gap: 0.5rem;
  }
}

body#page-gallery::before { content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: radial-gradient( circle at var(--x, 50%) var(--y, 50%), rgba(var(--primary-rgb), 0.1), transparent 50% ); z-index: -1; pointer-events: none; }
body#page-gallery .gallery-page-title { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 900; letter-spacing: -0.05em; background: linear-gradient(45deg, var(--primary-color), var(--text-color) 60%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0; text-shadow: 0 5px 25px rgba(var(--primary-rgb), 0.1); }

.filter-buttons-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; }
.filter-btn { padding: 0.6rem 1.25rem; border: 1px solid var(--border-color); background-color: transparent; color: var(--text-muted); border-radius: 50px; cursor: pointer; font-weight: 500; transition: all 0.3s ease; }
.filter-btn:hover { background-color: var(--border-color); color: var(--text-color); }
.filter-btn.active { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; }

.gallery-grid-new { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.gallery-item-new { position: relative; border-radius: var(--border-radius); overflow: hidden; cursor: pointer; background-color: var(--bg-light-color); border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.gallery-item-new:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.15); }
.gallery-item-new img { width: 100%; height: 250px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item-new:hover img { transform: scale(1.05); }

.gallery-item-new.playing { box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.4); border-color: var(--primary-color); }
.gallery-item-new .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 20%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; opacity: 0; transform: translateY(10px); transition: all 0.4s ease; }
.gallery-item-new:hover .overlay { opacity: 1; transform: translateY(0); }
.gallery-item-new .overlay h3 { color: #fff; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.gallery-item-new .overlay p { color: var(--text-muted); font-size: 0.9rem; }
.gallery-item-new.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.gallery-item-new.fade-in { animation: fadeIn 0.5s ease-in-out forwards; }

.gallery-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(18, 18, 18, 0.85); backdrop-filter: blur(8px); z-index: 2000; display: flex; justify-content: center; align-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s ease; }
.gallery-modal-overlay.visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.gallery-modal-content { position: relative; background-color: var(--bg-light-color); border-radius: 16px; width: 100%; max-width: 600px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,0.25); border: 1px solid var(--border-color); animation: modal-pop 0.4s cubic-bezier(0.2, 1, 0.3, 1) forwards; }
@keyframes modal-pop { from { transform: scale(0.9) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.gallery-modal-close { position: absolute; top: 1rem; right: 1rem; background: rgba(0,0,0,0.3); border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 1.5rem; color: white; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.gallery-modal-close:hover { transform: rotate(90deg); }
#gallery-modal-image { width: 100%; height: auto; max-height: 60vh; object-fit: contain; background-color: var(--bg-color); border-radius: 16px 16px 0 0; }
.gallery-modal-text { padding: 1.5rem 2rem 2rem 2rem; overflow-y: auto; display: flex; flex-direction: column; flex-grow: 1; }
.gallery-modal-text h3 { font-size: 1.75rem; color: var(--text-color); margin: 0 0 0.5rem 0; }
.gallery-modal-text p { font-size: 1rem; line-height: 1.7; color: var(--text-muted); flex-grow: 1; }

/* Audio info styling */
.audio-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#modal-audio-title {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

#modal-audio-controls { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin-top: 1.5rem; 
    padding: 1.5rem; 
    background: var(--bg-light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-audio-btn { 
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 50%; 
    width: 50px; 
    height: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.modal-audio-btn:hover { 
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.modal-audio-btn:active {
    transform: translateY(0);
}

.modal-audio-btn svg {
    width: 20px;
    height: 20px;
}

/* Progress bar container yang lebih bagus */
#modal-progress-bar-container {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

#modal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 3px;
}

#modal-progress-bar-container:hover #modal-progress-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
}
#modal-progress-bar-container { flex-grow: 1; background-color: var(--bg-color); border-radius: 5px; height: 8px; overflow: hidden; padding: 0; }
#modal-progress-bar { width: 0%; height: 100%; background-color: var(--primary-color); border-radius: 5px; transition: width 0.1s linear; }

#audio-controls-container { display: none; }

/* === GLITCH EFFECT FOR LAB PAGE === */
.glitch-overlay {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1500;
    mix-blend-mode: lighten;
    opacity: 0.25;
    display: block;
}
body.light-mode .glitch-overlay {
    mix-blend-mode: multiply;
    opacity: 0.45;
}
.glitch-rect {
    position: absolute;
    background: linear-gradient(90deg, #00ffe7, #ff00c8, #00f6ff);
    opacity: 0.7;
    border-radius: 2px;
    filter: blur(0.5px) brightness(1.2);
    animation: glitch-move 0.3s linear;
    box-shadow: 0 0 12px 2px #00ffe7, 0 0 8px 1px #ff00c8;
}
body.light-mode .glitch-rect {
    opacity: 0.8;
    filter: blur(0.5px) brightness(1.5);
    box-shadow: 0 0 18px 4px #00ffe7, 0 0 12px 2px #ff00c8;
}
@keyframes glitch-move {
    0% { transform: scaleX(1) scaleY(1) translateY(0); }
    50% { transform: scaleX(1.2) scaleY(0.8) translateY(-5px); }
    100% { transform: scaleX(1) scaleY(1) translateY(0); }
}
.glitch-scanline {
    position: absolute;
    left: 0; width: 100vw;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffe7 50%, #ff00c8 80%, transparent);
    opacity: 0.15;
    pointer-events: none;
    animation: glitch-scan 0.5s linear;
}
body.light-mode .glitch-scanline {
    opacity: 0.3;
    background: linear-gradient(90deg, transparent, #00ffe7 40%, #ff00c8 80%, transparent);
}
@keyframes glitch-scan {
    0% { opacity: 0.15; }
    50% { opacity: 0.4; }
    100% { opacity: 0.15; }
}

/* === ADVANCED GLITCH DISTORTION === */
.glitch-distort {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1501;
    opacity: 0.18;
    mix-blend-mode: screen;
    background: transparent;
    animation: glitch-distort-anim 0.5s linear;
    filter: blur(2px) contrast(1.8) hue-rotate(30deg) saturate(2.2);
}
body.light-mode .glitch-distort {
    opacity: 0.22;
    mix-blend-mode: multiply;
    filter: blur(2.5px) contrast(2.2) hue-rotate(60deg) saturate(2.8);
}
@keyframes glitch-distort-anim {
    0% { filter: blur(0px) contrast(1.2) hue-rotate(0deg) saturate(1.2); }
    20% { filter: blur(2px) contrast(2.2) hue-rotate(30deg) saturate(2.2); }
    40% { filter: blur(4px) contrast(2.8) hue-rotate(60deg) saturate(3.2); }
    60% { filter: blur(2px) contrast(2.2) hue-rotate(30deg) saturate(2.2); }
    100% { filter: blur(0px) contrast(1.2) hue-rotate(0deg) saturate(1.2); }
}
.glitch-slice {
    position: fixed;
    left: 0;
    width: 100vw;
    height: 18px;
    background: rgba(255,255,255,0.08);
    mix-blend-mode: difference;
    z-index: 1502;
    animation: glitch-slice-anim 0.4s linear;
    filter: blur(1.5px) contrast(2.5);
}
body.light-mode .glitch-slice {
    background: rgba(0,0,0,0.08);
    mix-blend-mode: multiply;
    filter: blur(2px) contrast(2.8);
}
@keyframes glitch-slice-anim {
    0% { transform: translateX(0) skewX(0deg); }
    30% { transform: translateX(-10px) skewX(-8deg); }
    60% { transform: translateX(12px) skewX(12deg); }
    100% { transform: translateX(0) skewX(0deg); }
}

/* === GLITCH TEXT EFFECT FOR LAB HERO === */
.glitch-text {
    position: relative;
    display: inline-block;
    color: inherit;
    z-index: 2;
}
.glitch-text.glitching {
    animation: glitch-text-anim 0.32s linear;
}
@keyframes glitch-text-anim {
    0% { text-shadow: 2px 0 #00ffe7, -2px 0 #ff00c8; transform: skewX(0deg) scaleY(1); filter: blur(0px); }
    20% { text-shadow: 4px 0 #00ffe7, -4px 0 #ff00c8; transform: skewX(8deg) scaleY(1.1); filter: blur(1px); }
    40% { text-shadow: -2px 0 #ff00c8, 2px 0 #00ffe7; transform: skewX(-8deg) scaleY(0.95); filter: blur(1.5px); }
    60% { text-shadow: 2px 0 #00ffe7, -2px 0 #ff00c8; transform: skewX(4deg) scaleY(1.05); filter: blur(0.5px); }
    100% { text-shadow: none; transform: skewX(0deg) scaleY(1); filter: blur(0px); }
}


/* ========================================================= */
/* === BARU: STYLE DARI HALAMAN PROJECTS.HTML (DIGABUNG) === */
/* ========================================================= */

.lab-project-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    padding: 0.35em 1.2em;
    border-radius: 2em;
    font-size: 1.1rem;
}
.lab-badge-os {
    display: inline-block;
    background: var(--bg-light-color);
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.2em 0.9em;
    border-radius: 1.2em;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
}
.lab-flex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: stretch;
    justify-content: center;
}
.lab-visual-area { flex: 1 1 320px; min-width: 320px; max-width: 420px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lab-desc-area { flex: 2 1 340px; min-width: 320px; max-width: 600px; display: flex; flex-direction: column; justify-content: center; }
.lab-card {
    background: var(--bg-light-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.2rem;
    transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.lab-card:hover {
    box-shadow: 0 8px 30px var(--shadow-color);
    border-color: var(--primary-color);
}
.lab-computer-svg .svg-screen-border { fill: var(--border-color); stroke: var(--primary-color); stroke-width: 2; }
.lab-computer-svg .svg-screen-bg { fill: var(--bg-color); stroke: var(--text-muted); stroke-width: 1.5; }
.lab-computer-svg .svg-text { fill: var(--text-color); }
.lab-computer-svg .svg-stand { fill: var(--primary-color); }
.lab-computer-svg .svg-base { fill: var(--border-color); stroke: var(--text-muted); stroke-width: 1; }
.lab-computer-prompt { font-size: 1.1rem; color: var(--text-muted); margin-top: 0.5rem; }
.lab-card-title { font-size: 2rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.6em; }
.lab-card-description { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; }
.lab-feature-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.lab-feature-list li { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.5em; }
.lab-feature-list i, .lab-card-title i { color: var(--primary-color); }

/* ==== STYLE TERMINAL ==== */
.virtual-terminal {
    background-color: #1a1a1a;
    color: #d4d4d4;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    font-family: var(--font-family-code);
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: opacity 0.5s, transform 0.5s;
}
.virtual-terminal.hidden { opacity: 0; transform: translateY(20px); pointer-events: none; height: 0; padding: 0; border: none; overflow: hidden; }
.virtual-terminal pre { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.virtual-terminal .keyword { color: #569cd6; }
.virtual-terminal .string { color: #ce9178; }
.virtual-terminal .function { color: #dcdcaa; }
.virtual-terminal .comment { color: #6a9955; }
.cursor { display: inline-block; background-color: #d4d4d4; width: 10px; animation: blink 1s infinite; }
@keyframes blink-cursor { 50% { opacity: 0; } }
.cursor { animation: blink-cursor 1s infinite; }
