/* Tailwind Directives */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* 1. Base Font Styles */
@layer base {
  html {
    font-family: 'Montserrat', sans-serif; /* Default for all text */
  }

  h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Bold for emphasis */
  }

  p, li, a, input, button, span:not(.fa-solid):not(.fa-brands) {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; /* Regular weight for body text */
  }

  /* Specific elements with bold for emphasis */
  .nav-logo, .nav-link, .cta-button, .hero-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Bold for emphasis */
  }

  /* Remove underlines from all links and add hover animation */
  a {
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
  }

  a:hover:not(.cta-button):not(.hero-button):not(#mobile-menu a[role="button"]):not(#story-hero a[role="button"]):not(#project1 a[role="button"]):not(#project2 a[role="button"]):not(#project3 a[role="button"]) {
    transform: scale(1.05);
    color: #065f06; /* Darker green on hover */
  }

  /* Larger heading sizes */
  h1 {
    font-size: 3.5rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 2.5rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.75rem;
    line-height: 1.4;
  }

  p {
    font-size: 1rem; /* Default paragraph size */
  }

  .nav-logo {
    font-size: 1.5rem; /* Slightly larger than original 1.25rem */
  }
}

/* 2. Navigation Bar */
#navbar {
  background: linear-gradient(to right, #fdf6e3, #f5deb3);
  border-top: 2px solid green;
  color: green;
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Base nav-menu style for desktop */
.nav-menu {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #fdf6e3, #f5deb3);
    flex-direction: column;
    padding: 1rem;
    text-align: center;
    z-index: 60;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 70;
  }
}

.nav-logo {
  color: green;
}

.nav-link {
  text-decoration: none;
  color: green;
  font-size: 1.1rem; /* Slightly larger for readability */
}

.nav-link.active {
  font-weight: 700;
}

.cta-button,
.hero-button,
#mobile-menu a[role="button"],
#story-hero a[role="button"],
#project1 a[role="button"],
#project2 a[role="button"],
#project3 a[role="button"] {
  background-color: #065f06; /* Dark green for buttons */
  color: gold;
  padding: 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  font-size: 1rem;
  font-weight: 700; /* Ensure bold text */
}

.cta-button:hover,
.hero-button:hover,
#mobile-menu a[role="button"]:hover,
#story-hero a[role="button"]:hover,
#project1 a[role="button"]:hover,
#project2 a[role="button"]:hover,
#project3 a[role="button"]:hover {
  transform: scale(1.05);
  background-color: #065f06;
}

/* 3. Hero Section (index.html) */
#hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 2rem;
  background: linear-gradient(to right, rgba(255, 218, 6, 0.836), white, rgb(15, 136, 15));
  min-height: 90vh; /* Full height for index.html */
  gap: 2rem;
}

.hero-left {
  flex: 1;
  text-align: center;
  color: black;
  padding: 0 2rem;
  order: 1;
  width: 100%;
}

.hero-left p {
  margin: 1rem 0;
  font-size: 1.125rem;
}

.hero-right {
  flex: 1;
  max-width: 80%;
  width: 100%;
  order: 2;
}

.hero-right img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
}

/* Desktop adjustments for hero */
@media (min-width: 769px) {
  .hero-left {
    width: auto;
    text-align: left;
  }

  .hero-right {
    max-width: 500px;
  }
}

/* 4. Story Hero Section (our-story.html, our-projects.html, contact.html) */
#story-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  background: linear-gradient(to right, #f7e6c4, #b5e8c0); /* Adjusted to match existing usage */
  min-height: 50vh;
}

.hero-content {
  text-align: center;
  color: black;
  max-width: 48rem; /* Matches max-w-3xl */
}

.hero-content h2 {
  font-size: 2.5rem; /* Smaller than index.html for hierarchy */
}

.hero-content p {
  font-size: 1.125rem;
  margin: 1rem 0;
}

/* Desktop adjustments for story-hero */
@media (min-width: 769px) {
  .hero-content h2 {
    font-size: 3.5rem;
  }
}

/* 5. Objective Section (index.html) */
#objectives {
  background: linear-gradient(to right, #f3e8ab, #96f0a5);
  color: black;
  padding: 3rem 2rem;
  text-align: center;
}

.objective-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.objective-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  color: black;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slide-up 0.5s ease-out forwards;
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  background: transparent;
  border: 1.2px solid gold;
}

.objective-card > div {
  background: transparent;
}

.objective-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.objective-card p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.objective-card span {
  font-size: 0.875rem;
  color: #047004;
  font-weight: 400;
}

.objective-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Mobile adjustments for objectives */
@media (max-width: 768px) {
  .objective-grid {
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
  }

  .objective-card {
    margin: 0 auto;
  }
}

