@font-face {
  font-family: Noto-Kufi-Arabic;
  src: url("../fonts/Noto_Kufi_Arabic/NotoKufiArabic-VariableFont_wght.ttf");
  font-display: swap;
}
@font-face {
  font-family: Noto-Naskh-Arabic;
  src: url("../fonts/Noto_Naskh_Arabic/NotoNaskhArabic-VariableFont_wght.ttf");
  font-display: swap;
}

:root {
  --primary-color: #1a237e;
  --primary-color-dark: darken(var(--primary-color), 10%);
  --secondary-color: #c4a35a;
  --success-color: #27ae60;
  --gold-color: #c5a47e;
  --light-gold-color: #d1b594;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
}

body {
  direction: rtl;
  font-family: "Noto-Kufi-Arabic", Tahoma, Arial, sans-serif;
  text-align: right;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto-Kufi-Arabic", Tahoma, Arial, sans-serif;
}

.navbar {
  font-family: "Noto-Kufi-Arabic", Tahoma, Arial, sans-serif;
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
  border-bottom: 3px solid var(--gold-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .navbar-brand {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold-color);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.navbar .navbar-brand:hover {
  color: var(--light-gold-color);
}
.navbar-nav .nav-link {
  text-align: right;
  color: var(--light-color) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  transition: all 0.3s ease;
  position: relative;
}

@media (max-width: 600px) {
  .lngdropdown {
      margin-bottom: 5px;
  } 
}

@media (min-width: 600px) {
    .navbar-nav .nav-link::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: 0;
      transform: translateX(-50%) scaleX(0);
      transform-origin: center;
      width: 90%;
      height: 2px;
      background-color: var(--gold-color);
      transition: all 0.3s ease;
    }
    
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}
.navbar-nav .nav-link:hover {
  color: var(--gold-color) !important;
}
.navbar-nav .nav-link.active {
  color: var(--gold-color) !important;
  font-weight: 600;
  pointer-events: none;
}
.navbar-toggler {
  border: 2px solid rgb(123, 137, 139) !important;
}
.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(159, 180, 184)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.hero {
  position: relative;
  height: 90vh;
  background-image: url("../imgs/hero-bg.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin-bottom: 5px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* dark overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1.2s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero h1 {
  font-size: 4rem;
  font-weight: bold;
}

.hero p {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.hero-title:after {
  content: "";
  position: absolute;
  bottom: -25px;
  right: 50%;
  transform: translateX(50%);
  width: 150px;
  height: 5px;
  background-color: var(--gold-color);
  animation: expandWidth 0.8s ease forwards 0.5s;
}
.lead {
  margin-top: 10px;
  opacity: 0;

  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.3s;
}

.section-title {
  position: relative;
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background-color: var(--gold-color);
}
.practice-card {
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
.practice-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.practice-card .icon-wrapper {
  color: var(--gold-color);
  transition: all 0.3s ease;
}

footer {
  background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
  color: var(--light-color);
  border-top: 3px solid var(--gold-color);
}
footer h4 {
  color: var(--gold-color);
  margin-bottom: 1.5rem;
}
footer:after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background: var(--gold-color);
  margin-top: 10px;
}

hr {
  border-color: rgba(var(--light-color), 0.1);
}

footer a {
  text-decoration: none;
  color: white;
}

footer a:hover {
  color: var(--gold-color);
}

.parallax-header {
    height: 300px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInDown 1.5s ease-in-out;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.about-section .section-title {
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
.contact-card {
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}