/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  
  /* Background مع تأثير أسود */
  background: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('/images/wallpaper.jpg');
  
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: white;
}

/* Header كبير ومميز */
header {
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, #0d1322 0%, #121b33 50%, #0d1322 100%);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #00E5FF;
  box-shadow: 0 4px 10px rgba(0, 229, 255, 0.15);
  border: 1px;
  z-index: 100;
  height: 80px; /* ارتفاع كبير */
  display: flex;
  align-items: center;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  width: 100%;
  height: 100%;
}

.navbar .brand {
  font-weight: bold;
  font-size: 1.8rem;
  color: #0e80f1;
}

.navbar ul.nav-links {
  list-style: none;
  display: flex;
  margin: 0 auto;
}

.navbar ul.nav-links li {
  margin: 0 15px;
  position: relative;
}

.navbar ul.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 25px 0; /* ارتفاع كبير للروابط */
  display: inline-block;
  position: relative;
  transition: color 0.3s;
  font-size: 1.1rem;
}

.navbar ul.nav-links a:hover {
  color: #4CAF50;
}

.navbar ul.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  left: 0;
  bottom: 0;
  background-color: #4CAF50;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.navbar ul.nav-links a:hover::after {
  transform: scaleX(1);
}

.desktop-login-btn {
  padding: 12px 25px;
  font-weight: 500;
  border: 2px solid #4CAF50;
  background-color: rgba(255, 255, 255, 0.9);
  color: #4CAF50;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.desktop-login-btn:hover {
  background-color: #4CAF50;
  color: #fff;
}

.mobile-login-btn {
  display: none;
}

.mobile-login-btn .login-btn {
  padding: 8px 15px;
  font-weight: 500;
  border: 2px solid #4CAF50;
  background-color: rgba(255, 255, 255, 0.9);
  color: #4CAF50;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  margin: 10px 0;
}

.mobile-login-btn .login-btn:hover {
  background-color: #4CAF50;
  color: #fff;
}

.navbar .hamburger {
  display: none;
  font-size: 2.2rem;
  cursor: pointer;
}

/* المحتوى الرئيسي */
main {
  flex: 1;
  padding: 40px 20px;
  position: relative;
}

.card, section {
  padding: 20px;
  margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar .hamburger {
    display: block;
  }

  .navbar ul.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
   background-color: rgba(13, 19, 34, 0.9);
    backdrop-filter: blur(10px);
    width: 100%;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    border-bottom: 1px solid rgba(221, 221, 221, 0.5);
  }

  .navbar ul.nav-links.show {
    max-height: 500px;
  }

  .navbar ul.nav-links li {
    margin: 0;
    text-align: center;
    width: 100%;
  }

  .navbar ul.nav-links a {
    padding: 20px 0;
    width: 100%;
    font-size: 1.2rem;
  }

  .desktop-login-btn {
    display: none;
  }

  .mobile-login-btn {
    display: block;
  }
}

/* Footer */
footer {
  color: #A8B3C7;
  background-color: #0A0F1E;
  backdrop-filter: blur(5px);
  text-align: center;
  padding: 1em;
  margin-top: 0;
}