:root {
  --main-bg: #054239;
  --main-dark: #02241f;
  --accent-color: #b9a77a;
}

body {
  font-family: "Noto Kufi Arabic", sans-serif;
  background-color: #f8fcfb;
}

body.splash-active {
  overflow: hidden;
}
body.splash-active #scroll-top {
  display: none !important;
}

/* ================================== */
/* (Splash Screen) */
/* ================================== */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: center;
}

.door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--main-dark);
  overflow: hidden;
  transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1) 0.8s;
  z-index: 1;
}

.door::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/islamic_back.svg");
  background-size: 400px;
  opacity: 0.08;
  pointer-events: none;
}

.door.right {
  right: 0;
}
.door.left {
  left: 0;
}

.door.right::before {
  background-position: right center;
}
.door.left::before {
  background-position: left center;
}

#splash-screen.open .door.right {
  transform: translateX(100%);
}
#splash-screen.open .door.left {
  transform: translateX(-100%);
}

.splash-content {
  position: relative;
  z-index: 2;
  transition:
    opacity 0.5s ease-out,
    transform 0.5s;
}

.logo-pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

#splash-screen.open .splash-content {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.custom-btn {
  background-color: var(--accent-color) !important;
  color: var(--main-dark) !important;
  font-weight: 800;
  font-size: 1.2rem;
  padding: 12px 40px;
  border-radius: 50px;
  border: 2px solid var(--accent-color) !important;
  transition: all 0.3s ease;
}

.custom-btn:hover {
  background-color: transparent !important;
  color: var(--accent-color) !important;
  border: 2px solid var(--accent-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.splash-wrapper {
  margin-bottom: 10rem;
}
.splash-logo {
  max-width: 150px;
}
.ministry-title {
  color: var(--accent-color);
  word-spacing: 3px;
  margin-bottom: 5rem;
}
.main-title {
  font-size: 3.5rem;
}

/* ================================== */
/* (Responsive Splash Screen) */
/* ================================== */
@media (max-width: 768px) {
  .splash-wrapper {
    margin-bottom: 13rem;
  }

  .splash-logo {
    max-width: 100px;
  }

  .ministry-title {
    font-size: 1.4rem;
    margin-bottom: 5rem;
    word-spacing: normal;
  }

  .main-title {
    font-size: 2rem !important;
  }

  .splash-desc {
    font-size: 1.1rem !important;
    margin-bottom: 2rem !important;
  }

  .custom-btn {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

/* ================================== */
/* General Style */
/* ================================== */
#main-content {
  opacity: 0;
  transition: opacity 1.5s ease-in;
}

body.site-loaded #main-content {
  opacity: 1;
}

.custom-navbar {
  background: linear-gradient(90deg, var(--main-dark), var(--main-bg));
}
.custom-navbar .nav-link:hover {
  color: var(--accent-color) !important;
}
.main-text-color {
  color: var(--main-bg);
}

/* ================================== */
/* Responsive */
/* ================================== */

@media (max-width: 768px) {
  .custom-navbar .container {
    flex-wrap: wrap !important;
  }

  .custom-navbar .navbar-brand {
    max-width: 75%;
    display: flex;
    align-items: center;
  }

  .custom-navbar .navbar-brand span {
    font-size: 1rem !important;
    white-space: normal;
  }

  .custom-navbar .navbar-brand img {
    max-width: 35px !important;
  }

  .custom-navbar .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.15);
    margin-top: 15px;
    border-radius: 10px;
    padding: 10px;
  }
}

@media (max-width: 400px) {
  .custom-navbar .navbar-brand span {
    font-size: 0.9rem !important;
  }
}

/* ================================== */
/* Nav Button */
/* ================================== */

.custom-navbar .navbar-toggler {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 5px 10px;
  border-radius: 8px;
}

.custom-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.custom-navbar .navbar-toggler:focus {
  box-shadow: none !important;
  outline: none !important;
  border-color: var(--accent-color) !important;
}

/* ================================== */
/* (System Cards) */
/* ================================== */

.system-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-radius: 15px;
  background-color: #ffffff;
}

.system-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1.5rem 3rem rgba(5, 66, 57, 0.15) !important;
}

.card-icon i {
  color: var(--main-bg);
}

.custom-outline-btn {
  color: var(--main-bg);
  border: 2px solid var(--main-bg);
  font-weight: 700;
  transition: all 0.3s ease;
}

.custom-outline-btn:hover {
  background-color: var(--main-bg);
  color: #ffffff;
}

/* ================================== */
/* (Footer) */
/* ================================== */

.footer-link {
  transition:
    color 0.3s ease,
    padding-right 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--accent-color) !important;
  padding-right: 8px;
}

.social-icon {
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  display: inline-block;
}

.social-icon:hover {
  color: var(--accent-color) !important;
  transform: translateY(-5px);
}
