/*=====================================================================
   TERMINAL / DEVOPS THEME  —  Hilman Firdaus Portfolio
   A full restyle of the portfolio into a CLI / terminal aesthetic.
   Class & id hooks used by main.js are preserved.
=====================================================================*/

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,700;0,800;1,400&family=Fira+Code:wght@400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --header-height: 3.5rem;

  /* Mono fonts everywhere */
  --body-font: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular,
    Menlo, monospace;

  /* DARK terminal (default) — pure black */
  --bg: #000000;
  --bg-elev: #080808;
  --bg-elev-2: #111111;
  --bg-window: #000000;
  --titlebar: #0a0a0a;
  --border: #2e2e2e;
  --border-soft: #00000000;

  --text: #c7d2e0;
  --text-dim: #6b7a92;
  --text-faint: #45526a;

  --green: #ffffff;
  --green-dim: #c2c2c2;
  --cyan: #ffffff;
  --amber: #ffb454;
  --magenta: #c792ea;
  --red: #ff6b6b;
  --blue: #ffffff;

  --accent: var(--green);
  --accent-glow: rgba(255, 255, 255, 0.18);
  --shadow-color: rgba(255, 255, 255, 0.07);
  --shadow-glow: rgba(255, 255, 255, 0.08);
  --shine-color: rgba(255, 255, 255, 0.35);

  /* window dots */
  --dot-red: #ff5f56;
  --dot-yellow: #ffbd2e;
  --dot-green: #5ab0e6;

  /* typography scale */
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.05rem;
  --normal-font-size: 0.92rem;
  --small-font-size: 0.8rem;
  --smaller-font-size: 0.72rem;

  --font-medium: 500;
  --font-semi-bold: 600;

  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3rem;
    --h1-font-size: 2.1rem;
    --h2-font-size: 1.4rem;
    --h3-font-size: 1.15rem;
    --normal-font-size: 0.95rem;
    --small-font-size: 0.82rem;
    --smaller-font-size: 0.76rem;
  }
}

/*========== LIGHT terminal variant (toggle) ==========*/
html.light-theme,
body.light-theme {
  --bg: #eef1f5;
  --bg-elev: #e4e9f0;
  --bg-elev-2: #dbe2ec;
  --bg-window: #f6f8fb;
  --titlebar: #dfe5ee;
  --border: #c4cdda;

  --text: #1f2a3a;
  --text-dim: #5a6678;
  --text-faint: #9aa6b8;

  --green: #1f2a3a;
  --green-dim: #5a6678;
  --cyan: #1f2a3a;
  --amber: #b6760a;
  --magenta: #8a4fd0;
  --red: #d6453f;
  --blue: #1f2a3a;

  --accent: var(--green);
  --accent-glow: rgba(31, 42, 58, 0.18);
  --shadow-color: rgba(30, 40, 60, 0.18);
  --shadow-glow: rgba(31, 42, 58, 0.12);
  --shine-color: rgba(30, 40, 60, 0.16);
}

/*=====================================================================
   THEME SWITCH — diagonal view-transition wipe
=====================================================================*/
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 2;
}
::view-transition-group(root) {
  animation-duration: 1.1s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ponytail: freeze view-transition bikin semua ketahan — kecuali toggle biar spin tetep keliatan */
#theme-button,
.change-theme {
  view-transition-name: none;
}
.chatbot-widget,
.chatbot-widget.open {
  view-transition-name: none;
}

/* Fallback smooth untuk browser tanpa ViewTransition — warna nge-blend 1.5s super slow */
html.no-view-transition body,
html.no-view-transition .header,
html.no-view-transition .term-window,
html.no-view-transition .skills__content,
html.no-view-transition .services__content,
html.no-view-transition .footer__bg,
html.no-view-transition .nav__menu,
html.no-view-transition .button,
html.no-view-transition .contact__form,
html.no-view-transition .contact__information,
html.no-view-transition .github__day,
html.no-view-transition .chatbot-panel,
html.no-view-transition .chatbot-header {
  transition: background-color 1.5s cubic-bezier(0.22, 1, 0.36, 1),
    color 1.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 1.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 10px);
  min-height: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100vh;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* animated background grid + glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(
      circle at 12% 18%,
      rgba(126, 200, 227, 0.07),
      transparent 42%
    ),
    radial-gradient(
      circle at 88% 82%,
      rgba(67, 217, 224, 0.06),
      transparent 45%
    ),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
  opacity: 0.5;
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 0, 0 0, 46px 46px, 46px 46px;
  }
}
html.is-scrolling body::before {
  animation-play-state: paused;
}
@media (max-width: 768px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }
  body::after { display: none !important; }
  .header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .hero-term { animation: none !important; }
  .footer__glow-blob { filter: blur(24px) !important; }
}
@media (max-width: 768px) {
  .footer__glow-blob--a { width: 200px; height: 200px; }
  .footer__glow-blob--b { width: 180px; height: 180px; }
}
/* faint scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.05) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  opacity: 0.35;
}
body.light-theme::after {
  opacity: 0.12;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: var(--font-semi-bold);
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font-family: var(--body-font);
}

/* Content sections should only be as tall as their content.  Keeping every
   section at 100vh creates a large blank area under short sections such as
   Services and Qualification.  The hero is the sole full-screen section. */
.section {
  padding-top: clamp(4.5rem, 8vw, 6rem);
  padding-bottom: clamp(4.5rem, 8vw, 6rem);
  scroll-margin-top: var(--header-height);
}

