@font-face {
  font-family: 'zendots';
  src: url('/assets/fonts/ZenDots.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

:root {
  /* الإعدادات العامة */
  --font-family: 'Hayah', sans-serif;
  --scroll-behavior: smooth;
  
  /* الألوان الرئيسية */
  --bg-color: #000000;
  --text-color: #fff;
  --primary-color: #ff4d4d;
  /* للشعارات وعند hover للروابط وبعض العناصر */
  --secondary-color: #ccc;
  /* للروابط والنصوص الثانوية */
  
  /* الهيدر */
  --header-bg: #0D0D0DC7;
  --header-border: #151515C7;
  
  /* الأزرار */
  --button-bg: #CC0000;
  --button-hover-bg: #ff1a1a;
  --android-live-bg: whitesmoke;
  /* الأحجام والمقاسات */
  --menu-toggle-span-width: 25px;
  --menu-toggle-span-height: 3px;
  --menu-toggle-gap: 4px;
  --icon-size: 25.89px;
  /* يُستخدم للأيقونات مثل .ma*/
  --github-icon-size: 0.925496rem;
  --app-image-max-width: 400px;
  --content-max-width: 600px;
  
  /* الرسوم المتحركة */
  --animation-slideDown: 0.6s;
  --animation-fadeIn: 0.4s;
  --animation-landing-page: 1s;
  
  /* الهوامش والبادينج */
  --header-padding: 1rem 2rem;
  --landing-page-gap: 3rem;
  --features-section-padding: 4rem 2rem;
  --popup-dimensions: 50%;
  --popup-height: 50px;
  --popup-margin-bottom: 20px;
  --footer-padding: 1rem;
  
  /* زر التحميل*/
  --button-width: 90%;
  --button-radius: 8px;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  --top-bg: #CC0000;
  --bottom-bg: #000000;
  --icon-size: 32px;
  --badge-font-size: 0.7rem;
  --badge-padding: 2px 6px;
  --badge-border-radius: 4px;
  --top-height: 45px;
  --bottom-height: 60px;
  --bottom-font-size: 16px;
  --bottom-padding: 0px 0;
  
  
  --radius: 15px;
  --transition: 0.3s ease-in-out;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'zendots', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 18px;
  
}


/* Header */
header {
  
  background-color: #3535351A;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #444;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown var(--animation-slideDown) ease-in-out;
  
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
}

.logoimg {
  height: calc(1.3rem * 1.618);
  width: calc(1.3rem * 1.618);
  vertical-align: middle;
  margin-top: -0.1em;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: var(--menu-toggle-gap);
  transition: transform 0.3s ease;
}

.menu-toggle span {
  width: var(--menu-toggle-span-width);
  height: var(--menu-toggle-span-height);
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

nav {
  text-align: center;
  display: flex;
  gap: 1rem;
  transition: all 0.4s ease;
}

nav a {
  color: whitesmoke;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  font-size: 1rem;
}

nav a:hover {
  color: #999;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  nav {
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;
    padding: 1rem;
    pointer-events: none;
    overflow: hidden;
    height: 100vh;
    opacity: 0;
  }
  
  nav.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    animation: fadeIn2 .2s ease-in-out;
  }
  
  nav a {
    position: relative;
    top: -70px;
    margin: 20px;
    font-size: 1.5rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to top, black 0%, transparent 25%),
    url('/assets/images/freeflyer_nasa_big.jpg') no-repeat center center / cover;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.loaded {
  opacity: 1 !important;
  
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  margin-top: 100px;
}

.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.hero p {
  font-size: calc(1.5rem / 1.618);
  margin: 0 auto 30px;
  color: #ddd;
  max-width: 700px;
  font-weight: 300;
}

.scroll-down {
  margin-top: 40px;
}

.scroll-down a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #fff;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all var(--transition);
}

.scroll-down a:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Search Section */
.search-section {
  padding: 100px 0 40px;
  border-bottom: 1px solid #333;
  margin-top: 60px;
  transition: opacity var(--transition);
}

.search-section h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.input-field {
  width: 100%;
}

.input-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #ddd;
  font-weight: 300;
}

.input-field input {
  width: 100%;
  padding: 14px 15px;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid #333;
  border-radius: var(--radius);
  color: #fff;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.input-field input:focus {
  outline: none;
  border-color: #fff;
}

.warn {
  font-size: 8px;
  color: red;
  margin-top: 5px;
  margin-left: 2px;
  opacity: 0;
  transition: opacity var(--transition);
}

/* Buttons */
.button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background var(--transition), transform 0.2s ease;
}

.btn:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
}

/* Image Section */
.image-container {
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid #333;
  margin: 40px 0;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.8s ease, transform 0.8s ease;
  border-radius: var(--radius);
  overflow: hidden;
  height: 0;
}

.image-container.visible {
  opacity: 1;
  transform: scale(1);
  height: auto;
}

.image-container img {
  width: 100%;
  display: block;
  height: auto;
  border-bottom: 1px solid #333;
}

.image-info {
  padding: 1.3rem 1rem;
}

.image-info h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 400;
  transition: color var(--transition);
}

.image-info p {
  margin-bottom: 20px;
  color: #ddd;
  line-height: 1.8;
  font-size: 1.1rem;
  font-weight: 300;
}

.image-credit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #aaa;
  font-size: 1.1rem;
}

/* Loader */
.loader {
  position: relative;
  padding: 0;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition), visibility var(--transition);
  height: 0;
}

.loader.active {
  opacity: 1;
  padding: 60px 0;
  
  visibility: visible;
  height: auto;
}

.loader .spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  
  100% {
    transform: rotate(360deg);
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 10px 0;
  margin-top: 50px;
  color: #aaa;
  border-top: 1px solid #333;
  font-weight: 300;
  font-size: 10px;
}

footer p {
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  
  
  
  
  .button-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .image-info h2 {
    font-size: 1.5rem;
  }
  
  .image-info p {
    font-size: calc(1.5rem / 1.618);
  }
  
  .image-credit {
    font-size: 8px;
  }
  
  .hero-content {
    position: relative;
    top: -120px;
  }
  
}

#loading {
  transition: all .4s ease;
  
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  transition: all .4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 5px solid var(--secondcolor);
  border-top: 5px solid transparent;
  border-radius: 500%;
  font-size: 3rem;
  text-align: center;
}

.loader i {
  color: var(--primary);
  margin: 0;
  padding: 0;
  left: 0;
  top: 0;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  
  100% {
    transform: rotate(360deg);
  }
}