/* Base styles */
:root {
  /* Professional Dark Theme (Default) */
  --bg-top: #0b1120;
  --bg-bottom: #020617;
  --bg: #0b1120;
  --header-bg: rgba(11, 17, 32, 0.65);
  --border: rgba(255, 255, 255, 0.06);
  --card: rgba(30, 41, 59, 0.4);
  --surface: rgba(30, 41, 59, 0.6);
  --surface-2: rgba(51, 65, 85, 0.5);
  --muted: rgba(255, 255, 255, 0.05);
  --accent: #3b82f6;
  --text: #f8fafc;
  --sub: #94a3b8;
  --ring: rgba(59, 130, 246, 0.4);
  --footer-bg-start: rgba(15, 23, 42, 0.95);
  --footer-bg-end: #0b1120;
  --footer-text: #94a3b8;
  --footer-border: rgba(255, 255, 255, 0.05);
  --footer-shadow: 0 -1px 20px rgba(0, 0, 0, 0.3);

  --primary-color: #3b82f6;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --text-color: #f8fafc;
  --light-blue: #60a5fa;

  --card-solid: #0f172a;
  --card-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.4);
  --card-hover-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
  --bezier: cubic-bezier(0.16, 1, 0.3, 1);
  --header-bg-scrolled: rgba(11, 17, 32, 0.75);
  --header-shadow-scrolled:
    0 10px 40px rgba(0, 0, 0, 0.3), inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 1px 0 rgba(59, 130, 246, 0.1);
  --active-menu-text: var(--text-color);
  --active-menu-bg: rgba(255, 255, 255, 0.08);
  --active-menu-border: rgba(255, 255, 255, 0.12);
  --active-menu-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  --profile-filter: sepia(0.4) hue-rotate(180deg) saturate(1.2) brightness(0.8)
    contrast(1.1);
  --profile-filter-hover: sepia(0) hue-rotate(0deg) saturate(1) brightness(1.05)
    contrast(1.05);
}

