/* ===== Base ===== */
:root {
  --bg: #070707;
  --bg-soft: #0e0e0e;
  --gold: #d9b64a;
  --gold-bright: #f0d060;
  --text: #e8e8e8;
  --muted: #9a9a9a;
  --border: #2a2a2a;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

#particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
main, .navbar, .footer { position: relative; z-index: 1; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(7,7,7,.95), rgba(7,7,7,.85));
  backdrop-filter: blur(8px);
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: #161616;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--gold);
  font-family: var(--serif); font-weight: 800; font-size: 20px;
}
.brand-text {
  font-family: var(--serif); font-weight: 700;
  letter-spacing: .18em; font-size: 18px;
}
.menu-btn {
  width: 42px; height: 42px;
  background: transparent; border: none;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-end; gap: 7px;
  z-index: 110;
  position: relative;
}
.menu-btn span {
  display: block; height: 2px; background: #fff; border-radius: 2px;
  transition: all .3s ease;
  transform-origin: center;
}
.menu-btn span:first-child { width: 30px; }
.menu-btn span:last-child  { width: 22px; }
.menu-btn:hover span:last-child { width: 30px; }

/* Animasi hamburger → X */
.menu-btn.active span:first-child {
  transform: translateY(4.5px) rotate(45deg);
  width: 30px;
}
.menu-btn.active span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
  width: 30px;
}

/* ===== Dropdown Menu (bukan fullscreen) ===== */
.menu-overlay {
  position: fixed;
  top: 72px;
  right: 20px;
  width: 260px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 100;
}
.menu-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-top { display: none; }
.menu-close { display: none; }

.menu-nav {
  display: flex; flex-direction: column;
  gap: 4px;
}
.menu-link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  opacity: 1;
  transform: none;
  width: auto;
}
.menu-link:hover, .menu-link.active {
  background: rgba(217, 182, 74, 0.1);
  color: var(--gold);
}

.menu-bottom {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.lang-switch {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  color: var(--muted); font-size: 13px; letter-spacing: .1em;
}
.lang-btn {
  background: transparent; border: none; color: var(--muted);
  font-size: 13px; letter-spacing: .12em; padding: 4px 8px;
  transition: color .2s;
}
.lang-btn.active, .lang-btn:hover { color: var(--gold); }
.menu-footer {
  display: flex; flex-direction: column; gap: 10px;
  align-items: center;
}
.menu-email { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.menu-socials { display: flex; gap: 16px; }
.menu-socials a {
  color: var(--muted); font-size: 11px; letter-spacing: .14em;
  transition: color .2s;
}
.menu-socials a:hover { color: var(--gold); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  max-width: 720px; margin: 0 auto;
  padding: 140px 24px 80px;
  display: flex; flex-direction: column; justify-content: center; gap: 48px;
}
.hero-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 28px;
  text-align: center;
}

/* Avatar bulat sempurna */
.avatar {
  position: relative;
  width: 150px; 
  height: 150px; 
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(217,182,74,.05), 0 0 30px rgba(217,182,74,.15);
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 6px rgba(217,182,74,.08), 0 0 40px rgba(217,182,74,.25);
}
.avatar img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  display: block;
}
.avatar-initials {
  display: none;
  font-family: var(--serif); 
  font-size: 52px; 
  font-weight: 800; 
  color: var(--gold);
}
.avatar-fallback .avatar-initials { display: block; }

