:root {
  --primary-red: #d32f2f;
  --primary-grey: #424242;
  --primary-black: #111;
  --primary-white: #fff;
  --background: var(--primary-white);
  --background-secondary: #f9f9f9;
  --text: var(--primary-black);
  --nav-bg: var(--primary-grey);
  --nav-link: var(--primary-white);
  --nav-link-active: var(--primary-red);
  --accent: var(--primary-red);
  --accent-hover: #e53935;
}

[data-theme="dark"] {
  --background: #181818;
  --background-secondary: #212121;
  --text: #eee;
  --nav-bg: #222;
  --nav-link: #eee;
  --nav-link-active: #d32f2f;
  --accent: #d32f2f;
  --accent-hover: #c62828;
}

body {
  background: var(--background);
  color: var(--text);
  transition: background 0.2s, color 0.2s;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  margin: 0;
  min-height: 100vh;
}

body, button, input, select, textarea {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

button {
  padding: 10px 20px;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

.countdown-timer {
  font-size: 1.5em;
  text-align: center;
  margin: 1em 0;
  color: var(--accent);
  font-weight: bold;
}

/* Navigation styles */
.main-nav {
  width: 100vw;
  left: 0;
  right: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  color: var(--nav-link);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: background 0.3s;
}
.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5em 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--nav-link);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--nav-link);
  font-size: 2em;
  cursor: pointer;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2em;
  margin: 0;
  padding: 0;
  align-items: center;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
}
.nav-links li a {
  color: var(--nav-link);
  text-decoration: none;
  font-size: 1.05em;
  padding: 0.4em 0.7em;
  border-radius: 0.3em;
  transition: background 0.2s;
}
.nav-links li a,
.live-tracking-btn {
  display: flex;
  align-items: center;
  height: 2.6em;
  padding: 0.4em 1em;
  font-size: 1.05em;
  border-radius: 0.3em;
  transition: background 0.2s;
  box-sizing: border-box;
}

.live-tracking-btn img {
  margin-right: 0.4em;
  height: 1.3em;
  width: auto;
  vertical-align: middle;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: var(--accent);
  color: var(--primary-grey);
}

.live-tracking-btn li a:hover {
  background: var(--primary-grey);
  color: var(--primary-grey);
}
@media (max-width: 800px) {
  .nav-container {
    flex-direction: row;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    background: var(--nav-bg);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }
  .nav-links.open {
    max-height: 500px;
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
  }
  .nav-links li {
    margin: 0.5em 0;
    text-align: center;
  }
}

/* about */
.about-logos {
  display: flex;
  gap: 2em;
  justify-content: center;
  align-items: center;
  margin: 1em 0;
}

.about-logo {
  height: 60px;
  width: auto;
  transition: transform 0.2s;
}

.about-logo:hover {
  transform: scale(1.08);
}

/* story */
#story {
  max-width: 800px;
  margin: 2em auto;
  padding: 1em;
  background-color: var(--background-secondary);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.story-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1em auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#story h2 {
  color: var(--accent);
  margin-bottom: 0.5em;
}

#story p {
  line-height: 1.6;
  margin-bottom: 1em;
}

/* Donation Buttons */
.donation-options {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
  margin: 2em 0;
}

.donation-card {
  text-align: center;
}
.donation-guide {
  text-align: center;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
}

.btn {
  display: block;
  background-color: var(--accent);
  color: var(--primary-white);
  text-decoration: none;
  border-radius: 10px;
  padding: 1em;
  transition: background-color 0.3s ease;
  width: 220px;
}

.btn:hover {
  background-color: var(--accent-hover);
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.logo {
  width: 100px;
  margin-bottom: 0.5em;
}

.qr {
  width: 120px;
  height: 120px;
  margin-bottom: 0.5em;
  border-radius: 8px;
  border: 2px solid white;
}

.btn-content span {
  font-size: 1em;
  font-weight: bold;
  text-align: center;
}
.btn-content span:nth-of-type(2) {
  font-size: 0.9em;
  font-style: italic;
  color: #e0e0e0; /* Optional: softer tone for secondary info */
  margin-top: 0.3em;
}

/* Share Section */
#share {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2em auto;
  padding: 1em 1.2em;
  box-sizing: border-box;
  text-align: center;
}

.share-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
}

.qr-block img {
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 10px;
}

.social-buttons {
  display: flex;
  gap: 1em;
  align-items: center;
}

.social-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}

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

/* Subpage links */
.back-home-link {
  display: inline-block;
  margin: 1em 0 0.5em 0;
  font-size: 1.1em;
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}
.back-home-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.end-home-btn {
  text-align: center;
  margin: 2em 0 1em 0;
}
.home-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-white);
  padding: 0.7em 2em;
  border-radius: 0.4em;
  font-size: 1.2em;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}
.home-btn:hover {
  background: var(--accent-hover);
}

.live-tracking-btn {
  background: linear-gradient(90deg, #1976d2 0%, #43a047 100%);
  color: #fff !important;
  font-weight: bold;
  border-radius: 2em;
  padding: 0.5em 1.3em;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15);
  border: none;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  display: inline-block;
}
.nav-links li .live-tracking-btn:hover,
.nav-links li .live-tracking-btn.active {
  background: var(--primary-black) !important;
  color: #fff !important;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--nav-link);
    cursor: pointer;
    font-size: 1.3em;
    line-height: 1;
    padding: 0;
    margin: 0;
}

section, footer {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2em auto;
  padding: 1em 1.2em;
  box-sizing: border-box;
}
header {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1.5em auto;
  padding: 1em 1.2em;
  box-sizing: border-box;
  text-align: center;
}

#instagram-feed {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2em auto;
  padding: 1em 1.2em;
  box-sizing: border-box;
  text-align: center;
}

#instagram-feed h2, #instagram-feed h3 {
  text-align: center;
  margin: 0 auto 1em auto;
  max-width: 700px;
  font-size: 1.3em;
  font-weight: bold;
  color: var(--accent);
}

footer {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2em auto;
  padding: 1em 1.2em;
  box-sizing: border-box;
  text-align: center;
}

@media (max-width: 900px) {
  .nav-container, section, footer, header {
    max-width: 100vw;
    padding: 1em 0.5em;
  }
  #story {
    padding: 1em 0.5em;
  }
}

@media (max-width: 600px) {
  .nav-container, section, footer, header {
    max-width: 100vw;
    padding: 0.5em 0.2em;
  }
  #story {
    padding: 0.5em 0.2em;
  }
  .story-image {
    max-width: 100vw;
    height: auto;
  }
  .countdown-timer {
    font-size: 1.1em;
  }
  h1, h2, h3 {
    font-size: 1.1em;
  }
}