/* Light theme */
:root[data-theme="light"] {
  --bg-top: #f8fafc;
  --bg-bottom: #f1f5f9;
  --bg: #f8fafc;
  --header-bg: rgba(255, 255, 255, 0.85);
  --border: rgba(15, 23, 42, 0.08);
  --card: rgba(255, 255, 255, 0.7);
  --surface: rgba(255, 255, 255, 0.9);
  --surface-2: rgba(241, 245, 249, 0.8);
  --muted: #e2e8f0;
  --accent: #2563eb;
  --text: #0f172a;
  --sub: #475569;
  --ring: rgba(37, 99, 235, 0.3);
  --footer-bg-start: rgba(255, 255, 255, 0.95);
  --footer-bg-end: #f8fafc;
  --footer-text: #475569;
  --footer-border: rgba(15, 23, 42, 0.05);
  --footer-shadow: 0 -1px 15px rgba(0, 0, 0, 0.03);

  --primary-color: #2563eb;
  --secondary-color: #4f46e5;
  --accent-color: #0891b2;
  --text-color: #0f172a;
  --light-blue: #3b82f6;

  --card-solid: #ffffff;
  --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
  --card-hover-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.15);
  --header-bg-scrolled: rgba(255, 255, 255, 0.85);
  --header-shadow-scrolled:
    0 10px 40px rgba(15, 23, 42, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 1px 0 rgba(37, 99, 235, 0.15);
  --active-menu-text: var(--text-color);
  --active-menu-bg: rgba(0, 0, 0, 0.06);
  --active-menu-border: rgba(0, 0, 0, 0.1);
  --active-menu-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
  --profile-filter: sepia(0.1) hue-rotate(180deg) saturate(1.1) brightness(0.95)
    contrast(1.05);
  --profile-filter-hover: sepia(0) hue-rotate(0deg) saturate(1) brightness(1) contrast(1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%; /* Diubah untuk stabilitas sticky header di beberapa browser */
}

body {
  margin: 0;
  background-color: var(--bg);
  font-family:
    "Poppins",
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 0.4s ease,
    opacity 0.35s ease-in-out;
  letter-spacing: -0.01em;
  line-height: 1.6;
  transform-origin: center top;
}

body.page-fade-out
  > :not(#spa-loader):not(script):not(style):not(#tailwind-toast):not(#loader) {
  opacity: 0;
  transform: scale(0.98) translateY(-10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s var(--bezier);
}

body.page-fade-in
  > :not(#spa-loader):not(script):not(style):not(#tailwind-toast):not(#loader) {
  animation: pageMorph 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageMorph {
  0% {
    opacity: 0;
    transform: scale(1.02) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

body.lang-morphing {
  animation: langMorph 0.6s ease-in-out forwards;
}

@keyframes langMorph {
  0% {
    filter: blur(0px);
    opacity: 1;
  }
  50% {
    filter: blur(5px);
    opacity: 0;
  }
  100% {
    filter: blur(0px);
    opacity: 1;
  }
}

/* Matikan efek blur kaca saat memudar agar transisi tidak membuat HP patah-patah/lag */
body.page-fade-out .header,
body.page-fade-out .card,
body.page-fade-out .chat-panel {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Global Film Grain Texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99998; /* Di bawah custom cursor */
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
  opacity: 0.025;
  transform: translateZ(0);
}
:root[data-theme="light"] body::after {
  opacity: 0.04;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  transform: translateZ(0);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(139, 92, 246, 0.08) 0px, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    32px 32px,
    32px 32px;
  transition: background-color 0.4s ease;
  pointer-events: none;
  will-change: transform;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  letter-spacing: -0.03em;
}

p {
  text-wrap: pretty;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
}

.header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color),
    transparent
  );
  opacity: 0.5;
  background-size: 200% 100%;
  animation: borderFlow 6s ease-in-out infinite;
}

@keyframes borderFlow {
  0%,
  100% {
    background-position: 0% 0;
  }
  50% {
    background-position: 100% 0;
  }
}

.nav > .brand {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--text-color);
  transition: transform 0.2s ease;
  z-index: 150;
}

.brand span {
  background: linear-gradient(
    to right,
    var(--text-color) 20%,
    var(--primary-color) 50%,
    var(--text-color) 80%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

@media (hover: hover) {
  .brand:hover {
    transform: translateY(-50%) scale(1.02);
  }
}

.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-image: url("../man.webp");
  background-size: cover;
  background-position: center;
  outline: 2px solid transparent;
  box-shadow:
    0 4px 12px rgba(59, 130, 246, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.3s var(--bezier);
  position: relative;
}

.brand .logo::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background-color: #10b981; /* Emerald Green */
  border: 2px solid var(--header-bg);
  border-radius: 50%;
  animation: statusPulse 2s infinite;
  z-index: 2;
  transition: border-color 0.5s var(--bezier);
}

.brand .logo::before {
  content: "Online";
  position: absolute;
  top: auto;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #020617;
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--bezier);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@media (hover: hover) {
  .brand:hover .logo {
    outline-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: scale(1.05) rotate(-2deg);
  }

  .brand:hover .logo::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.menu {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
}

.menu a {
  position: relative;
  padding: 8px 20px;
  border-radius: 20px;
  color: var(--sub);
  font-weight: 500;
  font-size: 15.5px;
  border: 1px solid transparent;
  transition: all 0.5s var(--bezier);
  z-index: 1;
}

.menu a:hover {
  color: var(--text-color);
  transform: translateY(-1px);
}

.menu a.active {
  font-weight: 600;
  color: var(--active-menu-text);
  transform: translateY(-1px);
}

.menu-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  background: var(--active-menu-bg);
  border: 1px solid var(--active-menu-border);
  box-shadow: var(--active-menu-shadow);
  border-radius: 20px;
  z-index: 0;
  transition:
    transform 0.4s var(--bezier),
    width 0.4s var(--bezier);
  pointer-events: none;
  z-index: 10;
  will-change: transform, width;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

/* Cards & Glassmorphism */
.card {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition:
    transform 0.6s var(--bezier),
    box-shadow 0.5s ease,
    border-color 0.5s ease;
  overflow: hidden;
}

.card:hover {
  transform: translate3d(0, -8px, 0);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Card Spotlight Hover Effect */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s var(--bezier);
  background: radial-gradient(
    400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  pointer-events: none;
  z-index: 3;
}
:root[data-theme="light"] .card::after {
  background: radial-gradient(
    400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(0, 0, 0, 0.03),
    transparent 40%
  );
}
.card:hover::after {
  opacity: 1;
}

.card .p,
.card.p {
  padding: 40px;
}

.h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--sub);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-color);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.5s var(--bezier);
}

.btn:hover {
  background: var(--surface-2);
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-weight: 600;
}

.btn.primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn.primary:hover::before {
  left: 100%;
}

.btn.primary:hover {
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.5);
  filter: brightness(1.15);
  transform: translate3d(0, -3px, 0);
}