.hero-name { font-family: var(--serif); font-size: 40px; font-weight: 700; }
.hero-role { color: var(--gold); margin-top: 8px; font-size: 15px; letter-spacing: .05em; }
.hero-desc { margin-top: 16px; color: var(--muted); line-height: 1.7; max-width: 460px; }
.caret { color: var(--gold); }
.caret.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-actions { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  border-radius: 6px;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-gold {
  background: var(--gold); color: #111; border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold-bright); border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,182,74,.25);
}
.btn-outline {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ===== Terminal ===== */
.terminal {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--mono); font-size: 13.5px;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: #141414;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f56; } .dot-y { background: #ffbd2e; } .dot-g { background: #27c93f; }
.terminal-title { margin-left: auto; color: var(--muted); font-size: 12px; }
.terminal-body { padding: 18px; color: #c9c9c9; }
.t-line { margin: 5px 0; line-height: 1.6; opacity: 0; animation: fadeIn .4s forwards; }
.t-line:nth-child(1) { animation-delay: .2s; }
.t-line:nth-child(2) { animation-delay: .8s; color: var(--gold); }
.t-line:nth-child(3) { animation-delay: 1.4s; }
.t-line:nth-child(4) { animation-delay: 2.0s; }
.t-line:nth-child(5) { animation-delay: 2.6s; }
@keyframes fadeIn { to { opacity: 1; } }
.prompt { color: var(--gold); }

/* ===== Sections ===== */
.section {
  max-width: 1000px; margin: 0 auto;
  padding: 110px 24px 60px;
}
.section-title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: .05em; margin-bottom: 14px;
}
.section-title span { color: var(--gold); }
.section-sub { color: var(--muted); margin-bottom: 40px; }

.about-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.about-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
  transition: border-color .25s, transform .25s;
}
.about-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.about-card h3 { font-family: var(--serif); color: var(--gold); margin-bottom: 12px; }
.about-card p { color: var(--muted); line-height: 1.7; font-size: 14.5px; }
.skill-list { list-style: none; }
.skill-list li {
  color: var(--muted); font-size: 14.5px;
  padding: 7px 0 7px 20px; position: relative;
}
.skill-list li::before {
  content: ''; color: var(--gold); position: absolute; left: 0;
}

/* ===== Galeri ===== */
.gallery-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gallery-item {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  cursor: pointer;
  transition: all 0.3s ease;
}
.gallery-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  font-size: 13px; letter-spacing: .08em;
  color: var(--gold);
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  display: flex;
  opacity: 1;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  background: none; border: none;
  z-index: 10000;
  transition: transform 0.2s;
}
.lightbox-close:hover {
  transform: scale(1.2);
  color: #ffd700;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 20px 15px;
  transition: all 0.2s;
  z-index: 10000;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===== Kontak ===== */
.contact-form { display: grid; gap: 14px; max-width: 560px; }
.contact-form input, .contact-form textarea {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text); font-family: var(--sans); font-size: 14px;
  resize: vertical;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.contact-form .btn { border: none; width: fit-content; }
.contact-links {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 36px;
  font-size: 13px; letter-spacing: .12em;
}
.contact-links a { color: var(--muted); transition: color .2s; }
.contact-links a:hover { color: var(--gold); }

.footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--border);
}

/* ===== Navbar Avatar ===== */
.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(217, 182, 74, 0.2);
}

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

.nav-avatar .avatar-initials {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 18px;
  color: var(--gold);
  display: none;
}

.nav-avatar.avatar-fallback .avatar-initials {
  display: block;
}

.nav-avatar.avatar-fallback {
  background: linear-gradient(135deg, rgba(217, 182, 74, 0.3), rgba(217, 182, 74, 0.1));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== Moto Section Styling ===== */
.moto-section {
  margin-top: 50px;
  padding: 30px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-left: 4px solid var(--gold);
}

.moto-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: 0.05em;
}

.moto-title span {
  color: var(--gold);
}

.moto-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  font-style: italic;
  padding-left: 10px;
  border-left: 2px solid rgba(217, 182, 74, 0.3);
}

/* Responsive untuk navbar avatar */
@media (max-width: 560px) {
  .nav-avatar {
    width: 32px;
    height: 32px;
  }
  
  .nav-avatar .avatar-initials {
    font-size: 16px;
  }
}

