/* ==========================================================================
   OYUVA WEBSITE EXPERIENCE UPGRADE
   Premium Animations, Glassmorphism, Micro-interactions & Visual Enhancements
   ========================================================================== */

/* ─── SCROLL PROGRESS BAR ─────────────────────────────────────── */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #F37021, #FDB913, #0C4B33);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px rgba(243, 112, 33, 0.5);
}

/* ─── CSS CUSTOM PROPERTY EXTENSIONS ─────────────────────────── */
:root {
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── HERO SECTION: ORBITAL ANIMATION ORBS ──────────────────── */
.hero-section {
  min-height: 620px;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
  z-index: 1;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(12, 75, 51, 0.12) 0%, rgba(12, 75, 51, 0) 70%);
  right: -80px;
  top: -100px;
  animation-delay: 0s;
  animation-duration: 10s;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(243, 112, 33, 0.10) 0%, rgba(243, 112, 33, 0) 70%);
  right: 200px;
  bottom: -80px;
  animation-delay: -3s;
  animation-duration: 7s;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(253, 185, 19, 0.12) 0%, rgba(253, 185, 19, 0) 70%);
  right: 100px;
  top: 30%;
  animation-delay: -5s;
  animation-duration: 12s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-20px, 15px) scale(1.05); }
  66% { transform: translate(15px, -10px) scale(0.97); }
}

.hero-content-wrapper {
  min-height: 560px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-subbadge {
  background: linear-gradient(135deg, rgba(12, 75, 51, 0.1), rgba(12, 75, 51, 0.05));
  border: 1px solid rgba(12, 75, 51, 0.2);
  padding: 6px 16px;
  animation: fadeSlideDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-title {
  animation: fadeSlideUp 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.hero-title-cursor {
  display: inline-block;
  width: 4px;
  height: 0.9em;
  background-color: #F37021;
  margin-left: 3px;
  vertical-align: text-bottom;
  border-radius: 2px;
  animation: cursorBlink 1.1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  animation: fadeSlideUp 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.hero-cta-group {
  animation: fadeSlideUp 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s both;
}

.hero-script-sticker {
  animation: fadeSlideLeft 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

/* Floating stats badges */
.hero-stats-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  animation: fadeSlideUp 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

.hero-stat-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 40px;
  padding: 8px 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-spring);
}

.hero-stat-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.hero-stat-badge-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: #0C4B33;
}

.hero-stat-badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748B;
}

.sticker-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all var(--transition-spring);
}

.sticker-card:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

/* ─── PRIMARY BUTTON GLOW + SHIMMER ──────────────────────────── */
.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(12, 75, 51, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 32px rgba(12, 75, 51, 0.4) !important;
}

.nav-cta-btn {
  animation: navBtnPulse 3s ease-in-out infinite;
}

@keyframes navBtnPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(12, 75, 51, 0.25); }
  50% { box-shadow: 0 4px 22px rgba(12, 75, 51, 0.45); }
}

