/* Force dark background */
html,
body {
  background-color: #0f172a;
}

/* Google Font */
body {
  font-family: "Cairo", sans-serif;
}

/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(252, 204, 21, 0.6);
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Dark Mode Transitions */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Menu active */
#menu li a.active {
  color: #facc15;
}

/* Utility classes */
.container {
  max-width: 1200px;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-primary {
  background-color: #facc15;
  color: #0f172a;
}
.btn-primary:hover {
  background-color: #eab308;
  transform: translateY(-2px);
}

/* Mobile menu animation - fixed display issue */
#menu {
  transition: all 0.3s ease;
}
.lg\:flex {
  display: flex !important;
}
#menu.hidden {
  display: none;
}
@media (max-width: 1023px) {
  #menu:not(.hidden) {
    display: flex !important;
    flex-direction: column;
  }
  .lg\:flex {
    display: none !important;
  }
  .lg\:flex.show-mobile {
    display: flex !important;
  }
}

/* Force FontAwesome icons to display correctly */
.fas,
.fab,
.far,
.fa {
  display: inline-block !important;
  width: auto !important;
  text-align: center;
  margin-left: 0.5rem;
}

/* Enhanced navbar styles */
nav a {
  display: flex !important;
  align-items: center;
}

nav .fas,
nav .fab {
  color: #facc15;
  margin-left: 0.5rem;
  font-size: 1.1em;
}
