/* CSS variables for consistent branding */
:root {
  --saffron: #FF9933;
  --white: #FFFFFF;
  --india-green: #138808;
  --navy: #000080;
  --gold: #FFD700;
  --bg-slate: #F8FAFC;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-quote: 'Merriweather', serif;
}

/* Base modifications */
body {
  font-family: var(--font-body);
  background-color: var(--bg-slate);
  color: #334155;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Tricolor UI theme background gradient */
.tricolor-gradient-bg {
  background: linear-gradient(
    135deg,
    #FF9933 0%,
    #FFF8E7 35%,
    #ffffff 50%,
    #E8F8EC 65%,
    #138808 100%
  );
}

/* Glassmorphism card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 50px rgba(0,0,0,0.12);
}

/* Hero Section Styles */
.hero-patriot {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(0, 0, 128, 0.1) 0%, rgba(19, 136, 8, 0.05) 50%, rgba(255, 153, 51, 0.05) 100%), var(--bg-slate);
}

.hero-bg-salute {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
  filter: grayscale(30%);
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 50px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--saffron), var(--navy), var(--india-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleFadeIn 1s ease-out;
}

@media(max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #475569;
  margin-bottom: 2rem;
  max-width: 700px;
}

/* Buttons with interactive flows & glows */
.btn-saffron {
  background-color: var(--saffron);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4);
  transition: all 0.3s ease;
}

.btn-saffron:hover {
  background-color: #e68522;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.6);
  color: white;
}

.btn-green {
  background-color: var(--india-green);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(19, 136, 8, 0.4);
  transition: all 0.3s ease;
}

.btn-green:hover {
  background-color: #0f7006;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(19, 136, 8, 0.6);
  color: white;
}

.btn-navy {
  background-color: var(--navy);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 128, 0.3);
  transition: all 0.3s ease;
}

.btn-navy:hover {
  background-color: #000066;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 128, 0.5);
  color: white;
}

/* Ticker Styles */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background-color: var(--navy);
  color: white;
  padding: 10px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker-animation 30s linear infinite;
}

.ticker-item {
  display: inline-block;
  padding: 0 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.ticker-item span {
  color: var(--gold);
}

@keyframes ticker-animation {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Audio Player Controls style */
.audio-controller {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 15px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icon card transitions and hover zoom */
.icon-card {
  background: white;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 4px solid transparent;
}

.icon-card:hover {
  transform: translateY(-8px);
  border-bottom: 4px solid var(--saffron);
}

.icon-card .icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 153, 51, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--saffron);
  transition: all 0.3s ease;
}

.icon-card:hover .icon-wrapper {
  background: var(--saffron);
  color: white;
  transform: scale(1.1);
}

/* Success Stories Slider */
.stories-slider {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Masonry and Lightbox Styles */
.masonry-grid {
  display: flex;
  margin-left: -15px;
  width: auto;
}

.masonry-col {
  padding-left: 15px;
  background-clip: padding-box;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 80, 0.6);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

/* Timeline component */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--navy);
  left: 50%;
  transform: translateX(-50%);
}

@media(max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  width: 50%;
  padding-right: 40px;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  margin-left: 50%;
  padding-right: 0;
  padding-left: 40px;
}

@media(max-width: 768px) {
  .timeline-item {
    width: 100%;
    padding-left: 45px;
    padding-right: 0;
  }
  .timeline-item:nth-child(even) {
    margin-left: 0;
    padding-left: 45px;
  }
}

.timeline-dot {
  position: absolute;
  right: -8px;
  top: 15px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--saffron);
  border: 4px solid white;
  z-index: 5;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -12px;
}

@media(max-width: 768px) {
  .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
    left: 12px;
    right: auto;
  }
}

.timeline-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Dark Mode styles for dashboard */
.dark-dashboard {
  --bg-slate: #0F172A;
  --text-color: #E2E8F0;
  background-color: var(--bg-slate) !important;
  color: var(--text-color) !important;
}

.dark-dashboard .main-page,
.dark-dashboard .sidebar,
.dark-dashboard .sticky-header {
  background-color: #1E293B !important;
  color: #F1F5F9 !important;
}

.dark-dashboard .card,
.dark-dashboard table {
  background-color: #334155 !important;
  color: #F1F5F9 !important;
  border-color: #475569 !important;
}

.dark-dashboard tr th {
  background-color: #1E293B !important;
  color: #38BDF8 !important;
}
.dark-dashboard tr td {
  border-color: #475569 !important;
}

/* ==========================================================
   WAVING INDIAN TRICOLOR FLAG ANIMATION
   ========================================================== */
.flag-wave-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.waving-flag {
  width: 44px;
  height: 28px;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  background: linear-gradient(to bottom, #FF9933 33.3%, #ffffff 33.3%, #ffffff 66.6%, #138808 66.6%);
  position: relative;
  overflow: hidden;
  animation: flagWaveMotion 2.2s ease-in-out infinite alternate;
  transform-origin: left center;
  border: 1px solid rgba(0,0,0,0.1);
}

.waving-flag::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border: 1.2px solid #000080;
  border-radius: 50%;
  background: radial-gradient(circle, #000080 20%, transparent 25%);
}

.waving-flag-shine {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.4) 0%, rgba(0,0,0,0.15) 50%, rgba(255,255,255,0.4) 100%);
  animation: flagShineMotion 2.2s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes flagWaveMotion {
  0% { transform: skewY(0deg) scaleY(1) rotate(0deg); }
  50% { transform: skewY(-5deg) scaleY(1.04) rotate(-2deg); }
  100% { transform: skewY(5deg) scaleY(0.96) rotate(2deg); }
}

@keyframes flagShineMotion {
  0% { opacity: 0.2; }
  100% { opacity: 0.6; }
}

/* ==========================================================
   3D IMAGES & SLOW-MOTION ANIMATION SYSTEM
   ========================================================== */

.perspective-wrapper {
  perspective: 1200px;
  position: relative;
}

.img-3d-card {
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.8s ease;
  transform-style: preserve-3d;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  overflow: hidden;
}

.img-3d-card:hover {
  transform: rotateY(-10deg) rotateX(8deg) scale(1.04) translateZ(30px);
  box-shadow: 0 30px 60px rgba(255, 153, 51, 0.3);
}

/* Slow-motion Floating 3D Elements */
.floating-3d-medal {
  position: absolute;
  top: -25px;
  right: -25px;
  width: 110px;
  height: 110px;
  z-index: 10;
  animation: float3dSlow 6s ease-in-out infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
}

.floating-3d-shield {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  z-index: 10;
  animation: float3dSlow 8s ease-in-out 3s infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
}

.floating-3d-inline {
  display: inline-block;
  animation: float3dSlow 7s ease-in-out infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
}

@keyframes float3dSlow {
  0% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  25% {
    transform: translateY(-15px) rotateX(8deg) rotateY(-12deg) rotateZ(3deg);
  }
  50% {
    transform: translateY(-26px) rotateX(0deg) rotateY(15deg) rotateZ(-4deg);
  }
  75% {
    transform: translateY(-12px) rotateX(-8deg) rotateY(6deg) rotateZ(2deg);
  }
  100% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
}

/* Floating Audio Player & Lyrics Card Styling */
.audio-controller {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 153, 51, 0.4);
  padding: 10px 18px;
  border-radius: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.lyrics-popup-card {
  position: fixed;
  bottom: 85px;
  left: 25px;
  width: 340px;
  max-height: 420px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(15px);
  border: 2px solid #FF9933;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  z-index: 9998;
  color: white;
  display: none;
  overflow-y: auto;
  animation: popupFadeIn 0.4s ease-out;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}



