:root {
  --primary: #96c020; /* Trust logo green */
  --primary-light: #7ead1a;
  --secondary: #e6b325; /* Warm gold/yellow for accents */
  --bg-color: #f8fcf9;
  --text-dark: #2d3748;
  --text-light: #4a5568;
  --text-muted: #718096;
  --white: #ffffff;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.75rem 5%;
  box-shadow: var(--shadow-md);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

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

.btn-donate-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  transition: var(--transition);
}

.btn-donate-nav::after {
  display: none;
}

.btn-donate-nav:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(150, 192, 32, 0.3);
}

.mobile-toggle {
  display: none;
  cursor: pointer;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  fill: var(--text-dark);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
  padding-top: 80px; /* Offset for navbar */
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.slide.active {
  opacity: 1;
}

.slide.active .slide-bg {
  transform: scale(1.05);
  transition: transform 10s ease-out;
}

.slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards 0.5s;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--white);
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0.9;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  border: 2px solid var(--white);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--text-dark);
}

/* Sections */
.section-padding {
  padding: 5rem 5%;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Three action boxes */
.action-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: -80px;
  position: relative;
  z-index: 10;
  padding: 0 5%;
}

.action-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.action-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.action-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.action-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.action-card .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
}

.action-card .btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* Areas of Work Grid */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.area-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.area-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.area-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: var(--transition);
}
.area-item:hover img {
  transform: scale(1.1);
}

.area-item h3 {
  color: var(--white);
  font-size: 1.25rem;
  transform: translateY(10px);
  transition: var(--transition);
}

.area-item:hover h3 {
  transform: translateY(0);
}

/* Inner Banner */
.inner-banner {
  height: 40vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px; /* nav offset */
}

.inner-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.inner-banner h1 {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 3rem;
  text-align: center;
}

/* Master Form Wrap */
.master-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  background: #f8fafc;
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(150, 192, 32, 0.2);
  background: var(--white);
}

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
}

.btn-submit:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(150, 192, 32, 0.2);
}

/* Bank Details Box */
.bank-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px dashed #cbd5e1;
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-row strong {
  color: var(--text-dark);
}

.bank-row span {
  color: var(--primary);
  font-weight: 600;
  font-family: monospace;
  font-size: 1.1rem;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(150, 192, 32, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.contact-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--primary);
}

/* Footer */
footer {
  background: #111827;
  color: #f3f4f6;
  padding: 4rem 5% 2rem;
  text-align: center;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-content h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Utils */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content h1 { font-size: 2.5rem; }
  .action-cards { grid-template-columns: 1fr; margin-top: 2rem; }
  .btn-outline { margin-left: 0; margin-top: 1rem; }
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    transition: right 0.3s ease;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-toggle {
    display: block;
  }
}
