/* Custom styling for BCE Construction and Engineering */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Kantumruy+Pro:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --bce-blue-primary: #0C3260;
  --bce-blue-dark: #071D3A;
  --bce-blue-light: #1A4D8C;
  --bce-gold: #E5A823;
  --bce-gold-hover: #D49718;
  --bce-gold-light: #FCEFD2;
}

body {
  font-family: 'Inter', 'Kantumruy Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1E293B;
  background-color: #F8FAFC;
  overflow-x: hidden;
}

/* Khmer Typography optimization */
[data-lang="kh"] {
  font-family: 'Kantumruy Pro', 'Inter', sans-serif;
  line-height: 1.65;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0C3260;
}

/* Glassmorphism & Header */
.glass-nav {
  background: rgba(12, 50, 96, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
  background: rgba(7, 29, 58, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Concrete pattern overlay */
.concrete-pattern {
  background-image: radial-gradient(#0C3260 0.75px, transparent 0.75px), radial-gradient(#0C3260 0.75px, #F8FAFC 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  opacity: 0.04;
}

.blueprint-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Shimmer animation for badges */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}
.shimmer-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s infinite;
}

/* Pulsing beacon */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 168, 35, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 14px rgba(229, 168, 35, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(229, 168, 35, 0); }
}

.pulse-badge {
  animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.2, 1);
}

/* Map Province Interactive Markers */
.province-node {
  transition: all 0.25s ease;
  cursor: pointer;
}
.province-node:hover {
  transform: translateY(-3px) scale(1.03);
}

/* Floating Action Buttons */
.fab-btn {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.fab-btn:hover {
  transform: translateY(-4px) scale(1.06);
}

/* Carousel transitions */
.carousel-track {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Modal styling */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-window {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.active .modal-window {
  transform: scale(1) translateY(0);
}