/* The landing/hero section intentionally fills the visible screen. */
.home.section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
}
/* ponytail: angkat teks whoami/cat about.md sedikit tanpa menggeser hero */
#about.section{padding-top:clamp(2rem,5vw,3rem) !important}
#about .section__title{transform:translateY(-8px)}
#about .section__subtitle{transform:translateY(-8px);margin-bottom:1.4rem !important}
@media screen and (min-width:968px){#about.section{padding-top:2.6rem !important}}

/* desktop extras */
@media screen and (min-width: 968px) {
  .section {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  /* hero card felt cramped next to all the leftover width — give it more room */
  .home__container.container {
    max-width: 850px;
  }
  .home__hero-row .hero-term {
    flex: 1;
    width: 100%;
  }

  /* hero card internals: prompt line full-width on top,
     then text left / mascot right, balanced */
  .home .hero-term__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 1.5rem;
  }
  .home .hero-line {
    flex: 1 1 100%;
  }
  .home .hero-output {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 300px;
  }
  .home .home__cat {
    position: absolute;
    right: 1.25rem;
    bottom: 0;
    line-height: 0;
  }
  .home .home__cat img {
    width: 280px;
    display: block;
  }
}

.section__title,
.section__subtitle {
  text-align: left;
}

/* section title rendered as a typed command */
.section__title {
  font-size: var(--h1-font-size);
  color: var(--text);
  margin-bottom: 0.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-dim);
  margin-bottom: var(--mb-3);
}
.section__subtitle::before {
  content: "// ";
  color: var(--text-faint);
}

.container {
  width: auto;
  max-width: 1024px;
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.main {
  position: relative;
  z-index: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--green);
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--green);
  border-radius: 6px;
  font-weight: var(--font-medium);
  font-size: var(--small-font-size);
  cursor: pointer;
  transition: 0.25s;
  position: relative;
}
.button::before {
  content: "> ";
  color: var(--green);
  opacity: 0.8;
}
.button:hover {
  background-color: var(--green);
  color: var(--bg);
  box-shadow: 0 0 18px var(--accent-glow);
}
.button:hover::before {
  color: var(--bg);
}
.button--white {
  color: var(--cyan);
  border-color: var(--cyan);
}
.button--white::before {
  color: var(--cyan);
}
.button--white:hover {
  background-color: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 18px var(--accent-glow);
}
.button--white:hover::before {
  color: var(--bg);
}
.button--flex {
  display: inline-flex;
  align-items: center;
}
.button--small {
  padding: 0.5rem 0.8rem;
  font-size: var(--smaller-font-size);
}
.button--link {
  padding: 0;
  border: none;
  background: transparent;
}
.button--link::before {
  content: "";
}
.button--link:hover {
  background: transparent;
  color: var(--cyan);
  box-shadow: none;
  text-decoration: underline;
}
.button__icon {
  font-size: 1rem;
}

.term-window {
  background: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 50px var(--shadow-color);
  position: relative;
}
.term-window__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: var(--titlebar);
  border-bottom: 1px solid var(--border);
}
.term-window__dots {
  display: flex;
  gap: 0.45rem;
}
.term-window__dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.term-window__dots span:nth-child(1) {
  background: var(--dot-red);
}
.term-window__dots span:nth-child(2) {
  background: var(--dot-yellow);
}
.term-window__dots span:nth-child(3) {
  background: var(--dot-green);
}
.term-window__title {
  margin: 0 auto;
  font-size: var(--smaller-font-size);
  color: var(--text-dim);
  letter-spacing: 0.3px;
}
.term-window__title i {
  color: var(--text-faint);
}
.term-window__body {
  padding: 1.4rem 1.3rem;
}

/* prompt line helper */
.prompt {
  color: var(--text-dim);
  font-size: var(--small-font-size);
}
.prompt .user {
  color: var(--green);
}
.prompt .at {
  color: var(--text-faint);
}
.prompt .host {
  color: var(--cyan);
}
.prompt .path {
  color: var(--amber);
}
.prompt .sym {
  color: var(--text);
}
.cmd {
  color: var(--text);
}
.comment {
  color: var(--text-faint);
}
.comment::before {
  content: "# ";
}

/* blinking cursor */
.cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  background: var(--green);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
  box-shadow: 0 0 8px var(--accent-glow);
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* generic reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* wcat: pakai opacity aja biar ga tabrakan sama catWalk (yang pakai translateY(-50%) + left) */
.footer__cat.reveal {
  transform: translateY(-50%);
}
.footer__cat.reveal.is-visible {
  transform: translateY(-50%);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: var(--z-fixed);
  transition: 0.3s;
}
body.light-theme .header {
  background: rgba(238, 241, 245, 0.85);
}
.scroll-header {
  box-shadow: none;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1024px;
}
.nav__logo {
  color: var(--green);
  font-weight: 700;
  font-size: var(--normal-font-size);
  display: inline-flex;
  align-items: center;
}
.nav__logo::before {
  content: "λ ";
  color: var(--cyan);
  margin-right: 0.15rem;
  font-weight: 800;
}
.nav__logo::after {
  content: "_";
  color: var(--green);
  animation: blink 1.1s steps(1) infinite;
}

.nav__list {
  display: flex;
  column-gap: 1.6rem;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-dim);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: 0.25s;
}
.nav__link:hover {
  color: var(--green);
}
.nav__icon,
.nav__close,
.nav__toggle {
  display: none;
}

.active-link {
  color: var(--green);
}
.active-link::before {
  content: "";
}

