:root {
  --ink: #fff7df;
  --muted: rgba(255, 242, 204, 0.78);
  --deep-red: #240000;
  --red: #5e0404;
  --red-strong: #8e0b07;
  --gold: #f1b33c;
  --gold-strong: #ffd36a;
  --saffron: #ef741d;
  --panel: rgba(64, 6, 4, 0.78);
  --panel-strong: rgba(94, 8, 5, 0.9);
  --line: rgba(255, 211, 106, 0.24);
  --shadow: 0 28px 70px rgba(7, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#fund,
#programs,
#social,
#contact {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(
      circle at 50% 0%,
      rgba(232, 81, 19, 0.28),
      transparent 38rem
    ),
    linear-gradient(180deg, #200000, #4e0302 45%, #220000);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(30, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 211, 106, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255, 211, 106, 0.55);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  color: rgba(255, 247, 223, 0.86);
  font-size: 0.94rem;
  font-weight: 750;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  padding-block: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--gold);
}

.header-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  color: #2b0500;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(760px, 88vh);
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 15s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: -2;
  background: linear-gradient(
      90deg,
      rgba(23, 0, 0, 0.9),
      rgba(43, 0, 0, 0.44) 48%,
      rgba(20, 0, 0, 0.26)
    ),
    linear-gradient(180deg, rgba(20, 0, 0, 0.12), rgba(20, 0, 0, 0.56));
}

.hero-content {
  width: min(740px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 104px);
  padding-top: 74px;
}

.hero-logo {
  width: clamp(120px, 16vw, 160px);
  height: clamp(120px, 16vw, 160px);
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 22px;
  box-shadow: 0 0 0 3px rgba(255, 211, 106, 0.75),
    0 18px 42px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  color: #fff9e8;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.46);
  animation: titleReveal 1.5s ease-out;
}

h2 {
  margin: 0;
  color: #fff9e8;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

h3 {
  margin: 0 0 10px;
  color: #fff9e8;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 247, 223, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.button.primary {
  color: #2a0500;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.button.secondary {
  color: #fff9e8;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 211, 106, 0.38);
}

.button.wide {
  width: 100%;
}

.button-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(42, 5, 0, 0.12);
  font-weight: 900;
}

.seva-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 211, 106, 0.16);
  border-block: 1px solid rgba(255, 211, 106, 0.18);
}

.seva-item {
  min-height: 108px;
  padding: 24px clamp(18px, 3vw, 34px);
  background: rgba(74, 3, 3, 0.88);
}

.seva-value,
.seva-label {
  display: block;
}

.seva-value {
  color: #fff9e8;
  font-size: clamp(1.25rem, 2.5vw, 1.78rem);
  font-weight: 900;
  line-height: 1.1;
}

.seva-label {
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: clamp(60px, 8vw, 108px) clamp(18px, 4vw, 56px);
}

