/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ticker */
.moving-header {
    background: black;
    color: white;
    overflow: hidden;
    padding: 8px 0;
    font-family: Arial;
}

.ticker-wrapper {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: moveLeft 20s linear infinite;
}

.ticker-item {
    padding: 0 40px;
}

@keyframes moveLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 60px;
    background: #f8f9fb;
    font-family: Arial, sans-serif;
}

/* Logo */
.logo img {
    height: 65px;
}

/* Nav */
.nav-menu > ul {
    display: flex;
    list-style: none;
    gap: 45px;
    align-items: center;
}

/* Nav Items */
.nav-item {
    position: relative;
    color: #5a6b85;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item i {
    font-size: 11px;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    background: white;
    list-style: none;
    padding: 8px 0;
    min-width: 160px;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;

}

/* Dropdown Items */
.dropdown li {
    padding: 10px 18px;
    font-size: 14px;
}

.dropdown li:hover {
    background: #f3f4f6;
}

/* SHOW DROPDOWN */
.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Donate Button */
.donate-btn a {
    background: #f25c05;
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown {
    display: block;
}

.dropdown li {
    display: block;
}


/* Hero Section */
.hero {
    width: 100%;
    height: 90vh;
    background: url('../img/mosque.png') no-repeat center center/cover;
}
/* DONATION BOX */
.donation-box {
  background: #f5d7b8;
  padding: 20px;
  margin: -40px auto 30px;
  width: 80%;
  border-radius: 10px;
  text-align: center;
}

.amount {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.amount span {
  background: #ff5a1f;
  color: white;
  padding: 10px;
}

.amount input {
  width: 200px;
  padding: 10px;
  border: none;
  text-align: center;
}

.donation-type button {
  margin: 10px;
  padding: 10px 20px;
}

.donate-btn {
  background: #ff5a1f;
  color: white;
  padding: 10px 20px;
  border: none;
}

/* COURSES */
/* SECTION */
.causes {
  padding: 80px 20px;
  text-align: center;
  background: #f8fafc;
}

.sub-title {
  color: #f97316;
  margin-bottom: 10px;
}

.main-title {
  font-size: 30px;
  margin-bottom: 40px;
  color: #0f172a;
}

/* CONTAINER */
.causes-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* CARD */
.cause-card {
  width: 300px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);

  /* animation */
  transform: translateY(50px);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}

/* delay for each card */
.cause-card:nth-child(1) {
  animation-delay: 0.2s;
}
.cause-card:nth-child(2) {
  animation-delay: 0.4s;
}
.cause-card:nth-child(3) {
  animation-delay: 0.6s;
}

/* IMAGE */
.cause-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;

  transition: 0.4s;
}

/* CONTENT */
.cause-content {
  padding: 15px;
}

.cause-content h4 {
  margin-bottom: 10px;
  color: #0f172a;
}

.cause-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

/* PROGRESS BAR */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress {
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, #f97316, #fb923c);
  animation: loadBar 2s ease forwards;
}

/* STATS */
.stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 10px;
}

/* BUTTON */
.cause-content button {
  width: 100%;
  padding: 10px;
  border: none;
  background: #f97316;
  color: white;
  border-radius: 10px;
  cursor: pointer;

  transition: 0.3s;
}

/* HOVER EFFECT 🔥 */
.cause-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.cause-card:hover img {
  transform: scale(1.1);
}

.cause-content button:hover {
  background: #ea580c;
}

/* ANIMATIONS */
@keyframes fadeUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes loadBar {
  from {
    width: 0;
  }
  to {
    width: 40%;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .causes-container {
    flex-direction: column;
    align-items: center;
  }
}
/* MESSAGE */
/* MESSAGE SECTION */
/* MESSAGE SECTION */
.message {
  padding: 80px 20px;
  background: #0f172a; /* dark modern bg */
  color: white;
  overflow: hidden;
}

/* CONTAINER */
.message-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1100px;
  margin: auto;
}

/* IMAGE */
.message-image img {
  width: 350px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);

  /* animation */
  transform: translateX(-100px);
  opacity: 0;
  animation: slideLeft 1s ease forwards;
}

/* TEXT */
.message-text {
  max-width: 500px;

  transform: translateX(100px);
  opacity: 0;
  animation: slideRight 1s ease forwards;
}

.message-text h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #38bdf8;
}

.message-text p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 15px;
}

.message-text h4 {
  margin-top: 10px;
  color: #f97316;
}

/* ANIMATIONS */
@keyframes slideLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* HOVER EFFECT */
.message-image img:hover {
  transform: scale(1.05);
  transition: 0.4s;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .message-container {
    flex-direction: column;
    text-align: center;
  }

  .message-image img {
    width: 250px;
  }
}

/* IMAGE */
.message-image {
  flex: 1;
  text-align: center;
}

.message-image img {
  width: 300px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);

  /* hover animation */
  transition: transform 0.4s ease;
}

.message-image img:hover {
  transform: scale(1.05) rotate(1deg);
}

/* KEYFRAMES */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .message-container {
    flex-direction: column;
    text-align: center;
  }

  .message-image img {
    width: 220px;
  }
}

/* PROJECTS */
/* WHY SECTION */
.why {
  padding: 80px 20px;
  /*background: linear-gradient(to right, #0f172a, #1e293b);*/
  text-align: center;
  color: white;
}

.why-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* CARD */
.why-card {
  width: 230px;
  padding: 25px;
  border-radius: 20px;

  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);

  box-shadow: 0 10px 25px rgba(0,0,0,0.3);

  /* animation */
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}

