:root {
  --bg: #000;
  --fg: #fff;
  --accent-color: #ff9f1a;
  --muted: #777;
  --font-logo: 'Pacifico', cursive;
}

/* Reset improvements */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, sans-serif;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px; /* smaller horizontal padding for mobile */
  gap: 32px;
  width: 100%;
}

/* Logo */
.logo-container {
  text-align: center;
  width: 100%;
}

.logo-title {
  font-family: var(--font-logo);
  font-size: clamp(26px, 6vw, 36px); /* responsive scaling */
  color: var(--accent-color);
  letter-spacing: 2px;
}

/* Tools Layout */
.tools-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 700px;     /* controls desktop width */
  margin: 0 auto;       /* centers container horizontally */
  align-items: center;  /* centers the inner content block horizontally */
  padding: 0 16px;      /* keeps spacing on small screens */
}

.tool-category {
  width: 100%;           /* keeps each category full width inside container */
}

.tool-category h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--accent-color);
  text-align: left;      /* headings left-aligned */
}

.tool-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;      /* list items left-aligned */
}

.tool-category li {
  margin-bottom: 10px;
}

.tool-category a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s ease;
  word-wrap: break-word;
}

.tool-category a:hover {
  color: var(--accent-color);
}

/* Footer */
footer .footer-container {
  text-align: center;
  padding: 16px 12px;
  font-size: 14px;
  color: var(--muted);
}

/* Form elements */
button, select {
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  max-width: 100%;
}

