/* =========================================================
   KAGARA — Shared Visual System
   Brand: Primary Blue #296AA6 | Gold #F2B924 | Crimson #D82129 | Leaf #87BE3F
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #F8FAFC;
  color: #0F172A;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F8FAFC; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #296AA6, #1a4570);
  border-radius: 999px;
  border: 2px solid #F8FAFC;
}
::-webkit-scrollbar-thumb:hover { background: #F2B924; }

/* ---------- Selection ---------- */
::selection { background: #F2B924; color: #0F172A; }

/* =========================================================
   Continuous site background canvas
   One flowing gradient + dot-mesh texture that sits behind every
   section in <main> so colors hand off smoothly with no hard seams.
   Footer is intentionally excluded (its own dark bg-ink treatment).
   ========================================================= */
.site-bg-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #F8FAFC;
  background-image:
    radial-gradient(circle at 10% 4%,  rgba(41,106,166,0.14) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(242,185,36,0.13) 0%, transparent 42%),
    radial-gradient(circle at 15% 30%, rgba(135,190,63,0.09) 0%, transparent 38%),
    radial-gradient(circle at 88% 42%, rgba(41,106,166,0.11) 0%, transparent 42%),
    radial-gradient(circle at 12% 58%, rgba(242,185,36,0.10) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(135,190,63,0.08) 0%, transparent 40%),
    radial-gradient(circle at 15% 88%, rgba(41,106,166,0.10) 0%, transparent 42%),
    radial-gradient(circle at 90% 96%, rgba(242,185,36,0.10) 0%, transparent 42%),
    radial-gradient(rgba(41,106,166,0.16) 1.5px, transparent 1.5px);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-size: auto, auto, auto, auto, auto, auto, auto, auto, 26px 26px;
}

/* =========================================================
   Glassmorphism
   ========================================================= */
.glass {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-glass {
  background: rgba(248, 250, 252, 0.7);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(41, 106, 166, 0.08);
  transition: box-shadow .35s ease, background-color .35s ease;
}

#site-header.is-scrolled .navbar-glass {
  box-shadow: 0 10px 40px -18px rgba(15, 23, 42, 0.35);
  background: rgba(248, 250, 252, 0.92);
}

/* =========================================================
   Gradient text
   ========================================================= */