.btn.orange {
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.btn.orange:hover {
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.4);
  filter: brightness(1.1);
}

.btn .icn {
  width: 18px;
  height: 18px;
}

/* Premium Button Arrow Animation */
.btn .arrow-icn {
  transition: transform 0.4s var(--bezier);
}
.btn:hover .arrow-icn {
  transform: translateX(4px);
}

/* Sections */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.7;
}

.side-card h3,
.side-card h4 {
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
}

.side-card ul {
  padding-left: 20px;
  margin: 0;
}

.side-card li {
  margin-bottom: 12px;
}

/* Lists */
.list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list .item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.5s var(--bezier);
}

.list .item:hover {
  transform: translate3d(4px, 0, 0);
  border-color: rgba(59, 130, 246, 0.3);
}

.list .item h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text-color);
}

.list .item p {
  margin: 0;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.6;
}

/* Search Form Sticky & Transitions */
.search-container {
  position: sticky;
  top: 84px;
  z-index: 120;
  transition: transform 0.4s var(--bezier);
}
.search-container svg {
  transition:
    color 0.4s ease,
    transform 0.4s var(--bezier) !important;
}
.search-container:focus-within svg {
  color: var(--primary-color) !important;
  transform: translateY(-50%) scale(1.15) !important;
}
.search-container .input:focus {
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25) !important;
}
.search-container .input {
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
:root[data-theme="light"] .search-container .input {
  background: var(--header-bg-scrolled);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Premium Checklist */
.premium-checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.premium-checklist li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface-2);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition:
    transform 0.3s var(--bezier),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.premium-checklist li:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

/* Contact / Form */
.form-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}

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

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

.input,
.textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-color);
  font-family: inherit;
  font-size: 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

:root:not([data-theme="light"]) .input,
:root:not([data-theme="light"]) .textarea {
  background: rgba(0, 0, 0, 0.2);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow:
    0 0 0 3px var(--ring),
    0 0 15px rgba(59, 130, 246, 0.3);
}

/* Real-time Email Validation */
.input:focus.valid-input {
  border-color: #10b981;
  box-shadow:
    0 0 0 3px rgba(16, 185, 129, 0.2),
    0 0 15px rgba(16, 185, 129, 0.3);
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%2310b981" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 18px;
}
.input:focus.invalid-input {
  border-color: #ef4444;
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.2),
    0 0 15px rgba(239, 68, 68, 0.3);
}

/* Form Error Animation */
.error-shake {
  animation: formShake 0.4s ease-in-out;
  border-color: #ef4444 !important;
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.2),
    0 0 15px rgba(239, 68, 68, 0.2) !important;
}

@keyframes formShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

/* Footer */
.footer {
  position: relative;
  margin-top: 80px;
  padding: 60px 0 40px;
  border-top: none;
  background: radial-gradient(
    circle at 50% 100%,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 60%
  );
  color: var(--sub);
  text-align: center;
  font-size: 14px;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color),
    transparent
  );
  opacity: 0.6;
  background-size: 200% 100%;
  animation: borderFlow 6s ease-in-out infinite;
}

.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 1px;
  box-shadow: 0 0 20px 2px var(--primary-color);
  opacity: 0.5;
}

