/* White Guard Kerala Custom Styles & Motion */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Noto+Sans+Malayalam:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

:root {
  --wg-forest-dark: #022413;
  --wg-forest: #024726;
  --wg-forest-light: #056636;
  --wg-emerald: #059669;
  --wg-accent-red: #e63946;
  --wg-accent-amber: #f59e0b;
  --wg-canvas: #f8faf9;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background-color: var(--wg-canvas);
  overflow-x: hidden;
}

.font-malayalam {
  font-family: 'Noto Sans Malayalam', system-ui, sans-serif;
}

.font-hindi {
  font-family: 'Noto Sans Devanagari', system-ui, sans-serif;
}

/* Glassmorphism */
.wg-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(2, 71, 38, 0.08);
}

.wg-glass-dark {
  background: rgba(2, 36, 19, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.wg-glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wg-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(2, 71, 38, 0.12), 0 10px 15px -5px rgba(2, 71, 38, 0.06);
  border-color: rgba(5, 150, 105, 0.35);
}

/* Hero Background and Gradient */
.hero-gradient-overlay {
  background: linear-gradient(135deg, 
    rgba(1, 29, 14, 0.95) 0%, 
    rgba(2, 56, 28, 0.88) 45%, 
    rgba(3, 40, 21, 0.94) 100%);
}

.hero-texture {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Parade Command Directional Indicator Animations */
@keyframes pivot-right {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(90deg); }
  100% { transform: rotate(90deg); }
}

@keyframes pivot-left {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-90deg); }
  100% { transform: rotate(-90deg); }
}

@keyframes pivot-about {
  0% { transform: rotate(0deg); }
  60% { transform: rotate(180deg); }
  100% { transform: rotate(180deg); }
}

@keyframes pulse-forward {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-8px); opacity: 1; }
}

@keyframes cadence-step {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes salute-arc {
  0% { transform: rotate(0deg) scale(0.95); }
  50% { transform: rotate(35deg) scale(1.05); }
  100% { transform: rotate(35deg) scale(1.05); }
}

.anim-pivot-right {
  animation: pivot-right 2.4s ease-in-out infinite alternate;
}

.anim-pivot-left {
  animation: pivot-left 2.4s ease-in-out infinite alternate;
}

.anim-pivot-about {
  animation: pivot-about 2.8s ease-in-out infinite alternate;
}

.anim-pulse-forward {
  animation: pulse-forward 1.8s ease-in-out infinite;
}

.anim-cadence {
  animation: cadence-step 1.2s ease-in-out infinite;
}

.anim-salute {
  animation: salute-arc 2.2s ease-in-out infinite alternate;
}

/* Kerala Map interactive styling */
.district-path {
  fill: #e2e8f0;
  stroke: #ffffff;
  stroke-width: 1.5;
  transition: all 0.25s ease;
  cursor: pointer;
}

.district-path:hover,
.district-path.active {
  fill: #059669;
  stroke: #022413;
  stroke-width: 2;
  filter: drop-shadow(0 4px 6px rgba(2, 71, 38, 0.3));
}

.district-pin {
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.district-pin:hover {
  transform: scale(1.35);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #047857;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #065f46;
}

/* Modal Animations */
.modal-overlay {
  transition: opacity 0.25s ease-out;
}
.modal-dialog {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out;
}
.modal-overlay.hidden-modal {
  opacity: 0;
  pointer-events: none;
}
.modal-overlay.hidden-modal .modal-dialog {
  transform: scale(0.95) translateY(12px);
  opacity: 0;
}
