/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  overflow-x: hidden;
  overflow-y: hidden; /* fullPage.js يحتاج overflow: hidden */
  background: #050515;
}

/* ===== TOP BAR ===== */
.top-bar {
    position: fixed; /* ثابت فوق المحتوى */
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* قيمة عالية ليبقى في المقدمة *//* الحالة الافتراضية مخفي */
    opacity: 0;
    visibility: hidden;
}

/* الكلاس الذي يتم تفعيله عبر JS */
.top-bar.show {
    opacity: 1;
    visibility: visible;
}

.logo {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #050515;
}

/* الخلفية */
.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  box-shadow: 0px -18px 31px rgba(102, 45, 145, 0.25);
}

/* ===== TITLE ===== */
.title {
  position: absolute;
  top:50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #FFF;
  text-align: center;
  font-family: 'Teko', sans-serif;
  font-size: 160px;
  font-weight: 600;
  font-style: normal;
  line-height: normal;
  letter-spacing: 12px;
  text-shadow: 0 1px 13.4px #000;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: rgba(0, 0, 0, 0.08);
  paint-order: stroke fill;
}


/* ===== SUBTITLE ===== */
.subtitle {
  position: absolute;
  top: calc(40% + 150px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  color: #FFF;
  font-family: 'Teko', sans-serif;
  text-shadow: 0 1px 13.4px #000;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

/* ===== ASTRONAUT ===== */
.astronaut-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  /* تبدأ أعلى الشاشة ثم تهبط إلى موضعها */
  transform: translate(-50%, -120%);
  width: 900px;
  height: 840px;
  aspect-ratio: 1/1;
  max-width: 90%;
  z-index: 2;
  opacity: 0;
  animation: astronaut-drop 1.2s ease-out 0.3s forwards;
}

/* ===== SCROLL ===== */
.scroll-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
}

.scroll-text {
  color: #FFF;
  font-family: 'Teko', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.scroll-btn {
  display: flex;
  width: 50px;
  height: 50px;
  justify-content: center;
  align-items: center;
  border-radius: 200px;
  background: rgba(255, 255, 255, 0.10);
  animation: bounce 2s infinite;
}

.scroll-btn svg {
  width: 10px;
  height: 17px;
}

/* ===== ANIMATION ===== */
@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

/* أنيميشن هبوط رائد الفضاء من الأعلى */
@keyframes astronaut-drop {
  0% {
    transform: translate(-50%, -180%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}
/* ===== RESPONSIVE DESIGN ===== */

/* للشاشات المتوسطة (Tablets) */
@media (max-width: 1024px) {
  .title {
    font-size: 120px;
    letter-spacing: 8px;
    top: 60%;
  }
  
  .astronaut-image {
    width: 800px;
    height: auto;
    top: 200px;
  }
  
.subtitle {
    font-size: 18px;
    top: 60%; /* تعديل المسافة تحت العنوان */
    letter-spacing: 1.5px;
    white-space: nowrap;
  }

}

/* للشاشات الصغيرة (Mobile) */
@media (max-width: 768px) {
  .top-bar {
    padding: 15px 20px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .title {
    font-size: 70px; /* تصغير العنوان الضخم ليناسب الشاشة */
    letter-spacing: 5px;
    top: 60%; /* رفعه قليلاً للأعلى */
  }

  .subtitle {
    font-size: 20px;
    top: 80%; /* تعديل المسافة تحت العنوان */
    letter-spacing: 1.5px;
  }

  .astronaut-image {
    width: 150%; /* يأخذ عرض الشاشة بالكامل */
    height: auto;
    top: 250px; /* تعديل الموضع ليناسب التكوين الجديد */
  }

  .scroll-text {
    font-size: 16px;
  }

  .scroll-btn {
    width: 40px;
    height: 40px;
  }
}

/* للشاشات الصغيرة جداً (Small Mobile) */
@media (max-width: 480px) {
  .title {
    font-size: 50px;
    letter-spacing: 3px;
    top: 500px
  }

  .subtitle {
    font-size: 14px;
    top: calc(50% + 80px);
  }
  
  .astronaut-image {
    max-width: 120%; /* تكبير بسيط ليعطي شعور بالعمق رغم صغر الشاشة */
  }
}