/* styles.css */

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #f0f0f0;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* Header */
header {
  background: #1c1c1c;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo a {
  display: inline-block;
  cursor: pointer;
}

.logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo a:hover img {
  transform: scale(1.1);
}

nav.desktop-nav a {
  color: #f0f0f0;
  margin-left: 20px;
  text-decoration: none;
  transition: color 0.3s;
}

nav.desktop-nav a:hover {
  color: #42a5f5;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(26,26,26,0.9), rgba(37,37,37,0.9)),
        url('images/background.webp') no-repeat center center / cover;
  background-attachment: fixed;
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 2.5rem;
  color: #42a5f5;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.2s;
}

.hero p {
  margin-top: 10px;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 1s;
}

/* Sections */
.section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #42a5f5;
}

/* How to Join Section - Vertical Cards */
.join-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin-left: 0;
  margin-top: 20px;
}

.step {
  background: #1e1e1e;
  padding: 25px;
  border-left: 4px solid #42a5f5;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.step-icon {
  background-color: #42a5f5;
  color: #121212;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 50px;
  text-align: center;
  box-shadow: 0 0 8px #42a5f5bb;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 8px;
  color: #cce4ff;
  font-weight: 600;
}

.step-content p {
  font-size: 0.95rem;
  margin: 0;
}

.step-content a {
  color: #42a5f5;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.step-content a:hover {
  color: #a6d1ff;
}

.step-content code {
  background: #333;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  color: #42a5f5;
}


/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-box {
  background: #1e1e1e;
  padding: 20px;
  border-left: 4px solid #42a5f5;
  border-radius: 5px;
  transition: transform 0.3s ease;
  text-align: center;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-box h3 {
  margin-bottom: 10px;
  color: #ddd;
  font-size: 1.1rem;
}

/* Community Section */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.community-card {
  background: #1e1e1e;
  padding: 25px 15px;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  color: #f0f0f0;
  transition: transform 0.2s, background 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community-card:hover {
  transform: scale(1.05);
  background: #2a2a2a;
}

.community-card i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #42a5f5;
}

/* Donate Button */
.donate-button {
  background: #42a5f5;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.donate-button:hover {
  background: #64b5f6;
}

/* Footer */
footer {
  background: #1c1c1c;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  color: #bbb;
}

.footer-subtext {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #bbb;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

/* Fade-in for sections */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Helper styles */
#about a {
  text-decoration: none;
  color: inherit;
  font-style: italic;
}

.inline-logo {
  height: 1.25em;
  width: auto;
  vertical-align: middle;
  margin-right: 2px;
  display: inline;
  opacity: 0.85;
  filter: drop-shadow(0 0 2px #222);
}

.footer-logo {
  height: 2em;
  width: auto;
  vertical-align: middle;
  display: inline;
  opacity: 0.85;
  filter: drop-shadow(0 0 2px #222);
}

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

/* Hamburger Menu and Mobile Nav */
.hamburger-menu {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: #f0f0f0;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  background: #1c1c1c;
  padding: 10px 0;
}

.mobile-nav a {
  color: #f0f0f0;
  padding: 12px 30px;
  text-decoration: none;
  text-align: center;
  border-bottom: 1px solid #333;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  background-color: #2a2a2a;
  color: #42a5f5;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }
  
  nav.desktop-nav {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .mobile-nav.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }
  
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .step-content {
      margin-top: 15px;
  }
}