/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General Styles */
body {
  font-family: 'Times New Roman', Times, serif;
  background-image: url("images/background2.jpg");
  background-size: cover;
  color: white;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
  font-size: larger;
}

/* Light Mode */
body[data-theme="light"] {
  background-image: url("images/background light.png");
  color: #000;
}
body[data-theme="light"] header,
body[data-theme="light"] footer {
  background-color: #f1f1f1;
}
body[data-theme="light"] nav a {
  color: #333;
}
body[data-theme="light"] nav a:hover {
  color: #e4da2b;
}

/* Header */
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;
}
.logo img {
  height: 50px;
  width: auto;
}
/* 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;
}

/* Mode Toggle Button */
/* الزرار في الوضع العادي (دارك مود) */
.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;
}


/* Main */
main {
  padding: 40px 20px;
}

/* Product Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
}

.section,
.single {
  width: 100%;
  max-width: 450px;
  height: 500px;
  padding: 12px;
  border: 1px solid #736f7e;
  border-radius: 12px;
  background-color: #736f7e;
  text-align: center;
  transition: transform 0.3s ease;
}
.section:hover {
  transform: scale(1.05);
}
.section img,
.single img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: #021023;
  width: 100%;
  margin-top: auto;
  padding: 10px 0;
}
.footer_top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  padding: 10px 0;
}
footer a {
  color: #736f7e;
  font-size: 18px;
  font-weight: bold;
}
footer a:hover {
  color: #e4da2b;
}
footer p {
  color: #736f7e;
  font-size: 18px;
  text-align: center;
  margin-top: 10px;
}

/* Animation Utility */
.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}
/* المنيو لما تتفتح في الوضع العادي (دارك مود) */
nav.active {
  display: flex;
  flex-direction: column;
  background-color: #021023; /* دارك */
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  padding: 10px 0;
  z-index: 1000;
}

/* لما يبقى في اللايت مود تتغير الخلفية */
body[data-theme="light"] nav.active {
  background-color: #f1f1f1; /* فاتح */
}

@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;
  }
}