/* index.css - Homepage-specific styling with theme support */
/* Updated: 2025-05-30 10:12pm */

@keyframes bounceIn {
  0% { transform: scale(0.9); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  80% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceHover {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.hero-section {
  background-image: url('/static/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 60px 20px;
  transition: transform 0.3s ease;
}

.hero-section:hover {
  animation: bounceHover 0.6s ease-in-out;
}

body.light-mode .hero-overlay {
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--color-text-dark);
}

body.dark-mode .hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--color-text-light);
}

body.dark-mode .hero-section {
  background-image: url('/static/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  color: var(--color-text-light);
}

body.dark-mode .hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

body.light-mode .hero-section {
  background-image: url('/static/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f9f9f9;
}

body.light-mode .hero-overlay {
  background-color: rgba(255, 255, 255, 0.65);
  color: var(--color-text-dark);
}

.hero-overlay {
  width: 100%;
  height: 100%;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  z-index: 2;
}

.hero-logo {
  width: 120px;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0px 2px 8px rgba(0,0,0,0.6);
}

.hero-content .tagline {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 1s ease-out;
}

.btn.join-btn {
  background-color: var(--color-accent);
  padding: 0.75rem 1.5rem;
  color: #fff;
  border: none;
  border-radius: 0.3rem;
  font-weight: bold;
  text-decoration: none;
}

.features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.feature-tile {
  flex: 1;
  min-width: 250px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
  animation: fadeUp 0.8s ease-in;
  transition: transform 0.3s ease;
}

.feature-tile:hover {
  animation: bounceHover 0.6s ease-in-out;
}

.dark-mode .feature-tile {
  background: #1e1e1e;
  color: #eee;
}

.our-mission, .how-it-works {
  margin: 4rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  max-width: 960px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  color: #222;
  animation: bounceIn 0.8s ease-out;
  transition: transform 0.3s ease;
}

.our-mission:hover, .how-it-works:hover {
  animation: bounceHover 0.6s ease-in-out;
}

.light-mode .our-mission {
  background: #ffffff;
  color: #222;
}

.dark-mode .our-mission, .dark-mode .how-it-works {
  background: #121212;
  color: #eee;
}

.mission-list, .steps-container {
  padding-left: 1rem;
  list-style-type: none;
}

.mission-list li, .steps-container .step {
  margin: 0.75rem 0;
  font-size: 1.1rem;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .steps-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .steps-container .step {
    flex: 1;
    padding: 0 1rem;
  }
}

.cta-bottom {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  border-top: 1px solid #ddd;
}

.cta-bottom h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #004d40;
  margin-bottom: 0.5rem;
}

.cta-bottom p {
  font-size: 1rem;
  color: #222;
  margin: 0.25rem 0;
}

.cta-bottom .btn {
  margin-top: 1rem;
}

/* Footer buffer fix */
body {
  padding-bottom: 3rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-buttons a.btn {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background-color: #004080;
  color: white;
}

.btn-secondary {
  background-color: #666;
  color: white;
}

.btn-outline {
  border: 2px solid #004080;
  color: #004080;
  background-color: transparent;
}

.dark-mode .btn-outline {
  border-color: #88c8ff;
  color: #88c8ff;
}

/* Fix for wallet connection placeholder text */
.placeholder-text {
  color: #ffffff;
  font-size: 1.1rem;
  margin-top: 1rem;
  text-align: center;
}

.light-mode .placeholder-text {
  color: #ffffff;
}

.dark-mode .placeholder-text {
  color: #ccc;
}

body.home .hero-section .container {
  background-color: rgba(30, 30, 30, 0.8); /* richer dark */
  color: #eee;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.8);
  text-align: center;
}