/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body, html {
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    background-color: #0e0e0e;
    color: #ffffff;
    scroll-behavior: smooth;
  }
  
  /* Particles Background */
  #particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
  /* Hero Section */
  .hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #4caf50, #2196f3);
    color: #fff;
    padding: 20px;
  }
  .hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
  }
  .hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  .hero-button {
    display: inline-block;
    background-color: #fff;
    color: #333;
    padding: 12px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  .hero-button:hover {
    background-color: #ddd;
  }
  
  /* App Section */
  #mainApp {
    padding: 50px 20px;
    background-color: #121212;
    min-height: 100vh;
  }
  .app-container {
    max-width: 700px;
    margin: auto;
    background: #1e1e1e;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
  }
  textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    font-size: 1rem;
    border-radius: 10px;
    resize: none;
    margin-bottom: 20px;
    background: #2c2c2c;
    color: #fff;
    border: 1px solid #444;
  }
  .controls label {
    display: block;
    margin: 10px 0 5px;
  }
  
  /* Styled dropdown */
  .voice-select {
    width: 100%;
    font-size: 1.1rem;
    line-height: 1.4;
    padding: 8px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #555;
    background: #2c2c2c;
    color: #fff;
    /* remove native arrow on some browsers */
    appearance: none;
  }
  .voice-select option {
    padding: 6px;
  }
  
  /* Range & button */
  .controls input[type="range"] {
    width: 100%;
    margin-bottom: 15px;
  }
  button#speakButton {
    background-color: #4caf50;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
  }
  button#speakButton:hover {
    background-color: #43a047;
  }
  
  /* Animations */
  @keyframes zoomIn { from {transform: scale(0.5);opacity:0;} to {transform:scale(1);opacity:1;} }
  @keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
  @keyframes bounce { 0%,100% {transform:translateY(0);} 50% {transform:translateY(-10px);} }
  .animate-zoom-in { animation: zoomIn 0.8s ease-out; }
  .animate-fade-in { animation: fadeIn 1.2s ease-in; }
  .animate-bounce { animation: bounce 2s infinite; }
  