.text-gradient {
  background: linear-gradient(90deg, #296AA6 0%, #1a4570 45%, #F2B924 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-x 8s ease infinite;
}

.text-gradient-light {
  background: linear-gradient(90deg, #ffffff 0%, #cfe0f0 50%, #F2B924 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-x 8s ease infinite;
}

@keyframes gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  background: linear-gradient(135deg, #296AA6, #1a4570);
  box-shadow: 0 8px 24px -8px rgba(41, 106, 166, 0.55);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 34px -8px rgba(41, 106, 166, 0.7), 0 0 0 4px rgba(242, 185, 36, 0.18);
  filter: brightness(1.05);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0F172A;
  background: linear-gradient(135deg, #F2B924, #e0a412);
  box-shadow: 0 8px 24px -8px rgba(242, 185, 36, 0.65);
  transition: transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-gold:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 34px -8px rgba(242, 185, 36, 0.8);
}

.btn-white {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #193c5c;
  background: #ffffff;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.45);
  transition: transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-white:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 34px -8px rgba(15, 23, 42, 0.55);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  border-radius: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #F2B924;
  border: 1.5px solid rgba(242, 185, 36, 0.55);
  background: rgba(242, 185, 36, 0.08);
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-outline-gold:hover {
  border-color: #F2B924;
  background: rgba(242, 185, 36, 0.18);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  border-radius: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #296AA6;
  border: 1.5px solid rgba(41, 106, 166, 0.35);
  background: rgba(255, 255, 255, 0.5);
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: #296AA6;
  background: rgba(41, 106, 166, 0.06);
  transform: translateY(-2px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  border-radius: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-outline-light:hover {
  border-color: #F2B924;
  background: rgba(242, 185, 36, 0.1);
  transform: translateY(-2px);
}

/* =========================================================
   Nav link underline
   ========================================================= */
.nav-link {
  position: relative;
  padding: 0.55rem 0.6rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155;
  border-radius: 0.6rem;
  transition: color .25s ease, background-color .25s ease;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #296AA6, #F2B924);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-link:hover { color: #296AA6; background: rgba(41,106,166,0.06); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: #296AA6; }
.nav-link.active::after { transform: scaleX(1); }

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1e293b;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  transition: background-color .2s ease, color .2s ease, padding-left .2s ease;
}
.mobile-nav-link:hover { background: rgba(41,106,166,0.06); color: #296AA6; padding-left: 1.25rem; }
.mobile-nav-link.active { color: #296AA6; }

/* =========================================================
   Cards, tilt, reveal
   ========================================================= */
.tilt-card { transition: transform .15s ease-out, box-shadow .3s ease; will-change: transform; transform-style: preserve-3d; }

.card-elevated {
  box-shadow: 0 2px 8px -2px rgba(15,23,42,0.06), 0 20px 40px -20px rgba(15,23,42,0.12);
  transition: box-shadow .35s ease, transform .35s ease;
}
.card-elevated:hover {
  box-shadow: 0 30px 60px -20px rgba(41,106,166,0.35);
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .08s; }
.reveal-delay-2.in-view { transition-delay: .16s; }
.reveal-delay-3.in-view { transition-delay: .24s; }
.reveal-delay-4.in-view { transition-delay: .32s; }
.reveal-delay-5.in-view { transition-delay: .4s; }

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float 9s ease-in-out infinite; }
.animate-float-delay { animation: float 7s ease-in-out infinite; animation-delay: 1.2s; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(216, 33, 41, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(216, 33, 41, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 33, 41, 0); }
}
.pulse-ring { animation: pulse-ring 2.2s cubic-bezier(0.4,0,0.6,1) infinite; }

@keyframes pulse-ring-gold {
  0% { box-shadow: 0 0 0 0 rgba(242, 185, 36, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(242, 185, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 185, 36, 0); }
}
.pulse-ring-gold { animation: pulse-ring-gold 2.5s cubic-bezier(0.4,0,0.6,1) infinite; }

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin-slow { animation: spin-slow 18s linear infinite; }

/* =========================================================
   Map pulse markers (India / Karnataka / Goa hero map)
   ========================================================= */
.map-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: map-pulse 2.4s cubic-bezier(0.4,0,0.6,1) infinite;
}
@keyframes map-pulse {
  0% { transform: scale(0.4); opacity: 0.85; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-border {
  background: linear-gradient(90deg, transparent, rgba(242,185,36,0.6), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes grid-pan {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}
.bg-grid {
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.bg-grid-dark {
  background-image: linear-gradient(rgba(15,23,42,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* =========================================================
   Mobile drawer
   ========================================================= */
#mobile-drawer.open #drawer-backdrop { opacity: 1; }
#mobile-drawer.open #drawer-panel { transform: translateX(0); }

/* =========================================================
   Timeline (Membership + Events)
   ========================================================= */
.timeline-line {
  background: linear-gradient(180deg, #296AA6 0%, #F2B924 100%);
}
.timeline-node {
  transition: transform .3s ease, box-shadow .3s ease;
}
.timeline-item:hover .timeline-node {
  transform: scale(1.15);
  box-shadow: 0 0 0 8px rgba(41,106,166,0.12);
}

/* =========================================================
   Accordion
   ========================================================= */
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.16,1,.3,1), opacity .35s ease;
  opacity: 0;
}
.accordion-item.open .accordion-panel {
  opacity: 1;
}
.accordion-chevron { transition: transform .35s ease; }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-item.open .accordion-trigger { color: #296AA6; }

/* =========================================================
   Avatar silhouette
   ========================================================= */
.avatar-ring {
  background: conic-gradient(from 180deg, #296AA6, #F2B924, #296AA6);
  padding: 3px;
}

/* =========================================================
   Section divider wave
   ========================================================= */
.divider-wave { display: block; width: 100%; height: auto; }

/* =========================================================
   Misc utilities
   ========================================================= */
.mask-radial {
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 75%);
  mask-image: radial-gradient(circle at center, black 40%, transparent 75%);
}

.perspective-container { perspective: 1200px; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* =========================================================
   Event slideshow
   ========================================================= */
.slideshow-slide {
  transition: opacity 1s ease;
}
.slideshow-dot.is-active {
  width: 1.5rem;
  background: #ffffff;
}