/* 6. About Us Section (our-story.html) */
#about-us {
  background: linear-gradient(to top right, #d0f0c0, white);
  padding: 3rem 2rem;
  color: black;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.about-us-img {
  flex: 1;
  max-width: 500px;
  width: 100%;
  order: 1;
}

.about-us-img img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-us-text {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
  order: 2;
}

.about-us-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-us-text p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Desktop adjustments for about-us */
@media (min-width: 769px) {
  .about-us-text {
    text-align: left;
  }
}

/* 7. Our Mission Section (our-story.html) */
#our-mission {
  background: linear-gradient(to top right, #d0f0c0, white);
  padding: 3rem 2rem;
  color: black;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.our-mission-img {
  flex: 1;
  max-width: 500px;
  width: 100%;
  order: 1;
}

.our-mission-img img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.our-mission-text {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
  order: 2;
}

.our-mission-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.our-mission-text p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Desktop adjustments for our-mission */
@media (min-width: 769px) {
  .our-mission-text {
    text-align: left;
    order: 1;
  }

  .our-mission-img {
    order: 2;
  }
}

/* 8. Our Founder Section (our-story.html) */
#our-founder {
  background: linear-gradient(to top right, #d0f0c0, white);
  padding: 3rem 2rem;
  color: black;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.our-founder-img {
  flex: 1;
  max-width: 500px;
  width: 100%;
  order: 1;
}

.our-founder-img img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  aspect-ratio: 3 / 4; /* Enforce a consistent aspect ratio, adjustable as needed */
  width: 100%;
  height: auto;
  object-fit: cover;
}

.our-founder-text {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
  order: 2;
}

.our-founder-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.our-founder-text p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Desktop adjustments for our-founder */
@media (min-width: 769px) {
  .our-founder-text {
    text-align: left;
    justify-content: center;
  }

  .our-founder-img {
    max-height: 500px;
    justify-content: center;
    order: 1;
  }
}

/* 9. Project Sections (our-projects.html) */
#project1, #project2, #project3 {
  background: linear-gradient(to top right, #d0f0c0, white);
  padding: 3rem 2rem;
  color: black;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.project-img {
  flex: 1;
  max-width: 500px;
  width: 100%;
  order: 1;
  position: relative;
}

.project-img img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-img div {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 80%;
  height: 80%;
  border: 4px solid #f5deb3;
  border-radius: 0.5rem;
  opacity: 0.5;
  z-index: 0;
}

.project-text {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
  order: 2;
}

.project-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-text p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Desktop adjustments for project sections */
@media (min-width: 769px) {
  #project1 .project-img, #project3 .project-img {
    order: 1;
  }

  #project1 .project-text, #project3 .project-text {
    text-align: left;
    order: 2;
  }

  #project2 .project-img {
    order: 2;
  }

  #project2 .project-text {
    text-align: left;
    order: 1;
  }
}

/* 10. Our Projects Section (index.html) */
#projects {
  background: linear-gradient(to bottom left, #f9f6e0, white);
  padding: 3rem 2rem;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.project-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  color: black;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slide-up 0.5s ease-out forwards;
  border: 2.5px solid #f5deb3;
  border-radius: 0.375rem;
}

.project-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.project-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.project-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Mobile adjustments for projects */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* 11. Impact Section (index.html) */
#impact {
  background: linear-gradient(to right, #f3e8ab, #96f0a5);
  color: black;
  text-align: center;
  padding: 3rem 2rem;
}

.impact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.impact-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  color: black;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: slide-up 0.5s ease-out forwards;
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  background: transparent;
  border: 1.2px solid gold;
}

.impact-card > div {
  background: transparent;
}

.impact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.impact-card p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.impact-card span {
  font-size: 0.875rem;
  color: #047004;
  font-weight: 400;
}

.impact-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Mobile adjustments for impact */
@media (max-width: 768px) {
  .impact-grid {
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
  }

  .impact-card {
    margin: 0 auto;
  }
}

/* 12. Contact Section (contact.html) */
#contact {
  background: linear-gradient(to right, #f3e8ab, #96f0a5); /* Adjusted to match objectives and impact */
  padding: 3rem 2rem;
  text-align: center;
  color: black;
}

/* 13. Footer Section */
footer {
  background: linear-gradient(to right, #96f0a5, #f3e8ab);
  color: green;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-column h3 {
  margin-bottom: 1rem;
  color: green;
  font-size: 1rem;
  font-weight: 700;
}

.footer-column p,
.footer-column a {
  color: green;
  margin: 0.5rem 0;
  font-size: 1rem;
}

.footer-about img {
  width: 100px;
  height: auto;
  margin-top: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0.5rem 0;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Font Awesome icon styles */
.footer-contact i.fa-solid {
  font-size: 1.5rem;
  color: #065f06; /* Darker green for icons */
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-icons a i.fa-brands {
  font-size: 2rem;
  color: #065f06; /* Darker green for social icons */
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover i.fa-brands {
  transform: scale(1.1);
  color: #065f06;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 300px;
}

.newsletter-form input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid green;
  border-radius: 0.375rem;
  font-size: 1rem;
  color: black;
}

.newsletter-form input:focus {
  outline: none;
  border-color: gold;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid green;
  font-size: 0.875rem;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-column {
    margin-bottom: 1rem;
  }

  h1, .hero-left h2 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero-left p {
    font-size: 1rem;
  }
}

/* Animations */
@keyframes slide-down {
  0% {
    opacity: 0;
    transform: translateY(-10%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  0% {
    opacity: 0;
    transform: translateY(10%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-down {
  animation: slide-down 0.3s ease-out forwards;
}

.animate-slide-up {
  animation: slide-up 0.5s ease-out forwards;
}