@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

:root {
  --red: #e50914;
  --black: #000;
  --white: #fff;
  --dark: #111;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Tajawal", sans-serif;
}

body {
  background: var(--black);
  color: var(--white);
  direction: rtl;
  overflow-x: hidden;
}

/* For Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 10px; /* عرض scroll bar */
  }
  
  ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1); /* لون المسار */
    border-radius: 5px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--red); /* لون المؤشر */
    border-radius: 5px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #ff4c4c; /* لون عند hover */
  }
  
  /* For Firefox */
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--red) rgba(255,255,255,0.1);
  }
  
 /* ================= Header ================= */
header {
  width: 100%;
  padding: 15px 0;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
  background: rgba(0,0,0,0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 60px;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
}

nav ul li a,
.dropdown-label {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s, background 0.3s;
}

nav ul li a:hover,
.dropdown-label:hover {
  color: var(--red);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #111;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #fff;
}

.dropdown-menu li a:hover {
  background: rgba(255,0,0,0.2);
  border-radius: 6px;
}

/* Active dropdown */
.dropdown.active .dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.dropdown.active .chevron {
  transform: rotate(180deg);
  transition: transform 0.3s;
}

/* Dropdown label */
.dropdown-label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
}

/* ================= Mobile Header ================= */
.menu-icon {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

@media (max-width:768px){
  .menu-icon {
    display: block;
  }

  nav {
    position: fixed;
    top: 60px;
    right: 0;
    width: 100%;
    height: calc(100vh - 60px);
    transform: translateX(100%);
    background: rgba(0,0,0,0.95);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 999;
  }

  nav.open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    gap: 0;
  }

  .nav-links li a,
  .dropdown-label {
    display: block;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .dropdown-menu {
    position: static;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }

  .dropdown.active .dropdown-menu {
    max-height: 500px;
  }

  .dropdown-menu li a {
    padding: 12px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
}

/* ===== Contact Button Style ===== */
.contact-btn {
    position: relative;
    display: inline-block;
    background: var(--red);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1;
    text-align: center;
    white-space: nowrap; /* 👈 يمنع انقسام الكلمة */
    min-width: 140px; /* 👈 يضمن عرض مناسب */
  }
  
  /* === اللمعة المتحركة === */
  .contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.7) 50%,
      transparent 100%
    );
    transform: skewX(-20deg);
    transition: all 0.6s ease;
    z-index: 2;
  }
  
  .contact-btn:hover::before {
    left: 150%;
  }
  
  /* === تأثير الهافر === */
  .contact-btn:hover {
    background: linear-gradient(90deg, #c20000, #ffffff);
    color: #ff1a1a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.5);
  }
  
  /* تأكيد أن النص فوق التأثير */
  .contact-btn span,
  .contact-btn {
    position: relative;
    z-index: 3;
  }
  
  

  @media (max-width:768px) {
    .contact-btn {
      display: inline-block;
      margin: 15px auto;
      width: 80%;
      text-align: center;
    }
  }
  

body, html {
  overflow-x: hidden;
}




/* ===== Footer Top Bar ===== */
.footer-topbar {
    background: linear-gradient(90deg, #111, #000);
    border-top: 2px solid #e50914;
    border-bottom: 2px solid #e50914;
    position: relative;
    overflow: hidden;
    z-index: 10; /* 🔥 يخليها فوق أي عنصر تاني */
  }
  
  .footer-topbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e50914, transparent);
    animation: move-line 6s linear infinite;
    opacity: 0.8;
    z-index: 1;
  }
  
  .footer-top-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 5; /* 🔥 يضمن ظهور الأيقونات والزر */
  }
  
  
  .footer-topbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e50914, transparent);
    animation: move-line 6s linear infinite;
    opacity: 0.8;
  }
  
  .footer-top-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
  }
  
  .social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .social-icons a {
    color: #fff;
    font-size: 1.4rem;
    transition: all 0.3s ease;
  }
  
  .social-icons a:hover {
    color: #e50914;
    transform: scale(1.2);
  }
  
  .contact-btn {
    background: #e50914;
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .contact-btn:hover {
    background: #fff;
    color: #e50914;
    transform: translateY(-3px);
  }
  
  @keyframes move-line {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .footer-top-content {
      flex-direction: column;
      gap: 15px;
    }
  }
  
  
/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, #000 0%, #111 100%);
    color: #ccc;
    padding-top: 70px;
    font-family: "Cairo", sans-serif;
    position: relative;
    overflow: hidden; 
  }
  
  
  /* خط الأنيميشن */
  .footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e50914, transparent);
    animation: move-line 6s linear infinite;
  }
  
  @keyframes move-line {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
    padding: 0 60px 50px;
  }
  
  .footer-logo {
    width: 150px;
    margin-bottom: 15px;
  }
  
  .footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
  }
  
  .footer-col h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50px;
    height: 2px;
    background: #e50914;
  }
  
  .footer-col ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-col ul li {
    margin: 10px 0;
  }
  
  .footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-col ul li a:hover {
    color: #e50914;
  }
  
  .contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
  }
  
  .contact-info i {
    color: #e50914;
    font-size: 1.1rem;
  }
  
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 20px 0;
    color: #888;
    font-size: 0.95rem;
  }
  
  .footer-bottom span {
    color: #e50914;
    font-weight: bold;
  }
  
  

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #25d366;
    color: #fff;
    font-size: 1.8rem;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 200;
  }
  
  .whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
    z-index: 200;
  }
  

/* Preloader full screen */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a; /* خلفية داكنة سينمائية */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease;
  }
  
  /* Preloader full screen */
  #preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a); /* gradient سينمائي */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.8s ease;
  }
  
  /* Floating particles effect (سينمائي) */
  #preloader::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: moveStars 20s linear infinite;
    opacity: 0.5;
    top: -50%;
    left: -50%;
  }
  
  /* Logo animation */
  .preloader-logo {
    width: 120px;
    height: auto;
    margin-bottom: 40px;
    animation: fadeScale 1.2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 15px rgba(255, 50, 50, 0.7));
    z-index: 2;
  }
  
  /* Dots container */
  .dots {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    z-index: 2;
  }
  
  /* Individual dots */
  .dots span {
    width: 16px;
    height: 16px;
    background: var(--red);
    border-radius: 50%;
    animation: bounceGlow 0.8s infinite alternate;
    box-shadow: 0 0 10px rgba(255, 50, 50, 0.6);
  }
  
  /* Delay each dot differently */
  .dots span:nth-child(1) { animation-delay: 0s; }
  .dots span:nth-child(2) { animation-delay: 0.2s; }
  .dots span:nth-child(3) { animation-delay: 0.4s; }
  
  /* Keyframes for dots */
  @keyframes bounceGlow {
    0% { transform: translateY(0) scale(1); box-shadow: 0 0 10px rgba(255,50,50,0.4); }
    50% { transform: translateY(-18px) scale(1.2); box-shadow: 0 0 20px rgba(255,50,50,0.8); }
    100% { transform: translateY(0) scale(1); box-shadow: 0 0 10px rgba(255,50,50,0.4); }
  }
  
  /* Keyframes for logo */
  @keyframes fadeScale {
    0% { opacity: 0.6; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1.15); }
  }
  
  /* Floating stars background animation */
  @keyframes moveStars {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); }
  }
  
  /* Hide preloader smoothly */
  #preloader.hide {
    opacity: 0;
    pointer-events: none;
  }
  