/* delay animation */
.why-card:nth-child(1){ animation-delay: 0.2s; }
.why-card:nth-child(2){ animation-delay: 0.4s; }
.why-card:nth-child(3){ animation-delay: 0.6s; }
.why-card:nth-child(4){ animation-delay: 0.8s; }

/* ICON */
.icon {
  font-size: 40px;
  margin-bottom: 10px;
}

/* TEXT */
.why-card h4 {
  margin-bottom: 10px;
  color: #390101;
}

.why-card p {
  font-size: 14px;
  color: #000000;
}

/* HOVER EFFECT 🔥 */
.why-card:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255,255,255,0.1);
}

/* ANIMATION */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .why-container {
    flex-direction: column;
    align-items: center;
  }
}

/* FOOTER */
/* FOOTER */

footer {
  background: #011c44;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 40px;
  gap: 30px;
  flex-wrap: wrap;
  animation: fadeInFooter 1s ease-in;
}

footer h3, footer h4 {
  margin-bottom: 12px;
  font-weight: bold;
}

footer .footer-info {
  max-width: 350px;
  animation: fadeIn 1s ease forwards;
}

footer .footer-info p {
  line-height: 1.5;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.3s;
}

footer .footer-contact,
footer .footer-links {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

footer .footer-contact {
  animation-delay: 0.5s;
}

footer .footer-links {
  animation-delay: 0.7s;
}

footer a {
  display: block;
  color: white;
  text-decoration: none;
  margin: 6px 0;
  transition: color 0.3s;
}

footer a:hover {
  color: #ffdc00;
}

/* Fade‑in animations */

@keyframes fadeInFooter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Responsive mobile layout */
@media screen and (max-width: 700px) {
  footer { flex-direction: column; align-items: center; text-align: center; }
  footer .footer-info, footer .footer-contact, footer .footer-links {
    max-width: 100%;
  }
}




/* IMPACT SECTION */
.impact {
  padding: 80px 20px;
  background: #f1f5f9;
  text-align: center;
}

.impact-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* PRAYER BOX */
.prayer-box {
  background: #0f172a;
  color: white;
  padding: 30px;
  border-radius: 20px;
  width: 280px;

  /* animation */
  transform: translateX(-100px);
  opacity: 0;
  animation: slideLeft 1s ease forwards;
}

.prayer-box h3 {
  margin-bottom: 20px;
  color: #38bdf8;
}

/* EACH PRAYER */
.prayer {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* STATS BOX */
.stats-box {
  display: flex;
  flex-direction: column;
  gap: 20px;

  transform: translateX(100px);
  opacity: 0;
  animation: slideRight 1s ease forwards;
}

.stat {
  background: white;
  padding: 20px;
  border-radius: 15px;
  width: 220px;

  box-shadow: 0 10px 20px rgba(0,0,0,0.1);

  transition: 0.3s;
}

.stat h2 {
  color: #f97316;
}

/* HOVER 🔥 */
.stat:hover {
  transform: scale(1.08);
}

/* ANIMATIONS */
@keyframes slideLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .impact-container {
    flex-direction: column;
    align-items: center;
  }
}

.sub-text {
  color: #64748b;
  margin-top: 10px;
}






/* REMINDER SECTION */
.reminder {
  padding: 100px 20px;
  background: linear-gradient(to right, #020617, #0f172a);
  position: relative;
  overflow: hidden;
}

/* subtle glowing background */
.reminder::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(250, 204, 21, 0.15);
  filter: blur(120px);
  top: -100px;
  left: -100px;
}

/* CONTAINER */
.reminder-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1100px;
  margin: auto;
  position: relative;
  z-index: 2;
}

/* IMAGE WRAPPER */
.reminder-image {
  position: relative;
}

/* IMAGE (OVAL + OVERLAY 🔥) */
.reminder-image img {
  width: 320px;
  height: 420px;
  object-fit: cover;
  border-radius: 50% / 60%;

  box-shadow: 0 20px 60px rgba(0,0,0,0.7);

  /* animation */
  transform: translateX(-150px);
  opacity: 0;
  animation: slideLeft 1.2s ease forwards;
}

/* DARK OVERLAY */
.reminder-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 420px;
  border-radius: 50% / 60%;
  background: rgba(0,0,0,0.4);
}

/* TEXT */
.reminder-text {
  max-width: 520px;
  color: white;

  transform: translateX(150px);
  opacity: 0;
  animation: slideRight 1.2s ease forwards;
}

/* HEADING */
.reminder-text h2 {
  font-size: 34px;
  margin-bottom: 20px;
  color: #facc15;

  text-shadow: 0 0 15px rgba(250,204,21,0.5);
}

/* PARAGRAPH */
.reminder-text p {
  line-height: 1.9;
  margin-bottom: 15px;
  color: #e2e8f0;
  font-size: 16px;
}

/* FINAL LINE */
.reminder-text h4 {
  margin-top: 15px;
  color: #f97316;
  font-size: 18px;
}

/* FLOAT ANIMATION 😏 */
.reminder-image img:hover {
  transform: scale(1.05) translateY(-10px);
  transition: 0.4s;
}

/* ANIMATIONS */
@keyframes slideLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .reminder-container {
    flex-direction: column;
    text-align: center;
  }

  .reminder-image img {
    width: 220px;
    height: 300px;
  }

  .reminder-image::after {
    width: 220px;
    height: 300px;
  }
}