/* --- Shared CSS Variables and Resets --- */
:root {
    --primary: #0073e6;
    --secondary: #005bb5;
    --accent: #00bcd4;
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(18, 18, 18, 0.7);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  /* --- Shared Navbar Styles --- */
/* Make sure the navbar stays on top */
/* --- Shared Navbar Styles --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background: var(--nav-bg);
  z-index: 9999;
}

.navbar .container {
  position: relative; /* Added: Ensures absolute children are positioned relative to container */
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
}

.nav-links li a {
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--primary);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}

/* --- MEDIA QUERY: Mobile Styles --- */
@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }

  /* Hide nav-links by default and position them */
  .nav-links {
    display: none;
    position: absolute;
    top: 60px; /* Adjust to match your navbar's height */
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-bg);
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
  }
}
