/**
 * SPPG Kalibagor - Core Theme Stylesheet
 * Copyright (c) 2026 SPPG Kalibagor
 */

:root {
  --bg-dark: #0a0d14;                 /* Rich Dark Obsidian Slate */
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-hover: #bff009;            /* Neon Lime */
  
  --color-primary: #bff009;
  --color-glow: rgba(191, 240, 9, 0.35);
  --text-main: #ffffff;
  --text-muted: #a1a1aa;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   NATURAL EFFORTLESS SMOOTH SCROLLING
   ============================================================ */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 1.0625rem; /* 17px base for high readability */
  line-height: 1.7;
}

/* Accessible Font Scaling for Senior Visitors */
html.font-scale-lg {
  font-size: 112.5%; /* +2px scaling */
}

html.font-scale-xl {
  font-size: 125%; /* +4px scaling */
}

/* FULL-SCREEN 100vh SECTION SPACING FOR EVERY SECTION */
section[id] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding-top: 6rem;
  padding-bottom: 5rem;
  scroll-margin-top: 80px;
}

footer {
  min-height: auto;
}

/* ============================================================
   LIVING ORNAMENT FLOAT ANIMATIONS & AMBIENT GLOW
   ============================================================ */
.ornament-float-slow {
  animation: ornamentFloat 7s ease-in-out infinite alternate;
}

.ornament-float-reverse {
  animation: ornamentFloatReverse 9s ease-in-out infinite alternate;
}

@keyframes ornamentFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes ornamentFloatReverse {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(18px) rotate(-4deg); }
}

.ornament-glow {
  filter: drop-shadow(0 0 20px rgba(191, 240, 9, 0.25));
}

/* ============================================================
   CYBER GRID MESH BACKGROUND PATTERN
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(191, 240, 9, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 240, 9, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 80%);
}

.font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

::selection {
  background: rgba(191, 240, 9, 0.35);
  color: #000000;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #1e2430;
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background: #0a0d14;
}

/* ============================================================
   BGN LOGO HOVER SCALE
   ============================================================ */
.bgn-logo-anim {
  transition: transform 0.4s var(--ease-smooth), filter 0.4s var(--ease-smooth);
}
.group:hover .bgn-logo-anim {
  transform: scale(1.05);
}

/* ============================================================
   HERO-ONLY CURSOR SPOTLIGHT GLOW
   ============================================================ */
#hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 240, 9, 0.14) 0%, rgba(191, 240, 9, 0.02) 50%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.35s ease, transform 0.1s ease-out;
  will-change: transform, opacity;
}

/* Click Ripple Shockwave */
.click-ripple {
  position: fixed;
  border-radius: 50%;
  border: 2px solid #bff009;
  box-shadow: 0 0 20px rgba(191, 240, 9, 0.6);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0.2);
  animation: ripple-expand 0.6s var(--ease-smooth) forwards;
}

@keyframes ripple-expand {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.3);
  }
  100% {
    width: 220px;
    height: 220px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ============================================================
   DYNAMIC NAVBAR (Ultra-Translucent Glassmorphism)
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0;
  transition: padding 0.35s var(--ease-smooth);
}

#navbar-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 13, 20, 0.4);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-radius: 0;
  transition:
    max-width 0.35s var(--ease-smooth),
    border-radius 0.35s var(--ease-smooth),
    border-color 0.35s var(--ease-smooth),
    background 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth);
}

#navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.35s var(--ease-smooth);
}

#site-header.scrolled {
  padding-top: 0.5rem;
}

#site-header.scrolled #navbar-container {
  max-width: 1100px;
  width: calc(100% - 2rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 13, 20, 0.85);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

#site-header.scrolled #navbar-inner {
  padding: 0.625rem 1.25rem;
}

/* Compact Adaptability on Scroll: Show active button by default, expand on hover or click */
#site-header.scrolled .font-scale-btn:not(.font-scale-active) {
  display: none;
}
#site-header.scrolled .font-scale-container:hover .font-scale-btn,
#site-header.scrolled .font-scale-container.expanded .font-scale-btn {
  display: inline-block !important;
}

#nav-links a.nav-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

#nav-links a.nav-link:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(191, 240, 9, 0.5);
}

/* ============================================================
   NEON HOVERGLASS CARDS (Uniform Dimensions & Flex Layout)
   ============================================================ */
.hoverglass-card, .card {
  position: relative;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition:
    transform 0.2s ease-out,
    background 0.3s var(--ease-smooth),
    border-color 0.3s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth);
  overflow: hidden;
}

.hoverglass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    380px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%),
    rgba(191, 240, 9, 0.18),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.hoverglass-card:hover::before {
  opacity: 1;
}

