@font-face {
  font-family: 'AlMajeedQuranic';
  src: url('../fonts/AlMajeedQuranicFontRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.quranic-font {
  font-family: 'AlMajeedQuranic', serif;
}


/* ===================== */
/* Reset & Base Styles   */
/* ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

/* ===================== */
/* Navbar                */
/* ===================== */
.navbar {
  background: linear-gradient(90deg, #064420, #0b5d2c);
  color: #fff;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(6, 68, 32, 0.95);
  padding: 10px 30px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
}

.navbar .logo {
  font-size: 22px;
  font-weight: bold;
}

.navbar .logo a {
  color: #fff;
  text-decoration: none;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
}

.navbar .nav-links li {
  margin-left: 20px;
}

.navbar .nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.navbar .nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: #ffd700;
  transition: width 0.3s ease;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: #ffd700;
}

.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after {
  width: 100%;
}

/* ===================== */
/* Hero Section          */
/* ===================== */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 100px 20px 20px;
  background: linear-gradient(-45deg, #064420, #0b5d2c, #118C4F, #064420);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/home.webp') no-repeat center center/cover;
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeIn 2.5s ease;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: slideDown 1.5s ease;
}

.hero h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  animation: fadeInUp 2s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-style: italic;
  animation: fadeInUp 2.5s ease;
}

.btn {
  background: #ffd700;
  color: #064420;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
  background: #fff;
  color: #064420;
  transform: translateY(-3px);
}

/* Hero Animations */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== */
/* About Section         */
/* ===================== */
.about {
  padding: 80px 10%;
  background: #f4f9f4;
}

.about h2 {
  color: #064420;
  font-size: 2.4rem;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.about h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #ffd700;
  margin: 10px auto 0;
  border-radius: 2px;
}

.about-flex {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  text-align: left;
}

.about-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  animation: fadeIn 2s ease;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

.motto {
  margin: 25px 0;
  font-weight: bold;
  font-size: 1.2rem;
  color: #064420;
  text-align: center;
}

/* ===================== */
/* Fund Section          */
/* ===================== */
.fund-section {
  padding: 80px 20px;
  background: #fff;
}

.section-header h1 {
  text-align: center;
  color: #064420;
  font-size: 2.2rem;
}

.section-header p {
  text-align: center;
  margin: 15px auto 40px;
  max-width: 700px;
  color: #444;
}

.fund-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.fund {
  background: #f9f9f9;
  padding: 40px 25px;
  text-align: center;
  border-radius: 12px;
  flex: 1 1 300px;
  max-width: 360px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.fund:hover {
  transform: translateY(-6px);
}

.fund h2 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.qr-box img {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.qr-box img:hover {
  transform: scale(1.1);
}

/* ===================== */
/* Contact Section       */
/* ===================== */
.contact-address-section {
  background: #f7f7f7;
  padding: 80px 20px;
}

.contact-column {
  flex: 1 1 320px;
  min-width: 280px;
  text-align: center;
}

.contact-column h2 {
  font-size: 1.8rem;
  color: #064420;
  margin-bottom: 20px;
}

.contact-column iframe {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  border: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===================== */
/* Footer                */
/* ===================== */
footer {
  background: #064420;
  color: white;
  padding: 50px 20px;
  font-size: 0.95rem;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-column {
  flex: 1 1 300px;
  min-width: 250px;
}

.footer-column h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #ffd700;
}

footer p {
  margin: 6px 0;
  line-height: 1.6;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================== */
/* Responsive Styles     */
/* ===================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-flex {
    flex-direction: column;
  }

  .fund-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .contact-address-wrapper {
    flex-direction: column;
    align-items: center;
  }
}