/* Base Layout Reset */
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Dark Theme Defaults */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #111;
  color: #f5f5f5;
}

/* Hero Section */
.hero {
  background: url("../images/amodei.jpg") center 5% / cover no-repeat;
  min-height: 110vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  padding-bottom: 6rem;
  box-sizing: border-box;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  text-align: center;
  background: rgba(0,0,0,0.4);
  padding: 3rem;
  border-radius: 10px;
  max-width: 800px;
  box-sizing: border-box;
  backdrop-filter: blur(2px);
}
.hero h1 {
  font-size: 4rem;
  color: #ff1744;
  margin-bottom: 1rem;
}
.subtitle {
  font-size: 1.5rem;
  color: #ffeb3b;
  margin-bottom: 2rem;
}

/* Buttons */
button {
  background: #ff1744;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}
button:hover {
  background: #d50000;
}

/* Sections */
section {
  width: 100%;
  padding: 4rem 1rem;
}
.intro, .plain-speak {
  background: #222;
  text-align: center;
}
.intro h2, .plain-speak h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.intro p, .plain-speak p {
  max-width: 800px;
  margin: 0.5rem auto;
  font-size: 1.2rem;
}
.highlight-red { color: #ff5252; font-weight: bold; }
.highlight-yellow { color: #ffeb3b; font-weight: bold; }

/* Evidence Cards */
.evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  background: #1b1b1b;
}
.card {
  background: #333;
  border: 2px solid #ff1744;
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 300px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}
.card h3 { margin-bottom: 1rem; color: #ff5722; }
.card a { color: #ffeb3b; text-decoration: underline; }
.card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Quotes */
.quote {
  background: #000;
  text-align: center;
  font-style: italic;
  color: #ccc;
}
.quote .author {
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 1rem;
}

/* Social Proof / Urgency */
.social-proof {
  background: #111;
  text-align: center;
  color: #ffeb3b;
}
.social-proof p { margin: 0.5rem 0; font-size: 1.2rem; }
.urgency { color: #ff5252; font-weight: bold; }

/* CTA */
.cta {
  background: #111;
  text-align: center;
}
.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ff5722;
}
.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Plain Speak */
.plain-speak p { line-height: 1.5; }

/* Footer */
footer {
  background: #000;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  font-size: 0.9rem;
  color: #777;
}

/* Shake Animation */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-5px); }
  40%,80% { transform: translateX(5px); }
}
.shake { animation: shake 0.5s ease-in-out; }

/* Grassroots */
.grassroots {
  background: #222;
  text-align: center;
  padding: 4rem 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.grassroots.visible {
  opacity: 1;
  transform: translateY(0);
}
.grassroots h2 {
  font-size: 2.2rem;
  color: #ff5722;
  margin-bottom: 1rem;
}
.grassroots p {
  max-width: 900px;
  margin: 0.5rem auto 2rem;
  font-size: 1.2rem;
  color: #f5f5f5;
}
.grassroots-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
.action-card {
  background: #333;
  border: 2px solid #4caf50;
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 300px;
  text-align: center;
}
.action-card h3 { margin-bottom: 1rem; color: #8bc34a; }
.action-card p { color: #ddd; font-size: 1.1rem; }
.action-card a { color: #ffeb3b; text-decoration: underline; }
.grassroots-closer {
  font-weight: bold;
  color: #ffeb3b;
  font-size: 1.3rem;
}

/* Vote Callout */
.vote-callout {
  background: #111;
  text-align: center;
  padding: 4rem 1rem;
}
.vote-callout h2 {
  font-size: 2rem;
  color: #ff5722;
  margin-bottom: 1rem;
}
.vote-callout p {
  max-width: 800px;
  margin: 0.5rem auto;
  font-size: 1.2rem;
  color: #f5f5f5;
}
.vote-callout .highlight-yellow {
  color: #ffeb3b;
  font-weight: bold;
  font-size: 1.3rem;
}

/* Hold Accountable */
.hold-accountable {
  background: #111;
  text-align: center;
  padding: 4rem 1rem;
}
.hold-accountable h2 {
  font-size: 2.2rem;
  color: #ff5722;
  margin-bottom: 1rem;
}
.hold-accountable p {
  max-width: 900px;
  margin: 0.5rem auto 2rem;
  font-size: 1.2rem;
  color: #f5f5f5;
}
.accountability-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
.accountability-card {
  background: #222;
  border: 2px solid #ff1744;
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 350px;
  text-align: center;
}
.accountability-card h3 { margin-bottom: 1rem; color: #ff5252; }
.accountability-card p,
.accountability-card ul {
  color: #ddd;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.accountability-card ul {
  list-style-type: none;
  padding: 0;
}
.accountability-card li { margin: 0.3rem 0; }
.accountability-card a { color: #ffeb3b; text-decoration: underline; }
.hold-accountable-closer {
  font-weight: bold;
  color: #ffeb3b;
  font-size: 1.3rem;
}

/* Callout Rant */
.callout-rant {
  background: #000;
  padding: 4rem 2rem;
  text-align: center;
  border-top: 4px solid #ff1744;
  border-bottom: 4px solid #ff1744;
  margin-bottom: 4rem;
}
.callout-rant h2 {
  color: #ff5722;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.rant-line {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: #f5f5f5;
}
.rant-quote {
  margin: 2rem auto;
  font-size: 1.2rem;
  color: #ccc;
  max-width: 800px;
  font-style: italic;
  line-height: 1.6;
}
.rant-question {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 2rem 0;
  color: #ffeb3b;
}
.rant-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.rant-list li {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #f5f5f5;
}
.rant-closing {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 3rem;
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}
.theme-label { color: #f5f5f5; font-size: 1rem; }
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #888;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider { background-color: #4caf50; }
input:checked + .slider:before { transform: translateX(24px); }

/* Light Theme */
body.light-theme {
  background: #f7f7f7;
  color: #111;
}

body.light-theme .hero-content {
  background: rgba(255, 255, 255, 0.3);
}

body.light-theme .hero::before {
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.4) 100%);
}

/* Headings & Main Titles */
body.light-theme h1,
body.light-theme h2,
body.light-theme .cta h2,
body.light-theme .hero h1 {
  color: #b71c1c;
}

/* Subtitles and Questions */
body.light-theme .subtitle,
body.light-theme .rant-question,
body.light-theme .vote-callout .highlight-yellow {
  color: #b71c1c;
}

/* Highlight Colors */
body.light-theme .highlight-red {
  color: #b71c1c;
}

body.light-theme .highlight-yellow {
  color: #b8860b;
}

/* Section Backgrounds & Text Colors */
body.light-theme section,
body.light-theme .grassroots,
body.light-theme .quote,
body.light-theme .social-proof,
body.light-theme .cta,
body.light-theme .plain-speak {
  background: #f7f7f7;
  color: #111;
}

/* Cards */
body.light-theme .card,
body.light-theme .accountability-card,
body.light-theme .action-card {
  background: #eeeeee;
  border-color: #4caf50;
}

body.light-theme .card h3,
body.light-theme .accountability-card h3,
body.light-theme .action-card h3 {
  color: #2e7d32;
}

body.light-theme .card p,
body.light-theme .accountability-card p,
body.light-theme .action-card p,
body.light-theme .quote,
body.light-theme .intro p,
body.light-theme .plain-speak p,
body.light-theme .hold-accountable p,
body.light-theme .grassroots p,
body.light-theme .vote-callout p,
body.light-theme .rant-quote,
body.light-theme .rant-line,
body.light-theme .rant-list li {
  color: #111;
}

/* Links */
body.light-theme .card a,
body.light-theme .accountability-card a,
body.light-theme .action-card a {
  color: #0d47a1;
}

/* Footer */
body.light-theme footer {
  background: #ddd;
  color: #333;
}

/* Social Proof & Urgency */
body.light-theme .social-proof {
  color: #2e7d32;
}
body.light-theme .urgency {
  color: #b71c1c;
}


/* ==================== MOBILE-ONLY IMPROVEMENTS ==================== */
@media (max-width: 768px) {

  /* GENERAL LAYOUT ADJUSTMENTS */
  body {
    font-size: 16px;
    line-height: 1.8;
  }

  section, .hero-content, .callout-rant, .grassroots {
    padding: 2rem 1rem;
  }

  .hero {
    min-height: 90vh;
    padding-bottom: 4rem;
    background-position: center 10%;
  }

  .hero-content {
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(3px);
  }

  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }

  .subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
  }

  button {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }

  /* PSYCHOLOGICAL CTA BOOST */
  .cta button, #learnMoreBtn, #shareBtn {
    animation: pulse 1.8s infinite;
  }
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }

  /* SECTION HEADINGS */
  h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  /* CARDS */
  .evidence,
  .grassroots-actions,
  .accountability-actions {
    flex-direction: column;
    gap: 1.2rem;
  }

  .card,
  .action-card,
  .accountability-card {
    max-width: 100%;
    padding: 1rem;
  }

  .card h3,
  .action-card h3,
  .accountability-card h3 {
    font-size: 1.2rem;
  }

  .card p,
  .action-card p,
  .accountability-card p {
    font-size: 1rem;
  }

  /* QUOTES */
  .quote p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  /* RANT SECTION */
  .rant-line {
    font-size: 1.2rem;
  }

  .rant-question {
    font-size: 1.3rem;
  }

  .rant-list li {
    font-size: 1.1rem;
  }

  .rant-quote {
    font-size: 1rem;
  }

  .rant-closing {
    font-size: 1.4rem;
  }

  /* GRASSROOTS CLOSER */
  .grassroots-closer {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  /* PLAIN SPEAK / INTRO */
  .intro p,
  .plain-speak p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* SOCIAL PROOF */
  .social-proof p,
  .urgency {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* THEME TOGGLE POSITION */
  .theme-toggle {
    top: 10px;
    right: 10px;
  }

  /* PSYCHOLOGICAL ENHANCEMENTS FOR READABILITY */
  .highlight-red,
  .highlight-yellow {
    font-size: 1rem;
    font-weight: bold;
    display: inline-block;
    margin-top: 0.5rem;
  }

  /* ACCOUNTABILITY & CALL-TO-ACTION SPACING */
  .hold-accountable h2,
  .cta h2,
  .vote-callout h2 {
    font-size: 1.5rem;
  }

  .hold-accountable p,
  .cta p,
  .vote-callout p {
    font-size: 1rem;
  }

  /* VOTE CALLOUT */
  .vote-callout-vertical {
    padding: 1.5rem 1rem;
    text-align: center;
  }

  .vote-callout-vertical h2 {
    font-size: 1.4rem;
  }

  .vote-callout-vertical p {
    font-size: 1rem;
  }

  .vote-callout-vertical .highlight-yellow {
    font-size: 1.1rem;
  }

  /* LINK TAP TARGETS */
  a {
    padding: 0.2rem 0;
    display: inline-block;
  }
}


@media (max-width: 768px) {
  .theme-toggle {
    top: 10px;
    right: 10px;
    padding-bottom: 1rem; /* Adds spacing below the toggle */
  }

  /* Optionally increase spacing below the hero-content if it overlaps */
  .hero-content {
    margin-bottom: -5rem;
  }
}


@media (max-width: 768px) {
  
  /* GLOBAL FIX: Prevent width overflow */
  body, html {
    overflow-x: hidden;
  }

  /* ENSURE BOX SIZING IS CONSISTENT */
  *, *::before, *::after {
    box-sizing: border-box;
  }

  /* FIX HERO CONTENT WIDTH */
  .hero-content,
  .vote-callout-vertical,
  .callout-rant,
  .hold-accountable,
  .intro,
  .plain-speak,
  .grassroots {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* FIX CARDS */
  .card,
  .accountability-card,
  .action-card {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* ADD CONTAINER PADDING TO PREVENT EDGE TOUCHING */
  section, .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* OPTIONAL: REMOVE SIDE MARGINS ON QUOTES */
  .rant-quote, .quote p {
    margin-left: 0;
    margin-right: 0;
    padding: 0 1rem;
  }

}