.footer-link {
  color: var(--sub);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.4s var(--bezier);
  display: inline-block;
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Utilities */
.sep {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-text {
  background: linear-gradient(
    to right,
    var(--text-color),
    var(--primary-color),
    var(--secondary-color),
    var(--text-color)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: gradientFlow 8s ease-in-out infinite;
}

/* Typewriter Cursor */
.tw-cursor {
  display: inline-block;
  font-weight: 800;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: twBlink 1s step-end infinite;
  margin-left: 2px;
  vertical-align: baseline;
}

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

.kicker {
  color: var(--light-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  margin-bottom: 16px;
  display: inline-flex;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 99px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.actions.right {
  justify-content: flex-end;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.98);
  transition:
    opacity 1.2s var(--bezier),
    transform 1.2s var(--bezier);
  will-change: opacity, transform;
}

.reveal.show {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Staggered reveal for lists */
.stagger-reveal > .reveal {
  transition-delay: calc(var(--stagger-index, 0) * 80ms);
}

/* Cover / Gallery Hero */
.hero-cover {
  position: relative;
  min-height: 400px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--border);
  transform: translateZ(0); /* Hardware accelerate layering */
}

.hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0.95));
  z-index: 1;
  pointer-events: none;
}

.hero-cover .bg {
  position: absolute;
  inset: 0;
  --parallax-y: 0px;
  background-size: cover;
  background-position: center;
  will-change: transform;
  animation: ambientZoom 25s ease-in-out infinite alternate;
}

@keyframes ambientZoom {
  0% {
    transform: translate3d(0, var(--parallax-y), 0) scale(1);
  }
  100% {
    transform: translate3d(0, var(--parallax-y), 0) scale(1.15);
  }
}

.hero-cover .inner {
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 800px;
}

.hero-cover .title {
  font-size: clamp(36px, 5vw, 56px);
  color: #ffffff;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.hero-cover .subtitle {
  color: #e0f2fe;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 16px;
  display: inline-block;
  padding: 8px 20px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: neonFlicker 5s infinite;
}

@keyframes neonFlicker {
  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  20%,
  24%,
  55% {
    opacity: 0.6;
    box-shadow: none;
  }
}

.hero-cover .desc {
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  line-height: 1.8;
  margin-top: 16px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

/* WA Bar / Extra Bar */
.wa-bar {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(12px);
}

.wa-bar .row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.wa-bar .label {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.wa-bar .inline {
  display: flex;
  gap: 12px;
  flex: 1;
  align-items: center;
}

/* Chat Fab */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 160;
  width: 56px;
  height: 56px;
  border-radius: 28px;
  border: none;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
  cursor: pointer;
  transition:
    transform 0.5s var(--bezier),
    box-shadow 0.4s ease;
}

.chat-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  animation: fabPulse 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes fabPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.chat-fab:hover {
  transform: translate3d(0, -4px, 0) scale(1.05);
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.5);
}

.chat-fab:hover::after {
  animation: none;
  opacity: 0;
}

.chat-fab svg {
  width: 24px;
  height: 24px;
}

/* Chat Panel */
.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: min(400px, 90vw);
  height: 70vh;
  max-height: 700px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  z-index: 160;
  display: flex;
  flex-direction: column;
}

.chat-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.02);
}

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

