/* ===== 1. GLOBAL SETTINGS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0f0f1a; /* Pure Dark Theme */
  color: white;
  font-family: 'Arial', sans-serif;
  overflow-x: hidden;
}

/* ===== 2. SIDEBAR (Fixed & Professional) ===== */
.sidebar {
  font-family: 'Cinzel', serif;
  width: 250px;
  background: #0f0f1a;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 20px;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.b{
  position: relative;
  top: 600px;
}

.logo {
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  font-size: 22px;
  letter-spacing: 2px;
  position: relative;
  left: 8px;
}

.sidebar nav a {
  display: block;
  padding: 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: #bbb;
  border-radius: 8px;
  transition: 0.3s;
}

.sidebar nav a:hover {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  padding-left: 15px;
}

.sidebar nav a.active {
  background: linear-gradient(45deg, #7b2ff7, #9f44d3) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(123, 47, 247, 0.4);
}

.sidebar .b {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: calc(100% - 40px);
}

/* ===== 3. CONTENT WRAPPER ===== */
.content-wrapper {
  margin-left: 240px; /* Sidebar space fix */
  padding: 40px 20px;
  transition: margin 0.3s ease;
}

.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-header h1 {
  font-size: 2.5rem;
  color: #a855f7;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.page-header p {
  opacity: 0.8;
  margin-top: 10px;
}

/* ===== 4. TOOLS & QUANTUM GRID (Match Screenshot 1) ===== */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 20px;
}

.tool-card, .qc-card {
  background: #1a1a2e; /* Dark Card Base */
  width: 280px;
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(168, 85, 247, 0.1);
  transition: 0.4s ease;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tool-card:hover, .qc-card:hover {
  transform: translateY(-10px);
  border-color: #a855f7;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4); /* Neon Glow effect */
}

.tool-card h2, .qc-card h3 {
  color: #a855f7;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.tool-card p, .qc-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ccc;
}

.tool-card img, .qc-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.tool-card a {
  display: inline-block;
  margin-top: 15px;
  color: #a855f7;
  text-decoration: none;
  font-weight: bold;
}

.tool-card a:hover {
  text-decoration: underline;
}

/* ===== 5. BUTTONS ===== */
.changelog-btn {
  background: #6a0dad;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.changelog-btn:hover {
  background: #7b2ff7;
  box-shadow: 0 0 15px #7c3aed;
}

/* ===== 6. MOBILE RESPONSIVE FIX ===== */
.menu-btn {
  display: none; /* Desktop hidden */
  position: fixed;
  top: 15px;
  left: 15px;
  width: 48px;
  height: 48px;
  background: #6a0dad;
  color: white;
  border: none;
  border-radius: 8px;
  z-index: 1100;
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .content-wrapper {
    margin-left: 0; /* Full width for mobile */
    padding-top: 80px;
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tool-card, .qc-card {
    width: 90%;
  }
}
