/* ---------------- 1. RESET & BASE ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0b0f1a;
  color: #f1f5f9;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

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

.logo {
  color: #a855f7;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  font-size: 24px;
  position: relative;
  left: 15px;
}

.b{
  position: relative;
  top: 570px;
}
.sidebar nav a {
  display: block;
  padding: 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: #94a3b8;
  border-radius: 8px;
  transition: 0.3s;
}

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

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

.b{
  position: relative;
  top: -1px;
}

/* ---------------- 3. CONTENT WRAPPER ---------------- */
.content-wrapper {
  margin-left: 240px;
  padding: 40px 20px;
}

/* ---------------- 4. MODERN NEON CARDS & IMAGE FIX ---------------- */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 20px 0;
}

.tool-card {
  background: #161b2e;
  width: 300px;
  padding: 20px; /* Padding thoda kam kiya taaki image ko jagah mile */
  border-radius: 18px;
  border: 1px solid rgba(168, 85, 247, 0.15);
  transition: 0.4s ease;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

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

/* 🔥 IMAGE FIX: Ab image poori dikhegi aur kategi nahi */
.tool-card img {
  width: 100%;
  height: auto;           /* Fixed height hata di */
  max-height: 250px;      /* Card zyada lamba na ho isliye limit lagayi */
  object-fit: contain;    /* Image ko box ke andar poora fit karega */
  border-radius: 12px;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.1); /* Halka background agar image transparent ho */
}

.tool-card h3 {
  color: #f1f5f9;
  margin-bottom: 10px;
}

.tool-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
}

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

/* ---------------- 5. MOBILE RESPONSIVE ---------------- */
.menu-btn {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  width: 48px;
  height: 48px;
  background: #7b2ff7;
  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; padding-top: 70px; }
  .menu-btn { display: flex; align-items: center; justify-content: center; }
  .tool-card { width: 95%; }
}
