@font-face {
  font-family: "Tajawal";
  src: url("../fonts/Tajawal-Regular.ttf") format("truetype");
  style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Tajawal";
  src: url("../fonts/Tajawal-Bold.ttf") format("truetype");
  style: normal;
  font-weight: 700;
}

:root {
  --primary-color: #c61e57;
  --primary-color-light: #e177b2;
  --primary-color-dark: #c81c44;
  --white-color: #ffffff;
  --muted-color: #7c685a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 1.25rem;
  background-color: var(--white-color);
  color: var(--muted-color);
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

.text-black {
  color: black;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 3rem;
}

.text-xl {
  font-size: 3.25rem;
}

.text-2xl {
  font-size: 4.5rem;
}

.text-3xl {
  font-size: 6rem;
}

.font-bold {
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--muted-color);
  white-space: nowrap;
  transition: color 0.3s ease;
}

a:hover:not(.btn) {
  color: var(--primary-color-dark);
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 2rem;
  border-bottom: 3px solid var(--primary-color-light);
  /* min-height: 10rem; */
  height: 80px;
  position: sticky; /* Fixed position */
  top: 0; /* Stick to the top */
  left: 0; /* Full width */
  right: 0; /* Full width */
  z-index: 1000;
  /* background-color: transparent; */
  background: rgba(255, 255, 255, 0.4); /* Semi-transparent background */
  backdrop-filter: blur(20px); /* Apply the blur effect */
  -webkit-backdrop-filter: blur(20px); /* Safari support */
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  list-style-type: none;
}

.navbar-left li,
.navbar-right li {
  margin: 0 2rem;
}

.navbar .logo {
  flex: 0 0 auto; /* Prevent the logo from growing */
  position: relative; /* Keep it in the normal document flow */
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 2rem;
}

.navbar .logo img {
  display: block;
}

