* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a001a, #000814);
  font-family: 'Segoe UI', sans-serif;
  color: #f2f2f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.8rem;
  color: #ff1744;
}

header p {
  margin-top: 8px;
  font-size: 1rem;
  opacity: 0.8;
}

.search-bar {
  width: 100%;
  max-width: 600px;
  margin-bottom: 30px;
}

.search-bar input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #ff1744;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1rem;
  outline: none;
}

hr {
  width: 80%;
  max-width: 600px;
  height: 2px;
  background: rgba(255, 23, 68, 0.4);
  margin: 20px 0 30px;
  border: none;
}

.category-title {
  font-size: 1.5rem;
  color: #ff1744;
  margin: 40px 0 20px;
  text-align: center;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1000px;
  padding: 0 10px;
  justify-content: center;
}

.tool-card {
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.6);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(255, 23, 68, 0.4);
}

.tool-card strong {
  display: block;
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: #ff1744;
}

.tool-card button {
  padding: 10px 18px;
  background: #ff1744;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, transform 0.3s;
}

.tool-card button:hover {
  background: #ff4569;
  transform: scale(1.05);
}

footer {
  margin-top: 50px;
  text-align: center;
  opacity: 0.7;
  font-size: 0.85rem;
}
