/* ==============================================================
   ENVI SYSTEM AND TECHNOLOGY CO., LTD.
   Custom Styles, Thai Typography & Micro-Animations
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Lao:wght@400;500;600;700&family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --primary-blue: #0284c7;
  --primary-dark-blue: #0369a1;
  --deep-navy: #0c4a6e;
  --eco-green: #10b981;
  --eco-dark-green: #059669;
  --eco-emerald: #047857;
  --light-cyan: #38bdf8;
  --sky-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0c4a6e 100%);
  --eco-gradient: linear-gradient(135deg, #059669 0%, #0284c7 50%, #0369a1 100%);
}

body {
  font-family: 'Sarabun', 'Noto Sans Lao', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #334155;
  background-color: #f8fafc;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Prompt', 'Noto Sans Lao', 'Sarabun', sans-serif;
  letter-spacing: 0;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -10px rgba(0, 50, 100, 0.08);
}

/* Custom Shadows */
.shadow-envi {
  box-shadow: 0 15px 35px -5px rgba(2, 132, 199, 0.12), 0 5px 15px rgba(0, 0, 0, 0.04);
}

.shadow-card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.shadow-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -8px rgba(2, 132, 199, 0.16), 0 8px 16px rgba(0, 0, 0, 0.05);
}

/* Float & Glow Animations */
@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 9999px;
  border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Selection Color */
::selection {
  background-color: #38bdf8;
  color: #0c4a6e;
}

/* Smooth Transitions */
.transition-smooth {
  transition: all 0.25s ease-in-out;
}

/* Facebook-style Bounce & Pop Animation on Hover */
@keyframes fbBounce {
  0% {
    transform: translateY(0) scale(1);
  }
  28% {
    transform: translateY(-10px) scale(1.26);
  }
  50% {
    transform: translateY(-2px) scale(1.12);
  }
  72% {
    transform: translateY(-6px) scale(1.2);
  }
  100% {
    transform: translateY(-4px) scale(1.16);
  }
}

.fb-bounce-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.fb-bounce-icon:hover,
.group:hover .fb-bounce-icon {
  animation: fbBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