.chat-clear {
  background: transparent;
  border: none;
  color: var(--sub);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.chat-clear:hover {
  color: #ef4444; /* Warna merah premium saat hover */
}

.chat-close {
  background: transparent;
  border: none;
  color: var(--sub);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.chat-close:hover {
  color: var(--text-color);
}

.chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  max-width: 75%;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.4;
  animation: msgBounce 0.5s var(--bezier) forwards;
  will-change: transform, opacity;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

@keyframes msgBounce {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.msg.bot {
  background: #262628;
  color: var(--text-color);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  transform-origin: bottom left;
}

:root[data-theme="light"] .msg.bot {
  background: #e9e9eb;
  color: #000000;
}

/* AI Typing Indicator Animation */
.typing-dots span {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  margin: 0 2px;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* AI Code Blocks & Copy Button */
.msg pre {
  position: relative;
  background: #0f172a;
  color: #e2e8f0;
  padding: 38px 14px 14px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px;
  margin: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

.msg pre::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444; /* Mac Red */
  box-shadow:
    16px 0 0 #f59e0b,
    32px 0 0 #10b981; /* Mac Yellow & Green */
}

.msg code {
  background: rgba(0, 0, 0, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 13px;
  color: #93c5fd;
}

.msg pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sub);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s var(--bezier);
  font-family: inherit;
}

.code-copy-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.msg-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sub);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s var(--bezier);
  align-self: flex-start;
  width: max-content;
}

.msg-copy:hover {
  color: var(--text-color);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.msg-copy svg {
  transition: transform 0.3s var(--bezier);
}

.msg-copy:hover svg {
  transform: scale(1.1);
}

/* Chat body custom scrollbar */
.chat-body::-webkit-scrollbar {
  width: 6px;
}
.chat-body::-webkit-scrollbar-track {
  background: transparent;
}
.chat-body::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 3px;
}
.chat-body::-webkit-scrollbar-thumb:hover {
  background: var(--sub);
}

.msg.user {
  background: linear-gradient(135deg, #007aff, #0056d6);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  transform-origin: bottom right;
}

.chat-form {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.chat-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-color);
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  border-color: var(--primary-color);
}

.chat-send {
  height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  border: none;
  background: #007aff;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send .spinner {
  display: none;
}
.chat-send.loading .btn-text {
  display: none;
}
.chat-send.loading .spinner {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.chat-send:hover {
  filter: brightness(1.1);
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader .panel {
  text-align: center;
}

.loader .logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background-image: url("../man.webp");
  background-size: cover;
  background-position: center;
  margin: 0 auto 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite ease-in-out;
}

.loader .title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.loader .subtitle {
  color: var(--sub);
  font-size: 14px;
}

.loader .progress {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
}

.loader .progress .bar {
  height: 100%;
  background: var(--primary-color);
  width: 0;
  transition: width 0.2s ease;
}

.loader .particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 25px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(59, 130, 246, 0.8),
    rgba(255, 255, 255, 0.9)
  );
  border-radius: 2px;
  opacity: 0;
  animation: fallStar linear infinite;
  transform: rotate(25deg);
  will-change: transform, opacity;
}

