/* css/style.css */

:root {
  /* Color Palette จาก CustomStyles.astro [cite: 2, 3] */
  --primary-color: rgb(1 97 239);
  --secondary-color: rgb(1 84 207);
  --accent-color: rgb(109 40 217);
  --bg-page: rgb(255 255 255);
  --text-default: rgb(16 16 16);
  --text-muted: rgb(16 16 16 / 66%);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-default);
  background-color: var(--bg-page);
}

/* ลอจิกการจัดการสีที่ดรอปลง (Muted Logic) */
.stat-item {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item:hover .text-4xl {
  color: var(--primary-color);
  text-shadow: 0 10px 20px rgba(1, 97, 239, 0.15);
}

/* Custom Scrollbar ให้ดูแพง */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Selection color จาก CustomStyles.astro [cite: 4] */
::selection {
  background-color: lavender;
  color: var(--primary-color);
}

/* Animation สำหรับ Card เมื่อโหลด */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#featured-matrix > div, #knowledge-grid > div {
  animation: fadeIn 0.8s ease forwards;
}