.nav__btns {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.change-theme {
  font-size: 1.15rem;
  color: var(--text-dim);
  cursor: pointer;
  display: inline-block;
  will-change: transform;
  transition: color 0.3s ease, transform 0.3s ease;
}
.change-theme:hover {
  color: var(--amber);
  transform: scale(1.12) rotate(12deg);
}
.change-theme:active {
  transform: scale(0.92);
}
.change-theme.is-animating {
  animation: themeToggleSpin 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes themeToggleSpin {
  0% { transform: rotate(0) scale(1); opacity: 1; filter: brightness(1); }
  45% { transform: rotate(180deg) scale(0.18); opacity: 0.25; filter: brightness(1.4); }
  100% { transform: rotate(360deg) scale(1); opacity: 1; filter: brightness(1); }
}
@media (prefers-reduced-motion: reduce) {
  .change-theme.is-animating { animation: none; }
}

/* mobile menu — dropdown anchored under the header bar.
   NOTE: header uses backdrop-filter, so a fixed child would be positioned
   relative to the header. We use an absolute dropdown instead (robust). */
@media screen and (max-width: 767px) {
  .nav__menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    width: 100%;
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.3rem 1.25rem 1.5rem;
    box-shadow: 0 16px 34px var(--shadow-color);
    z-index: var(--z-fixed);
    /* hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s;
  }
  body.light-theme .nav__menu {
    background: var(--bg-elev);
  }
  .show-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav__list {
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    gap: 1.4rem 1rem;
  }
  .nav__item {
    min-width: 0;
  }
  .nav__link {
    flex-direction: column;
    gap: 0.4rem;
    font-size: var(--smaller-font-size);
    text-align: center;
    word-break: break-word;
  }
  .nav__icon {
    display: block;
    font-size: 1.35rem;
  }
  .nav__close {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.25s;
  }
  .nav__toggle:hover,
  .show-menu ~ .nav__btns .nav__toggle {
    color: var(--green);
  }
}

.home {
  padding-top: calc(4rem + var(--header-height));
}
.home__container {
  row-gap: 2rem;
}
.home__content {
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
.home__social {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.home__social-icon {
  font-size: 1.25rem;
  color: var(--text-dim);
  transition: 0.25s;
}
.home__social-icon:hover {
  color: var(--green);
  transform: translateY(-3px);
}

/* hide the old blob image — replaced by terminal window */
.home__img {
  display: none;
}

.home__data {
  padding: 0;
}

/* hero terminal window */
.hero-term {
  margin-bottom: 1.5rem;
  animation: hero-stomp 0.76s cubic-bezier(0.5, 0, 0.7, 0.4) infinite;
  animation-delay: 3.6s;
  transform-origin: center top;
  box-shadow: 16px 16px 40px var(--shadow-color);
}
body.light-theme .hero-term {
  box-shadow: 20px 20px 55px rgba(30, 40, 60, 0.35);
}
@keyframes hero-stomp {
  0% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  55% {
    transform: translateY(-3px);
  }
  70% {
    transform: translateY(1px);
  }
  100% {
    transform: translateY(0);
  }
}
.hero-term__body {
  position: relative;
}
.hero-line {
  margin-bottom: 0.35rem;
  overflow-wrap: anywhere;
}
.hero-line .prompt {
  white-space: nowrap;
}
.hero-line #hero-cmd {
  overflow-wrap: anywhere;
}
.hero-line .out {
  color: var(--text-dim);
}
.hero-output {
  margin: 0.4rem 0 0.2rem;
  padding-left: 0.2rem;
}
.home__title {
  font-size: var(--big-font-size);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin: 0.3rem 0;
  letter-spacing: -1px;
}
.home__title .accent {
  color: var(--green);
}
.home__title:not(.is-typed) .name-short .name-letter {
  opacity: 0;
  transform: translateY(6px);
}

/* --- Hover nama pendek -> nama panjang --- */
.hero-name-hover {
  position: relative;
  cursor: pointer;
  display: inline-block;
  vertical-align: baseline;
}
.hero-name-hover .name-short {
  display: block;
  white-space: nowrap;
}
.hero-name-hover .name-word {
  display: inline-block;
}
.hero-name-hover .name-letter {
  display: inline-block;
  color: inherit;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.name-short .name-letter {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}
.hero-name-hover .name-full {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 1em;
  line-height: inherit;
  white-space: nowrap;
  width: max-content;
  max-width: none;
  pointer-events: none;
}
.name-full .name-letter {
  opacity: 0;
  transform: translateX(-14px);
  filter: blur(6px);
}
.hero-name-hover:hover .name-short .name-letter {
  opacity: 0;
  transform: translateX(10px);
  filter: blur(6px);
}
.hero-name-hover:hover .name-full .name-letter {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .hero-name-hover .name-letter {
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 480px) {
  .hero-name-hover .name-full {
    font-size: 0.6em;
  }
}
.home__subtitle {
  font-size: var(--h3-font-size);
  color: var(--cyan);
  font-weight: var(--font-medium);
  margin-bottom: 0.5rem;
  min-height: 1.4em;
}
.home__subtitle .role {
  color: var(--amber);
}
.home__description {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  font-size: var(--normal-font-size);
  max-width: 48ch;
}

.home__hero-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.home__hero-row .hero-term {
  flex: 1;
  min-width: 0;
}
.home__cat {
  position: absolute;
  right: 4rem;
  bottom: 0;
  line-height: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.2s;
}
.home__cat.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home__cat img {
  width: 360px;
  height: auto;
  image-rendering: pixelated;
}

.home__scroll {
  display: none;
}
@media screen and (min-width: 768px) {
  .home__scroll {
    display: block;
    margin-top: 1rem;
  }
  .home__scroll-button {
    color: var(--text-dim);
    transition: 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }
  .home__scroll-button:hover {
    color: var(--green);
    transform: translateY(3px);
  }
  .home__scroll-mouse {
    font-size: 1.6rem;
  }
  .home__scroll-name {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
  }
  .home__scroll-arrow {
    font-size: 1.1rem;
  }
  .home__content {
    grid-template-columns: max-content 1fr;
    align-items: center;
  }
  .home__social {
    flex-direction: column;
  }
}
@media screen and (max-width: 767px) {
  .home__hero-row {
    flex-direction: column;
  }
}

/* ABOUT container styling */
.about__pic {
  position: relative;
  justify-self: center;
  display: flex;
  padding: 6px;
  background: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 28px var(--shadow-color);
  width: 100%;
  max-width: 320px;
  height: 100%;
}
.about__pic .tilt-card {
  width: 100%;
  height: 100%;
}
.about__img {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  transition: 0.3s;
}
.about__tech {
  position: absolute;
  top: 6px;
  right: -22px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  z-index: 2;
}
.about__tech i {
  display: grid;
  place-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  filter: grayscale(1);
  animation: techFloat 3.2s ease-in-out infinite;
  transition: filter 0.3s;
}
.about__tech i:nth-child(1) {
  width: 54px;
  height: 54px;
  font-size: 1.9rem;
  color: #61dafb;
  animation-delay: 0s;
  transform: rotate(-7deg) translateX(2px);
}
.about__tech i:nth-child(2) {
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  color: #f7df1e;
  animation-delay: 0.35s;
  transform: rotate(5deg) translateX(-3px);
}
.about__tech i:nth-child(3) {
  width: 46px;
  height: 46px;
  font-size: 1.65rem;
  color: #42b883;
  animation-delay: 0.65s;
  transform: rotate(-4deg) translateX(4px);
}
.about__tech i:nth-child(4) {
  width: 38px;
  height: 38px;
  font-size: 1.35rem;
  color: #f55247;
  animation-delay: 0.95s;
  transform: rotate(6deg) translateX(-2px);
}
.about__pic:hover .about__tech i {
  filter: none;
}
@keyframes techFloat {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0));
  }
  50% {
    transform: translateY(-6px) rotate(var(--r, 0));
  }
}

.about__img:hover {
  filter: none;
  box-shadow: 0 0 24px var(--accent-glow);
}

.about__prompt {
  margin-bottom: 1rem;
}
.about__description {
  color: var(--text);
  margin-bottom: 1.2rem;
}

.about__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.about__info > div {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 0.4rem;
  text-align: center;
  transition: 0.25s;
}
.about__info > div:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}
.about__info-title {
  display: block;
  font-size: var(--h2-font-size);
  font-weight: 800;
  color: var(--green);
}
.about__info-name {
  font-size: var(--smaller-font-size);
  color: var(--text-dim);
  white-space: pre-line;
}
.about__buttons {
  display: flex;
  justify-content: flex-start;
}

