/* ==========================================
   GivebackForAnimals - CSS Design System
   Nature-inspired palette with premium feel
   ========================================== */

/* ==========================================
   IMPORTS
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ==========================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================== */
:root {
  /* Nature-Inspired Color Palette */
  --color-primary: #2d7a4e;
  /* Forest green */
  --color-primary-light: #3f9d63;
  /* Lighter green */
  --color-primary-dark: #1e5438;
  /* Dark forest */
  --color-secondary: #f59e42;
  /* Warm amber */
  --color-secondary-light: #ffb366;
  --color-accent: #4a9eff;
  /* Compassionate blue */
  --color-accent-light: #7cb8ff;

  /* Neutral Colors */
  --color-background: #fafdf7;
  /* Soft nature white */
  --color-surface: #ffffff;
  --color-text-primary: #1a2e1a;
  /* Deep forest text */
  --color-text-secondary: #4a5f4a;
  --color-text-light: #7a8e7a;
  --color-border: #e0ebe0;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2d7a4e 0%, #3f9d63 100%);
  --gradient-warm: linear-gradient(135deg, #f59e42 0%, #ffb366 100%);
  --gradient-hero: linear-gradient(135deg, rgba(45, 122, 78, 0.95) 0%, rgba(30, 84, 56, 0.9) 100%);

  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(45, 122, 78, 0.08);
  --shadow-md: 0 4px 16px rgba(45, 122, 78, 0.12);
  --shadow-lg: 0 8px 32px rgba(45, 122, 78, 0.16);
  --shadow-xl: 0 16px 48px rgba(45, 122, 78, 0.2);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-base);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title h2 {
  margin-bottom: var(--space-sm);
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-light);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.logo img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-link {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-base);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-base);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gradient-warm);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-primary-dark);
  overflow: hidden;
  margin-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 700px;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--color-secondary-light);
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-semibold);
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
  background: var(--color-surface);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-text h2 {
  margin-bottom: var(--space-md);
}

.about-text p {
  margin-bottom: var(--space-md);
}

.about-features {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  align-items: start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-content h4 {
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* ==========================================
   IMPACT SECTION
   ========================================== */
.impact {
  background: var(--gradient-primary);
  color: white;
}

.impact .section-title h2,
.impact .section-title p {
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.stat-card {
  text-align: center;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-secondary-light);
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--font-weight-medium);
}

/* ==========================================
   MISSION SECTION
   ========================================== */
.mission {
  background: var(--color-background);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.mission-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.mission-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.mission-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.mission-card:hover .mission-image img {
  transform: scale(1.1);
}

.mission-content {
  padding: var(--space-lg);
}

.mission-content h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.mission-content p {
  margin-bottom: var(--space-md);
}

.mission-link {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.mission-link:hover {
  color: var(--color-primary-light);
}

/* ==========================================
   DONATION SECTION
   ========================================== */
/* ==========================================
   DONATION SECTION (CRYPTO ONLY)
   ========================================== */
.donation {
  background: var(--color-surface);
}

.donation-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.crypto-intro {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.crypto-intro h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.crypto-addresses {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.crypto-address-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  transition: var(--transition-base);
  background: var(--color-background);
}

.crypto-address-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.crypto-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.crypto-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  color: var(--color-primary);
  font-weight: bold;
}

.crypto-info h4 {
  font-size: 1.125rem;
  margin-bottom: 2px;
}

.crypto-info p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin: 0;
}

.address-box {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.address-box input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  background: white;
}

.copy-btn {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.copy-btn:hover {
  background: var(--color-primary-dark);
}

.crypto-impact {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.crypto-impact h3 {
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.impact-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.impact-item {
  text-align: center;
  padding: var(--space-md);
  background: rgba(45, 122, 78, 0.03);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-primary-light);
}

.impact-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.impact-item p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.donation-confirmation {
  margin-top: var(--space-xl);
  padding: var(--space-md);
  background: linear-gradient(to right, rgba(45, 122, 78, 0.05), white);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
}

.donation-confirmation h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.donation-confirmation p {
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================
   SUCCESS STORIES SECTION
   ========================================== */
.stories {
  background: var(--color-background);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.story-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.story-card:hover {
  box-shadow: var(--shadow-xl);
}

.story-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-content {
  padding: var(--space-lg);
}

.story-quote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.story-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-weight-bold);
}

.author-info h4 {
  margin-bottom: 2px;
  color: var(--color-primary);
}

.author-info p {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--color-primary-dark);
  color: white;
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--space-md);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--color-secondary-light);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
}

.newsletter-form button {
  padding: var(--space-md) var(--space-lg);
  background: var(--gradient-warm);
  color: white;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.8s ease;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

/* Scroll animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--color-surface);
    flex-direction: column;
    justify-content: start;
    padding: var(--space-xl);
    gap: var(--space-lg);
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero {
    margin-top: 80px;
    min-height: 80vh;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .mission-grid,
  .stories-grid {
    grid-template-columns: 1fr;
  }

  .donation-tabs {
    flex-direction: column;
    border-bottom: none;
  }

  .donation-tab {
    border-bottom: 2px solid var(--color-border);
    border-left: 3px solid transparent;
  }

  .donation-tab.active {
    border-left-color: var(--color-primary);
    border-bottom-color: var(--color-border);
  }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .address-box {
    flex-direction: column;
  }

  .address-box input {
    font-size: 0.75rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .amount-grid {
    grid-template-columns: 1fr;
  }
}