/* 
   Aarambhika Foundation - Custom Styles 
   Template Reference: Donar
*/

:root {
  --primary-color: #e65100; /* Deep Saffron/Orange */
  --secondary-color: #ffb300; /* Marigold/Gold */
  --text-dark: #222222;
  --text-muted: #555555;
  --bg-light: #f8f9fa;
  --bg-shade: #fff8f2; /* Warm shade instead of cool grey */
  --white: #ffffff;
  --font-primary: 'DM Sans', sans-serif;
  --font-secondary: 'Playfair Display', serif;
}

body {
  font-family: var(--font-primary);
  color: var(--text-muted);
  -webkit-font-smoothing: antialiased;
}

/* Lenis Smooth Scroll Fixes */
html.lenis,
html.lenis body {
  height: auto;
}

html.lenis {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Performance optimization for smooth scroll */
.sec-padding {
  will-change: transform;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Typography Helpers */
.display-2 { font-size: calc(1.5rem + 2.5vw); font-weight: 700; }
.display-3 { font-size: calc(1.4rem + 1.8vw); font-weight: 700; }
.display-4 { font-size: calc(1.3rem + 1.2vw); font-weight: 700; }
.display-5 { font-size: calc(1.2rem + 0.6vw); font-weight: 700; }
.sub-title { 
  color: var(--primary-color); 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 15px;
}
.sec-title { margin-bottom: 30px; }
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; color: var(--white); }
.bg-secondary { background-color: var(--secondary-color) !important; color: var(--text-dark); }
.bg-shade { background-color: var(--bg-shade) !important; }

/* Buttons */
.btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: capitalize;
}
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}
.btn-primary:hover {
  background-color: var(--text-dark);
  border-color: var(--text-dark);
  color: var(--white);
}
.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-dark);
}
.btn-secondary:hover {
  background-color: var(--white);
  border-color: var(--white);
}
.btn-outline-dark {
    border-color: var(--text-dark);
    color: var(--text-dark);
}
.btn-outline-dark:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}
.btn i { margin-left: 8px; }

/* Global Utilities */
.sec-padding { padding: 90px 0; }
.bg-cover { background-size: cover; background-position: center; background-repeat: no-repeat; }
.parallax-overly {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.round { border-radius: 20px; }

/* Premium Shadows & Glassmorphism Utilities */
.shadow-sm { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important; }
.shadow { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important; }
.shadow-lg { box-shadow: 0 15px 40px rgba(230, 81, 0, 0.12) !important; } /* Tinted shadow */

.glass-panel {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ===================================== */
/* Preloader */
/* ===================================== */
#preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--white);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-spin {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(26, 104, 91, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================================== */
/* Header & Navigation */
/* ===================================== */
.header-top { padding: 10px 0; font-size: 14px; }
.header-socials a {
  color: var(--text-dark);
  margin-left: 15px;
  transition: 0.3s;
}
.header-socials a:hover { color: var(--primary-color); }

.header-nav-wrapper {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 25px rgba(0,0,0,0.06);
  transition: 0.3s;
}
.header-nav-wrapper.fixed-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 999;
  animation: stickySlideDown 0.5s ease;
}
@keyframes stickySlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  padding: 25px 15px;
  text-transform: capitalize;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
  color: var(--primary-color);
}
.nav-donate .btn { padding: 10px 25px; }

/* Offcanvas Sidebar */
.canvas-menu { padding: 40px; }
.vertical-menu { list-style: none; padding: 0; }
.vertical-menu li { margin-bottom: 15px; }
.vertical-menu a {
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.vertical-menu a:hover { color: var(--primary-color); padding-left: 10px; }

/* ===================================== */
/* Hero Slider */
/* ===================================== */
.hero-slider1 .slide-item {
  height: 800px;
  display: flex;
  align-items: center;
}
.hero-slider1 .slide-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
}
.hero-slider1 .slide-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
}
.hero-slider1 .slide-title {
  font-size: calc(2.5rem + 3.5vw);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-slider1 .lead { font-size: 20px; font-weight: 400; opacity: 0.9; }
.play-btn {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-left: 20px;
  text-decoration: none;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(247, 183, 49, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(247, 183, 49, 0); }
  100% { box-shadow: 0 0 0 0 rgba(247, 183, 49, 0); }
}

/* Float Animations overlay */
.anim-img { position: absolute; z-index: 2; animation: floatUp 6s ease-in-out infinite; }
.anim-2 { animation-delay: 2s; }
.rotate { animation: rotate 15s linear infinite; }
@keyframes floatUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Fix mission card stair-stepping layout during wow animations */
.mission-card {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