@media screen and (min-width: 768px) {
  .about__container {
    grid-template-columns: 1fr 1.4fr;
    align-items: stretch;
  }
}

.skills_container {
  grid-template-columns: 1fr;
}
.skills__content {
  position: relative;
  overflow: hidden;
  background: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.2rem;
  transition: 0.3s ease;
}
.skills__content:hover,
.skills__content.skills__open {
  border-color: var(--green);
  box-shadow: 0 0 22px var(--shadow-color);
  padding: 1.35rem 1.6rem;
}
/* corner-bracket accent, revealed on hover/open (template-style) */
.skills__content::before,
.skills__content::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.skills__content::before {
  top: 8px;
  left: 8px;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
}
.skills__content::after {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid var(--green);
  border-right: 2px solid var(--green);
}
.skills__content:hover::before,
.skills__content:hover::after,
.skills__content.skills__open::before,
.skills__content.skills__open::after {
  opacity: 1;
}
.skills__header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}
.skills__icon {
  font-size: 1.5rem;
  color: var(--green);
  transition: transform 0.3s ease;
}
.skills__content:hover .skills__icon,
.skills__content.skills__open .skills__icon {
  transform: scale(1.15);
}
.skills__header > div h1.skills__titles {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.skills__content:hover .skills__header > div h1.skills__titles,
.skills__content.skills__open .skills__header > div h1.skills__titles {
  color: var(--green);
}
.skills__header > div h1.skills__titles::before {
  content: "~/ ";
  color: var(--text-faint);
}
.skills__subtitle {
  font-size: var(--smaller-font-size);
  color: var(--text-dim);
}
.skills__hover-icon {
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--green);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.skills__content:hover .skills__hover-icon,
.skills__content.skills__open .skills__hover-icon {
  opacity: 1;
  transform: translateX(0);
}

.skills__list {
  row-gap: 1.1rem;
  padding-top: 1.2rem;
  margin-top: 0.8rem;
  border-top: 1px dashed var(--border);
}
.skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.skills_name {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text);
}
.skills_name::before {
  content: "› ";
  color: var(--cyan);
}
.skills__number {
  font-size: var(--small-font-size);
  color: var(--amber);
  font-weight: 600;
}
.skills__bar,
.skills__percentage {
  height: 8px;
  border-radius: 4px;
}
.skills__bar {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  overflow: hidden;
}
.skills__percentage {
  display: block;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  box-shadow: 0 0 10px var(--accent-glow);
  width: 0;
  transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* accordion open/close */
.skills__close .skills__list {
  height: 0;
  overflow: hidden;
  padding-top: 0;
  margin-top: 0;
  border: none;
  opacity: 0;
}
.skills__open .skills__list {
  height: auto;
  opacity: 1;
}
/* skill widths are data-driven: each bar sets --lvl via :style from portfolio.json.
   Bars fill from 0 -> --lvl (with transition) when their accordion panel opens,
   then keep nudging past --lvl and bouncing back off an "invisible wall" forever —
   per-keyframe easing gives the push/rebound its own accel/decel (cartoon squash feel),
   and each row is staggered so a group's bars don't all bump in unison. */
.skills__open .skills__percentage {
  width: var(--lvl, 0);
  animation: skills-bump 2.8s infinite;
  animation-delay: 1.4s;
}
.skills__open .skills__list .skills__data:nth-child(2) .skills__percentage {
  animation-delay: 1.58s;
}
.skills__open .skills__list .skills__data:nth-child(3) .skills__percentage {
  animation-delay: 1.76s;
}
.skills__open .skills__list .skills__data:nth-child(4) .skills__percentage {
  animation-delay: 1.94s;
}
.skills__open .skills__list .skills__data:nth-child(5) .skills__percentage {
  animation-delay: 2.12s;
}
@keyframes skills-bump {
  0% {
    width: var(--lvl, 0);
    box-shadow: 0 0 10px var(--accent-glow);
    animation-timing-function: cubic-bezier(0.6, 0, 1, 0.45);
  }
  14% {
    width: calc(var(--lvl, 0) + 4%);
    box-shadow: 0 0 20px var(--accent-glow);
    animation-timing-function: cubic-bezier(0, 0.55, 0.4, 1);
  }
  27% {
    width: calc(var(--lvl, 0) - 2.5%);
    box-shadow: 0 0 10px var(--accent-glow);
    animation-timing-function: cubic-bezier(0.6, 0, 1, 0.45);
  }
  40% {
    width: calc(var(--lvl, 0) + 2%);
    animation-timing-function: cubic-bezier(0, 0.55, 0.4, 1);
  }
  52% {
    width: calc(var(--lvl, 0) - 1%);
    animation-timing-function: ease-out;
  }
  62%, 100% {
    width: var(--lvl, 0);
    box-shadow: 0 0 10px var(--accent-glow);
  }
}

@media screen and (min-width: 768px) {
  .skills_container {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
  }
}

.github__container {
  max-width: 1024px;
}
.github__cmd {
  margin-bottom: 1rem;
}
.github__loading {
  color: var(--text-dim);
  font-size: var(--small-font-size);
}

.github__total {
  font-size: var(--small-font-size);
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.github__count {
  color: var(--green);
  font-weight: 700;
  font-size: var(--normal-font-size);
}

/* heatmap */
.github__graph {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 0.6rem;
}
.github__graph::-webkit-scrollbar {
  height: 7px;
}

.github__side {
  display: flex;
  flex-direction: column;
}
.github__months-spacer {
  height: 16px;
  display: block;
}
.github__weekdays {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  gap: 3px;
}
.github__weekdays span {
  font-size: 9px;
  color: var(--text-dim);
  line-height: 12px;
  white-space: nowrap;
  padding-right: 4px;
}

.github__chart {
  display: inline-block;
}
.github__months {
  display: flex;
  gap: 3px;
  height: 16px;
}
.github__month {
  width: 12px;
  font-size: 9px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: visible;
}
.github__grid {
  display: flex;
  gap: 3px;
}
.github__week {
  display: grid;
  grid-template-rows: repeat(7, 12px);
  gap: 3px;
}
.github__day {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--gh-0, rgba(255, 255, 255, 0.05));
  transition: transform 0.1s ease;
}
.github__day:hover {
  transform: scale(1.35);
  outline: 1px solid var(--green);
}
.github__day--empty {
  background: transparent !important;
}
.github__day[data-level="0"] {
  background: rgba(255, 255, 255, 0.05);
}
.github__day[data-level="1"] {
  background: #0e2f4a;
}
.github__day[data-level="2"] {
  background: #3a9ad9;
}
.github__day[data-level="3"] {
  background: #5ab0e6;
}
.github__day[data-level="4"] {
  background: #7ec8e3;
  box-shadow: 0 0 6px var(--accent-glow);
}

body.light-theme .github__day[data-level="0"] {
  background: rgba(0, 0, 0, 0.06);
}
body.light-theme .github__day[data-level="1"] {
  background: #a3d4f0;
}
body.light-theme .github__day[data-level="2"] {
  background: #5ab0e6;
}
body.light-theme .github__day[data-level="3"] {
  background: #3a9ad9;
}
body.light-theme .github__day[data-level="4"] {
  background: #1e3a5f;
}

.github__legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.9rem;
  font-size: var(--smaller-font-size);
  color: var(--text-dim);
}
.github__legend .github__day:hover {
  transform: none;
  outline: none;
}