/* ===== AI Chat Page ===== */
.chat-page {
  min-height: 100vh;
  padding: 100px 20px 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.chat-container {
  width: 100%;
  max-width: 800px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(22, 22, 22, 0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-actions {
  display: flex;
  gap: 10px;
}

.ai-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  box-shadow: 0 0 20px rgba(217, 182, 74, 0.3);
}

.chat-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.chat-status {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-status.online { color: #27c93f; }
.chat-status.offline { color: #ff5f56; }
.chat-status.connecting { color: var(--gold); }

.chat-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.chat-status.online::before { background: #27c93f; }
.chat-status.offline::before { background: #ff5f56; }
.chat-status.connecting::before { background: var(--gold); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-settings,
.chat-clear {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-settings:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
}

.chat-clear:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ff5f56;
}

/* Settings Modal */
.settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.settings-modal.active {
  display: flex;
}

.settings-content {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlide 0.3s ease;
}

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

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.settings-header h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
}

.settings-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.settings-close:hover {
  color: var(--gold);
}

.settings-body {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.form-group small a {
  color: var(--gold);
}

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

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-save,
.btn-test {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save {
  background: var(--gold);
  color: #111;
}

.btn-save:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-test {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-test:hover {
  background: rgba(217, 182, 74, 0.1);
}

.test-result {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.test-result.success {
  display: block;
  background: rgba(39, 201, 63, 0.1);
  border: 1px solid #27c93f;
  color: #27c93f;
}

.test-result.error {
  display: block;
  background: rgba(255, 95, 86, 0.1);
  border: 1px solid #ff5f56;
  color: #ff5f56;
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.message {
  display: flex;
  gap: 12px;
  animation: messageSlide 0.3s ease;
}

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

.message.ai-message {
  align-self: flex-start;
}

.message.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  flex-shrink: 0;
}

.user-message .message-avatar {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--gold);
}

.message-content {
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.message p {
  padding: 14px 18px;
  border-radius: 16px;
  line-height: 1.6;
  font-size: 14.5px;
}

.ai-message .message p {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.user-message .message p {
  background: var(--gold);
  color: #111;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.message-time {
  font-size: 11px;
  color: var(--muted);
  padding: 0 4px;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Chat Input */
.chat-input-container {
  padding: 20px 24px;
  background: rgba(22, 22, 22, 0.8);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.chat-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  transition: border-color 0.2s;
}

.chat-input-wrapper:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 182, 74, 0.1);
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
}

.chat-input::placeholder {
  color: var(--muted);
}

.chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gold);
  border: none;
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.chat-send:hover {
  background: var(--gold-bright);
  transform: scale(1.05);
}

.chat-send:active {
  transform: scale(0.95);
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* Navbar Avatar */
.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(217, 182, 74, 0.2);
}

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

.nav-avatar .avatar-initials {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 18px;
  color: var(--gold);
  display: none;
}

.nav-avatar.avatar-fallback .avatar-initials {
  display: block;
}

.nav-avatar.avatar-fallback {
  background: linear-gradient(135deg, rgba(217, 182, 74, 0.3), rgba(217, 182, 74, 0.1));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .chat-container {
    height: calc(100vh - 120px);
    border-radius: 12px;
  }
  
  .chat-header {
    padding: 16px 18px;
  }
  
  .chat-messages {
    padding: 16px;
  }
  
  .message-content {
    max-width: 85%;
  }
  
  .chat-input-container {
    padding: 16px 18px;
  }
}

@media (max-width: 560px) {
  .chat-page {
    padding: 90px 12px 20px;
  }
  
  .chat-container {
    height: calc(100vh - 110px);
  }
  
  .ai-avatar {
    width: 38px;
    height: 38px;
  }
  
  .chat-title {
    font-size: 16px;
  }
  
  .settings-content {
    max-height: 95vh;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

/* ===== Responsive ===== */
@media (max-width: 560px) {
  .hero-inner { justify-content: center; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-desc { margin-inline: auto; }
  .menu-overlay {
    right: 10px; left: 10px;
    width: auto;
    top: 65px;
  }
  .lightbox-nav { padding: 12px 10px; font-size: 28px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ===== Halaman Galeri ===== */
.galeri-page { padding-top: 130px; }