:root {
  --max-width: 1080px;
  --radius: 12px;
  --space-section-sm: 3rem;
  --space-section-md: 4rem;
  --space-section-lg: 3.5rem;
  
  --font-size-hero: 5.6rem;
  --font-size-h1: 5.6rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 2.4rem;
  --font-size-body: 1.7rem;
  --font-size-subtitle: 2.5rem;
  
  --line-height-tight: 1.1;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
}

#videoBG {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

@media (min-aspect-ratio: 16/9) {
  #videoBG {
    width: 100%;
    height: auto;
  }
}

@media (max-aspect-ratio: 16/9) {
  #videoBG {
    width: auto;
    height: 100%;
  }
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

.container {
   max-width: var(--max-width);
   margin: 0 auto;
   padding: 0 2.4rem;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--line-height-tight);
}

h1 {
   font-size: var(--font-size-h1);
   margin-bottom: 2.4rem;
}

h2 {
   font-size: var(--font-size-h2);
   margin-bottom: 2rem;
   font-weight: 400;
}

h3 {
   font-size: var(--font-size-h3);
   margin-bottom: 1.2rem;
}

p {
  margin-bottom: 1.6rem;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.center {
  text-align: center;
}

.section-subtitle {
    font-size: var(--font-size-subtitle);
    max-width: 550px;
    margin: 0 auto 4.8rem;
    font-weight: 400;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 3.2rem;
    font-size: 2rem;
    font-weight: 500;
    border-radius: 999px;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
    cursor: pointer;
    text-align: center;
    min-width: fit-content;
    width: auto;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: scale(1.02);
}

.btn-donate-pulse {
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--pulse-color, rgba(254, 2, 2, 0.3));
  }
  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
}

.btn-large {
   padding: 1.8rem 3.6rem;
   font-size: 1.9rem;
}

.btn-block {
   width: 100%;
   max-width: 40rem;
}

@media (max-width: 768px) {
   .btn-block {
     max-width: 100%;
     width: auto;
   }
}

