* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #141e30, #243b55);
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 2rem;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1rem;
  color: #ddd;
}

#tools-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 2rem;
}

footer {
  margin-top: auto;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
}
footer a {
  color: #00c3ff;
  text-decoration: none;
}
/* ---------- 3D Tool Cards ---------- */
.tool-card {
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.tool-inner {
  position: relative;
  width: 100%;
  height: 200px;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.tool-card:hover .tool-inner {
  transform: rotateY(180deg);
}

.tool-front,
.tool-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Front side */
.tool-front {
  background: rgba(0, 255, 200, 0.2);
  border: 1px solid rgba(0, 255, 200, 0.4);
}

/* Back side (shows link) */
.tool-back {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: rotateY(180deg);
}

/* Button */
.tool-back a {
  color: #00ffe0;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #00ffe0;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.tool-back a:hover {
  background: #00ffe0;
  color: #111;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  #tools-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .tool-inner {
    height: 160px;
  }
}
/* ---------- Filter Buttons ---------- */
#filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: rgba(0, 255, 200, 0.15);
  border: 1px solid rgba(0, 255, 200, 0.4);
  color: #00ffe0;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #00ffe0;
  color: #111;
}

/* Animation for tool appearance */
.tool-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ---------- Search Bar ---------- */
#search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

#searchInput {
  width: 80%;
  max-width: 500px;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#searchInput:focus {
  outline: none;
  border-color: #00ffe0;
  background: rgba(255, 255, 255, 0.15);
}
footer {
  text-align: center;
  padding: 1.5rem;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #bbb;
  font-size: 0.9rem;
}

footer a {
  color: #00ffe0;
  text-decoration: none;
  margin: 0 4px;
}

footer a:hover {
  text-decoration: underline;
}
/* ---------- Subpage Styling ---------- */
.subpage {
  max-width: 900px;
  margin: 2rem auto;
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0,255,200,0.1);
  color: #e0e0e0;
}

.subpage h1, .subpage h2 {
  color: #00ffe0;
  text-align: center;
  margin-bottom: 1rem;
}

.subpage p, .subpage li {
  line-height: 1.7;
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.subpage a {
  color: #00ffe0;
  text-decoration: none;
}

.subpage a:hover {
  text-decoration: underline;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 1rem;
}

button {
  background: #00ffe0;
  color: #111;
  font-weight: bold;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background: #00cfc0;
}


  /* === Shared Website Theme === */
  body {
    background: linear-gradient(to right, #1f2937, #111827);
    color: #f3f4f6;
    font-family: 'Poppins', sans-serif;
  }

  /* === 3D Button Styling === */
  .three-d-btn {
    width: 45rem; /* ~64 Tailwind width */
    display: block;
    text-align: center;
    padding: 1.25rem 0;
    font-weight: 600;
    color: white;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: perspective(500px) translateZ(0);
    transition: all 0.3s ease;
  }

  .three-d-btn:hover {
    transform: perspective(500px) translateY(-6px) translateZ(10px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    filter: brightness(1.15);
  }

  /* Gradient variations for each button */
  .btn-prompts {
    background: linear-gradient(135deg, #3b82f6, #9333ea);
  }

  .btn-blogs {
    background: linear-gradient(135deg, #6366f1, #ec4899);
  }

  /* Section alignment */
  .btn-section {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 4rem;
  }

  @media (max-width: 640px) {
    .three-d-btn {
      width: 80%;
    }
  }