.github__fallback {
  margin: 0.5rem 0 1rem;
}
.github__fallback img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  background: var(--bg-elev);
}
.github__btn {
  margin-top: 1.2rem;
}

.qualification__tabs {
  display: flex;
  justify-content: flex-start;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.qualification__button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elev);
  transition: 0.25s;
}
.qualification__button::before {
  content: "--";
  color: var(--text-faint);
  margin-right: 0.2rem;
}
.qualification__button:hover {
  color: var(--green);
}
.qualification__icon {
  font-size: 1.1rem;
}
.qualification__active.qualification__button {
  color: var(--bg);
  background: var(--green);
  border-color: var(--green);
}
.qualification__active.qualification__button::before {
  color: var(--bg);
}

.qualification__sections {
  display: grid;
}
.qualification__content {
  display: none;
}
.qualification__content.qualification__active {
  display: block;
}

.qualification__data {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.2rem;
}
.qualification__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--text);
}
.qualification__title::before {
  content: "commit ";
  color: var(--amber);
  font-weight: 400;
}
.qualification__subtile {
  display: inline-block;
  font-size: var(--smaller-font-size);
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}
.qualification__calender {
  font-size: var(--smaller-font-size);
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.qualification__rounder {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}
.qualification__line {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--border);
  transform: translate(5px, -4px);
}