.header {
   padding: 1rem 0 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.heartrate-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  max-width: 150%;
  -webkit-mask-image: linear-gradient(to right, transparent 10%, black 50%, transparent 50%), linear-gradient(to right, transparent 60%, black 100%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 10%, black 50%, transparent 50%), linear-gradient(to right, transparent 60%, black 100%, transparent 100%);
  animation: heartbeat-travel 6s infinite linear;
  /*
    Percentage-based mask-position only "moves" when the mask image size differs from
    the element size. Make the mask wider so animating mask-position with % works
    responsively across screen sizes.
  */
  -webkit-mask-size: 200% 100%;
  mask-size: 200% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

@keyframes heartbeat-travel {
  from {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  to {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
  }
}

.logo-link {
  display: inline-block;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  height: 14rem;
}

.logo {
  height: 100%;
  width: auto;
  position: relative;
  transform-origin: center;
  will-change: transform;
  animation: logo-heartbeat 1s infinite ease-in-out;
}

.logo-save {
  height: 85%;
}

.logo-rave {
  height: 100%;
  /* Half-cycle offset so this hits the "second beat" */
  animation-delay: 0.25s;
}

@keyframes logo-heartbeat {
  /* baseline */
  0% { transform: scale(1); }

  /* beat */
  32% { transform: scale(1.06); }
  40% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-save,
  .logo-rave {
    animation: none;
  }
}



@media (min-width: 769px) and (max-width: 1024px) {
  .heartrate-icon {
    width: 120%;
    max-width: 120%;
  }
}

@media (max-width: 768px) {
   .header {
     padding: 2rem 0 0;
   }

   .logo-container {
     height: 8rem;
     gap: 0.1rem;
   }
   
   .logo {
     height: 100%;
     width: auto;
     max-width: 90%;
   }
   
   .heartrate-icon {
     width: 140%;
     max-width: 140%;
   }
}

.hero {
     padding-top: 1rem;
     padding-bottom: 0.5rem;
     text-align: center;
     position: relative;
}

.hero-title {
   font-size: var(--font-size-hero);
   font-weight: 700;
   margin-bottom: 2rem;
   line-height: 1.2;
}

.hero-logo {
  height: 0.85em;
  width: auto;
  vertical-align: baseline;
  display: inline-block;
  position: relative;
  top: 0.05em;
  margin: 0 0.15em;
}

.hero-subtitle {
    font-size: var(--font-size-subtitle);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 2.4rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
   display: flex;
   gap: 1.6rem;
   justify-content: center;
   margin-bottom: 3.2rem;
}

.supporter-count {
  font-size: 1.9rem;  /* Increased from 1.7rem to 1.9rem for more prominence */
}

.count-number {
   font-weight: 600;
}

.story {
    padding: var(--space-section-md) 0;
  margin-bottom: var(--space-section-lg);
}

.story-content-centered {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 4rem;
  text-align: left;
}

.story-content-centered .section-title {
   text-align: center;
   margin-bottom: 1rem;
}

.story-content-centered .lead-text {
   text-align: center;
   margin-bottom: 2rem;
}

.story-content-centered p {
   margin-bottom: 2rem;
}



.story-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 6.4rem;
   align-items: center;
}

.feature-img {
  border-radius: var(--radius);
}

.lead-text {
  font-size: var(--font-size-subtitle);
  font-weight: 400;
}

.policy-link {
  color: var(--primary-color);
  font-weight: 600;
}

.policy-blockquote {
  font-size: 1.1rem;  /* Reduced from 1.3rem to 1.1rem for smaller visual size */
  background: rgba(255, 59, 59, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
  border-radius: 0.8rem;
}

.story-heading-center {
  font-size: 2.4rem;
  text-align: center;
  margin-top: 3.2rem;
  margin-bottom: 2rem;
}

.story-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.story-list-item {
  font-size: 1.8rem;
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
}

.story-bullet {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  margin-right: 1.2rem;
  line-height: 1;
}

.story-emphasis {
  font-weight: 600;
  margin-bottom: 2rem;
}

.story-break {
  margin-bottom: 2rem;
}

.story-callout {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 2rem;
}

.donate-link {
  color: var(--primary-color);
  font-weight: 600;
}

.story-final {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.story-signature {
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 3.2rem;
  margin-bottom: 0;
}

.petition-card .petition-description {
   font-size: var(--font-size-subtitle);
   font-weight: 400;
   margin-bottom: 3.2rem;
}

.petition-section {
    padding-top: 1rem;
    padding-bottom: var(--space-section-sm);
}

.petition-section .container {
    max-width: 800px;
}

.petition-card {
   border-radius: 2.4rem;
   padding: 5rem 4rem;
   text-align: center;
   display: flex;
   flex-direction: column;
   align-items: center;
   max-width: 90rem;
   margin: 0 auto;
}

.petition-header,
.petition-action {
   width: 100%;
   max-width: 70rem;
}

.petition-card p {
    font-size: 1.8rem;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
}

.micro-copy {
   font-size: 1.3rem;
   margin-top: 1.2rem;
   color: white;
}

.social-section {
    padding: var(--space-section-md) 0;
  margin-bottom: var(--space-section-lg);
}

.social-section .container {
    max-width: 900px;
}

.social-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 2rem;
   max-width: 100%;
}

.social-card {
   padding: 1.6rem 1.2rem;
   border-radius: var(--radius);
   border: 1px solid var(--border-color);
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 1rem;
   cursor: pointer;
   transition: all 0.2s ease;
   justify-content: center;
}


.social-card:hover {
   transform: translateY(-0.4rem);
}

.social-icon {
    width: 3.2rem;
    height: 3.2rem;
    transition: transform 0.2s ease;
    display: block;
    margin: 0 auto;
}

.social-card span {
    font-size: 1.7rem;
    line-height: 1.2;
}

.social-card:hover .social-icon {
   transform: scale(1.1);
}

@media (max-width: 1024px) and (min-width: 769px) {
  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 2.1rem;
  }

   .btn-hero-donate {
     padding: 1.8rem 3.6rem;
     font-size: 3rem;
   }

   .btn-petition {
     padding: 1.8rem 3.6rem;
     font-size: 3rem;
   }

   .social-grid {
     grid-template-columns: repeat(4, 1fr);
     gap: 1.6rem;
     max-width: 75rem;
     margin: 0 auto;
   }

   .social-card {
     padding: 2rem 1.6rem;
   }

   .hero {
     margin-bottom: 0;
     padding-bottom: 0.5rem;
   }

   .petition-section {
     margin-bottom: 0;
     padding-top: 1rem;
   }
}

@media (max-width: 768px) {
   h1 {
     font-size: 3.6rem;
   }
   h2 {
     font-size: 1.9rem;
   }

   .container {
     padding: 0 1.6rem;
   }

   .hero {
     padding-top: 2rem;
     padding-bottom: 0.5rem;
   }
   
   .hero-container {
     max-width: 100%;
   }

   .hero-title {
     font-size: 3.6rem;
     line-height: 1.2;
   }

   .hero-subtitle {
     font-size: 1.9rem;
     line-height: 1.4;
   }

   .hero-call-to-action {
     font-size: 1.9rem;
     margin-bottom: 2.4rem;
   }

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

   .hero-actions {
     flex-direction: column;
     align-items: center;
     width: 100%;
     max-width: 100%;
     margin: 0 auto 3.2rem;
     padding: 0 1.6rem;
   }

   .petition-card {
     padding: 2.4rem 1.6rem;
     border-radius: 1.6rem;
     margin: 0 auto;
     max-width: calc(100% - 3.2rem);
   }
   
   .petition-action {
     width: 100%;
     display: flex;
     justify-content: center;
   }

   .petition-card h2 {
     font-size: 1.9rem;
     line-height: 1.3;
   }

   .petition-card p {
     font-size: 1.6rem;
     line-height: 1.5;
   }

    .petition-section {
      margin-bottom: 0;
      padding-top: 0.5rem;
      padding-bottom: 2rem;
    }

   .story-content-centered {
     padding: 0 2rem;
     max-width: 100%;
   }

  .story-content-centered .section-title {
    font-size: 2.4rem;
    line-height: 1.2;
  }

  .story-content-centered .lead-text {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .story-content-centered p {
    font-size: 1.4rem;
    line-height: 1.6;
  }

   .story-content-centered h3 {
     font-size: 1.8rem;
     line-height: 1.3;
   }

     .policy-blockquote {
       padding: 1.6rem;
       font-size: 1.2rem;  /* Reduced from 1.4rem to 1.2rem for mobile */
     }

    .story-heading-center {
      font-size: 2rem;
      margin-top: 2.4rem;
    }

   .story-list-item {
     font-size: 1.4rem;
   }

   .story-bullet {
     font-size: 1.4rem;
     margin-right: 1rem;
   }

   .story-callout {
     font-size: 1.4rem;
   }

   .story-final {
     font-size: 1.4rem;
   }

    .petition-card .petition-description {
      font-size: 1.5rem;
    }

    .story {
      padding: var(--space-section-sm) 0;
      margin-bottom: var(--space-section-md);
    }

    .social-section {
      padding: var(--space-section-sm) 0;
    }

    .social-grid {
     grid-template-columns: 1fr 1fr;
     gap: 1.6rem;
     padding: 0 1.6rem;
   }

   .social-card {
     padding: 1.2rem;
     justify-content: center;
     min-height: auto;
     height: auto;
     display: flex;
     align-items: center;
   }

   .social-card span {
     display: none;
   }

   .social-icon {
     width: 4rem;
     height: 4rem;
     margin: 0;
   }

   .social-bullet {
     font-size: 4.5rem;
     margin: 0;
   }

   .share-section {
     padding: 4rem 0;
   }
}

@media (max-width: 480px) {
   h1 {
     font-size: 3.2rem;
   }
   
   h2 {
     font-size: 1.7rem;
   }
   
   .hero-title {
     font-size: 3.2rem;
   }
   
   .hero-subtitle {
     font-size: 1.7rem;
   }
   
   .hero-call-to-action {
     font-size: 1.7rem;
   }
   
   .petition-card h2 {
     font-size: 1.7rem;
   }
   
   .story-content-centered .section-title {
     font-size: 2.2rem;
   }
   
   .container {
     padding: 0 1.2rem;
   }
   
  .hero-actions {
    padding: 0 1.2rem;
  }
  
  .header .logo {
    width: auto;
  }
  
  .social-bullet {
    font-size: 4rem;
  }
}

/* Language Switcher */
.language-switcher {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.2rem;
  padding: 0.4rem;
  box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.4), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-switcher:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0.6rem 2.4rem rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.lang-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.lang-toggle:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.08);
}

.lang-icon {
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.lang-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.2rem;
  padding: 0.6rem;
  min-width: 15rem;
  box-shadow: 0 0.6rem 2.4rem rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.8rem);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-switcher:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.7rem 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.3rem;
  font-weight: 500;
  text-align: left;
  border: none;
  background: none;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.lang-option:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-2px);
}

.lang-option.active {
  color: #ff3b3b;
  font-weight: 600;
  background: rgba(255, 59, 59, 0.08);
}

.lang-option.active:hover {
  background: rgba(255, 59, 59, 0.12);
}

@media (max-width: 768px) {
  .language-switcher {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.3rem;
  }
  
  .lang-toggle {
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
    gap: 0.5rem;
  }
  
  .lang-icon {
    width: 1.4rem;
    height: 1.4rem;
  }
  
  .lang-dropdown {
    min-width: 13rem;
    padding: 0.5rem;
  }
  
  .lang-option {
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
  }
}