* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: hsl(210, 60%, 96%);
  margin: 0;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
h1{
  text-align: center;
}

/* Grid layout */
.tool-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.tool-button {
  position: relative;
  width: calc(50% - 10px);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  background-color: #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tool-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.tool-title,
.tool-subtitle {
  z-index: 1;
  text-align: center;
}

.tool-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.tool-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
}
footer {
  background: #f8f9fa;
  padding: 20px;
  border-top: 1px solid #ccc;
  text-align: center;
}

.tool-links ul {
  list-style: none;
  padding: 0;
}

.tool-links li {
  margin: 5px 0;
}

.tool-links a {
  text-decoration: none;
  color: #007bff;
}
