@font-face {
  font-family: "MyFont";
  src: url("../Assests/Font.ttf") format("truetype");
}
@font-face {
  font-family: "MyFont-english2";
  src: url("../Assests/GothamBook.ttf") format("truetype");
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  direction: rtl;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

/* Background Video */
.background-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.background-container .bgvideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient Overlay */
.Gridiant {
  background: linear-gradient(50deg, #31544b 44.42%, #ffb648 100%);
  opacity: 0.85;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Header */
.header {
  position: absolute;
  top: 40px;
  right: 10%;
  display: flex;
  align-items: center;
  z-index: 999;
}

.logo {
  height: 80px;
  margin-left: 15px;
}

.anchor {
  color: #ffb548;
  background-color: #31544b;
  padding: 14px 60px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  position: relative;
  margin-top: 7px;
  
}

.anchor::before {
  content: "";
  position: absolute;
  top: 47%;
  right: 1%;
  width: 20px;
  height: 20px;
  background-color: #31544b;
  transform: rotate(945deg) translateY(50%);
  transform-origin: center center;
}

body[lang="en"] {
  .header {
    left: 10%;
  }
  .logo {
    transform: scaleX(1);
    margin-left: 0px;
    margin-right: 15px;
  }
  .anchor::before {
    right: 97.5%;
  }
  .english-button {
    margin-right: 0px;
    margin-left: 15px;
  }
  .Gridiant {
    background: linear-gradient(-50deg, #31544b 44.42%, #ffb648 100%);
  }
}

/* Play Button Section */
.content {
  position: absolute;
  top: 85%;
  right: 50%;
  transform: translate(50%, -50%) !important;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2999;
}

.play-button {
  background-color: rgba(255, 255, 255, 0.7);
  width: 60px;
  height: 60px;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: popIn 1s ease-out;
}

.play-button:hover {
  width: 150px;
  background-color: #31544b;
}

.play-button i {
  color: #31544b;
  font-size: 24px;
}

.play-button:hover i {
  color: white;
}

.content p {
  margin-top: 10px;
  font-weight: 700;
  animation: popIn 1s ease-out;
}

.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  min-height: 500px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

iframe {
  width: 100%;
  min-height: 500px;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: -37px;
  background: #ffb548;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-animation {
  z-index: 99;
  position: absolute;
  top: 0%;
  right: 11%;
  width: 100%;
  height: 100%;
}
.base-smoke {
  stroke: white;
  stroke-opacity: 0.15;
  stroke-width: 2;
  fill: none;
}

.snake-line {
  stroke: rgba(255, 255, 255, 0.068);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  /* filter: drop-shadow(0 0 8px white); */
  stroke-dasharray: 200 3000; /* Bright segment and rest */
  animation: snakeMove 6s linear infinite;
}

@keyframes snakeMove {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -3200;
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 750px) {
  .header {
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0% !important;
    right: 0% !important;
    width: 100% !important;
  }
  body[lang="en"] {
    .header {
      display: flex;
      justify-content: center;
      align-items: center;
      right: 0% !important;
      width: 100%;
    }
  }
  .home-animation {
    right: 0% !important;
    display: none;
  }
  svg {
    display: none;
    width: 100%;
    height: 100%;
  }
  .close-btn {
    right: 0% !important;
    top: 11% !important;
  }
  iframe {
    width: 100%;
    min-height: 280px;
  }
}

.english-button {
  background-color: #183128;
  border-radius: 500px;
  color: #feb546;
  outline: auto;
  border: 0px;
  width: 55px;
  height: 55px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  margin-right: 15px;
  margin-top: 7px !important;
  outline: none;
  transition: 0.3s ease;
}
.english-button:hover {
  background-color: #feb546;
  color: #183128;
}
