/* ===== Global Theme Colors ===== */
body {
  background-color: #0047ab; /* Deep blue */
  color: black; /* Default text color */
}

.dark-theme {
  background-color: #003366; /* Darker shade */
}

h1, h2, h3 {
  color: white; /* Headings stand out */
}

p {
  color: black; /* Default text */
}

.btn {
  background: white;
  color: #0047ab; /* Blue button text */
}

.nav-links a {
  color: white;
}

/* ===== Navigation Bar Styling ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #003366; /* Deep blue shade */
  padding: 15px 20px;
  z-index: 1000;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nav-links a {
  color: white; /* Text in white for contrast */
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffdd57; /* Light yellow on hover */
}

.menu-icon {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
  .menu-icon {
    display: block; /* Make hamburger icon visible */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #0f3460;
    text-align: center;
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }
}

/* ===== Hero Section Styling ===== */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 5%;
  background-color: #0047ab; /* Blue background */
  color: white;
}

.hero-content {
  flex: 1;
  text-align: left;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  color: white;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: white;
}

.btn {
  background: white;
  color: #0047ab;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  width: 450px;
  height: auto;
}

/* ===== About Section Styling ===== */
.about-section {
  display: flex;
  align-items: center;
  padding: 80px 5%;
  background-color: #003366; /* Deep blue shade */
  color: white;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}

.about-text p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: white;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  width: 400px;
  height: auto;
}

/* ===== Investment Plans Section Styling ===== */
.plans-section {
  text-align: center;
  padding: 80px 5%;
  background-color: #003366; /* Deep blue shade */
  color: white;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.plan-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  color: black;
}

.plan-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: blue;
}

.plan-card p span {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffdd57; /* Light gold for earnings */
}

.note {
  font-size: 1rem;
  margin-top: 20px;
}

/* ===== How It Works Section Styling ===== */
.how-it-works {
  text-align: center;
  padding: 80px 5%;
  background-color: #0047ab; /* Blue background */
  color: white;
}

.steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.step {
  flex: 1;
  text-align: center;
}

.step img {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

.step p {
  font-size: 1.2rem;
}

/* ===== Halal Business Model Section Styling ===== */
.halal-section {
  text-align: center;
  padding: 80px 5%;
  background-color: #003366; /* Deep blue shade */
  color: white;
}

.halal-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}

.halal-section p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: white;
}

.halal-section ul {
  list-style: none;
  padding: 0;
}

.halal-section ul li {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* ===== Referral Program Section Styling ===== */
#referralSection {
  text-align: center;
  padding: 80px 5%;
  background-color: #0047ab; /* Blue background */
  color: white;
}

#referralSection h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}

#referralSection p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: white;
}

#referralSection ul {
  list-style: none;
  padding: 0;
}

#referralSection ul li {
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#referralSection ul li i {
  font-size: 24px;
  color: #ffdd57; /* Light gold for icons */
}

.referral-image {
  width: 350px;
  margin-top: 20px;
}

/* ===== Testimonials Section Styling ===== */
.testimonials-section {
  text-align: center;
  padding: 80px 5%;
  background-color: #003366; /* Deep blue shade */
  color: white;
}

.testimonials-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}

.testimonial-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.testimonial {
  background: white;
  padding: 20px;
  border-radius: 8px;
  color: black;
  width: 300px;
}

.testimonial p {
  font-size: 1.2rem;
}

.testimonial span {
  font-size: 1rem;
  font-weight: bold;
  color: #ffdd57; /* Light gold for names */
}

/* ===== Contact Section Styling ===== */
.contact-section {
  text-align: center;
  padding: 80px 5%;
  background-color: #0047ab; /* Blue background */
  color: white;
}

.contact-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
}

.contact-section p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: white;
}

.contact-section ul {
  list-style: none;
  padding: 0;
}

.contact-section ul li {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

#support-image {
  width: 350px;
  margin-top: 20px;
}

/* ===== Footer Section Styling ===== */
.footer {
  text-align: center;
  padding: 20px 5%;
  background-color: #003366; /* Deep blue shade */
  color: white;
}

.footer p {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* ===== Scroll to Top Icon Styling ===== */
#scroll-up {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 40px;
  color: white;
  background-color: #0047ab;
  padding: 10px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

#scroll-up:hover {
  background-color: #ffdd57; /* Light gold hover effect */
}


@media screen and (max-width: 768px) {
  body {
    font-size: 16px; /* Adjust text size for mobile readability */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevents horizontal scroll */
  }

  .hero-section {
    flex-direction: column; /* Stack content vertically */
    text-align: center;
    padding: 50px 5%;
  }

  .hero-image img {
    width: 250px; /* Resize hero image for small screens */
    display: block;
    margin: 20px auto;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    width: 300px; /* Adjust image sizing */
    margin: 0 auto;
  }

  .plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust investment plan grid */
  }

}

@media screen and (max-width: 768px) {
  .menu-icon {
    display: block;
    position: relative;
    left: 0;
    top: 10px;
    width: min-content;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top:60px;
    left: 0;
    width: 100%;
    background: #0f3460;
    text-align: center;
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }
}


@media screen and (max-width: 768px) {
  .steps {
    flex-direction: column; /* Stack steps vertically */
    align-items: center;
  }

  .step img {
    width: 60px; /* Resize step icons */
    margin-bottom: 8px;
  }

  .step p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {
  #referralSection {
    text-align: center;
    padding: 40px 5%;
  }

  #referralSection ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
  }

  #referralSection ul li {
    width: 100%;
    padding: 12px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  #referralSection ul li i {
    font-size: 24px;
    color: #ffdd57; /* Light gold for icons */
    margin-right: 10px;
  }

  .referral-image {
    width: 250px;
    margin-top: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}


@media screen and (max-width: 768px) {
  .contact-section {
    text-align: center;
    padding: 40px 5%;
  }

  .contact-section ul {
    flex-direction: column;
    gap: 10px;
  }

  #support-image {
    width: 250px;
    margin-top: 15px;
  }
}

@media screen and (max-width: 768px) {
/* ===== Footer Section Fix ===== */
.footer {
  text-align: center;
  padding: 20px 5%;
  background-color: #003366; /* Deep blue shade */
  color: white;
  position: relative;
  width: 100%;
  bottom: 0;
}


main {
  flex-grow: 1; /* Allows content to expand before footer */
}

}

/* ===== Loading Spinner Styling ===== */
#loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #fff;
  border-top: 5px solid #ffdd57;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

