/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #1e1e1e;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 90px;
}

/* ACTIVE LINK */
.nav-links a.active {
  color: #8c39ae;
  font-weight: bold;
  border-bottom: 2px solid #8c39ae;
}

/* MATERIAL ICONS */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 40;
  font-size: 40px;
  color: #5e2b97;
  margin-bottom: 1rem;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #5e2b97;
}
.logo {
  height: 60px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: #1e1e1e;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0.2rem;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: #8c39ae;
}
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  margin-left: 1rem;
  color: #5e2b97;
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 5rem 2rem 2rem;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #5e2b97;
}
.hero p {
  font-size: 1.25rem;
  color: #444;
}

/* FEATURES */
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
}
.card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  width: 300px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #5e2b97, #8c39ae);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}
.card * {
  pointer-events: none;
}
.card:hover {
  transform: scale(1.1);
  animation: glow 1.5s infinite alternate;
}
@keyframes glow {
  0% {
    box-shadow:
      0 0 5px #5e2b97,
      0 0 10px #5e2b97,
      0 0 15px #5e2b97,
      0 0 20px #5e2b97;
  }
  50% {
    box-shadow:
      0 0 5px #ffffff,
      0 0 10px #ffffff,
      0 0 15px #ffffff,
      0 0 20px #ffffff;
  }
  100% {
    box-shadow:
      0 0 5px #8c39ae,
      0 0 10px #8c39ae,
      0 0 15px #8c39ae,
      0 0 20px #8c39ae;
  }
}

/* FOOTER */
.footer {
  background: #ffffff;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: absolute;
    bottom: 0;
    width: -webkit-fill-available;
}
.footer-wave {
  width: 100%;
  height: 160px;
  line-height: 0;
  position: relative;
}
.wave {
  display: block;
  width: 100%;
  height: 100%;
}
.footer-content {
  background: linear-gradient(to right, #5e2b97, #8c39ae);
  padding: 2.5rem 1rem;
  font-size: 1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-content p {
  margin: 0;
  color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .footer-wave {
    height: 140px;
  }
  .footer-content {
    padding: 2rem 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 1024px) {
  .features {
    gap: 1.5rem;
    padding: 2.5rem 1rem;
  }
  .card {
    width: 90%;
  }
  .footer-wave {
    height: 120px;
  }
  .footer-content {
    padding: 2rem 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .features {
    flex-direction: column;
    align-items: center;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    right: 20px;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin-bottom: 1rem;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .footer-wave {
    height: 100px;
  }
  .footer-content {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ==== LEARN PAGE STYLES ==== */

/* Download Section */
.download-section {
  text-align: center;
  padding: 4rem 2rem;
  background: #f9f7ff;
}

.download-section h2 {
  font-size: 2rem;
  color: #5e2b97;
  margin-bottom: 1rem;
}

.download-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #444;
}

.download-btn {
  display: inline-block;
  background: linear-gradient(to right, #5e2b97, #8c39ae);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(140, 57, 174, 0.3);
}

/* For Hero Section Adjustments */
.hero h1 {
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Feature Section Padding Tweak */
.features {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-box {
  background: #f9f7ff;
  border-left: 5px solid #8c39ae;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.about-box h2 {
  color: #5e2b97;
  margin-bottom: 0.8rem;
}

.about-box p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
}

/* ===== DONATE FORM SECTION ===== */
.donate-form-section {
  padding: 3rem 2rem;
  display: flex;
  justify-content: center;
}
.donate-form {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.donate-form h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: #5e2b97;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #5e2b97;
  font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
.upi-qr {
  max-width: 200px;
  margin-top: 1rem;
  border: 2px solid #8c39ae;
  border-radius: 12px;
}

/* ===== SUBMIT BUTTON ===== */
.donate-submit {
  background: linear-gradient(to right, #5e2b97, #8c39ae);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: background 0.3s ease;
}
.donate-submit:hover {
  background: linear-gradient(to right, #4b208a, #7627b8);
}

/* ===== SUCCESS MODAL ===== */
.success-modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.success-modal.show {
  display: flex;
}
.success-box {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.success-box h3 {
  color: #5e2b97;
  margin-bottom: 1rem;
}
.success-box button {
  margin-top: 1rem;
  background: #5e2b97;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
}







/*Flip CSS*/
.card-container {
  perspective: 1000px;
  width: 300px;
  height: 200px;
}

.card {
  /*width: 100%;*/
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.card-container:hover .card {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  top:0;
  /*width: 100%;*/
  height: 100%;
  backface-visibility: hidden;
  /*background: #fff;*/
  /*border: 1px solid #ccc;*/
  border-radius: 10px;
  /*padding: 20px;*/
  box-sizing: border-box;
}

.card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /*background: #f0f0f0;*/
}

.main_class{
    z-index: 99999;
    position: relative;
}


@media screen and (max-width: 768px) {
    .footer {
        bottom: unset;
    }
}

.theme-btn{
    background:linear-gradient(to right, #5e2b97, #8c39ae);
    color: white !important;
}