.section-heading {
  width: min(790px, 100%);
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section-heading p:not(.eyebrow) {
  max-width: 690px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.payment-section {
  background: radial-gradient(
      circle at 82% 8%,
      rgba(255, 211, 106, 0.14),
      transparent 24rem
    ),
    linear-gradient(180deg, #3b0201, #5f0504);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.72fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: stretch;
}

.payment-panel,
.mandal-card,
.program-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.payment-panel,
.mandal-card {
  padding: clamp(22px, 4vw, 34px);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.amount-button {
  min-height: 74px;
  border: 1px solid rgba(255, 211, 106, 0.28);
  border-radius: 8px;
  color: #fff8df;
  background: rgba(255, 211, 106, 0.08);
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 900;
}

.amount-button.is-active,
.amount-button:hover,
.amount-button:focus-visible {
  border-color: var(--gold-strong);
  color: #2b0500;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
}

.custom-amount {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.custom-amount input {
  width: 100%;
  border: 1px solid rgba(255, 211, 106, 0.28);
  border-radius: 8px;
  padding: 14px 15px;
  color: #fff9e8;
  background: rgba(20, 0, 0, 0.36);
  outline: none;
}

.custom-amount input:focus {
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 4px rgba(255, 211, 106, 0.12);
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.payment-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(255, 211, 106, 0.22);
  border-radius: 999px;
  padding: 0 13px;
  color: #ffe7a8;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.86rem;
  font-weight: 900;
}

.payment-app:hover,
.payment-app:focus-visible {
  border-color: var(--gold-strong);
  color: #2b0500;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
}

.payment-panel .button {
  margin-top: 22px;
}

.status-text {
  min-height: 22px;
  margin: 10px 0 0;
  color: #ffe7a8;
  font-size: 0.92rem;
  font-weight: 800;
}

.mandal-card {
  background: linear-gradient(
      180deg,
      rgba(120, 12, 8, 0.88),
      rgba(49, 2, 2, 0.9)
    ),
    var(--panel-strong);
}

.qr-box {
  display: grid;
  grid-template-columns: minmax(132px, 0.44fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 211, 106, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.qr-box img {
  width: 100%;
  max-width: 180px;
  border-radius: 8px;
  background: #fff;
}

.qr-box p {
  margin: 0;
}

.qr-label {
  color: #fff9e8;
  font-size: 1.2rem;
  font-weight: 950;
}

.mandal-card-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: 0 0 0 2px rgba(255, 211, 106, 0.7);
}

.mandal-card p,
.program-card p {
  margin: 0;
  color: var(--muted);
}

.seva-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.seva-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 247, 223, 0.88);
  font-weight: 750;
}

.seva-list li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.programs-section {
  background: linear-gradient(180deg, rgba(25, 0, 0, 0.4), rgba(25, 0, 0, 0.8)),
    url("assets/mandal-theme.png") center / cover fixed;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.program-card {
  min-height: 244px;
  padding: 24px;
  background: rgba(37, 1, 1, 0.82);
}

.program-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: 50%;
  color: #2b0500;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  font-weight: 900;
}

.social-section {
  background: radial-gradient(
      circle at 16% 20%,
      rgba(255, 211, 106, 0.16),
      transparent 23rem
    ),
    linear-gradient(180deg, #4e0302, #270000);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  min-width: 190px;
  border-radius: 8px;
  padding: 0 22px;
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.social-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-button.instagram {
  background: linear-gradient(135deg, #7f35ff, #e83e86 45%, #ff9b3d);
}

.social-button.facebook {
  background: #1877f2;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: rgba(255, 247, 223, 0.72);
  background: #170000;
  border-top: 1px solid rgba(255, 211, 106, 0.16);
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 6px;
}

.footer-title {
  color: #fff9e8;
  font-size: 1.1rem;
  font-weight: 900;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 850;
}

.footer-socials a {
  color: #ffe7a8;
}

@media (max-width: 960px) {
  .site-header {
    position: absolute;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 84vh;
  }

  .hero-content {
    margin-inline: 18px;
  }

  .seva-strip,
  .program-grid,
  .payment-layout {
    grid-template-columns: 1fr 1fr;
  }

  .payment-layout {
    align-items: stretch;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    padding-inline: 14px;
  }

  .brand span {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .header-donate {
    min-height: 38px;
    padding-inline: 14px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(
        180deg,
        rgba(23, 0, 0, 0.36),
        rgba(23, 0, 0, 0.9)
      ),
      linear-gradient(90deg, rgba(23, 0, 0, 0.62), rgba(23, 0, 0, 0.24));
  }

  .hero-content {
    align-self: end;
    padding: 96px 0 42px;
  }

  h1 {
    max-width: 9ch;
  }

  .hero-actions,
  .site-footer,
  .footer-socials {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .seva-strip,
  .program-grid,
  .payment-layout {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .amount-grid {
    grid-template-columns: 1fr 1fr;
  }

  .qr-box {
    grid-template-columns: 1fr;
  }

  .seva-item {
    min-height: 94px;
  }

  .social-button {
    width: 100%;
  }
}
.hero-logo {
  width: clamp(88px, 14vw, 136px);
  height: clamp(88px, 14vw, 136px);
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 22px;
  box-shadow: 0 0 0 3px rgba(255, 211, 106, 0.75),
    0 18px 42px rgba(0, 0, 0, 0.32);

  animation: logoFloat 4s ease-in-out infinite,
    logoGlow 2.5s ease-in-out infinite alternate;
}

@keyframes logoFloat {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes logoGlow {
  0% {
    box-shadow: 0 0 0 3px rgba(255, 211, 106, 0.75),
      0 0 20px rgba(255, 211, 106, 0.4);
  }

  100% {
    box-shadow: 0 0 0 3px rgba(255, 211, 106, 1),
      0 0 40px rgba(255, 211, 106, 0.9);
  }
}
.countdown-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin: 25px 0;
  padding: 20px 35px;

  border-radius: 18px;

  background: linear-gradient(
    135deg,
    rgba(255, 211, 106, 0.18),
    rgba(255, 140, 0, 0.18)
  );

  border: 2px solid rgba(255, 211, 106, 0.7);

  box-shadow: 0 0 20px rgba(255, 211, 106, 0.3),
    0 0 40px rgba(255, 211, 106, 0.15);

  animation: countdownGlow 2s ease-in-out infinite alternate;
}

.countdown-box span {
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  color: #ffd36a;
}

.countdown-box small {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
}

@keyframes countdownGlow {
  from {
    box-shadow: 0 0 20px rgba(255, 211, 106, 0.3),
      0 0 40px rgba(255, 211, 106, 0.15);
  }

  to {
    box-shadow: 0 0 35px rgba(255, 211, 106, 0.7),
      0 0 70px rgba(255, 211, 106, 0.35);
  }
}
@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.countdown-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;

  margin: 12px 0 18px;
  padding: 8px 16px;

  border-radius: 10px;

  background: rgba(255, 211, 106, 0.12);
  border: 1px solid rgba(255, 211, 106, 0.35);
}

.countdown-box span {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  color: #ffd36a;
}

.countdown-box small {
  margin-top: 4px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}
.particles span:nth-child(1) {
  left: 8%;
  top: 80%;
  width: 6px;
  height: 6px;
  animation-duration: 7s;
}

.particles span:nth-child(2) {
  left: 22%;
  top: 30%;
  width: 10px;
  height: 10px;
  animation-duration: 10s;
}

.particles span:nth-child(3) {
  left: 55%;
  top: 65%;
  width: 7px;
  height: 7px;
  animation-duration: 8s;
}

.particles span:nth-child(4) {
  left: 78%;
  top: 25%;
  width: 12px;
  height: 12px;
  animation-duration: 11s;
}

.particles span:nth-child(5) {
  left: 88%;
  top: 75%;
  width: 5px;
  height: 5px;
  animation-duration: 9s;
}

.particles span:nth-child(6) {
  left: 38%;
  top: 15%;
  width: 9px;
  height: 9px;
  animation-duration: 12s;
}
@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  50% {
    transform: translateY(-120px) translateX(20px);
  }

  100% {
    transform: translateY(-250px) translateX(-15px);
    opacity: 0;
  }
}
.sticky-donate {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  z-index: 9999;

  background: linear-gradient(180deg, #ffd36a, #f1b33c);

  color: #2b0500;
  font-weight: 900;

  padding: 14px 30px;
  border-radius: 999px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .sticky-donate {
    display: none;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.hero-tagline {
  margin-top: 10px;
  color: #ffd36a;
  font-size: 1.3rem;
  font-weight: 700;
}
@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}
.payment-panel:hover,
.mandal-card:hover,
.program-card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
}
