/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'tariqafont';
  src: url('../res/font01.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.custom-font {
  font-family: 'tariqafont', serif;
}

html, body {
  height: 100%;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
  direction: rtl;
  margin:0;
}
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main{
	flex:1;
}
/* Navbar */
.navbar {
  background: #064632 url('../res/pattern.png') center center / cover no-repeat;
  padding: 5px 0;
  z-index: 2000;
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;

}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Logo */
.logo {
  order: 2;
}
.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform 0.9s ease;
}
.logo img:hover {
  transform: scale(1.05);
  animation: logo-glow 2.5s infinite ease-in-out;
}

/* Menu toggle BurgerIcon*/
.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  order: 1;
  z-index: 3000;
}

/* Menu list */
.nav-menu {
  display: flex;
  gap: 40px;
  list-style: none;
  order: 3;
}

.nav-menu li a {
  color: white;
  font-family: 'tariqafont', serif;
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}
.nav-menu li a:hover {
  text-shadow: 0 0 6px white;
  animation: pulse-glow 2.5s infinite ease-in-out;
}

/* Dropdowns */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 160px;
  background-color: rgba(79, 111, 108, 0.7);
  list-style: none;
  z-index: 1000;
  border-radius:10px;
  
  opacity: 0;
  visibility: hidden;
  transform:translateY(10px);
  transition:opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  
}
.dropdown-menu li a {
  display: block;
  padding: 10px;
  color: white;
  text-align: center;
}
.dropdown-menu li a:hover {
  background-color: #064632;
}
.dropdown:hover .dropdown-menu {
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  background: #000;
  margin-top:70px;
  box-shadow: 1px 10px 100px 50px rgba(6, 70, 50, .2);

}
.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}

.prev, .next {
  direction:ltr;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  color: rgba(255, 255,255,0.5);;
  border: none;
  font-size: 50px;
  border-radius: 50%;
  width: 75px;
  height: 75px;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prev { left: 10px; }
.next { right: 10px; }
.prev:hover, .next:hover {
  background-color: rgba(51, 51, 51, 0.3);
}

/* Content in Home Page */
.content {
  padding: 100px;
  text-align: center;
}
.info-block {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 100px;
  
}
.info-image {
  width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.info-text {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  
}
.click-block {
  display: block;
  text-decoration: none;
  color: inherit;  /* keeps your normal text colors */
}

.info-block h2 {
	
  margin-bottom: 10px;
  color: #064632;	
  font-family: 'tariqafont', serif;
}
.info-block p {
  font-size: 18px;
  line-height: 1.6;
  text-align: justify;
  text-shadow:0 0 6px rgba(6, 70, 50, 0.3);
}

/* Footer */
footer {
  background: #064632 url('../res/pattern.png') center center / cover no-repeat;
  color: white;
  text-align: center;
  padding: 10px 0;
  margin-top: 40px;
  position: relative;
  border-top-left-radius: 20px;
border-top-right-radius: 20px;

}
.social-icons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.social-icons a img {
  width: 30px;
  height: 30px;
  transition: transform 0.5s ease;
}
.social-icons a:hover {
  transform: scale(1.5);
  animation: logo-glow 2.5s infinite ease-in-out;
}

/* Animations */
@keyframes pulse-glow {
  0% { text-shadow: 0 0 3px white; }
  50% { text-shadow: 0 0 20px white; }
  100% { text-shadow: 0 0 3px white; }
}
@keyframes logo-glow {
  0% { filter: drop-shadow(0 0 3px white); }
  50% { filter: drop-shadow(0 0 15px white); }
  100% { filter: drop-shadow(0 0 3px white); }
}
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.fade-in-right, .fade-in-left {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.fade-in-right.visible {
  animation: slideInRight 2s ease forwards;
}
.fade-in-left.visible {
  animation: slideInLeft 2s ease forwards;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
  .navbar-content {
    flex-direction: row;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #064632;
    width: 100%;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    padding: 10px 20px;
    text-align: right;
  }

  .dropdown-menu {
    position: static;
    background-color: rgba(255, 255, 255, 0.1);
    display: none;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .slider {aspect-ratio: 3 / 2; 
  }

  .prev, .next {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .content {
    padding: 30px 20px;
  }
  
}