.hoverglass-card:hover, .card:hover {
  background: var(--bg-card-hover);
  border-color: #bff009;
  box-shadow: 0 0 35px rgba(191, 240, 9, 0.25), 0 20px 45px -12px rgba(0, 0, 0, 0.9);
}

.hoverglass-card > * {
  position: relative;
  z-index: 2;
}

.hoverglass-card.no-tilt, .no-tilt {
  transform: none !important;
}

.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
}

/* Buttons Magnetic & Neon */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 12px;
  transition: transform 0.15s ease-out, background 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.btn-primary {
  background: #bff009;
  color: #000000;
  box-shadow: 0 6px 25px rgba(191, 240, 9, 0.35);
}
.btn-primary:hover {
  background: #ccff00;
  color: #000000;
  box-shadow: 0 8px 35px rgba(191, 240, 9, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #bff009;
  color: #bff009;
  box-shadow: 0 0 20px rgba(191, 240, 9, 0.2);
}

/* Live Status Pulse Dot */
.status-pulse {
  position: relative;
  display: inline-flex;
  height: 9px;
  width: 9px;
  border-radius: 50%;
  background-color: #bff009;
}
.status-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: rgba(191, 240, 9, 0.6);
  animation: pulse-ring 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* FAQ Accordion Cyber */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item:hover {
  border-color: var(--border-hover);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: #ffffff;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
}
.faq-question .chev {
  transition: transform 0.3s var(--ease-smooth);
}
.faq-item.open .chev {
  transform: rotate(180deg);
  color: #bff009;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-smooth);
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  max-height: 250px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   INFOGRAPHIC ANIMATIONS (PROGRESS BARS & SVG DONUT)
   ============================================================ */
.progress-bar-fill {
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.data-sec-active .progress-bar-fill {
  width: var(--target-width, 0%);
}

.svg-donut-circle {
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.data-sec-active .svg-donut-circle {
  stroke-dashoffset: var(--target-offset, 0);
}

.sparkline-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}
.data-sec-active .sparkline-path {
  stroke-dashoffset: 0;
}

/* ============================================================
   HIGH-IMPACT CONTINUOUS DATA ANIMATIONS
   ============================================================ */
@keyframes shimmerBeam {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

.progress-bar-fill {
  position: relative;
  overflow: hidden;
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmerBeam 2.2s infinite;
}

@keyframes pulseGlowBorder {
  0%, 100% { box-shadow: 0 0 15px rgba(191, 240, 9, 0.1), inset 0 0 15px rgba(191, 240, 9, 0.03); border-color: rgba(191, 240, 9, 0.3); }
  50% { box-shadow: 0 0 30px rgba(191, 240, 9, 0.35), inset 0 0 25px rgba(191, 240, 9, 0.12); border-color: rgba(191, 240, 9, 0.6); }
}

.data-sec-active .hoverglass-card {
  animation: pulseGlowBorder 3.5s ease-in-out infinite;
}

@keyframes floatYSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

.float-anim-1 { animation: floatYSlow 4.5s ease-in-out infinite; }
.float-anim-2 { animation: floatYSlow 4.5s ease-in-out 1.5s infinite; }
.float-anim-3 { animation: floatYSlow 4.5s ease-in-out 3s infinite; }

@keyframes donutSpinOuter {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-outer-ring {
  transform-origin: 50px 50px;
  animation: donutSpinOuter 18s linear infinite;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

/* Leaflet Map Cyber Lime */
.leaflet-container {
  background-color: #0a0d14 !important;
}
.leaflet-tile {
  filter: brightness(0.55) invert(1) contrast(1.2) hue-rotate(85deg) saturate(0.8) !important;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: #0d121c !important;
  color: #ffffff !important;
  border: 1px solid rgba(191, 240, 9, 0.4);
  box-shadow: 0 10px 25px rgba(0,0,0,0.9) !important;
}
.pin-blue {
  background: #bff009;
  color: #000000;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 20px rgba(191, 240, 9, 0.6);
}

/* ============================================================
   MOBILE BRAVE & GENERAL TOUCH OPTIMIZATIONS
   ============================================================ */
* {
  -webkit-tap-highlight-color: transparent;
}

button, a, input, select {
  touch-action: manipulation;
}

/* Mobile Nav Drawer & Responsive Display Fallbacks */
.hidden {
  display: none !important;
}

#mobile-nav.hidden {
  display: none !important;
}

@media (max-width: 767px) {
  section[id] {
    min-height: auto !important;
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  #mobile-nav:not(.hidden) {
    display: flex !important;
  }
  .md\:hidden {
    display: inline-flex;
  }
  .md\:flex {
    display: none !important;
  }
}

@media (min-width: 768px) {
  #mobile-nav,
  .md\:hidden {
    display: none !important;
  }
  .md\:flex {
    display: flex !important;
  }
}

