:root {
  --primary-background-color: #527a9a;
  --secondary-background-color: #312f2f;
  --gray-background-color: #48525b;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --overlay: rgba(0, 0, 0, 0.6);
  --green: #28a745;
  --green-dark: #218838;
  --card-bg: #fff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

a {
  text-decoration: none;
}

body {
  font-family: "Almarai", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1 {
  font-size: 2rem;
  font-weight: bold;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1.125rem;
}

img {
  max-width: 100%;
}

/* whats-app */

.whats-app {
  position: relative;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  cursor: pointer;
  border-radius: 50%;
  height: 55px;
  width: 55px;
}

.whats-app {
  img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
  }
}

/* scroll up */

.scroll-up {
  width: 55px;
  height: 55px;
  background-color: var(--gray-background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  bottom: -100px;
  right: 20px;
  z-index: 1000;
  transition: bottom 0.4s ease;
}

.scroll-up.show {
  bottom: 20px;
}

.scroll-up svg {
  font-size: 30px;
  color: #fff;
}

.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: none;
}

/* opacity animzation */

.opacity-reveal {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.opacity-reveal.show {
  opacity: 1;
}

.nav-link.active {
  font-weight: bold;
}

/* overlay */

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--overlay);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.popup {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  max-width: 400px;
  height: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.popup p {
  margin-bottom: 20px;
  font-size: 1.25rem;
  color: #333;
}

.popup a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  background: #007bff;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease;
}

.popup a:hover {
  background: #0056b3;
}

.popup a .icon {
  color: var(--green);
  font-size: 1.2rem;
}

nav {
  background-color: var(--gray-background-color) !important;
  a {
    color: white !important;
  }
}

/* hero section */

.hero {
  background-image: url(../images/487551916_1123289063146083_2506571795667924464_n.jpg);
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
}

/* about section */

.about {
  ul {
    margin-top: 30px;
    li {
      margin-bottom: 20px;
      font-size: 18px;
      list-style: none;
      position: relative;
    }
  }
}
.about li::before {
  content: "✓";
  color: var(--gray-background-color);
  position: absolute;
  right: -30px;
  top: 0;
  font-size: 25px;
}

/* goals section */

.goals {
  background-color: var(--gray-background-color);
}
.custom-card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 8px;
  height: 100%;
}
.card-title {
  font-weight: bold;
  color: #0d2345;
  border-bottom: 2px solid #c49a6c;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

/* gallary section */

.gallary {
  background-color: #edecec;
  text-align: center;
}
.gallary img {
  height: 300px;
  width: 100%;
}
.gallary h1 {
  margin-bottom: 30px;
}
.modal img {
  width: 100%;
  height: 100%;
}
.gallary .layout {
  position: relative;
  cursor: pointer;
}
.gallary .layout img {
  cursor: pointer;
}
.gallary .layout::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1;
  transition: 0.3s;
  opacity: 0.7;
}
.gallary svg:nth-child(2) {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: turquoise;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  transition: 0.3s;
}
.gallary .layout:hover {
  svg:nth-child(2) {
    display: block;
  }
}
.gallary .layout:hover::before {
  width: calc(100% - 24px);
  height: 100%;
}

.gallary .container a:last-child {
  background-color: var(--gray-background-color);
  padding: 20px;
  border-radius: 8px;
  color: white !important;
  text-decoration: none;
  margin-top: 20px;
  display: inline-block;
}

/* footer section */

footer {
  background-color: var(--gray-background-color);
  color: white !important;
  a {
    color: white !important;
    width: fit-content;
    margin: 5px auto;
  }
  ul {
    padding: 0;
    list-style: none;
  }
}
