:root {
  --primary-color: #ff6b35;
  --secondary-color: #f7931e;
  --accent-color: #2c3e50;
  --light-bg: #f8f9fa;
  --dark-bg: #2c3e50;
  --text-dark: #333;
  --text-light: #666;
  --gradient-primary: linear-gradient(135deg, #ff6b35, #f7931e);
  --gradient-secondary: linear-gradient(135deg, #667eea, #764ba2);
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive font size for smaller screens */
@media (max-width: 576px) {
  .navbar-brand {
    font-size: 14px;
  }

  .navbar-brand i {
    font-size: 1rem;
    margin-right: 4px;
  }
}

/* Footer Brand Separate Style */
.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gradient-primary); /* Normal dark text */
  text-decoration: none;
}

/* Responsive Footer Font Size */
@media (max-width: 576px) {
  .footer-brand {
    font-size: 14px;
  }
}


.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  transition: all 0.3s ease;
  position: relative;
  margin: 0 10px;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.hero-carousel {
  position: relative;
}

.hero-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* soft shadow-like overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

/* Section Styling */
.section {
  padding: 40px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  color: var(--accent-color);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Cards */
.card {
  border: none;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  overflow: hidden;
  background: white;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(360deg);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.card-text {
  color: var(--text-light);
  line-height: 1.6;
}

/* Stats Section */
.stats {
  background: var(--gradient-primary);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"><animate attributeName="r" values="1;10;1" dur="8s" repeatCount="indefinite"/></circle></svg>');
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.stat-item {
  text-align: center;
  padding: 20px;
  z-index: 2;
  position: relative;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Section */
.about {
  background: var(--light-bg);
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
}

/* Activities Grid */
.activities {
  padding: 40px 0;
}

.activity-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.activity-icon {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.activity-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--accent-color);
}

/* Temple Section */
.temple {
  background: var(--gradient-secondary);
  color: white;
  padding: 80px 0;
  position: relative;
}

.temple::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 20,90 80,90" fill="rgba(255,255,255,0.1)" opacity="0.3"><animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="30s" repeatCount="indefinite"/></polygon></svg>');
  background-size: 200px 200px;
}

.temple-content {
  z-index: 2;
  position: relative;
}

.temple-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.temple-feature {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Donation Section */
.donation {
  background: var(--light-bg);
  padding: 40px 0;
}

.donation-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: all 0.3s ease;
}

.donation-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.donation-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: white;
  padding: 50px 0 20px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

.footer-section {
  margin-bottom: 30px;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

/* ✅ Small laptop & tablets (up to 1024px) */
@media (max-width: 1024px) {
  .footer-link {
    font-size: 11px;
    margin-bottom: 10px;
  }
}

/* ✅ Tablets (up to 768px) */
@media (max-width: 768px) {
  .footer-link {
    font-size: 15px;
    margin-bottom: 12px;
  }
}

/* ✅ Mobile devices (up to 480px) */
@media (max-width: 480px) {
  .footer-link {
    font-size: 12px;
    margin-bottom: 14px;
  }
}


.footer-link:hover {
  color: var(--secondary-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .temple-features {
    grid-template-columns: 1fr;
  }
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

/* Gallery Container */
.gallery-container {
  padding: 40px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  background: white;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.8),
    rgba(46, 125, 50, 0.8)
  );
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: all 0.4s ease;
  z-index: 3;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gallery-count {
  font-size: 0.9rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 4;
}

.gallery-item:hover .gallery-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.gallery-icon i {
  color: white;
  font-size: 1.5rem;
}
/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    height: 30vh;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .gallery-container {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-img {
    height: 200px;
  }
}

/* Loading Animation */
.gallery-item {
  animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Custom LightGallery Styles */
.lg-backdrop {
  background-color: rgba(0, 0, 0, 0.9);
}

.lg-toolbar {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}
