:root {
  --accent: #0b8cff;
  --bg: #f6f7f9;
  --card: #ffffff;
  --text-dark: #111;
  --text-light: #fff;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  direction: ltr;
  text-align: left;
}

body.arabic {
  direction: rtl;
  text-align: right;
  font-weight: 700;
}
body.arabic p {
  font-size: 1.8rem !important;
  bottom: 5rem !important;
}
nav {
  direction: ltr !important;
  text-align: left !important;
}
html,
body {
  height: 100%;
  font-family: "Tajawal", sans-serif;
  background: var(--bg);
  color: var(--text-dark);
}
body {
  line-height: 1.5;
}

/* Navbar */
.nav {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 1000;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgb(255, 255, 255);
  padding: 8px 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text-dark);

  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  background: linear-gradient(160deg, #ae00ff, #6200ff, #ae00ff);
  width: 0px;
  height: 5px;
  bottom: -2px;
  left: -3px;
  border-radius: 2px;
  transition: width 0.4s linear;
}

.nav-links a:hover::after {
  width: 100%;
}
/* Hamburger menu */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle-label span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
}

/* Responsive for phone */
@media (max-width: 768px) {
  .nav-links a:hover::after {
    width: 340px;
  }

  .nav-links li:nth-child(4) a:hover::after {
    width: 340px;
  }
  .nav-links li:nth-child(3) a:hover::after {
    width: 340px;
  }
  .nav-links li:nth-child(2) a:hover::after {
    width: 340px;
  }
  .nav-inner {
    flex-wrap: wrap;
    background-color: rgb(255, 255, 255);
    border: none;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    margin: 0;
    gap: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-top: 1px solid #eee;
  }

  .nav-links a {
    padding: 12px 0;
    display: block;
  }

  /*  hamburger */
  .nav-toggle-label {
    display: flex;
    margin-left: auto;
  }

  /*  checkbox */
  .nav-toggle:checked + .nav-toggle-label + .nav-links {
    display: flex;
  }
}
/* Panels */
.panel {
  min-height: 100vh;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.panel-best {
  margin-top: 6rem;
}
.container-about {
  display: flex;
  align-items: stretch;

  height: 100vh;
}
.image-box {
  width: 70%;
  height: auto;
  display: grid;
  place-items: center;
  margin-top: 4rem;
}
.text-box {
  padding: 40px;
  width: 70%;
  display: flex;
  flex-direction: column;
}
.text-box p {
  font-size: 1.3rem;

  line-height: 1.7;
}
.text-box img {
  width: 40px;
  object-fit: cover;
  animation: moveEffect 4s ease-in-out infinite;
}

@keyframes moveEffect {
  0% {
    transform: translateX(5px) rotate(180deg);
  }
  40% {
    transform: translateX(140px) rotate(60deg);
  }
  100% {
    transform: translateX(5px) rotate(180deg);
  }
}
.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .container-about {
    flex-direction: column;
  }
  .text-box,
  .image-box {
    width: 100%;
  }
  .text-box p {
    line-height: 1.9;
  }
  .image-box img {
    height: 700px;
  }
}
.container {
  max-width: 1000px;
  width: 100%;
  margin: auto;
  overflow: hidden;
}
.container-case {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  overflow: hidden;
}

.section-title {
  font-size: 5rem;
  background: linear-gradient(
    270deg,
    #ff4d4d,
    #ffb86b,
    #ffd34d,
    #6be3ff,
    #8a7bff
  );
  background-size: 1000% 1000%;
  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
  margin-bottom: 12px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.video-card {
  background: var(--card);
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
}
.video-card video {
  width: 100%;
  border-radius: 8px;
}
.contact-box {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
  margin-bottom: 16px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6e9ee;
}
.btn {
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.text p {
  font-size: 1.5rem;
  text-align: start;
}
.reveal-fade {
  letter-spacing: 1px;

  font-size: 1.1rem;
}

/* Animations */
.reveal-fade,
.reveal-slide,
.reveal-text {
  opacity: 0;

  transform: translateY(20px);
  transition: all 800ms ease-out;
  will-change: opacity, transform;
}
.text-name {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(
    270deg,
    #ff4d4d,
    #ffb86b,
    #ffd34d,
    #6be3ff,
    #8a7bff
  );
  background-size: 1000% 1000%;
  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
  animation: moveGradient 6s linear infinite;
}
@keyframes moveGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.reveal-fade.is-visible,
.reveal-slide.is-visible,
.reveal-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Home panel */

.home-panel {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 100vh;
}
.home-panel .overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  object-fit: contain;
  filter: brightness(0.5);
  z-index: 0;
}
.home-content {
  position: relative;
  z-index: 5;
  text-align: center;
  color: var(--text-light);
  padding: 40px 18px;
}
.home-panel {
  height: auto;
  padding-bottom: 40px;
}

.bg-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.player-photo {
  width: 100%;
  height: 100%;
  border: 4px solid #fff;

  margin-top: 1rem;
}
.home-content p,
.home-content li {
  font-weight: 900;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  width: 80%;
  margin: auto;
}
.home-content p {
  font-size: 1.5rem;
}
@media (max-width: 860px) {
  .home-panel {
    height: auto;
    padding-bottom: 40px;
  }

  .bg-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .home-content {
    padding-top: 120px;
  }
}
.player-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  margin-bottom: 12px;
}
.btn-star a {
  text-decoration: none;
  color: white;
}
.btn-star {
  display: inline-block;

  padding: 12px 28px;
  background: linear-gradient(160deg, #ae00ff, #6200ff, #ae00ff);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  border: white 1px solid;
  box-shadow: 2px 2px 2px #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin-top: 2rem;
}

.btn-star:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.text-best {
  text-align: center;
  font-size: 9rem;
}
.p-best {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 2px;
  font-style: oblique;
  font-weight: bold;
}
.p-best img {
  animation: effectBest 3s infinite ease-in-out;
}
@keyframes effectBest {
  0% {
    transform: scale(1.4) rotate(200deg);
  }
  40% {
    transform: scale(1) rotate(60deg);
  }
  100% {
    transform: scale(1.4) rotate(200deg);
  }
}
.what-i-do-best {
  padding-top: 2rem;
  text-align: center;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 200px);
  gap: 40px;
  padding: 20px;
}
.div1 {
  grid-column: span 2;
  grid-row: span 2;
}
.div4 {
  grid-column: span 2;
  grid-row: span 2;
}
.div11 {
  grid-column: span 2;
  grid-row: span 2;
}
.div12 {
  grid-column: span 2;
  grid-row: span 2;
}
.h1_best {
  margin-bottom: 6rem;

  font-size: 5rem;

  color: rgb(0, 0, 0);
  text-shadow: 2px 2px 2px black;
}

