* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
body {
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

header {
  position: relative;
  background: linear-gradient(-45deg, #0d6efd, #6610f2, #ff5722, #00bcd4);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  color: #fff;
  padding: 1rem 1rem;
  text-align: center;
  overflow: hidden;
}

/* Wave effect using ::after */
header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 100px;
  background: url("data:image/svg+xml;utf8,
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'>
      <path fill='%23ffffff' fill-opacity='0.3' d='M0,160L60,165.3C120,171,240,181,360,160C480,139,600,85,720,96C840,107,960,181,1080,186.7C1200,192,1320,128,1380,96L1440,64L1440,320L0,320Z'></path>
    </svg>"
  );
  background-size: cover;
  animation: waveMove 6s linear infinite;
}

/* Gradient animation */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Wave animation */
@keyframes waveMove {
  0% { background-position-x: 0; }
  100% { background-position-x: 1000px; }
}




header h1 {
  font-size: 1.8rem;
}

main {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

textarea {
  width: 100%;
  min-height: 200px;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.controls button {
  background: #4a90e2;
  color: #fff;
  border: none;
  padding: 0.3rem .5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.controls button:hover {
  background: #357abd;
}

.stats {
  margin-top: .5rem;
  padding: .5rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #ccc;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}
.stats div {
  font-weight: bold;
  font-size: 12px;
}

.ads {
  margin: 2rem 0;
  padding: 1rem;
  background: #e9ecef;
  border: 1px dashed #aaa;
  text-align: center;
  border-radius: 8px;
}

/* Tool Info Section */
.tool-info {
  margin-top: 2rem;
}
.tool-info h2 {
  margin-bottom: 1rem;
  text-align: center;
  color: #4a90e2;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.tool-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.tool-card h3 {
  margin-bottom: 0.5rem;
  color: #333;
}
.tool-card p {
  font-size: 0.9rem;
  color: #555;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #f1f1f1;
  font-size: 0.9rem;
  color: #666;
  margin-top: 2rem;
}
footer a {
  color: #4a90e2;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.4rem;
  }
  .controls button {
    flex: 1 1 auto;
  }
}



/* find and replace*/
 /* Popup Styles */
    .popup {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      justify-content: center;
      align-items: center;
    }
    .popup-content {
      background: white;
      padding: 20px;
      border-radius: 10px;
      width: 300px;
      box-shadow: 0px 4px 12px rgba(0,0,0,0.3);
    }
    .popup-content h2 {
      margin-top: 0;
      font-size: 20px;
    }
    .popup-content input {
      width: 100%;
      padding: 8px;
      margin: 8px 0;
      font-size: 14px;
    }
    .popup-content button {
      margin-top: 10px;
      width: 100%;
      padding: 10px;
      border: none;
      border-radius: 5px;
    }
    .replace-btn { background: #4CAF50; color: white; }
    .close-btn { background: #f44336; color: white; }



/* name & email generator */

 /* Popup Styles */
    .popup-name {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      justify-content: center;
      align-items: center;
    }
    .popup-content-name {
      background: white;
      padding: 20px;
      border-radius: 10px;
      width: 350px;
      box-shadow: 0px 4px 12px rgba(0,0,0,0.3);
    }
    .popup-content-name h2 {
      margin-top: 0;
      font-size: 20px;
    }
    .popup-content-name input[type="number"] {
      width: 100%;
      padding: 8px;
      margin: 8px 0;
      font-size: 14px;
    }
    .popup-content-name label {
      display: block;
      margin: 5px 0;
    }
    .popup-content-name button {
      margin-top: 10px;
      width: 100%;
      padding: 10px;
      border: none;
      border-radius: 5px;
    }
    .generate-btn { background: #4CAF50; color: white; }
    .close-btn { background: #f44336; color: white; }
