:root {
  /* Core palette */
  --white: #ffffff;
  --black: #0b0f19;
  --text-dark: #111827;
  --text-light: #6b7280;
  --background-light: #f3f4f6;

  /* Brand colors */
  --primary-color: #8b5cf6; /* violet */
  --secondary-color: #7c3aed; /* deeper violet */
  --accent-color: #f59e0b; /* amber */

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

  /* Effects */
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.18);
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --transition-normal: all 0.25s ease;
}

/* Make sure navbar is readable on all backgrounds */
.navbar {
  background: var(--gradient-primary);
}
.navbar .nav-logo h2,
.navbar .nav-link {
  color: var(--white) !important;
}
.navbar .nav-logo h2 {
  color: var(--black) !important;
}
.navbar .nav-link:hover {
  color: var(--accent-color) !important;
}

/* Modern Foundation Website Styles */
:root {
  --primary-color: #a16207;
  --secondary-color: #6366f1;
  --accent-color: #fbbf24;
  --text-dark: #4b5563;
  --text-light: #6b7280;
  --background-light: #fefce8;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #a16207 0%, #92400e 100%);
  --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  /* Added additional design tokens for better consistency */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Enhanced global reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced typography hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

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

a:hover {
  color: var(--secondary-color);
}

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

/* Enhanced button styles for consistency */
.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Work Sans", sans-serif;
  text-align: center;
  white-space: nowrap;
}

.btn:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* Navigation Styles */
.navbar {
  background: var(--gradient-primary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(161, 98, 7, 0.2);
  padding: 1rem 0;
  transition: var(--transition-normal);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo h2 {
  /* Updated logo styling with white text on gradient background */
  color: var(--white);
  font-family: "Work Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  /* Updated nav links to white color for better contrast */
  color: var(--white);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  /* Updated underline to use accent color */
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  /* Updated hamburger menu color to white */
  background: var(--white);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 2;
  position: relative;
}

.hero-text {
  max-width: 600px;
  color: var(--white);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Enhanced section styles for better consistency */
section {
  padding: 5rem 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.6s ease-out;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: "Work Sans", sans-serif;
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* About Section */
.about {
  background: var(--background-light);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.about-image-container {
  float: left;
  margin: 0 2rem 1rem 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: "Work Sans", sans-serif;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-weight: 500;
}

.timeline-highlight {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.timeline-highlight h3 {
  color: var(--primary-color);
  font-family: "Work Sans", sans-serif;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--background-light);
  border-radius: 10px;
}

.year {
  font-weight: 700;
  font-family: "Work Sans", sans-serif;
  color: var(--primary-color);
  min-width: 80px;
}

.milestone {
  color: var(--text-dark);
}

.info-cards {
  display: grid;
  gap: 1.5rem;
}

.info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid rgba(161, 98, 7, 0.1);
}

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

.info-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.info-card h3 {
  color: var(--text-dark);
  font-family: "Work Sans", sans-serif;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.info-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Foundation Section */
.foundation-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.foundation-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

.foundation-text h3 {
  font-size: 2rem;
  font-family: "Work Sans", sans-serif;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.foundation-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.foundation-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.value-item {
  padding: 1.5rem;
  background: var(--background-light);
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
  border: 1px solid rgba(161, 98, 7, 0.1);
}

.value-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.value-item i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  display: block;
}

.value-item h4 {
  color: var(--text-dark);
  font-family: "Work Sans", sans-serif;
  margin-bottom: 0.5rem;
}

.value-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Impact Section */
.impact {
  background: var(--background-light);
}

.impact-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.impact-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

.beneficiaries h3 {
  font-size: 2rem;
  font-family: "Work Sans", sans-serif;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.beneficiary-list {
  display: grid;
  gap: 1.5rem;
}

.beneficiary-item {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid rgba(161, 98, 7, 0.1);
}

.beneficiary-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.beneficiary-item i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: block;
}

.beneficiary-item h4 {
  color: var(--text-dark);
  font-family: "Work Sans", sans-serif;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.beneficiary-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Gallery Section */
.gallery {
  background: var(--white);
}

.carousel-inner {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.carousel-item img {
  height: 500px;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-indicators button {
  background-color: var(--primary-color);
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

/* Documents Section */
.documents {
  background: var(--background-light);
}

.documents-content {
  display: grid;
  gap: 3rem;
}

.pdf-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid rgba(161, 98, 7, 0.1);
}

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

.pdf-icon i {
  font-size: 4rem;
  color: #dc2626;
  margin-bottom: 1.5rem;
  display: block;
}

.pdf-card h3 {
  color: var(--text-dark);
  font-family: "Work Sans", sans-serif;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.pdf-card p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.pdf-display-section {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid rgba(161, 98, 7, 0.1);
}

.pdf-display-section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.pdf-display-section h3 {
  color: var(--text-dark);
  font-family: "Work Sans", sans-serif;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.pdf-iframe-container {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

/* Contact Section */
.contact {
  background: var(--gradient-primary);
  color: var(--white);
}

.contact .section-title {
  color: var(--white);
  background: none;
  -webkit-text-fill-color: var(--white);
}

.contact .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.contact-content {
  display: grid;
  gap: 3rem;
}

.email-highlight {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.email-highlight i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.email-link {
  color: var(--white);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
}

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

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.contact-item i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  display: block;
}

.contact-item h3 {
  margin-bottom: 1rem;
  font-family: "Work Sans", sans-serif;
  font-size: 1.25rem;
}

.contact-item p,
.contact-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  line-height: 1.6;
}

.email-featured {
  grid-column: 1 / -1;
  text-align: center;
}

.email-address a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-color);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--accent-color);
  font-family: "Work Sans", sans-serif;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.footer-section h4 {
  color: var(--white);
  font-family: "Work Sans", sans-serif;
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.footer-email a {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
}

/* Enhanced responsive design */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .section-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .about-content,
  .foundation-content,
  .impact-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .foundation-values {
    grid-template-columns: 1fr;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image-container {
    float: none;
    margin: 0 0 1rem 0;
  }

  .about-image {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Enhanced accessibility and focus styles */
.nav-link:focus,
.btn:focus,
.email-link:focus,
a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Enhanced loading animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced utility classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center;
}
.justify-content-center {
  justify-content: center;
}
.justify-content-between {
  justify-content: space-between;
}

.w-100 {
  width: 100%;
}
.h-100 {
  height: 100%;
}

/* Print styles for better document printing */
@media print {
  .navbar,
  .hero-buttons,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .section-title {
    color: #000 !important;
    font-size: 18pt;
  }
}