.services__container {
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
.services__content {
  position: relative;
  background: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.6rem 1.2rem 1.2rem;
}
/* NOTE: no transform on the card itself — the modal is a fixed-position child,
   and a transform here would make the card its containing block (breaks the modal). */
.services__content > div:first-child {
  transition: transform 0.3s;
}
.services__icon {
  display: block;
  font-size: 1.8rem;
  color: var(--green);
  margin-bottom: 0.8rem;
}
.services__title {
  font-size: var(--h3-font-size);
  color: var(--text);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.services__title::before {
  content: "./";
  color: var(--text-faint);
}
.services__button {
  cursor: pointer;
  color: var(--cyan);
  font-size: var(--small-font-size);
}
.services__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.services__modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.active-modal {
  opacity: 1;
  visibility: visible;
}
.services__modal-content {
  position: relative;
  background: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.6rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 50px var(--shadow-color);
}
.services__modal-title {
  font-size: var(--h3-font-size);
  color: var(--green);
  margin-bottom: 1rem;
}

.services__modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 1.4rem;
  color: var(--red);
  cursor: pointer;
}
.services__modal-services {
  row-gap: 0.8rem;
}
.services__modal-service {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.services__modal-icon {
  color: var(--green);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}
.services__modal-service p {
  color: var(--text-dim);
  font-size: var(--small-font-size);
}

@media screen and (min-width: 568px) {
  .services__container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 968px) {
  .services__container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }
  .services__container.container {
    max-width: 1280px;
  }
  .services__content {
    padding: 2.2rem 1.75rem 1.75rem;
  }
  .services__icon {
    font-size: 2.2rem;
  }
}

.portofolio__container {
  overflow: visible;
}
.portofolio__content {
  grid-template-columns: 1fr;
  align-items: stretch;
  background: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.portofolio__content .portofolio__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  filter: grayscale(0.2);
  transition: 0.3s;
}
.portofolio__content:hover .portofolio__img {
  filter: none;
}
.portofolio__data {
  padding: 1.2rem;
}
.portofolio__title {
  font-size: var(--h3-font-size);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.portofolio__description {
  font-size: var(--small-font-size);
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.portofolio__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--green) !important;
  width: 34px;
  height: 34px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}
.swiper-portofolio-icon {
  font-size: 1.6rem;
  color: var(--green);
}
.swiper-button-prev {
  left: -0.4rem;
}
.swiper-button-next {
  right: -0.4rem;
}
.swiper-pagination-bullet {
  background: var(--text-dim);
}
.swiper-pagination-bullet-active {
  background: var(--green) !important;
}

@media screen and (min-width: 768px) {
  .portofolio__content {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
  .portofolio__content .portofolio__img {
    height: 100%;
    min-height: 240px;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

.project {
  padding-bottom: 0;
  overflow: visible;
}
.project__bg {
  background: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding-top: 2rem;
  box-shadow: 0 12px 28px var(--shadow-color);
  /* ponytail: beri gutter biar shadow kanan ga kepotong body overflow-x hidden */
  margin: 0 6px;
}
.project__container {
  grid-template-columns: 1fr;
  padding: 1.5rem 1.4rem;
  row-gap: 1.5rem;
}
.project__title {
  font-size: var(--h2-font-size);
  color: var(--text);
  margin-bottom: 0.6rem;
}
.project__title::before {
  content: "// sudo ";
  color: var(--green);
  font-weight: 400;
}
.project__description {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  font-size: var(--normal-font-size);
}
.project__img {
  width: 220px;
  justify-self: center;
  opacity: 0.9;
  transform: translateY(24px);
}
.project__icon {
  font-size: 1rem;
}

@media screen and (min-width: 768px) {
  .project__container {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
}

.testimonial__content {
  background: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem;
  margin-bottom: 2.5rem;
}
.testimonial__data {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.testimonial__header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.testimonial__img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--green);
}
.testimonial__name {
  font-size: var(--normal-font-size);
  color: var(--text);
}
.testimonial__client {
  font-size: var(--smaller-font-size);
  color: var(--text-dim);
}
.testimonial__client::before {
  content: "@";
  color: var(--text-faint);
}
.testimonial__icon-star {
  color: var(--amber);
  font-size: 0.95rem;
}
.testimonial__description {
  font-size: var(--small-font-size);
  color: var(--text-dim);
}
.testimonial__description::before {
  content: '" ';
  color: var(--green);
}
.testimonial__description::after {
  content: ' "';
  color: var(--green);
}

.contact__container {
  grid-template-columns: 1fr;
  column-gap: 2rem;
  position: relative;
  z-index: 1;
}
.contact__information {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  background: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  transition: 0.25s;
  box-shadow: 0 10px 28px var(--shadow-color);
}
.contact__information:hover {
  border-color: var(--green);
}
.contact__icon {
  font-size: 1.6rem;
  color: var(--green);
}
.contact__title {
  font-size: var(--normal-font-size);
  color: var(--text);
}
.contact__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-dim);
}

.contact__form {
  background: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 18px 50px var(--shadow-color);
}
body.light-theme .contact__information {
  box-shadow: 0 10px 28px rgba(30, 40, 60, 0.35);
}
body.light-theme .contact__form {
  box-shadow: 0 18px 50px rgba(30, 40, 60, 0.35);
}
.contact__inputs {
  grid-template-columns: 1fr 1fr;
  column-gap: 1rem;
}
.contact__content {
  position: relative;
  margin-bottom: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elev);
  transition: 0.25s;
}
.contact__content:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.contact__label {
  position: absolute;
  top: -0.55rem;
  left: 0.7rem;
  font-size: var(--smaller-font-size);
  background: var(--bg);
  padding: 0 0.35rem;
  color: var(--green);
}
.contact__label::before {
  content: "--";
  color: var(--text-faint);
}
.contact__input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: var(--small-font-size);
  padding: 0.9rem 0.8rem;
  resize: vertical;
}
.contact__input::placeholder {
  color: var(--text-faint);
}

@media screen and (min-width: 768px) {
  .contact__container {
    grid-template-columns: 1fr 1.6fr;
    align-items: flex-start;
  }
}

.footer-wrap {
  position: relative;
}
.footer__cat {
  position: absolute;
  top: 0;
  left: 1.4rem;
  width: 70px;
  height: 70px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 3;
  animation: catWalk 24s linear infinite;
}
.footer {
  position: relative;
  height: 720px;
  clip-path: polygon(0% 0, 100% 0%, 100% 100%, 0 100%);
  /* creates a containing block for the position:fixed .footer__pin below,
     so it stays trapped inside this box instead of pinning to the real
     browser viewport — without this, iOS Safari (and some Android
     browsers) let the fixed child escape and render stuck at the top of
     the screen while the user is still scrolled up near Home/About */
  transform: translateZ(0);
}
.footer__pin {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 720px;
}
.footer__sticky {
  position: sticky;
  top: max(0px, calc(100vh - 720px));
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media screen and (max-width: 767px) {
  .footer,
  .footer__pin {
    height: auto;
    min-height: 580px;
  }
  .footer__sticky {
    height: auto;
    min-height: 580px;
    top: 0;
    overflow-y: visible;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
  }
  .footer__bottom-left {
    justify-content: center;
    width: 100%;
  }
}
@media screen and (min-width: 768px) {
  .footer {
    height: 460px;
  }
  .footer__pin {
    height: 460px;
  }
  .footer__sticky {
    top: max(0px, calc(100vh - 460px));
  }
}
@keyframes catWalk {
  0% {
    left: 0;
    transform: translateY(-100%) scaleX(1);
  }
  50% {
    left: calc(100% - 70px);
    transform: translateY(-100%) scaleX(1);
  }
  50.01% {
    transform: translateY(-100%) scaleX(-1);
  }
  100% {
    left: 0;
    transform: translateY(-100%) scaleX(-1);
  }
}
.footer__bg {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--bg-window);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.footer__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.footer__glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
}
.footer__glow-blob--a {
  width: 320px;
  height: 320px;
  top: -140px;
  left: -60px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 75%);
}
.footer__glow-blob--b {
  width: 260px;
  height: 260px;
  bottom: -120px;
  right: -40px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 75%);
}
.footer__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  padding: 0 1.4rem;
}
.footer__col--brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__mark {
  font-size: var(--h2-font-size);
  color: var(--green);
  font-weight: var(--font-semi-bold);
}
.footer__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-dim);
}
.footer__tagline {
  font-size: var(--small-font-size);
  color: var(--text-faint);
  max-width: 26ch;
  line-height: 1.5;
  margin-top: 0.3rem;
}
.footer__col-title {
  font-size: var(--smaller-font-size);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer__col-title::before {
  content: "# ";
  color: var(--green);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer_link {
  color: var(--text-dim);
  font-size: var(--small-font-size);
  transition: 0.25s;
}
.footer_link::before {
  content: "\203A ";
  color: var(--green);
}
.footer_link:hover {
  color: var(--green);
}
.footer__socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.8rem;
}
.footer__social {
  font-size: 1.1rem;
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: 0.25s;
}
.footer__social:hover {
  color: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: translateY(-3px);
}
.footer__bottom {
  position: relative;
  z-index: 1;
  margin-top: 2.2rem;
  padding: 1.4rem 1.4rem 0;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1rem;
}
.footer__copy {
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-faint);
}
.footer__copy::before {
  content: "[ ";
  color: var(--green);
}
.footer__copy::after {
  content: " ]";
  color: var(--green);
}
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--green);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  padding: 0.5rem 1rem;
  border: 1px solid var(--green);
  border-radius: 6px;
  transition: 0.25s;
}
.footer__top:hover {
  background: var(--green);
  color: var(--bg);
  box-shadow: 0 0 18px var(--accent-glow);
}
.footer__top i {
  font-size: 1rem;
}