.logo-anchor {
  /* background-color: white; */
  /* padding: 1.5rem; */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-anchor img {
  /* width: 80%; */
  height: auto;
  color: white;
}

.btn {
  border-radius: 1.25rem;
  background-color: var(--primary-color-dark);
  color: var(--white-color);
  padding: 0.25rem 1rem;
}

.text-primary-dark {
  color: var(--primary-color-dark);
}

.bg-primary-dark {
  background-color: var(--primary-color-dark);
}

.image-section {
  position: relative;
  width: 100%;
}

.section-img {
  width: 100%;
  height: auto;
  display: block;
}

.certificate-frame {
  border: 1rem solid #d6d6d6;
  max-width: 250px;
}

.text-center {
  text-align: center;
}

/* Section 1 Styles */
.section-1-container {
  position: relative;
  width: 100%;
  min-height: 85vh;
  background-image: url("../imgs/section-1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 10rem;
}

.section-1-div-1 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.section-1-text-container {
  display: flex;
  align-items: center;
  line-height: 1.2;
  gap: 1rem;
}

.section-1-image {
  max-width: 400px;
  height: auto;
  display: block;
}

/* Section 2 Styles */
.section-2 {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-2-content {
  display: flex;
  width: 100%;
}

.section-2-image {
  flex: 1; /* Allow the image to grow and shrink */
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-2-image img {
  width: 100%;
  height: auto;
  padding: 0 5rem;
}

.section-2-text {
  flex: 1; /* Allow the text to grow and shrink */
  background-color: var(--primary-color-dark);
  color: var(--white-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
  min-height: 100vh;
}

.section-2-text p {
  margin: 0; /* Remove default margin from paragraphs */
  line-height: 1.6; /* Improved readability */
}

/* Section 3 Styles */
.section-3-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: none; /* Remove the background image here */
  color: var(--white-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 5rem 10rem;
  overflow: hidden; /* Ensure the pseudo-element doesn't overflow */
}

.section-3-container .section-3-content h4 {
  color: var(--primary-color-dark);
  margin: 0; /* Remove default margin from paragraphs */
  line-height: 1.6; /* Improved readability */
  font-weight: 500;
}

.section-3-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  transform: translate(-50%, -50%);
  background-image: url("../imgs/section-3.jfif");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(10px); /* Apply the blur effect */
  z-index: -1; /* Place the blurred background behind the content */
  -webkit-filter: grayscale(10%); /* Safari 6.0 - 9.0 */
  filter: grayscale(10%);
  opacity: 0.35;
}

.section-3-title {
  margin: 2rem 4rem;
}

.section-3-image {
  width: 200px;
  height: auto;
  display: block;
}

.section-3-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.shadow {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.shadow-lg {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-button {
  position: fixed;
  bottom: 3rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: rgba(1, 230, 117, 0.3) 1px 11px 20px 0px;
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

.whatsapp-button img {
  width: 20px;
  height: 20px;
}

svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--muted-color);
}

footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 3rem 4rem 2rem;
  border-top: 2px solid var(--primary-color);
  color: black;
  font-size: 1.125rem;
}

.navbar-toggler {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

.section-4 {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.left-image-container {
  width: 50%;
  background-color: var(--primary-color-dark);
}

.section-4-image {
  width: 80%;
  height: auto;
  display: block;
  margin-right: auto;
}

.right-content {
  width: 50%;
  padding: 1rem;
  box-sizing: border-box;
}

.title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.right-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.section-4-right-image {
  width: 50%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 640px) {
  footer {
    flex-direction: column;
    gap: 1rem;
  }

  footer .footer-contacts{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section-1-container {
    padding: 4rem 0rem;
  }

  .section-1-container .section-1-div-1 {
    flex-direction: column;
    gap: 2rem;
  }

  .section-1-container .section-1-div-1 .text-xl {
    font-size: 1.75rem;
  }

  .section-1-container .section-1-div-1 .text-2xl {
    font-size: 2.5rem;
  }

  .section-1-container .section-1-div-1 .text-3xl {
    font-size: 3rem;
  }

  .section-3-container .section-3-content h4 {
    text-align: center;
    margin-bottom: 2rem;
  }
}

@media (max-width: 1024px) {
  .section-3-images {
    flex-direction: column;
    gap: 1rem;
  }

  .section-3-container {
    align-items: center;
  }

  .section-4 {
    flex-direction: column;
  }

  .left-image-container {
    display: none;
  }

  .right-content {
    width: 100%;
    margin-bottom: 1rem;
  }

  .right-images {
    flex-direction: column;
  }

  .section-4-right-image {
    width: 100%;
    margin-bottom: 1rem;
  }

  .section-2-content {
    flex-direction: column; /* Stack items vertically on smaller screens */
  }

  .section-2-image {
    display: none; /* Hide the image on smaller screens */
  }

  .section-2-text {
    min-height: 50vh;
    width: 100%;
    padding: 5rem 1rem;
  }

  .section-3-title {
    margin: 0;
  }
}

@media (max-width: 1280px) {
  .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* position: relative; */
    padding: 1rem;
    border-bottom: 3px solid var(--primary-color-light);
    min-height: unset;
  }

  .navbar .logo {
    order: 1; /* Logo first */
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .navbar-toggler {
    order: 2; /* Toggler second */
    display: block;
    margin: 1rem 0;
    font-size: 2rem;
    cursor: pointer;
  }

  .navbar-left,
  .navbar-right {
    order: 3; /* Menu third */
    flex-direction: column;
    width: 100%;
    text-align: center;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
  }

  .navbar-left li,
  .navbar-right li {
    margin: 0.5rem 0;
  }

  .navbar-left.show,
  .navbar-right.show {
    display: flex;
    max-height: 500px; /* Adjust based on content */
    opacity: 1;
  }

  .section-1-text-container {
    flex-direction: column;
    gap: 0;
  }

  .section-1-image {
    max-width: 300px;
  }

  .text-lg {
    font-size: 2rem;
  }

  .text-xl {
    font-size: 2.5rem;
  }

  .text-2xl {
    font-size: 2.75rem;
  }

  .text-3xl {
    font-size: 4rem;
  }

  .section-3-image {
    width: 100px;
  }
}

@media (max-width: 1536px) {
  .section-1-image {
    max-width: 300px;
  }

  .text-lg {
    font-size: 2.5rem;
  }

  .text-xl {
    font-size: 3rem;
  }

  .text-2xl {
    font-size: 4rem;
  }

  .text-3xl {
    font-size: 5rem;
  }
}
