body {
  font-family: 'Roboto', sans-serif;
  background-color: #1e1e1e;
  color: #f1f1f1;
  margin: 0;
  padding: 0;
}

header {
  background-color: #333;
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #444;
}

h1 {
  color: #00bcd4;
  font-size: 3em;
  margin: 0;
  font-family: 'Dancing Script', cursive;
}

input[type="search"] {
  padding: 12px;
  margin-top: 20px;
  border: none;
  border-radius: 50px;
  width: 70%;
  font-size: 1.2em;
  background-color: #555;
  color: white;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="search"]:focus {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.8);
}

.tools-category {
  margin: 40px;
  text-align: center;
}

h2 {
  color: #00bcd4;
  font-size: 2em;
  margin-bottom: 20px;
}

.tool-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
}

.tool-button {
  background-color: #333;
  color: #f1f1f1;
  border: none;
  padding: 25px;
  border-radius: 10px;
  width: 200px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.tool-button img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.tool-button span {
  font-size: 1.1em;
  font-weight: bold;
  display: block;
}

.tool-button:hover {
  transform: scale(1.1);
  background-color: #00bcd4;
  color: #333;
  box-shadow: 0 4px 20px rgba(0, 188, 212, 0.8);
}

footer {
  background-color: #333;
  padding: 5px;
  text-align: center;
  position: fixed;
  width: 100%;
  bottom: 0;
}

#feedback-btn {
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #00bcd4;
  border: none;
  padding: 12px 25px;
  border-radius: 90px;
  color: white;
  cursor: pointer;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 188, 212, 0.5);
}

#feedback-btn:hover {
  background-color: #007c92;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #333;
  padding: 20px;
  border-radius: 10px;
  color: #f1f1f1;
  text-align: center;
  z-index: 20;
}

.modal button {
  background-color: #00bcd4;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.modal button:hover {
  background-color: #007c92;
}

.theme-toggle {
  position: fixed;
  bottom: 9.5px;
  right: 10px;
  background-color: #00bcd4;
  border: none;
  color: #333;
  font-size: 1.3em;
  padding: 4px 4px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 188, 212, 0.5);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.theme-toggle:hover {
  background-color: #007c92;
  transform: scale(1.1);
}

.light-theme {
  background-color: #f1f1f1;
  color: #333;
}

.light-theme .tool-button {
  background-color: #fff;
  color: #333;
}

.light-theme input[type="search"] {
  background-color: #ddd;
  color: #333;
}

.light-theme header {
  background-color: #eee;
}

#theme-toggle-btn {
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1em;
  margin-left: 20px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

#theme-toggle-btn:hover {
  transform: scale(1.1);
}

.light-theme #theme-toggle-btn {
  background-color: #fff;
  color: #000;
}

#contact-me {
  position: fixed;
  bottom: 50px;
  left: 50px;
  background-color: #272222;
  color: #333;
  border: 2px solid #333;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 24px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

#contact-me img {
  width: 80px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-links {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  header {
    padding: 10px;
  }

  h1 {
    font-size: 2em;
  }

  input[type="search"] {
    width: 90%;
    font-size: 1em;
  }

  .tool-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tool-button {
    width: 100%;
    padding: 15px;
  }

  #feedback-btn {
    bottom: 10px;
    width: 80%;
  }
}


@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

@keyframes bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes colorChange {
  0% { background-color: #00bcd4; }
  50% { background-color: #ff4081; }
  100% { background-color: #00bcd4; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes lightUp {
  0% { background-color: #00bcd4; }
  50% { background-color: #ff4081; }
  100% { background-color: #00bcd4; }
}

#feedback-btn.shake {
  animation: shake 1.5s ease-in-out infinite;
}

#feedback-btn.bounce {
  animation: bounce 0.6s ease-in-out;
}

#feedback-btn.color-change {
  animation: colorChange 1s infinite;
}

.theme-toggle.pulse {
  animation: pulse 1s ease-in-out;
}

.theme-toggle.light-up {
  animation: lightUp 1s infinite;
}

#feedback-btn, .theme-toggle {
  transition: transform 0.3s ease;
}

.light-theme #feedback-btn {
  background-color: #ff4081;
}