@keyframes fallStar {
  0% {
    transform: translateY(-50px) rotate(25deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(25deg);
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Profile Image Hover Animation */
.profile-img-hover {
  transition:
    transform 0.4s var(--bezier),
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    filter 0.4s ease;
  will-change: transform, filter;
  filter: var(--profile-filter);
}

.profile-img-hover:hover {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
  border-color: var(--primary-color) !important;
  filter: var(--profile-filter-hover);
}

@media (hover: none) {
  .profile-img-hover:active {
    transform: scale(0.95);
    filter: var(--profile-filter-hover);
  }
}

/* Tech Stack Icons */
.tech-stack-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  perspective: 800px;
  flex-wrap: wrap;
}
.tech-stack-icons svg {
  transition:
    transform 0.6s var(--bezier),
    filter 0.4s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  will-change: transform;
}
.tech-stack-icons svg:hover {
  transform: translateY(-4px) scale(1.15) rotateY(360deg);
  filter: drop-shadow(0 8px 12px currentColor);
}

/* Gooey Morphing Text for Skills Page */
.skills-morph-container {
  position: relative;
  width: 100%;
  height: 150px;
  margin-bottom: 40px;
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid var(--border);
  animation: skillBorderMorph 27s infinite cubic-bezier(0.4, 0, 0.2, 1);
  will-change: border-color, box-shadow;
}

.skills-morph-text {
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 2;
}

.skills-morph-text .word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: skillMorph 27s infinite cubic-bezier(0.4, 0, 0.2, 1);
  will-change: filter, opacity, transform;
}

.skills-morph-text .word:nth-child(1) {
  animation-delay: -24s;
  background-image: linear-gradient(135deg, #3b82f6, #93c5fd);
}
.skills-morph-text .word:nth-child(2) {
  animation-delay: -21s;
  background-image: linear-gradient(135deg, #10b981, #6ee7b7);
}
.skills-morph-text .word:nth-child(3) {
  animation-delay: -18s;
  background-image: linear-gradient(135deg, #f59e0b, #fcd34d);
}
.skills-morph-text .word:nth-child(4) {
  animation-delay: -15s;
  background-image: linear-gradient(135deg, #ef4444, #fca5a5);
}
.skills-morph-text .word:nth-child(5) {
  animation-delay: -12s;
  background-image: linear-gradient(135deg, #8b5cf6, #c4b5fd);
}
.skills-morph-text .word:nth-child(6) {
  animation-delay: -9s;
  background-image: linear-gradient(135deg, #06b6d4, #67e8f9);
}
.skills-morph-text .word:nth-child(7) {
  animation-delay: -6s;
  background-image: linear-gradient(135deg, #0ea5e9, #7dd3fc);
}
.skills-morph-text .word:nth-child(8) {
  animation-delay: -3s;
  background-image: linear-gradient(135deg, #22c55e, #86efac);
}
.skills-morph-text .word:nth-child(9) {
  animation-delay: 0s;
  background-image: linear-gradient(135deg, #d946ef, #f5d0fe);
}

@keyframes skillMorph {
  0%,
  6% {
    filter: blur(0px);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  11.11%,
  88.88% {
    filter: blur(8px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    filter: blur(0px);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes skillBorderMorph {
  0%,
  100% {
    border-color: rgba(217, 70, 239, 0.4);
    box-shadow: 0 4px 24px rgba(217, 70, 239, 0.15);
  }
  11.11% {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.15);
  }
  22.22% {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.15);
  }
  33.33% {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.15);
  }
  44.44% {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 24px rgba(239, 68, 68, 0.15);
  }
  55.55% {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.15);
  }
  66.66% {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 4px 24px rgba(6, 182, 212, 0.15);
  }
  77.77% {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 4px 24px rgba(14, 165, 233, 0.15);
  }
  88.88% {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 4px 24px rgba(34, 197, 94, 0.15);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    justify-content: flex-start;
  }
  .nav > .brand {
    position: relative;
    left: 0;
    transform: none;
  }
  .menu {
    /* Ultra-Premium Side Drawer Menu */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 85vw);
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 90px 20px 40px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.7s ease,
      visibility 0.7s;
    gap: 6px;
    z-index: 130; /* Di bawah header */
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  }

  /* Menu Overlay */
  .menu::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: 100vw;
    background: rgba(2, 6, 23, 0.75);
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
    z-index: -1;
  }

  /* NAVIGATION Kicker inside Menu */
  .menu::after {
    content: "NAVIGATION";
    position: absolute;
    top: 40px;
    left: 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--sub);
    opacity: 0.5;
  }

  html[lang="id"] .menu::after {
    content: "NAVIGASI";
  }

  :root[data-theme="light"] .menu {
    background: rgba(255, 255, 255, 0.85);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: -20px 0 60px rgba(15, 23, 42, 0.1);
  }
  :root[data-theme="light"] .menu::before {
    background: rgba(15, 23, 42, 0.3);
  }

  .menu.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .menu.open::before {
    opacity: 1;
    pointer-events: auto;
  }

  .menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 16px 20px;
    color: var(--sub);
    opacity: 0;
    transform: translateX(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
  }

  /* Chevron Arrow for premium feel */
  .menu a::after {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%2394a3b8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"><path d="M9 18l6-6-6-6"/></svg>');
    background-size: cover;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  :root[data-theme="light"] .menu a {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  :root[data-theme="light"] .menu a::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%23475569" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"><path d="M9 18l6-6-6-6"/></svg>');
  }

  .menu.open a:active {
    transform: scale(0.98) !important;
    background: rgba(255, 255, 255, 0.05);
  }
  :root[data-theme="light"] .menu.open a:active {
    background: rgba(0, 0, 0, 0.05);
  }

  .menu.open a {
    animation: menuItemFadeRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .menu.open a:nth-child(1) {
    animation-delay: 0.1s;
  }
  .menu.open a:nth-child(2) {
    animation-delay: 0.15s;
  }
  .menu.open a:nth-child(3) {
    animation-delay: 0.2s;
  }
  .menu.open a:nth-child(4) {
    animation-delay: 0.25s;
  }
  .menu.open a:nth-child(5) {
    animation-delay: 0.3s;
  }
  .menu.open a:nth-child(6) {
    animation-delay: 0.35s;
  }

  @keyframes menuItemFadeRight {
    0% {
      opacity: 0;
      transform: translateX(30px) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }

  .menu a:last-child {
    margin-bottom: 0;
  }

  .menu a:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.03);
  }
  :root[data-theme="light"] .menu a:hover {
    background: rgba(0, 0, 0, 0.03);
  }

  .menu a:hover::after,
  .menu a.active::after {
    opacity: 1;
    transform: translateX(0);
  }
  .menu a.active::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%233b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"><path d="M9 18l6-6-6-6"/></svg>');
  }
  :root[data-theme="light"] .menu a.active::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%232563eb" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"><path d="M9 18l6-6-6-6"/></svg>');
  }

  .menu a.active {
    color: var(--text-color);
    font-weight: 600;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, transparent 100%);
    border-color: transparent;
    box-shadow: inset 4px 0 0 var(--primary-color);
    transform: none;
  }
  :root[data-theme="light"] .menu a.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, transparent 100%);
    box-shadow: inset 4px 0 0 var(--primary-color);
  }
  .hamburger {
    z-index: 150; /* Ensure hamburger is above the menu overlay */
  }
  .menu-indicator {
    display: none;
  }
  .chat-fab,
  .scroll-top {
    bottom: 24px;
  }
  .chat-panel {
    bottom: 90px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .header {
    top: 0;
    border-bottom: 1px solid var(--border);
  }

  .actions,
  .wa-bar .inline {
    flex-direction: column;
    width: 100%;
  }
  .actions .btn,
  .wa-bar .inline .btn {
    width: 100%;
  }
  .wa-bar .row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand .logo {
    width: 30px;
    height: 30px;
  }
  .brand .logo::before {
    display: none; /* Sembunyikan tooltip online di layar super kecil agar tidak kepotong */
  }

  .h1 {
    font-size: 28px;
  }
  .card .p,
  .card.p,
  .side-card {
    padding: 24px;
  }
  .chat-panel {
    right: 24px;
    left: 24px;
    width: auto;
  }
}

/* Mobile & Touch Device Optimizations */
@media (max-width: 768px) {
  .card {
    background: var(--card);
    backdrop-filter: blur(
      8px
    ); /* Blur lebih ringan namun tetap mempertahankan efek kaca premium */
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
  }
  body::after {
    display: none; /* Matikan tekstur Film Grain di HP agar GPU tidak panas */
  }
  body::before {
    background-image:
      radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 45%),
      radial-gradient(circle at 85% 100%, rgba(139, 92, 246, 0.05) 0px, transparent 45%);
  }
  .header::before {
    display: none;
  }
  .menu-indicator {
    display: none;
  }
}

/* Prevent glitchy hover effects on touch devices */
@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: var(--card-shadow);
    border-color: var(--border);
  }
  /* Interaksi Sentuhan (Taktil) untuk HP menggantikan Hover */
  .card:active {
    transform: scale(0.98);
    border-color: rgba(255, 255, 255, 0.15);
    transition:
      transform 0.1s ease,
      border-color 0.1s ease;
  }
  .btn.primary:hover {
    transform: none;
    filter: none;
  }

  .btn.primary:hover::before {
    left: -100%;
  }

  .btn:active,
  .btn.primary:active {
    transform: scale(0.96) translate3d(0, 0, 0);
    transition: transform 0.1s ease;
  }
  .btn.primary:active {
    filter: brightness(1.1);
  }
  .brand:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
  }
}

/* SPA Loader Native CSS */
.spa-loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.3s ease-out;
  opacity: 0;
  pointer-events: none;
}
.spa-loader-container.show {
  opacity: 1;
}
.spa-loader-glow {
  position: absolute;
  inset: 0;
  background: var(--primary-color);
  filter: blur(40px);
  opacity: 0.4;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.spa-loader-img {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: pulse 2s infinite;
}
.spa-loader-dots {
  margin-top: 24px;
  display: flex;
  gap: 8px;
}
.spa-loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: spaBounce 1s infinite alternate;
}
.spa-loader-dot:nth-child(2) {
  animation-delay: 0.15s;
}
.spa-loader-dot:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes spaBounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}
