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

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

body {
  background: #000;
  color: #fff;
  font-family: "Cairo", sans-serif;
  overflow-x: hidden;
}


/* ================= 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);
  }
}

body, html {
  overflow-x: hidden;
}


  /* ===== Hero Section ===== */
  .about-hero {
    position: relative;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), #000), url('assets/img/about-bg.jpg') center/cover no-repeat;
    padding: 140px 20px;
    text-align: center;
    overflow: hidden;
  }
  .about-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(229,9,20,0.15), transparent 70%);
    animation: pulse 5s infinite alternate;
  }
  @keyframes pulse {
    from { opacity: 0.3; }
    to { opacity: 0.8; }
  }


/* ===== Categories Section ===== */
.categories-section {
  padding: 100px 0;
  background: radial-gradient(circle at top, #0b0b0b, #000);
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  width: 90%;
  margin: auto;
}

/* ===== Category Card ===== */
.category-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.5s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(255, 0, 0, 0.2);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
}

.category-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.7);
}

.category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.9));
  text-align: right;
}

.category-info h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #fff;
}

.category-info p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}

.category-card:hover img {
  transform: scale(1.1);
  filter: brightness(1);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
  border-color: rgba(255, 0, 0, 0.4);
}

/* ===== Footer ===== */
footer {
  background: #0b0b0b;
  border-top: 1px solid rgba(255, 0, 0, 0.2);
  text-align: center;
  padding: 20px 0;
}

footer p {
  color: #aaa;
  font-size: 0.95rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 30px;
  }
  .section-title {
    font-size: 2rem;
  }
}








/* 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;
}