.p-best {
  background: linear-gradient(160deg, #ae00ff, #6200ff, #ae00ff);
  padding: 1rem;
  color: white;
  font-size: 1rem;
  border-radius: 10px;
}
.img-logo {
  object-fit: cover;
  width: 30px;
  animation: effectBest 3s infinite ease-in-out;
}
.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.img-best {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  z-index: 1;
}
.img-best:hover {
  transform: scale(1.1);
}

.grid-item p {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.6;

  text-align: start;

  padding: 5px;
}

@media (max-width: 768px) {
  .grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
  }
  body.arabic p {
    font-size: 1.3rem !important;
    bottom: 0rem !important;
  }
  .grid-item h1 {
    bottom: 0;
  }
  .div1 {
    margin-bottom: 6rem;
  }
  .what-i-do-best {
    padding: 0;
  }
  .div1,
  .div4,
  .div11,
  .div12 {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
  .text-best {
    font-size: 3.6rem;
  }
  .h1_best {
    margin-bottom: 0;
  }
  .p_best {
    bottom: 0;
  }
  .div4 img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 15px;
  }
  .div11,
  .div12 {
    padding: 15px;
  }

  .grid-item p {
    line-height: 1.6;

    text-align: start;
  }
  .grid-item h1 {
    font-size: 4.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .div1 video,
  .div4 img {
    height: 200px;
  }

  .grid-item p {
    font-size: 0.95rem;
  }

  .grid-item h1 {
    font-size: 2rem;
  }
}

body {
  font-family: Arial, sans-serif;
  color: #111;
}
.case {
  display: flex;
  min-height: 100vh;
  height: auto;
  width: 100%;
  margin-top: 6rem;
}

.case .text {
  flex: 1;
  font-size: 1.2rem;
  padding: 70px;
  display: flex;
  flex-direction: column;
}

.case .media {
  width: 100%;
  flex: 1;
  overflow: hidden;
}
.text h2 {
  font-size: 3rem;
  text-align: center;
  text-shadow: 3px 3px 3px black;
}

.case .media img {
  width: 100%;
  height: 90%;
  border-radius: 10px !important;
  object-fit: cover;
  transition: all 0.7s ease-in;
  box-shadow: 3px 3px 3px rgb(0, 0, 0);
}

@media (max-width: 768px) {
  .case {
    flex-direction: column;
  }
  .case .text {
    padding: 30px;
    text-align: center;
  }
  .case .media img {
    width: 100%;
    height: auto;
    padding: 1rem;
    object-fit: cover;
    box-shadow: none;
  }
}
.case .media img:hover {
  transform: scale(1.1);
}
.contact {
  padding: 80px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.contact p {
  font-size: 1.3em;
  color: #333;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.contact a {
  color: #06b6d4;
  text-decoration: none;
  font-weight: 600;
}

.contact a:hover {
  text-decoration: underline;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s, opacity 0.2s;
}

.social-icons a img:hover {
  transform: scale(1.2);
  opacity: 0.8;
}
#langSelect {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: linear-gradient(160deg, #ae00ff, #6200ff, #ae00ff);
  font-size: 14px;
  color: white;
  cursor: pointer;
  transition: all 0.3s linear;
}
#langSelect option {
  color: #000;
}
#langSelect:hover {
  opacity: 0.7s;
}
svg {
  width: 60px;
  height: 60px;
  fill: #00ff37;
  vertical-align: bottom;
  padding: 3px;

  background-color: #a8a8a831;
  border-radius: 20px;

  animation: scale 2.4s linear infinite;
  transition: all 0.3s ease-in-out;
}
.contact img {
  vertical-align: bottom;
  width: 55px;
  border-radius: 20px;
  height: 55px;
  background-color: #a8a8a831;
  padding: 10px;
  animation: scale 2.4s linear infinite;
  transition: all 0.3s ease-in-out;
}
svg:hover,
.contact img:hover {
  background-color: #02d9fff8;
}
@keyframes scale {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  0% {
    transform: scale(1);
  }
}
