:root {
  --primary-color: #3b82f6;
  --bg-color: #ffffff;
  --text-color: #1f2937;
  --card-bg: #f9fafb;
  --border-color: #e5e7eb;
}

html[data-theme="dark"] {
  --primary-color: #60a5fa;
  --bg-color: #111827;
  --text-color: #f9fafb;
  --card-bg: #1f2937;
  --border-color: #374151;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-bottom: 64px;
  color: var(--text-color);
  font-family: "Inter", sans-serif;
  background-color: var(--bg-color);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  touch-action: manipulation;
}

input,
button {
  font-size: 16px;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* ===== FILTER BUTTONS - FINAL ===== */
.filter-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 0 !important;
  color: white !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* SAIZ LOGO ICON CAPSULE*/
.filter-btn i {
  color: white !important;
  font-size: 20px !important;
}

/* SAIZ TEKS BUTANG CAPSULE*/
.filter-btn span {
  /*background: rgba(255, 255, 255, 0.2) !important;*/
  color: white !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
}

/* ACTIVE BUTTON MODE */
.filter-btn.active {
  transform: scale(1.05) !important;
  /*box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3) !important;*/
  
}

.filter-btn:hover:not(.active) {
  filter: brightness(105%);
  transform: translateY(-2px);
}

/* ===== DARK MODE - FILTER BUTTONS (WARNA KEKAL) ===== */
html[data-theme="dark"] .filter-btn {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

/* TEKS BUTANG CAPSULE DARKMOOD*/
html[data-theme="dark"] .filter-btn span {
  background: /*rgba(255, 255, 255, 0.15)*/ none !important;
  color: white !important;
  font-size: 14px !important;
}

/* ACTIVE MODE BUTTON */
html[data-theme="dark"] .filter-btn.active {
  transform: scale(1.05) !important;
  /*box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3) !important;*/
  }

/* ICON LOGO CAPSULE BUTTON DARKMOOD */
html[data-theme="dark"] .filter-btn i {
  color: white !important;
  font-size: 20px !important;
}

/* ===== CHAT CONTAINER ===== */
.chat-container {
  height: 300px;
  overflow-x: hidden !important;
  overflow-y: auto;
  word-break: break-word;
}

/* ===== SHARE BUTTON ===== */
.share-btn {
  display: none;
  width: 2.3rem !important;
  height: 2.3rem !important;
  font-size: 18px !important;
  position: ;center !important;
  padding: 12px 9px 12px;
  font-style: bold;

  }

.share-btn:hover{
  transform: scale(1.1);
  background-color: orange;
  color: white;
}

html[data-theme="dark"] #share-btn:hover{
    background: linear-gradient(135deg, magenta, cyan) !important;
    
}

/* ===== MOBILE MENU ===== */
#mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#linktree-link {
  border-left: 3px solid turquoise !important;
  border-right: 3px solid turquoise !important;
}

#icon-linktree-link{
  color: turquoise;
}

#mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu {
  position: fixed;
  top: 0;
  right: 100px;
  bottom: 0;
  left: 0;
  z-index: 210;
  padding: 16px 16px 80px;
  overflow-y: auto;
  background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.45), transparent 35%),
    linear-gradient(135deg, #172554 0%, #1e3a8a 45%, #581c87 100%);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.active {
  transform: translateX(0);
}

#mobile-menu .menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 1px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#mobile-menu .menu-header .logo-text {
  color: white;
  font-size: 18px;
  font-weight: 700;
}

#mobile-menu .close-btn {
  padding: 4px 8px;
  color: white;
  font-size: 18px;
  background: none;
  border: 0;
  cursor: pointer;
}

#mobile-menu .menu-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#mobile-menu a.menu-link {
  display: flex;
  align-items: center;
  min-height: 10px;
  margin-bottom: 15px;
  padding: 10px;
  color: white !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  transition: all 0.25s ease;
}

#mobile-menu a.menu-link:hover,
#mobile-menu a.menu-link:active {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.03);
}

#mobile-menu a.menu-link i {
  flex-shrink: 0;
  margin-right: 12px;
  font-size: 24px;
}

#mobile-menu a.menu-link span {
  line-height: 1.3;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease-in-out;
  will-change: opacity, transform;
}

/* ===== BUSINESS CARD ===== */
#Business-Card {
  scroll-margin-top: 100px;
  padding-top: 60px;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 1px;
}