/* ─── SCROLL REVEAL ANIMATIONS ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ─── HEADER SCROLL ENHANCEMENT ──────────────────────────────── */
.main-header {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* ─── PILLAR CARDS PREMIUM UPGRADE ───────────────────────────── */
.pillar-card {
  transition: all var(--transition-spring) !important;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-unity::before { background: linear-gradient(90deg, #DC2626, #EF4444); }
.pillar-vision::before { background: linear-gradient(90deg, #0C4B33, #16A34A); }
.pillar-action::before { background: linear-gradient(90deg, #D97706, #F59E0B); }

.pillar-card:hover::before { opacity: 1; }
.pillar-card:hover { transform: translateY(-6px) !important; box-shadow: 0 16px 40px rgba(0,0,0,0.1) !important; }

.pillar-icon-wrapper { transition: transform var(--transition-spring); }
.pillar-card:hover .pillar-icon-wrapper { transform: scale(1.12) rotate(-4deg); }

/* ─── ABOUT SECTION CARDS ─────────────────────────────────────── */
.about-visual-card, .about-content-card, .about-quote-card {
  transition: all var(--transition-smooth) !important;
}
.about-visual-card:hover, .about-content-card:hover, .about-quote-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.1) !important;
}

.feature-bullet {
  transition: transform 0.25s ease;
}
.feature-bullet:hover { transform: translateX(5px); }

.check-icon { transition: all var(--transition-spring); }
.feature-bullet:hover .check-icon { background: #16A34A; color: #fff; transform: scale(1.2); }

.about-quote-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #f0fdfa 100%) !important;
  border: 1px solid rgba(12, 75, 51, 0.12) !important;
}

/* ─── INITIATIVE CARDS PREMIUM ───────────────────────────────── */
.initiative-card {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-spring) !important;
}

.initiative-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0C4B33, #F37021);
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}

.initiative-card:hover::before { transform: scaleX(1); }
.initiative-card:hover { transform: translateY(-7px) !important; box-shadow: 0 20px 48px rgba(12,75,51,0.14) !important; }

.init-icon-box { transition: all var(--transition-spring); }
.initiative-card:hover .init-icon-box { transform: scale(1.18) rotate(-6deg); }

/* ─── CAMPAIGN CARD ENHANCED ─────────────────────────────────── */
.campaign-card {
  transition: all var(--transition-smooth) !important;
  position: relative;
}

.campaign-card:hover { transform: translateY(-6px) !important; box-shadow: 0 16px 40px rgba(0,0,0,0.12) !important; }
.campaign-img-wrap img { transition: transform 0.6s ease !important; }
.campaign-card:hover .campaign-img-wrap img { transform: scale(1.1) !important; }

/* Image shimmer overlay */
.campaign-img-wrap { position: relative; }
.campaign-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(12,75,51,0.3) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.campaign-card:hover .campaign-img-wrap::after { opacity: 1; }

/* ─── EVENT ITEM CARD ─────────────────────────────────────────── */
.event-item-card {
  transition: all var(--transition-spring) !important;
  border-left: 3px solid transparent;
}
.event-item-card:hover {
  transform: translateX(6px) !important;
  border-left-color: #F37021;
  box-shadow: 0 8px 24px rgba(243,112,33,0.12) !important;
}

.event-date-badge { transition: all var(--transition-spring); }
.event-item-card:hover .event-date-badge { background: #0C4B33; border-color: #0C4B33; }
.event-item-card:hover .date-month { color: rgba(255,255,255,0.75); }
.event-item-card:hover .date-day { color: #FFFFFF; }

/* ─── STORY CARDS ─────────────────────────────────────────────── */
.story-card {
  transition: all var(--transition-spring) !important;
  position: relative;
  overflow: hidden;
}

.story-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,75,51,0) 40%, rgba(12,75,51,0.88) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: inherit;
}

.story-card:hover .story-card-overlay { opacity: 1; }
.story-card:hover { transform: translateY(-7px) scale(1.01) !important; box-shadow: 0 18px 45px rgba(0,0,0,0.12) !important; }

/* ─── ODISHA MAP DISTRICT HOVER ───────────────────────────────── */
.district { transition: fill 0.25s ease, filter 0.25s ease; cursor: pointer; }
.district:hover { filter: brightness(0.7) saturate(1.5); }
.district.active { fill: #F37021 !important; filter: drop-shadow(0 2px 8px rgba(243,112,33,0.5)); }

/* ─── STATS COUNTER GRADIENT ────────────────────────────────── */
.stat-number {
  background: linear-gradient(135deg, #0C4B33, #22A367) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-size: 1.65rem !important;
  font-weight: 900 !important;
}

.reach-interactive-box {
  background: linear-gradient(135deg, #f0fdf9 0%, #ffffff 100%) !important;
  border: 1px solid rgba(12,75,51,0.12) !important;
}

.odisha-svg-map {
  filter: drop-shadow(0 8px 20px rgba(12,75,51,0.18)) !important;
}

/* ─── CTA BANNER CARD UPGRADE ─────────────────────────────────── */
.cta-banner-card {
  background: linear-gradient(135deg, #052E1A 0%, #0C4B33 50%, #0A3D28 100%) !important;
  position: relative;
  overflow: hidden;
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(243,112,33,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner-btn {
  background: linear-gradient(135deg, #F37021 0%, #FF8F3D 100%) !important;
  box-shadow: 0 4px 20px rgba(243,112,33,0.4) !important;
}

.cta-banner-btn:hover {
  background: linear-gradient(135deg, #E84826 0%, #F37021 100%) !important;
  box-shadow: 0 8px 30px rgba(243,112,33,0.55) !important;
  transform: translateY(-3px) !important;
}

/* ─── RIBBON ACTION ITEMS ────────────────────────────────────── */
.ribbon-action-item {
  transition: all var(--transition-spring);
  cursor: pointer;
  text-align: center;
  padding: 20px 12px;
  border-radius: 12px;
}
.ribbon-action-item:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 16px 35px rgba(0,0,0,0.1);
}
.action-icon { transition: all var(--transition-spring); }
.ribbon-action-item:hover .action-icon { transform: scale(1.2) rotate(-8deg); }

/* ─── FOOTER ENHANCED ───────────────────────────────────────── */
.main-footer {
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243,112,33,0.5), rgba(253,185,19,0.5), rgba(12,75,51,0.5), transparent);
}

.footer-nav a {
  transition: all 0.2s ease;
  display: inline-block;
  padding: 2px 0;
}
.footer-nav a:hover { color: #F37021 !important; transform: translateX(4px); }

.footer-social-icons a {
  transition: all var(--transition-spring) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.footer-social-icons a:hover {
  background: #F37021;
  color: #fff !important;
  transform: translateY(-4px) scale(1.1) !important;
}

/* ─── MODAL ENHANCED ────────────────────────────────────────── */
.modal-card {
  box-shadow: 0 30px 80px rgba(0,0,0,0.3) !important;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.tag-checkbox span { transition: all var(--transition-spring) !important; }
.tag-checkbox:hover span { border-color: rgba(12,75,51,0.4); background: rgba(12,75,51,0.05); }
.tag-checkbox input:checked + span {
  background: linear-gradient(135deg, #DCFCE7, #BBF7D0) !important;
  border-color: #22C55E !important;
  color: #166534 !important;
}

/* Ticket reveal */
.ticket-preview {
  animation: ticketReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes ticketReveal {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── SECTION BACKGROUNDS ───────────────────────────────────── */
.about-section { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.initiatives-section { background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 50%, #f8fafc 100%); }
.stories-reach-section { background: linear-gradient(180deg, #f8fafc 0%, #f0fdf4 100%); }
.involvement-ribbon { background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #f0fdf4 100%) !important; }

/* Padding improvements */
.about-section, .initiatives-section, .campaigns-events-section, .stories-reach-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

/* ─── TRICOLOR PILLARS TOP BORDER ────────────────────────────── */
.pillars-section {
  position: relative;
  padding-top: 8px;
}
.pillars-section::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #F37021 33.3%, #FDB913 33.3%, #FDB913 66.6%, #138808 66.6%);
  border-radius: 2px;
  margin-bottom: 28px;
}

/* ─── BACK TO TOP BUTTON ─────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0C4B33, #167452);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(12,75,51,0.35);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all var(--transition-spring);
  z-index: 500;
  font-size: 1.1rem;
  line-height: 1;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(12,75,51,0.45);
}

/* ─── CUSTOM SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #F37021, #0C4B33);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #0C4B33; }

.modal-card::-webkit-scrollbar { width: 4px; }
.modal-card::-webkit-scrollbar-thumb { background: rgba(12,75,51,0.3); border-radius: 10px; }

/* ─── FADE ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ─── HAMBURGER ANIMATED ─────────────────────────────────────── */
.hamburger-btn.open .hamburger-bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-btn.open .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open .hamburger-bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
.hamburger-bar { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* ─── REGISTER BTN UPGRADE ───────────────────────────────────── */
.btn-register {
  background: linear-gradient(135deg, #0C4B33, #167452) !important;
  transition: all var(--transition-spring) !important;
}
.btn-register:hover {
  background: linear-gradient(135deg, #F37021, #FF8F3D) !important;
  transform: scale(1.04) !important;
  box-shadow: 0 4px 16px rgba(243,112,33,0.3) !important;
}

/* ─── TOAST ENHANCED ─────────────────────────────────────────── */
.toast-notification {
  background: linear-gradient(135deg, #072F20, #0C4B33) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,0.3) !important;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-orb-1 { width: 300px; height: 300px; }
  .hero-orb-2 { width: 220px; height: 220px; }
  .hero-orb-3 { display: none; }
}

@media (max-width: 640px) {
  .hero-stats-badges { gap: 6px; }
  .hero-stat-badge { padding: 6px 12px; }
  .hero-orb-1, .hero-orb-2, .hero-orb-3 { display: none; }
  #back-to-top { bottom: 24px; right: 16px; width: 40px; height: 40px; }
}
