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

body {
  margin: 0;
  overflow: hidden;
  background: #111;
}

canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.first h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: 'Cairo', sans-serif;
  font-size: 3.5rem;
  text-align: center;
  background: linear-gradient(90deg, #1e90ff, #e84393);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  cursor: pointer;
}
.first h3 {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: 'Cairo', sans-serif;
  font-size: 2rem;
  text-align: center;
  background: linear-gradient(90deg, #1e90ff, #e84393);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  cursor: pointer;
}
/* ----------------- Header ----------------- */
header {
  position: fixed; /* يثبت فوق الصفحة */
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: rgba(17, 17, 17, 0.85); /* شبه شفاف */
  backdrop-filter: blur(10px); /* خلفية ضبابية */
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-family: 'Cairo', sans-serif;
}

header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg,#1e90ff, #e84393);
  -webkit-background-clip: text; /* موجودة */
  background-clip: text;         /* لازم تضيفها للمتصفحات الحديثة */
  -webkit-text-fill-color: transparent;
  color: transparent;
  cursor: pointer;
}


header nav a {
  margin-left: 25px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

header nav a:hover {
  color: #ff4757; /* لون عند المرور */
  transform: scale(1.1);
}

/* للهواتف الصغيرة */
@media screen and (max-width: 768px) {
  header {
    padding: 0 20px;
  }
  header nav a {
    margin-left: 15px;
    font-size: 0.9rem;
  }
}


.first button{
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: 'Cairo', sans-serif;
  font-size: 1.3rem;
  font-weight: bold;
  padding: 14px 40px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(90deg, #1e90ff, #e84393);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease-in-out;
}

/* تأثير عند المرور */
.first button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
  filter: brightness(1.2);
}

/* تأثير عند الضغط */
.first button:active {
  transform: translate(-50%, -50%) scale(0.95);
}


.second {
  position: relative;
  width: 100%;
  height: 100vh; /* تاخد الشاشة بالكامل */
  display: flex;
  flex-direction: column;
  justify-content: center; /* نص العمود */
  align-items: center; /* نص العرض */
  text-align: center;
  z-index: 1;
  font-family: 'Cairo', sans-serif;
  padding: 20px;
  background-color: white;
  overflow: hidden;
  color: #fff;
}
.squares {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* تخلي المربعات ما تمنعش الزرار */
  z-index: 1;
}

.square {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 3px solid;
  background: transparent;
  opacity: 0.3; /* خليه ظاهر شوية */
  transition: all 0.3s ease;
  pointer-events: auto; /* عشان الهوفر يشتغل */
  cursor: pointer;
}

.square:hover {
  opacity: 1;
  transform: scale(1.2);
}





.second h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #1e90ff, #e84393);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
    cursor: pointer;
}

.second h3 {
  font-size: 1.5rem;
  max-width: 800px; /* عشان النص ميتمدش قوي */
  line-height: 1.8;
  background: linear-gradient(90deg, #1e90ff, #e84393);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
    cursor: pointer;
}
.first, .second {
  width: 100%;
  height: 100vh; /* كل سكشن تاخد شاشة كاملة */
}

.second button {
  margin-top: 40px;
  font-family: 'Cairo', sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 12px 35px;
  border: none;
  border-radius: 35px;
  background: linear-gradient(90deg, #1e90ff, #e84393);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease-in-out;
}

/* تأثير عند المرور */
.second button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
  filter: brightness(1.2);
}

/* تأثير عند الضغط */
.second button:active {
  transform: scale(0.95);
}

.scroll-arrow {
  position: absolute;
  bottom: 10px; /* قريب جدًا من أسفل السيكشن */
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 5;
  animation: bounce 1.5s infinite;
  color: #fff;
}

/* حركة السهم صعود وهبوط */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-15px); }
}

/* تأثير عند hover لو تحب */
.scroll-arrow:hover {
  color: #ff4757;
  transform: translateX(-50%) translateY(-15px) scale(1.2);
}


.download {
  position: relative;
  width: 100%;
  min-height: 100vh; /* تاخد الشاشة بالكامل */
  display: flex;
  flex-direction: column;
  justify-content: center; /* نص العمود */
  align-items: center; /* نص العرض */
  text-align: center;
  padding: 40px 20px;
  background: #111; /* خلفية متناسقة مع باقي الموقع */
  color: #fff;
  z-index: 1;
}

.download h1 {
  font-family: 'Cairo', sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #1e90ff, #e84393);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
    cursor: pointer;
}

.download h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 1.5rem;
  max-width: 800px;
  line-height: 1.8;
  margin-bottom: 40px;
  background: linear-gradient(90deg, #1e90ff, #e84393);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
    cursor: pointer;
}

/* زرار التحميل */
.download button {
  font-family: 'Cairo', sans-serif;
  font-size: 1.3rem;
  font-weight: bold;
  padding: 14px 40px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(90deg, #1e90ff, #e84393);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease-in-out;
}

/* تأثير عند المرور */
.download button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.6);
  filter: brightness(1.2);
}

/* تأثير عند الضغط */
.download button:active {
  transform: scale(0.95);
}


.sign-in {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #111;
  color: #fff;
  font-family: 'Cairo', sans-serif;
}

.welcome-text {
  font-size: 2rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg,#1e90ff, #e84393);
  -webkit-background-clip: text; /* موجودة */
  background-clip: text;         /* لازم تضيفها للمتصفحات الحديثة */
  -webkit-text-fill-color: transparent;
  color: transparent;
  cursor: pointer;
}


.sign-in h1 {
  font-size: 3rem;
  margin-bottom: 30px;
  background: linear-gradient(90deg, #1e90ff, #e84393);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
    cursor: pointer;
}

.sign-in form {
  display: flex;
  flex-direction: column;
  width: 300px;
}

.sign-in input {
  margin-bottom: 20px;
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid #555;
  background: #222;
  color: #fff;
}

.sign-in input:focus {
  outline: none;
  border-color: #ff4757;
}

.sign-in button {
  padding: 12px 0;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 40px;
  background: linear-gradient(90deg, #1e90ff, #e84393);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.sign-in button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.sign-in .up-arrow,
.download .up-arrow {
  position: absolute;
  bottom: 20px; /* تحت السيكشن */
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  cursor: pointer;
  animation: bounce 1.5s infinite;
  z-index: 2;
  color: #ff4757; /* أو أي لون يناسب تصميمك */
}

/* تأثير الحركة للأعلى والأسفل */
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-15px); }
}

/* CSS للفوتر */
footer {
  width: 100%;
  padding: 20px 0;
  background: #111;
  margin: 20px;
  text-align: center;
  font-family: 'Cairo', sans-serif;
  position: relative;
  z-index: 1;
}

footer p {
  margin: 0;
  font-size: 1rem;
  background: linear-gradient(90deg, #ff4757, #1e90ff, #e84393);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
   background-clip: text;
}

footer .footer-links {
  margin-top: 10px;
}

footer .footer-links a {
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
  background: linear-gradient(90deg, #ff4757, #1e90ff, #e84393);
  -webkit-background-clip: text;
   background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: all 0.3s ease-in-out;
}

footer .footer-links a:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}
