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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: white;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: 2px solid #2d8f3f;
  border-radius: 6px;
  cursor: pointer;
  padding: 0.7rem;
  gap: 4px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: #f8f9fa;
  border-color: #1a5a26;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #2d8f3f;
  transition: all 0.3s ease;
  transform-origin: center;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d8f3f;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* CSS-only logo fallback (if image fails to load) */
.logo-css-only {
  font-size: 1.8rem;
  font-weight: 900;
  color: #2d8f3f;
  font-family: 'Arial Black', Arial, sans-serif;
  letter-spacing: -2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: #2d8f3f;
  background: #f8f9fa;
}

.nav-text {
  display: inline;
}

/* Notification Badge */
.inbox-link {
  position: relative !important;
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #2d8f3f 0%, #4caf50 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: #1b5e20;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: #2d8f3f;
  color: white;
}

/* How It Works Section */
.how-it-works {
  background: #f8f9fa;
  padding: 4rem 2rem;
  text-align: center;
}

.how-it-works .container {
  max-width: 1000px;
  margin: 0 auto;
}

.how-it-works h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 3rem;
  font-weight: 700;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.step-number {
  background: #2d8f3f;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.step h3 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.step p {
  color: #666;
  line-height: 1.6;
}

/* Categories Section */
.categories {
  padding: 4rem 2rem;
  background: white;
}

.categories .container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.categories h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 3rem;
  font-weight: 700;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  background: #f8f9fa;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: #2d8f3f;
  box-shadow: 0 8px 25px rgba(45, 143, 63, 0.15);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.category-card h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.category-card p {
  color: #666;
  line-height: 1.5;
  font-size: 0.9rem;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #2d8f3f;
}

/* Content Sections */

/* Dashboard */
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-header h1 {
  color: #333;
  font-size: 2.5rem;
  font-weight: 700;
}

/* Request Cards Grid */
.requests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.request-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.request-card:hover {
  border-color: #2d8f3f;
  box-shadow: 0 4px 12px rgba(45, 143, 63, 0.1);
  transform: translateY(-2px);
}

.request-card h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.request-description {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.request-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.author {
  color: #666;
}

.budget {
  color: #2d8f3f;
  font-weight: 600;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.empty-state h3 {
  color: #666;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #999;
  margin-bottom: 1.5rem;
}

/* Inbox Preview */
.inbox-preview {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 2rem;
}

.inbox-preview h2 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.messages-list {
  margin-bottom: 1rem;
}

.message-preview {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.message-preview a {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}

.message-preview a:hover {
  background: #f8f9fa;
}

/* Forms */
form {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

form h2 {
  text-align: center;
  color: #333;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

form input, form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: #2d8f3f;
}

form button {
  width: 100%;
  margin-top: 0.5rem;
}

/* Alerts */
.alert {
  max-width: 800px;
  margin: 1rem auto;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
}

.alert.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert.danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert.warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
}

li {
  margin: 0.5rem 0;
  padding: 1rem;
  background: #f9f9f9;
  border-left: 4px solid #2d8f3f;
  border-radius: 4px;
}

li a {
  color: #333;
  text-decoration: none;
}

li a:hover {
  text-decoration: underline;
  color: #2d8f3f;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar {
    padding: 1rem;
    position: relative;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-left: 4px solid #2d8f3f;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    padding: 1rem 2rem;
    width: 100%;
    justify-content: flex-start;
    border-radius: 0;
    color: #2d8f3f !important;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
  }
  
  .nav-links a:hover {
    background: #f8f9fa;
    color: #2d8f3f !important;
    font-weight: 700;
  }
  
  .nav-text {
    margin-left: 0.5rem;
  }
  
  .hero {
    padding: 3rem 1rem;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1.1rem;
    max-width: 90%;
    margin: 0 auto 2rem;
  }
  
  .dashboard {
    padding: 1rem;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .requests-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .request-card {
    padding: 1.5rem;
  }
  
  .request-card h3 {
    font-size: 1.2rem;
  }
  
  .request-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 200px;
    text-align: center;
  }
  
  /* Form improvements for mobile */
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 1rem;
  }
  
  /* Card improvements */
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* About Page Styles */
.about-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.about-page .container {
  max-width: 800px;
  margin: 0 auto;
}

.about-page h1 {
  font-size: 3rem;
  color: #2d8f3f;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
}

.about-content {
  line-height: 1.6;
}

.about-content .lead {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 400;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  font-size: 2rem;
  color: #2d8f3f;
  margin-bottom: 1rem;
  font-weight: 600;
}

.about-section p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #2d8f3f;
}

.feature-card h3 {
  color: #2d8f3f;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  color: #666;
  margin: 0;
}

.cta-section {
  background: linear-gradient(135deg, #2d8f3f 0%, #4caf50 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 3rem;
}

.cta-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.cta-section .btn {
  margin: 0 0.5rem;
  background: white;
  color: #2d8f3f;
  font-weight: 600;
}

.cta-section .btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.cta-section .btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-section .btn-outline:hover {
  background: white;
  color: #2d8f3f;
}

/* Footer Styles */
.site-footer {
  background-color: #2e7d32;
  color: white;
  padding: 40px 20px 20px;
  text-align: center;
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-slogan {
  margin-bottom: 30px;
}

.footer-slogan h2 {
  font-size: 2.2rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  color: #a5d6a7;
}

.footer-contact h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-contact p {
  margin: 8px 0;
  font-size: 1rem;
}

.footer-contact a {
  color: white;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-social {
  margin: 25px 0 20px;
}

.footer-social a {
  margin: 0 15px;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-social a:hover {
  color: #a5d6a7;
  transform: translateY(-3px);
}

.footer-copyright {
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.9;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
}

/* Footer legal links (Terms / Privacy) */
.footer-legal-link {
  color: #ffcc00; /* gold/yellow accent - change to your desired color */
  text-decoration: underline;
  font-weight: 600;
}

.footer-legal-link:hover {
  color: #ffd54f;
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 30px 15px 15px;
  }
  
  .footer-slogan h2 {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
  }
  
  .footer-social a {
    margin: 0 10px;
    font-size: 20px;
  }
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.status-open {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.status-funded {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-in_progress {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-completed {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.status-cancelled {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Payment Form Styles */
.payment-container {
  max-width: 600px;
  margin: 0 auto;
}

.payment-breakdown {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1rem;
}

.escrow-info {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin: 1rem 0;
}

/* File Upload Styles */
.message-attachments {
  margin-top: 0.5rem;
}

.attachment-item {
  display: inline-block;
  margin: 0.25rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 0.875rem;
}

.attachment-item a {
  color: inherit;
  text-decoration: none;
}

.attachment-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive Payment Form */
@media (max-width: 768px) {
  .payment-container {
    margin: 0 1rem;
    padding: 1rem;
  }
  
  .status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}