.share,
.pdf {
  padding: 10px;
  color: white;
  font-weight: bold;
  border: 0;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.share {
  background: #ce1126;
}

.pdf {
  background: #d4af37;
}

.share:hover,
.pdf:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* ===== SCROLLBAR ===== */
.custom-scrollbar::-webkit-scrollbar,
.overflow-x-auto::-webkit-scrollbar {
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track,
.overflow-x-auto::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb,
.overflow-x-auto::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover,
.overflow-x-auto::-webkit-scrollbar-thumb:hover {
  background: #1d4ed8;
}

/* ===== NAVIGATION ===== */
nav {
  min-height: 64px;
  padding-top: env(safe-area-inset-top);
}

nav img {
  max-height: 52px;
}

/* ===== TABS ===== */
.tab-content {
  display: none;
}

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

/* ===== BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: 64px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(to right, #f1f5f9, #e2e8f0, #cbd5e1);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
}

.mobile-bottom-nav a,
.mobile-bottom-nav button {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mobile-bottom-nav i {
  font-size: 20px;
}

.mobile-bottom-nav .active {
  color: darkorange;
}

.mobile-bottom-nav .business-card {
  color: #d2691e;
}

.mobile-bottom-nav .menu-button {
  position: relative;
  color: #f97316;
}

.mobile-bottom-nav .menu-button .active-menu {
  color: #1e3a8a !important;
}

.mobile-bottom-nav .chatbot-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* ===== CHATBOT ===== */
#chatbot-toggle {
  position: fixed;
  right: 16px;
  bottom: 70px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: white;
  font-size: 16px;
  background: linear-gradient(135deg, cyan, #2563eb, purple);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

#chatbot-toggle:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

#chatbot-window {
  position: fixed;
  right: 20px;
  bottom: 85px;
  z-index: 50;
  width: 320px;
  overflow: hidden;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#chatbot-window.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

#chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 300px;
  padding: 16px;
  overflow-y: auto;
}

#chatbot-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 24px 0 0 24px;
  outline: none;
}

#chatbot-input:focus {
  border-color: #2563eb;
}

#chatbot-send {
  padding: 0 20px;
  color: white;
  background: #2563eb;
  border: 0;
  border-radius: 0 24px 24px 0;
  cursor: pointer;
}

#chatbot-send:hover {
  background: #1d4ed8;
}

#chatbot-speak {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 4px 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ===== DARK MODE - UMUM ===== */
html[data-theme="dark"],
html[data-theme="dark"] body {
  color: #f9fafb !important;
  background-color: #111827 !important;
}

html[data-theme="dark"] nav {
  background: linear-gradient(to right, #1e293b, #334155, #475569) !important;
  border-color: #475569 !important;
}

html[data-theme="dark"] main,
html[data-theme="dark"] .tab-content,
html[data-theme="dark"] section.bg-white,
html[data-theme="dark"] section.bg-gray-50,
html[data-theme="dark"] section.bg-slate-50 {
  background-color: #111827 !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .bg-gray-100,
html[data-theme="dark"] .bg-slate-50 {
  background-color: #1f2937 !important;
}

html[data-theme="dark"] .text-gray-800,
html[data-theme="dark"] .text-gray-700,
html[data-theme="dark"] .text-gray-600 {
  color: #e5e7eb !important;
}

html[data-theme="dark"] .text-gray-500 {
  color: #9ca3af !important;
}

/* TEKS TAJUK MENU */
html[data-theme="dark"] .text-blue-800,
html[data-theme="dark"] .text-blue-600 {
  background: linear-gradient(90deg, #00d2ff, #3a7bd5) !important;

-webkit-background-clip: text !important;
-webkit-text-fill-color: transparent !important;
background-clip: text !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea {
  color: #f9fafb !important;
  background-color: #1f2937 !important;
  border-color: #4b5563 !important;
}

html[data-theme="dark"] input::placeholder {
  color: #9ca3af !important;
}

html[data-theme="dark"] footer {
  background-color: #030712 !important;
}

html[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(17, 24, 39, 0.96);
  border-color: #374151;
}

/* ===== DARK MODE - CONTACT ===== */
html[data-theme="dark"] #contact-tab #contact-buttons h2,
html[data-theme="dark"] #contact-tab #contact-buttons h2.text-blue-800,
html[data-theme="dark"] #contact-tab #contact-buttons h2 i {
  color: #93c5fd !important;
}

/* ===== DARK MODE - ABOUT ===== */
html[data-theme="dark"] #home-tab > section:nth-of-type(5) {
  color: #f9fafb !important;
  background-color: #111827 !important;
}

html[data-theme="dark"] #home-tab > section:nth-of-type(5) > div > div {
  color: #f9fafb !important;
  background: linear-gradient(160deg, #1A2A4A, #0A192F) !important;
}

html[data-theme="dark"] #home-tab > section:nth-of-type(5) h2,
html[data-theme="dark"] #home-tab > section:nth-of-type(5) h2 i {
  color: #93c5fd !important;
}

html[data-theme="dark"] #home-tab > section:nth-of-type(5) p.text-lg {
  color: #f9fafb !important;
}

