/* style.css – Shri Krishna Udhav Memorial Trust (Final) */

/* -------------------------------
   Global
--------------------------------*/
body {
  font-family: 'Poppins', sans-serif;
  background: #f7fafe;
  color: #222;
  scroll-behavior: smooth;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
}

/* -------------------------------
   Navbar
--------------------------------*/
.navbar {
  background: linear-gradient(90deg, #005baa 80%, #59aaf9 100%);
  border-bottom-left-radius: 1em;
  border-bottom-right-radius: 1em;
  box-shadow: 0 2px 8px #005baa22;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 16px #005baa44;
}

.navbar-brand,
.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 600;
}

.navbar-nav .nav-link:hover {
  color: #ffd600 !important;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 0.5em;
  box-shadow: 0 2px 8px #005baa22;
}

/* -------------------------------
   Hero Section
--------------------------------*/
.hero-section {
  text-align: center;
  padding: 6em 1em 3em;
  background: linear-gradient(120deg, #005baa 60%, #59aaf9 100%);
  color: #fff;
  border-bottom-left-radius: 2em;
  border-bottom-right-radius: 2em;
  position: relative;
}

.hero-section h1 {
  font-size: 2.8em;
  font-weight: 700;
  text-shadow: 0 2px 12px #004a9988;
}

.hero-section p {
  font-size: 1.25em;
  font-weight: 500;
  margin: 1em 0 2em;
}

.hero-img {
  border-radius: 1em;
  box-shadow: 0 4px 16px #004a9922;
  max-width: 90%;
}

/* -------------------------------
   Buttons
--------------------------------*/
.btn-cta {
  background: linear-gradient(90deg, #ffeb3b 60%, #ffd600 100%);
  color: #222;
  font-weight: 600;
  border-radius: 2em;
  padding: 0.75em 2em;
  border: none;
  box-shadow: 0 2px 8px #ffd60055;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px #ffd60088;
}

/* -------------------------------
   Sections
--------------------------------*/
section {
  padding: 80px 0;
}

.section-title {
  font-weight: 700;
  font-size: 2em;
  color: #005baa;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 12px #59aaf944;
  text-align: center;
}

.section-subtitle {
  color: #444;
  font-size: 1.1em;
  margin-bottom: 2em;
  text-align: center;
}

.card-section {
  background: #fff;
  border-radius: 1.5em;
  box-shadow: 0 4px 24px #28359333;
  padding: 2em;
  margin-bottom: 2em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px #28359355;
}

/* -------------------------------
   Team & Gallery
--------------------------------*/
.team-photo {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #005baa;
  box-shadow: 0 2px 16px #005baa22;
  transition: transform 0.3s ease;
}

.team-photo:hover {
  transform: scale(1.1);
}

.gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1em;
  box-shadow: 0 2px 12px #005baa22;
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px #005baa55;
}

/* -------------------------------
   Donate Inputs
--------------------------------*/
.donate-card input,
.donate-card textarea,
.donate-card select {
  margin-bottom: 1em;
  border-radius: 1em;
  border: 1px solid #59aaf9;
  padding-left: 1em;
  background: #f7fafe;
  width: 100%;
  padding: 10px;
}

.donate-card input:focus,
.donate-card textarea:focus {
  border-color: #005baa;
  outline: none;
  box-shadow: 0 0 8px #005baa55;
}

/* -------------------------------
   Footer
--------------------------------*/
.footer {
  background: linear-gradient(90deg, #005baa 80%, #222 100%);
  color: #fff;
  padding: 3em 0 1em;
  border-top-left-radius: 1em;
  border-top-right-radius: 1em;
}

.footer a {
  color: #ffeb3b;
  text-decoration: underline;
}

.footer a:hover {
  color: #fff;
}

.footer h5 {
  font-weight: 600;
  margin-bottom: 1em;
}

.footer-logo {
  width: 45px;
  border-radius: 50%;
}

.footer .bottom {
  text-align: center;
  margin-top: 2em;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1em;
  font-size: 0.9em;
  color: #ddd;
}

/* -------------------------------
   Back to Top
--------------------------------*/
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: none;
  background: #ffeb3b;
  color: #222;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  border-radius: 50%;
  box-shadow: 0 2px 8px #ffd60055;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s;
}

#backToTop.show {
  display: block;
  opacity: 1;
}

#backToTop:hover {
  transform: scale(1.1);
}

/* -------------------------------
   Fade-in Animation (JS linked)
--------------------------------*/
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Counter */
.counter { font-size: 2.5em; font-weight: 700; color: #005baa; text-shadow: 0 2px 12px #59aaf944; }

/* Testimonials */
#testimonials .card { border-radius: 1em; box-shadow: 0 4px 20px #28359333; transition: transform 0.3s ease; }
#testimonials .card:hover { transform: translateY(-5px); }

/* Gallery Lightbox */
#lightbox img { border-radius: 1em; }

/* Floating Donate Button */
#donateFloat {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(90deg,#ffeb3b 60%, #ffd600 100%);
  color: #222;
  padding: 15px 20px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 2px 10px #ffd60055;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease;
}
#donateFloat:hover { transform: scale(1.1); }


.upi-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.upi-content {
  background: #fff;
  padding: 2em;
  border-radius: 1em;
  text-align: center;
  position: relative;
}
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
}

.navbar-nav .nav-link.active {
  font-weight: 600;
  color: #007bff !important;
  border-bottom: 2px solid #007bff;
}


.gallery-container {
  overflow: hidden;
  position: relative;
}

.gallery-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s ease;
}

.gallery-slide {
  flex: 0 0 25%; /* 4 images per view */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px; /* set fixed height for cropping */
  overflow: hidden;
  border-radius: 5px;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill & crop */
  display: block;
}


.card-img-top {
  width: 100%;
  height: 200px;       /* fixed height for cropping */
  object-fit: cover;   /* fill & crop proportionally */
  display: block;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
