* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  background-color: #021023;
  color: #fff;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url("images/pp.jpeg");
  background-size: cover;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px;
  background-color: #021023;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
  z-index: 1000;
}
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.logo img {
/* Logo */
  height: 50px;
  width: auto;
  animation: pulse 2s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
/* Navigation */
nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: #736f7e;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

nav a:hover {
  color: #e4da2b;
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background-color: #fff;
  margin: 4px 0;
  transition: 0.4s;
}



/* Main content */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1s ease-in, slideUp 1s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
  }
  to {
    transform: translateY(0);
  }
}

.search-container {
  text-align: center;
  animation: fadeIn 1.5s ease-out;
  position: relative;
  display: inline-block;
}

.title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #fff8f5;
  animation: typing 3.5s steps(40, end);
}

.description {
  max-width: 600px;
  margin: 0 auto 30px;
  color: #cfcedb;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  animation: fadeInUp 1s ease-out 0.5s both, slideIn 1s ease-out 0.5s both;
}

@keyframes slideIn {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.search-box {
  padding: 12px 20px;
  font-size: 18px;
  border: 2px solid #0c1b61;
  border-radius: 30px;
  width: 300px;
  max-width: 80%;
  outline: none;
  transition: border-color 0.3s ease;
  animation: fadeIn 1s ease-out 1s both;
  position: relative;
}

.search-box:focus {
  border-color: #6862aa;
  border-width: medium;
  transform: scale(1.05);
}

/* الزرار في الوضع العادي (دارك مود) */
.mode-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(45deg, #021023, #0c1b61); /* خلفية غامقة */
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* الزرار في الوضع الفاتح (Light Mode) */
body[data-theme="light"] .mode-btn {
  background: linear-gradient(45deg, #ddd, #fff); /* خلفية فاتحة */
  color: #000; /* كتابة غامقة */
  border: 1px solid #999;
}

.search-results {
  display: none;
  position: absolute;
  background-color: #021023;
  color: #fff;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  margin-top: -500px;
  left: 20%;
}

/* Light Theme */
body[data-theme="light"] {
  background-color: #fff8f5;
  background-image: url("images/bhlight.jpeg");
  color: #000;
}

body[data-theme="light"] header {
  background-color: #f1f1f1;
}

body[data-theme="light"] .title {
  color: #0b0a0a;
}

body[data-theme="light"] .description {
  color: #021023;
}

body[data-theme="light"] .search-results {
  background-color: #f1f1f1;
  color: #000;
}

/* لما يبقى في اللايت مود تتغير الخلفية */
body[data-theme="light"] nav.active {
  background-color: #f1f1f1; /* فاتح */
}

/* Hover */
.mode-btn:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  background: linear-gradient(45deg, #0c1b61, #021023);
}

footer {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #021023;
  font-family: sans-serif;
  padding: 5px 0;
}

.footer_top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding-top: 4px;
  padding-bottom: 4px;
  flex-wrap: wrap;
}

footer a {
  color: #736f7e;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

footer a:hover {
  color: #e4da2b;
}

footer p {
  color: #736f7e;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 5px;
  margin: 5px 0;
}

body[data-theme="light"] footer {
  background-color: #f1f1f1;
}
/* Responsive Styles */
@media (max-width: 768px) {
 .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #021023;
    margin-top: 10px;
    padding: 10px 0;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 10px 20px;
    border-top: 1px solid #444;
  }

  header {
    align-items: flex-start;
  }
  .mode-btn {
    width: 100%;
    text-align: center;
  }
}