/* Samridhi Manavata Foundation - Style Sheet */

/* Base Styles & Custom Variables */
:root {
  --primary-color: #F59E0B;
  --secondary-color: #FFFFFF;
  --text-color: #222222;
  --bg-color: #F8F9FA;
  --accent-color: #2563EB;
  --success-color: #22C55E;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

/* Glassmorphism Styles */
.glass-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

/* Scroll Progress Bar */
#scroll-progress {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s ease-out;
}

/* Animations & Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animation Classes mapped for JS Intersection Observer trigger */
.animate-trigger {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.animate-fade-up.animated {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-left.animated {
  animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-right.animated {
  animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-zoom-in.animated {
  animation: zoomIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-up.animated {
  animation: scaleUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Page Loader styling */
#page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #FFFFFF;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Image Card Hover Animations */
.hover-card-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-card:hover .hover-card-img {
  transform: scale(1.05);
}

/* Premium Shadows */
.shadow-premium {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.01);
}
.shadow-premium-hover {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.shadow-premium-hover:hover {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* Custom Masonry Helper (Fallback if CSS Grid needs manual column count) */
.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
}
@media (min-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }
}
@media (min-width: 1024px) {
  .masonry-grid {
    column-count: 3;
  }
}
.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
}

/* Lightbox Modal custom stylings */
.lightbox-modal {
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.95);
  transition: opacity 0.3s ease;
}
