* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial;
}

/* الخلفية */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(40%);
}

/* الهيدر */
header {
  width: 100%;
  padding: 15px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid #ff002b55;
  transition: 0.4s ease;
}

header.scrolled {
  padding: 10px 60px;
  background: rgba(0,0,0,0.45);
  box-shadow: 0 0 20px #ff002b;
}

/* الروابط */
nav.menu a {
  color: white;
  margin-left: 25px;
  text-decoration: none;
  font-size: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: 0.3s;
}

/* خط تحتي متحرك */
nav.menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 3px;
  background: #ff0033;
  box-shadow: 0 0 10px #ff0033;
  transition: 0.3s ease;
}

nav.menu a:hover::after {
  width: 100%;
}

nav.menu a:hover {
  color: #ff0033;
  transform: translateY(-3px);
}

nav.menu a i {
  transition: 0.3s;
}

nav.menu a:hover i {
  transform: rotate(10deg) scale(1.2);
  color: #ff0033;
}

/* الشعار */
.logo {
  color: white;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 3px;
}

/* البروفايل */
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
}

.profile img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff0033;
  box-shadow: 0 0 10px #ff0033;
  transition: .3s;
}

.profile img:hover {
  transform: scale(1.07);
  box-shadow: 0 0 20px #ff0033;
}

/* اسم البروفايل يظهر دائمًا */
.profile-name {
  color: white;
  font-size: 18px;
  font-weight: 500;
}

/* القائمة المنسدلة */
.profile-menu {
  position: absolute;
  top: 60px;
  right: 0;
  width: 150px;
  background: rgba(0,0,0,0.85);
  border: 1px solid #ff003355;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  padding: 8px 0;
  box-shadow: 0 0 20px #ff0033;
  backdrop-filter: blur(6px);
}

.profile-menu a {
  padding: 10px;
  text-decoration: none;
  color: white;
  font-size: 15px;
  transition: .2s;
}

.profile-menu a:hover {
  background: #ff003355;
}

/* إظهار القائمة */
.profile.show-menu .profile-menu {
  display: flex;
}

/* الهيرو */
.hero {
   text-align: center;
  padding-top: 220px; /* بدل margin لتعديل المسافة بذكاء */
  color: white;
}

.hero h1 {
  font-size: 80px;
  text-shadow: 0 0 20px #ff0033;
}

.hero p {
   margin-top: 20px;  /* زيادة المسافة بين العنوان والنص */
  font-size: 22px;
  margin-bottom: 30px; /* مساحة كبيرة بين النص وزر Explore */
  opacity: 0.8;
}

.explore-btn {
  display: inline-block;
  margin-top: 25px;  /* يمكنك زيادتها قليلاً لجعل المسافة أكبر */
  padding: 12px 30px;
  font-size: 22px;
  color: white;
  border: 2px solid #ff002b;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.4s ease;
  backdrop-filter: blur(4px);
}


.explore-btn:hover {
  background: #ff0033;
  box-shadow: 0 0 20px #ff0033;
}

/* قسم السيارات */
.cars-section {
  padding: 60px;
  margin-top: 120px;
  color: white;
}

.cars-section h2 {
  text-align: center;
  font-size: 60px;
  text-shadow: 0 0 20px #410914;
  margin-bottom: 40px;
}

/* سلايدر السيارات */
.cars-slider {
  width: 100%;
  overflow: hidden;
}

.slide-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* بطاقة سيارة */
.car-card {
  width: 270px;
  height: 280px;
  padding: 25px;
  background: rgba(0,0,0,0.7);
  border-radius: 15px;
  border: 1px solid #ff003344;
  box-shadow: 0 0 11px #ff0033;
  transition: .3s;
}

.car-card:hover {
  transform: scale(1.04);
  box-shadow: 0 0 20px #ff0033;
}

.car-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
