/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Body ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* ===== Header & Navbar ===== */
header {
  background: linear-gradient(90deg, #004aad 0%, #0066ff 100%);
  color: #fff;
  padding: 15px 20px;
  box-shadow: 0 3px 10px rgba(0, 74, 173, 0.3);
  z-index: 1000;
}

.navbar {
  padding: 0;
}

.navbar-nav {
  gap: 12px;
}

.nav-link {
  color: #004aad !important; /* الخط الأزرق */
  padding: 12px 18px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-link:hover,
.nav-link.active {
  background-color: #0069d9 !important; /* خلفية أزرق داكن عند التمرير */
  color: white !important; /* النص يصبح أبيض عند التمرير */
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 105, 217, 0.4);
}

.btn-try-now {
  background-color: #28a745;
  color: white !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.btn-try-now:hover {
  background-color: #218838;
}

/* Language switcher */
.lang-switcher {
  position: relative;
  margin-left: auto;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #FFD700, #FFC300); /* تدرج أصفر ذهبي */
    color: white;
    padding: 15px 18px;
    border-radius: 50%;
    text-align: center;
    text-decoration: none;
    font-size: 25px; /* حجم الأيقونة */
    display: none;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #FFC300, #FFD700);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.9);
    transform: scale(1.1);
    color: white;
}


.lang-switcher select.form-select-sm {
  background-color: transparent;
  border: 1px solid #ddd;
  color: #eee;
  font-weight: 600;
  padding-right: 2rem;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23eee" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1em;
}

.lang-switcher select.form-select-sm option {
  color: #333;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    padding: 10px 15px;
  }

  .lang-switcher {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }

  .lang-switcher select {
    width: 100%;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    padding: 14px 0 !important;
    width: 100%;
    text-align: center;
    box-shadow: none !important;
  }

  .btn-try-now {
    margin: 10px auto 0;
    width: 90%;
  }
}
