@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Press Start 2P', cursive;
  background-color: #f4f4f4;
  color: #111;
  overflow-x: hidden;
}

/* الشريط الجانبي */
.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 200px;
  height: 100%;
  background-color: #fff;
  border-left: 3px solid #000;
  text-align: center;
  padding-top: 30px;
  z-index: 10;
  box-shadow: -4px 0 0 #000;
}

.sidebar .logo {
  font-size: 14px;
  margin-bottom: 30px;
}

.sidebar nav a {
  display: block;
  text-decoration: none;
  color: #111;
  margin: 10px 0;
  font-size: 12px;
  transition: transform 0.2s, color 0.2s;
}

.sidebar nav a:hover {
  transform: scale(1.1);
  color: #ff0066;
}

.sidebar .sign {
  position: absolute;
  bottom: 20px;
  width: 100%;
  font-size: 10px;
}

/* المحتوى */
main {
  margin-right: 220px;
  padding: 40px;
}

/* الأنيميشن العام */
section {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 0.8s ease forwards;
}

section:nth-child(1) { animation-delay: 0.2s; }
section:nth-child(2) { animation-delay: 0.5s; }
section:nth-child(3) { animation-delay: 0.8s; }

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* القسم الأول */
.hero {
  text-align: center;
  padding: 120px 0;
}

.hero-img {
  width: 200px;
  image-rendering: pixelated;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.tagline {
  font-size: 10px;
  margin: 20px 0;
}

.btn {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 10px;
  margin-top: 20px;
  border: 2px solid #000;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 #000; }
  50% { box-shadow: 0 0 10px 2px #000; }
}

.btn:hover {
  background: #333;
}

/* القسم الثاني */
.features {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 120px 0;
}

.feature-imgs {
  display: flex;
  flex-wrap: wrap;
  width: 40%;
  justify-content: center;
}

.feature-imgs img {
  width: 100px;
  margin: 5px;
  image-rendering: pixelated;
  animation: pixel-bounce 4s infinite;
}

@keyframes pixel-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.feature-text {
  width: 50%;
}

.buttons button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 10px;
  cursor: pointer;
  margin: 5px;
  transition: transform 0.2s;
  animation: pulse 3s infinite;
}

.buttons button:hover {
  transform: scale(1.1);
}

/* القسم الثالث */
.idea {
  text-align: center;
  margin: 120px 0;
}

.idea-line img {
  width: 300px;
  image-rendering: pixelated;
  animation: flow 5s linear infinite;
}

@keyframes flow {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
  100% { filter: brightness(1); }
}

.idea-texts p {
  font-size: 10px;
  margin: 10px 0;
}

/* الصفحات الفارغة */
.empty-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-size: 10px;
}/* 
   HTML content. To learn how to do
   "how to change link color." */