@media screen and (min-width: 576px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media screen and (min-width: 768px) {
  .footer__container {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer__glow-blob--a {
    width: 420px;
    height: 420px;
  }
  .footer__glow-blob--b {
    width: 340px;
    height: 340px;
  }
}

.button--error.shake {
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.loader {
  width: fit-content;
  font-size: 42px;
  font-family: var(--body-font);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--green);
  --g: conic-gradient(var(--green) 0 0) no-repeat text;
  background: var(--g) 0, var(--g) 1ch, var(--g) 2ch, var(--g) 3ch, var(--g) 4ch,
    var(--g) 5ch, var(--g) 6ch;
  background-position-y: 100%, 0;
  animation: l16 1.9s linear forwards;
}
.loader:before {
  content: "Loading";
}
@keyframes l16 {
  0% {
    background-size: 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0;
  }
  14.28% {
    background-size: 1ch 100%, 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0;
  }
  28.57% {
    background-size: 1ch 100%, 1ch 100%, 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0;
  }
  42.85% {
    background-size: 1ch 100%, 1ch 100%, 1ch 100%, 1ch 0, 1ch 0, 1ch 0, 1ch 0;
  }
  57.14% {
    background-size: 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 0, 1ch 0, 1ch 0;
  }
  71.43% {
    background-size: 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 0,
      1ch 0;
  }
  85.71% {
    background-size: 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%,
      1ch 0;
  }
  100% {
    background-size: 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%,
      1ch 100%;
  }
}

::-webkit-scrollbar {
  width: 9px;
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--green-dim);
}

@media screen and (min-width: 768px) {
  .container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}
@media screen and (max-width: 350px) {
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .about__info {
    grid-template-columns: 1fr;
  }
  .nav__list {
    gap: 1rem 0.5rem;
  }
}

.now-playing {
  position: fixed;
  top: 0;
  right: 1rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  z-index: calc(var(--z-fixed) + 1);
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.now-playing:hover {
  opacity: 0.75;
}

.now-playing.paused .now-playing__icon,
.now-playing.paused .now-playing__title {
  color: var(--text-dim);
}

.now-playing__icon {
  color: var(--green);
  font-size: 14px;
  flex-shrink: 0;
}

.now-playing__info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  max-width: 160px;
}

.now-playing__title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing__artist {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-fade-enter-active,
.now-playing-fade-leave-active {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.now-playing-fade-enter-from,
.now-playing-fade-leave-to {
  opacity: 0;
  transform: translateY(-6px);
}

@media screen and (max-width: 767px) {
  .now-playing__info {
    max-width: 100px;
  }
  .now-playing {
    top: calc(var(--header-height) + 8px);
    right: 0.5rem;
    height: auto;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-elev);
    box-shadow: 0 4px 14px var(--shadow-color);
  }
}

/* di rentang tablet/laptop kecil (768–1100px), navbar udah rame,
   jadi widget lagu disederhanain jadi icon doang biar gak nabrak menu */
@media screen and (min-width: 768px) and (max-width: 1100px) {
  .now-playing__info {
    display: none;
  }
  .now-playing {
    padding: 0 10px;
  }
}

@media screen and (max-width: 350px) {
  .now-playing__title,
  .now-playing__artist {
    display: none;
  }
}

.chatbot-widget {
  position: fixed;
  right: 1rem;
  bottom: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  font-family: "SF Mono", ui-monospace, "Inter", sans-serif;
}

.chatbot-widget input,
.chatbot-widget button,
.chatbot-widget textarea {
  font-family: inherit;
}

.chatbot-toggle-btn {
  pointer-events: auto;
}

.chatbot-toggle-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #000000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease, border-color 0.3s ease;
  order: 2;
}

.chatbot-toggle-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0.6;
  animation: chatbotPulseRing 2.6s ease-out infinite;
  pointer-events: none;
}

.chatbot-widget.open .chatbot-toggle-btn::before {
  animation: none;
  opacity: 0;
}

@keyframes chatbotPulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.chatbot-toggle-btn:hover {
  transform: scale(1.08) translateY(-2px);
  border-color: var(--green);
}

.chatbot-toggle-btn .chatbot-icon-chat,
.chatbot-toggle-btn .chatbot-icon-close {
  position: absolute;
  transition: opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbot-toggle-btn .chatbot-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.chatbot-widget.open .chatbot-toggle-btn .chatbot-icon-chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.chatbot-widget.open .chatbot-toggle-btn .chatbot-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.chatbot-panel {
  position: relative;
  order: 1;
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 460px;
  max-height: calc(100vh - 120px);
  margin-bottom: 16px;
  background: #000000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  box-shadow: none;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.94);
  transform-origin: bottom right;
  transition: opacity 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.32s;
}

.chatbot-widget.open {
  z-index: 10002;
  pointer-events: auto;
}

.chatbot-widget.open .chatbot-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (min-width: 481px) {
  .chatbot-panel {
    width: 420px;
    height: 620px;
    max-height: calc(100vh - 100px);
  }
}

.chatbot-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #000000;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  flex-shrink: 0;
}

