/* MudraSahay Custom CSS Styling */

:root {
  /* Brand Colors from Logo */
  --primary-navy: #0F2E59;
  --primary-navy-light: #1E3E62;
  --secondary-green: #005B41;
  --secondary-green-light: #008170;
  --accent-gold: #E28700;
  --accent-gold-light: #F5A623;
  --accent-brown: #854D0E;
  
  /* Light Theme backgrounds */
  --bg-light: #FDFDFB;
  --bg-light-alt: #F7F7F3;
  --bg-card: #FFFFFF;
  
  /* Text colors */
  --text-dark: #1E293B;
  --text-muted: #64748B;
  
  /* Custom borders & shadows */
  --border-light: #E2E8F0;
  --card-shadow: 0 10px 40px -10px rgba(15, 46, 89, 0.06);
  --glow-shadow: 0 0 25px rgba(226, 135, 0, 0.12);
  
  /* Layout */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary-navy);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-navy) 20%, var(--secondary-green) 70%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-brand-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: #FFFFFF;
  border: none;
  font-weight: 600;
  padding: 0.65rem 0.5rem;
  box-shadow: 0 4px 15px rgba(226, 135, 0, 0.2);
  transition: var(--transition-smooth);
}
.btn-brand-primary:hover {
  transform: translateY(-2px);
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(226, 135, 0, 0.35);
}

.btn-brand-outline {
  border: 1.5px solid var(--secondary-green);
  color: var(--secondary-green);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  transition: var(--transition-smooth);
}
.btn-brand-outline:hover {
  background-color: var(--secondary-green);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 91, 65, 0.15);
}

/* Navbar glassmorphism & scrolls */
.navbar-custom {
  background-color: transparent;
  transition: var(--transition-smooth);
}
.navbar-custom.scrolled {
  background-color: rgba(253, 253, 251, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 20px rgba(15, 46, 89, 0.03);
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark) !important;
  opacity: 0.85;
  transition: var(--transition-smooth);
  font-size: 14px !important;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-gold) !important;
  opacity: 1;
}

/* Custom cards */
.custom-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  overflow: hidden;
  padding: 2.5rem;
}
.custom-card:hover {
  border-color: rgba(0, 91, 65, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px -12px rgba(15, 46, 89, 0.12);
}

/* Animated Sun Rays */
@keyframes spinRays {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.sun-rays-bg {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  opacity: 0.05;
  pointer-events: none;
  animation: spinRays 80s linear infinite;
  z-index: 0;
}

/* Floating Coins */
@keyframes floatCoin {
  0% {
    transform: translateY(30px) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% {
    transform: translateY(-120px) scale(1.1) rotate(180deg);
    opacity: 0;
  }
}
.coin-element {
  position: absolute;
  pointer-events: none;
  animation: floatCoin 4s ease-in-out infinite;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1.4rem;
  z-index: 1;
}

/* Growing Wheat Stalks Path */
@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}
.wheat-grow-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Embracing Arc */
@keyframes pulseArc {
  0%, 100% {
    border-color: rgba(15, 46, 89, 0.15);
    box-shadow: 0 10px 40px -10px rgba(15, 46, 89, 0.06);
  }
  50% {
    border-color: var(--accent-gold-light);
    box-shadow: 0 10px 40px -10px rgba(226, 135, 0, 0.15);
  }
}
.embracing-arc {
  border: 1.5px solid var(--border-light);
  border-radius: 24px;
  animation: pulseArc 8s ease-in-out infinite;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-navy), var(--secondary-green));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}
@media (max-width: 767.98px) {
  .timeline::after {
    left: 31px;
  }
}
.timeline-item {
  padding: 1rem 3rem;
  position: relative;
  width: 50%;
}
.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--accent-gold);
  border: 4px solid var(--bg-light);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px rgba(226, 135, 0, 0.3);
}
@media (max-width: 767.98px) {
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }
  .timeline-item::after {
    left: 21px;
    top: 25px;
  }
}
.timeline-left {
  left: 0;
}
.timeline-right {
  left: 50%;
}
@media (max-width: 767.98px) {
  .timeline-right {
    left: 0%;
  }
}
.timeline-left::after {
  right: -10px;
}
.timeline-right::after {
  left: -10px;
}

/* Footer overrides */
.footer-link-hover {
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}
.footer-link-hover:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}
.social-icon-hover {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(15, 46, 89, 0.03);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  transition: var(--transition-smooth);
}
.social-icon-hover:hover {
  background-color: var(--secondary-green-light);
  color: #FFFFFF;
  border-color: var(--secondary-green-light);
  transform: translateY(-3px);
}

/* Forms & Select custom arrow styling */
.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.form-input:focus {
  border-color: var(--secondary-green-light);
  box-shadow: 0 0 15px rgba(0, 129, 112, 0.08);
  outline: none;
}

/* General Layouts */
.section-padding {
  padding: 6rem 0;
}
.page-header {
  padding: 140px 0 60px 0;
  text-align: center;
  background-color: var(--bg-light-alt);
  border-bottom: 1px solid var(--border-light);
}

/* FAQ Accordion Styling */
.faq-btn {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 700;
  color: var(--primary-navy);
  font-size: 1.05rem;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-chevron {
  color: var(--accent-gold);
  transition: transform 0.3s;
}
.faq-btn:not(.collapsed) .faq-chevron {
  transform: rotate(180deg);
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* ==========================================================================
   Sophisticated Web Animations & Transitions System
   ========================================================================== */

/* 1. Page Transition Overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-navy-light) 100%);
  z-index: 999999;
  pointer-events: none;
  transform: translateX(-100%);
  will-change: transform;
}

.page-transition-overlay.exit-active {
  transform: translateX(0);
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition-overlay.entrance-active {
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}

/* 2. Scroll-Triggered Reveal Animations */
.reveal-fade,
.reveal-slide-up,
.reveal-left,
.focal-zoom {
  opacity: 0;
  transition-property: opacity, transform, filter;
  transition-duration: 0.85s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-slide-up {
  transform: translateY(35px);
}

.reveal-left {
  transform: translateX(-35px);
}

.reveal-fade {
  filter: blur(4px);
}

.focal-zoom {
  transform: scale(0.93);
}

/* Active State Triggered by IntersectionObserver */
.reveal-fade.active,
.reveal-slide-up.active,
.reveal-left.active,
.focal-zoom.active {
  opacity: 1;
  transform: translate(0) scale(1);
  filter: blur(0);
}

/* Stagger Delay Formulas */
.reveal-fade.active,
.reveal-slide-up.active,
.reveal-left.active,
.focal-zoom.active {
  transition-delay: calc(var(--delay, 0) * 110ms);
}

/* 3. Focal Point & CTA Highlights */
@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 135, 0, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(226, 135, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 135, 0, 0); }
}

.pulse-accent-gold {
  animation: goldPulse 2.2s infinite;
}

/* Smooth zoom on focal items */
.hover-grow {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-grow:hover {
  transform: scale(1.03);
}