html[data-theme="dark"] #home-tab > section:nth-of-type(5) p.bg-yellow-50 {
  background: rgba(0, 122, 255, 0.2) !important;
  border: 1px solid #007aff !important;
  color: #007aff !important;
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(4px);
}

html[data-theme="dark"] #home-tab > section:nth-of-type(5) p.bg-yellow-50 i,
html[data-theme="dark"] #home-tab > section:nth-of-type(5) p.bg-yellow-50 a {
  color: #4da3ff !important;
}

html[data-theme="dark"] #home-tab > section:nth-of-type(5) p.text-blue-500,
html[data-theme="dark"] #home-tab > section:nth-of-type(5) p.text-blue-600,
html[data-theme="dark"] #home-tab > section:nth-of-type(5) h2 .text-blue-500 {
  color: #bfdbfe !important;
}

html[data-theme="dark"] #home-tab > section:nth-of-type(5) a {
  color: #bfdbfe !important;
}

html[data-theme="dark"] #home-tab > section:nth-of-type(5) a:hover {
  color: #f9a8d4 !important;
}

/* ===== DARK MODE - ABOUT POINTS ===== */
html[data-theme="dark"] #home-tab .text-gray-700 {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] #home-tab .bg-white\/70 {
  background: rgba(30, 41, 59, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] #home-tab .border-pink-200 {
  border-color: rgba(244, 114, 182, 0.4) !important;
}

html[data-theme="dark"] #home-tab .border-blue-200 {
  border-color: rgba(96, 165, 250, 0.4) !important;
}

html[data-theme="dark"] #home-tab .border-green-200 {
  border-color: rgba(74, 222, 128, 0.4) !important;
}

html[data-theme="dark"] #home-tab .border-yellow-200 {
  border-color: rgba(251, 191, 36, 0.4) !important;
}

html[data-theme="dark"] #home-tab .border-purple-200 {
  border-color: rgba(196, 181, 253, 0.4) !important;
}

html[data-theme="dark"] #home-tab .text-pink-500 {
  color: #f472b6 !important;
}

html[data-theme="dark"] #home-tab .text-blue-500 {
  color: #60a5fa !important;
}

html[data-theme="dark"] #home-tab .text-green-500 {
  color: #4ade80 !important;
}

html[data-theme="dark"] #home-tab .text-yellow-600 {
  color: #fbbf24 !important;
}

html[data-theme="dark"] #home-tab .text-purple-500 {
  color: #a78bfa !important;
}

/* ===== DARK MODE - HIGHLIGHT ===== */
html[data-theme="dark"] .bg-yellow-50 {
  background-color: rgba(251, 191, 36, 0.15) !important;
  border-left-color: #fbbf24 !important;
}

html[data-theme="dark"] .bg-yellow-50 .text-blue-600 {
  color: #93c5fd !important;
}

html[data-theme="dark"] .bg-yellow-50 .text-blue-600 i {
  color: #fbbf24 !important;
}

/* ===== DARK MODE - CHATBOT ===== */
html[data-theme="dark"] #chatbot-window {
  color: #f9fafb !important;
  background-color: #1f2937 !important;
}

html[data-theme="dark"] #chatbot-window .bg-gray-50,
html[data-theme="dark"] #chatbot-window .bg-gray-100 {
  color: #f9fafb !important;
  background-color: #374151 !important;
}

html[data-theme="dark"] #chatbot-window input {
  color: #f9fafb !important;
  background-color: #111827 !important;
  border-color: #4b5563 !important;
}

/* ===== DESKTOP ===== */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
  .mobile-bottom-nav,
  .mobile-floating-chatbot {
    display: none;
  }
}

/* ===== BOTTOM NAV - DARK MODE ===== */
html[data-theme="dark"] .mobile-bottom-nav a,
.mobile-bottom-nav button {
  color: silver !important;
}

html[data-theme="dark"] .mobile-bottom-nav .active {
  background: linear-gradient(136deg, magenta, cyan) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* HAMBURGER SIDE MENU - Active State */
html[data-theme="dark"] #bottom-menu-button :hover {
  background: linear-gradient(136deg, magenta, cyan) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  
}

html[data-theme="dark"] #bottom-menu-button {
  color: silver !important;
}

html[data-theme="dark"] #bottom-menu-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
}

/* OVERLAY FACEBOOK */
#fb-overlay {
  transition: opacity 0.3s ease;
}

#fb-overlay:not(.hidden) {
  display: flex !important;
}

#fb-overlay .bg-lime-400 {
  background-color: #a3e635; /* lime-400 */
}

#fb-overlay .text-black {
  color: #000000;
}