.chatbot-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  animation: spin 4s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.chatbot-header-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.chatbot-header-info strong {
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatbot-status {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chatbot-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: none;
  animation: chatbotStatusBlink 2s ease-in-out infinite;
}

@keyframes chatbotStatusBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.chatbot-music-toggle {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.chatbot-music-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.chatbot-music-toggle.active {
  color: var(--green);
  background: rgba(255, 255, 255, 0.08);
}

.chatbot-menu-wrap {
  flex-shrink: 0;
}

.chatbot-menu-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.chatbot-menu-btn:hover,
.chatbot-menu-wrap.open .chatbot-menu-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.chatbot-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 59px;
  background: rgba(0, 0, 0, 0.192);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 4;
  border-radius: 0 0 20px 20px;
}

.chatbot-panel.menu-open .chatbot-scrim {
  opacity: 1;
  pointer-events: auto;
}

/* ponytail: blur langsung di konten chat saat menu 3 titik dibuka — backdrop-filter di scrim kadang ke-tutup stacking jadi gak rata */
.chatbot-body,
.chatbot-input-bar-wrap {
  transition: filter 0.25s ease;
}

.chatbot-panel.menu-open .chatbot-body,
.chatbot-panel.menu-open .chatbot-input-bar-wrap {
  filter: blur(3px);
  pointer-events: none;
}

.chatbot-menu-dropdown {
  position: absolute;
  top: 100%;
  margin-top: 8px;
  right: 16px;
  left: auto;
  min-width: 180px;
  background: #000000;
  border: 1px solid var(--border);
  box-shadow: none;
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s;
  z-index: 6;
}

.chatbot-menu-wrap.open .chatbot-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-dim) !important;
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  white-space: nowrap;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.chatbot-menu-item i {
  width: 13px;
  font-size: 11px;
  color: var(--text-dim) !important;
}

/* Efek Hover pas kursor di atas menu */
.chatbot-menu-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text) !important;
}

.chatbot-menu-item i {
  width: 13px;
  font-size: 11px;
}

body.light-theme .chatbot-menu-dropdown {
  background: #fff;
}
body.light-theme .chatbot-menu-item:hover {
  background: rgba(0, 0, 0, 0.06) !important;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: rotate(90deg);
}

.chatbot-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 14px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 0;
}

.chatbot-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.chatbot-history-item {
  padding: 6px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

.chatbot-history-item:first-child {
  border-top: none;
  padding-top: 0;
}

.chatbot-msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  font-family: var(--body-font), "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  animation: chatbotMsgIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes chatbotMsgIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chatbot-msg.bot {
  align-self: flex-start;
  background: #000000;
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chatbot-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--green), var(--green-dim));
  color: var(--bg-elev);
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.chatbot-typing {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 11px 14px;
  background: #000000;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  animation: chatbotMsgIn 0.3s ease both;
}

.chatbot-typing-label {
  font-style: normal;
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 6px;
  animation: chatbotTypingBlink 1.2s ease-in-out infinite;
}

.chatbot-status.typing {
  color: var(--green);
}

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

.chatbot-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: chatbotTypingBounce 1.2s ease-in-out infinite;
}

.chatbot-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chatbotTypingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chatbot-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  animation: chatbotMsgIn 0.3s ease both;
}

.chatbot-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--green), var(--green-dim));
  color: var(--bg-elev);
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.chatbot-link-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.chatbot-link-btn i {
  font-size: 12px;
}

.chatbot-playlist-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  animation: chatbotMsgIn 0.3s ease both;
}

.chatbot-playlist-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11.5px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.22s ease;
}

.chatbot-playlist-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatbot-playlist-btn i {
  color: var(--green);
  font-size: 12px;
  flex-shrink: 0;
}

.chatbot-playlist-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--green);
  transform: translateY(-1px);
}

/* InputBar-style: satu box rounded berisi quick replies + textarea + actions */
.chatbot-input-bar-wrap {
  padding: 8px 12px 12px;
  flex-shrink: 0;
}

.chatbot-input-bar {
  border-radius: 16px;
  background: #000000;
  border: 1px solid var(--border);
  box-shadow: none;
  cursor: text;
  overflow: hidden;
}

/* ponytail: grid-rows trick — collapse animatable, box input otomatis menyesuaikan */
.chatbot-quick-collapse {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  transition: grid-template-rows 0.25s ease-out, opacity 0.2s ease,
    transform 0.25s ease-out;
}

.chatbot-quick-collapse.collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(8px);
}

.chatbot-quick-collapse-inner {
  overflow: hidden;
  min-height: 0;
}

.chatbot-quick-inside {
  display: flex;
  gap: 6px;
  padding: 10px 10px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chatbot-quick-inside::-webkit-scrollbar {
  display: none;
}

.chatbot-quick-btn {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.chatbot-quick-btn:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.chatbot-textarea-wrap {
  padding: 10px 14px 0;
  min-height: 44px;
}

.chatbot-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px 8px;
}

.chatbot-actions-left {
  min-width: 0;
  padding-left: 6px;
}

.chatbot-hint {
  font-size: 10px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Panel chat putih di light theme — bubble chat tetap abu biar kontras */
body.light-theme .chatbot-panel,
body.light-theme .chatbot-header {
  background: #fff;
}

body.light-theme .chatbot-input-bar {
  background: #fff;
}

body.light-theme .chatbot-msg.bot,
body.light-theme .chatbot-typing,
body.light-theme .chatbot-menu-dropdown {
  background: var(--bg-elev-2);
}

body.light-theme .chatbot-toggle-btn {
  background: var(--bg-elev-2);
}

.chatbot-input {
  width: 100%;
  resize: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.6;
  outline: none;
  max-height: 120px;
  font-family: inherit;
}

.chatbot-input:focus {
  border-color: transparent;
}

.chatbot-input::placeholder {
  color: var(--text-dim);
}

.chatbot-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.chatbot-send-btn.active {
  background: linear-gradient(135deg, var(--green), var(--green-dim));
  border-color: transparent;
  color: var(--bg-elev);
}

.chatbot-send-btn:hover {
  transform: scale(1.1);
}

.chatbot-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 480px) {
  .chatbot-widget {
    right: 12px;
    bottom: 12px;
  }
  .chatbot-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 150px);
    margin-bottom: 12px;
  }
  .chatbot-toggle-btn {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }
}

/* Class pembantu untuk mengunci scroll body di awal */
body.overflow-hidden {
  overflow: hidden !important;
  height: 100vh !important;
}
