* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Noto Sans Devanagari", sans-serif;
  /* background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); */
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: url("img/new-bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Animated background particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ef9d49;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Blurred background shapes */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: drift 8s ease-in-out infinite;
}

.bg-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, #ff9a9e, #fecfef);
  top: 10%;
  left: 10%;
  animation-delay: -2s;
}

.bg-shape:nth-child(2) {
  width: 250px;
  height: 250px;
  background: linear-gradient(45deg, #a8edea, #fed6e3);
  top: 60%;
  right: 15%;
  animation-delay: -4s;
}

.bg-shape:nth-child(3) {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #ffecd2, #fcb69f);
  bottom: 10%;
  left: 20%;
  animation-delay: -6s;
}

@keyframes drift {
  0%,
  100% {
    transform: translateX(0px) translateY(0px) scale(1);
  }
  33% {
    transform: translateX(30px) translateY(-30px) scale(1.1);
  }
  66% {
    transform: translateX(-20px) translateY(20px) scale(0.9);
  }
}

.container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

/* Logo */
.logo {
  /* width: 350px;
  height: 350px;
  background: white;
  border-radius: 50%; */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
  /* animation: glow 3s ease-in-out infinite; */
  margin-top: 40px;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.3);
  }
}

.logo svg {
  width: 350px;
  height: 350px;
}

/* Main heading */
.main-heading {
  font-size: 5rem;
  font-weight: 700;
  color: #ef9d49;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: slideInUp 1s ease-out;
}

.sub-heading {
  font-size: 2.5rem;
  color: #ef9d49;
  margin-bottom: 30px;
  font-weight: 600;
  animation: slideInUp 1s ease-out 0.2s both;
}

.temple-name {
  font-size: 2rem;
  color: #ef9d49;
  font-weight: 600;
  margin-bottom: 30px;
  animation: slideInUp 1s ease-out 0.4s both;
}

/* Content cards */
.content-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  margin: 20px 0;
  max-width: 1000px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  animation: slideInUp 1s ease-out 0.6s both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

.description.hindi {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: 1.2rem;
}

.description.english {
  font-style: italic;
  color: #666;
}

/* Contact section */
.contact-heading {
  font-size: 1.5rem;
  color: #8b0000;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid #cc5500;
  padding-bottom: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  font-size: 1rem;
  color: #555;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  color: #cc5500;
}

/* Quote section */
.quote-card {
  background: linear-gradient(135deg, #fff7e6, #ffe4b5);
  border-left: 5px solid #cc5500;
  border-right: 5px solid #cc5500;
  animation: slideInUp 1s ease-out 0.8s both;
}

.quote {
  font-size: 1.3rem;
  font-weight: 500;
  color: #8b0000;
  margin-bottom: 10px;
}

.quote.hindi {
  font-family: "Noto Sans Devanagari", sans-serif;
}

.quote.english {
  font-size: 1.1rem;
  color: #cc5500;
  font-style: italic;
}

/* Footer */
.footer {
  /* background: rgba(255, 255, 255, 0.8); */
  /* backdrop-filter: blur(10px); */
  /* border-radius: 15px; */
  padding: 20px;
  margin-top: 30px;
  animation: slideInUp 1s ease-out 1s both;
}

.footer p {
  color: #ef9d49;
  font-size: 1rem;
}

.address {
  align-items: flex-start;
}

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

/* Responsive design */
@media (max-width: 768px) {
  .main-heading {
    font-size: 3rem;
  }

  .sub-heading {
    font-size: 1.7rem;
  }

  .temple-name {
    font-size: 2rem;
  }

  .content-card {
    padding: 20px;
    margin: 15px 10px;
  }

  .logo {
    width: 100%;
    height: 100%;
  }

  .logo svg {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .main-heading {
    font-size: 3rem;
  }

  .description {
    font-size: 1rem;
  }

  .quote {
    font-size: 1.1rem;
  }
}

a {
  color: #555;
  text-decoration: none;
}
a:hover {
  color: #8b0000;
}

/* Popup */

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: linear-gradient(135deg, #8b2635, #a52a2a);
  border-radius: 15px;
  padding: 0;
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.7) translateY(-50px);
  transition: all 0.3s ease;
  border: 2px solid #ef9d49;
}

.popup-overlay.show .popup-content {
  transform: scale(1) translateY(0);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #ef9d49;
  cursor: pointer;
  z-index: 1001;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  line-height: normal;
  letter-spacing: normal;
  font-weight: bold;
}

.popup-close:hover {
  color: white;
}

.popup-header {
  padding: 15px;
  padding-bottom: 0px;
  text-align: center;
  /* border-bottom: 1px solid rgba(212, 175, 55, 0.3);s */
}

.sacred-geometry {
  margin-bottom: 5px;
  display: flex;
  justify-content: center;
}

.popup-title {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: 1.3rem;
  color: #ef9d49;
  font-weight: 500;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.popup-image-container {
  width: 100%;
  height: auto;
  /* overflow: hidden; */
  padding: 20px;
}

.popup-image {
  width: max-content;
  height: 350px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 10px;
  border: 5px solid white;
  margin: 0 auto;
}

.popup-text {
  padding: 15px;
  padding-top: 0px;
  text-align: center;
  color: white;
}

.event-dates {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: 1.5rem;
  color: #ef9d49;
  margin-bottom: 5px;
  font-weight: 700;
}

.location {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: 1.3rem;
  color: white;
  margin-bottom: 5px;
  font-weight: 500;
}

.contact {
  font-family: "Noto Sans Devanagari", sans-serif;
  font-size: 1rem;
  color: #ef9d49;
  margin: 0;
  font-weight: 500;
}

.popup-overlay .sacred-geometry svg {
  width: 125px;
  height: auto;
}

/* Responsive popup */
@media (max-width: 768px) {
  .popup-content {
    max-width: 95%;
    margin: 20px;
  }

  .popup-image-container {
    height: auto;
    padding: 15px;
  }

  .popup-image {
    height: 300px;
  }

  .popup-header {
    padding: 15px;
    padding-bottom: 0px;
  }

  .popup-title {
    font-size: 1.3rem;
  }

  .event-dates {
    font-size: 1.3rem;
  }

  .location {
    font-size: 1.1rem;
  }

  .contact {
    font-size: 1rem;
  }

  .popup-overlay .sacred-geometry svg {
    width: 125px;
    height: auto;
  }
}
