/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #000000;
  color: #ffffff;
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

/* Header */
header {
  background-color: #000;
  color: black;
  padding: 20px 40px;
  border-bottom: 3px solid #8A2BE2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo img {
  height: 100px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

header nav ul li {
  display: inline-block;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #8A2BE2;
}

header nav ul li a:active {
  color: #6a1d8e;
}

/* Base nav */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

/* Responsive nav */
@media (max-width: 768px) {
  nav.nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #111;
    text-align: center;
    padding: 10px 0;
  }

  nav.nav-links.show {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }
}

/* Section Styles */
section {
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 40px;
  border: 3px solid #8A2BE2;
  border-radius: 15px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

section:hover {
  transform: translateY(-10px);
}

#home {
  background-color: #333333;
  color: white;
}

h1, h2 {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
}

#features ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

#features ul li {
  font-size: 18px;
  margin-bottom: 20px;
}

.cta-btn {
  display: inline-block;
  background-color: #8A2BE2;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 30px;
}

.cta-btn:hover {
  background-color: #6a1d8e;
  transform: translateY(-5px);
}

.cta-btn:active {
  transform: translateY(0);
}

/* Contact Form */
form {
  max-width: 600px;
  margin: 30px auto;
  background-color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
}

form input, form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 2px solid #8A2BE2;
  border-radius: 10px;
  background-color: #1a1a1a;
  color: white;
  font-size: 16px;
  transition: border 0.3s ease;
}

form input:focus, form textarea:focus {
  border-color: #6a1d8e;
}

form button {
  width: 100%;
  padding: 15px;
  background-color: #8A2BE2;
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

form button:hover {
  background-color: #6a1d8e;
}

/* Footer */
footer {
  text-align: center;
  background-color: #1a1a1a;
  color: white;
  padding: 30px 20px;
  border-top: 3px solid #8A2BE2;
  font-size: 16px;
}

footer p {
  font-weight: 300;
  letter-spacing: 1px;
  color: #ccc;
}

footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Home page */
/* Hero Section */
#hero {
  background-color: #111;
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero-content h1 {
  font-size: 50px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 40px;
}

/* Split Sections (Left and Right Layouts) */
.split-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 20px;
  background-color: #111;
  margin-top: -40px;
}

.split-section .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.split-section .container .upload-text,
.split-section .container .about-text {
  width: 50%;
}

.split-section .container .upload-text h2,
.split-section .container .about-text h2 {
  font-size: 35px;
  font-weight: 700;
  margin-bottom: 20px;
}

.split-section .container .upload-text p,
.split-section .container .about-text p {
  font-size: 18px;
  margin-bottom: 30px;
}

.upload-box {
  width: 50%;
  text-align: center;
}

.upload-box form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-box input[type="file"] {
  padding: 15px;
  background-color: #333;
  border: 2px solid #8A2BE2;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
}

.upload-box button {
  padding: 15px 30px;
  background-color: #8A2BE2;
  color: white;
  font-size: 18px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
}

.upload-box button:hover {
  background-color: #6a1d8e;
  transform: translateY(-5px);
}

.upload-box button:active {
  transform: translateY(0);
}

/* Audio Player and Upload Section */
#audio-container {
  margin-top: 40px;
}

#audio-player {
  width: 100%;
  margin-bottom: 20px;
}

#seek-bar {
  width: 100%;
  margin: 10px 0;
}

#seek-bar::-webkit-slider-thumb {
  background-color: #8A2BE2;
}

#seek-bar::-moz-range-thumb {
  background-color: #8A2BE2;
}

h3 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 700;
}

/* Voice Changer Section */
#voice-changer {
  background-color: #222222;
  color: white;
  border: 2px solid #8A2BE2;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 20px;
  width: 200px;
}

#apply-effect {
  padding: 12px 25px;
  background-color: #8A2BE2;
  color: white;
  font-size: 18px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
}

#apply-effect:hover {
  background-color: #6a1d8e;
  transform: translateY(-5px);
}

#apply-effect:active {
  transform: translateY(0);
}

/* About Image */
.about-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-left: 20px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.recording-card {
  background-color: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  color: #eee;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.recording-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.recording-time {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.8rem;
}


.recording-card audio {
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 8px;
}

/* Main select box */
.select2-container--default .select2-selection--single {
  background-color: #f0f0f0;
  border: 1px solid #888;
  color: #333;
  border-radius: 6px;
  height: 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

/* Selected item text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #8C52FF !important;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Placeholder text */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #777;
  line-height: 1.2;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Dropdown arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%;
  transform: translateY(-50%);
}

/* Dropdown items */
.select2-container--default .select2-results__option {
  color: #333;
}

/* Hovered item */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #a8d0e6;
  color: #000;
}

/* Add spacing below select */
#university {
  margin-bottom: 10px;
}

/* Upload button spacing */
#upload-btn {
  margin-top: 35px;
}

.tts-link {
  display: inline-block;
  padding: 5px 6px;
  background-color: #cccccc;  /* Purple like your logo */
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 12px;
}

.tts-link:hover {
  background-color: #6d3bcc;
}

.tts-container {
  max-width: 500px;
  margin: 60px auto;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  font-family: sans-serif;
  flex: 1 1 60%;
  margin-top: 0px;
  margin-left: 10%;
}

#tts-text {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#speak-btn {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #8C52FF;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#speak-btn:hover {
  background-color: #6a3fd9;
}


ul {
  margin-left: 20px;
}

ul li a {
  color: #333;
  text-decoration: underline;
}

ul li a:hover {
  color: #8C52FF;
}

.tts-heading {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    color: #000;
}

.voice-text {
    color: #000;
}

.resources-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: #000;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.resource-block {
  margin-bottom: 30px;
  margin-right: 10%;
}

.resource-heading {
  font-size: 1.3rem;
  color: #8C52FF;
  margin-bottom: 10px;
}

.resources-section ul {
  list-style-type: disc;
  padding-left: 20px;
}

.resources-section a {
  color: #333;
  text-decoration: none;
}

.resources-section a:hover {
  text-decoration: underline;
}

.disclaimer {
  font-size: 0.85rem;
  color: #666;
  margin-top: 20px;
  text-align: center;
}

.tts-flex {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 10px;
}

.side-record {
  flex: 1 1 35%;
  min-width: 250px;
  background-color: #1e1e1e; /* dark grey background */
  padding: 24px;
  border-radius: 10px;
  border: 1px solid #444;
  color: #f0f0f0;
  font-family: 'Segoe UI', sans-serif;
}

.side-record h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.side-record p {
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.side-record ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.side-record li {
  margin-bottom: 8px;
}

.side-record a {
  color: #8c52ff;
  text-decoration: none;
  font-weight: 500;
}

.side-record a:hover {
  text-decoration: underline;
  color: #a475ff;
}

.resource-block ul li a {
  color: #ccc; /* Light grey */
  text-decoration: none;
}

.resource-block ul li a:hover {
  color: #fff; /* White on hover */
  text-decoration: underline;
}

/* Index Page Enhancements */
#home {
  background-color: #111;
  padding: 80px 20px;
  text-align: center;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

#home h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}


#home p {
  font-size: 1.25rem;
  color: #ccc;
  margin-bottom: 30px;
}

.features-section {
  padding: 80px 20px;
  background-color: #111;
  text-align: center;
  border: 3px solid #8A2BE2;
  border-radius: 15px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.feature-card {
  background-color: #222;
  border: 2px solid #333;
  border-radius: 15px;
  padding: 30px;
  max-width: 300px;
  text-align: center;
  color: #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.3);
}

.feature-icon {
  width: 70px;
  margin-bottom: 0px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #8A2BE2;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ccc;
}


#about {
  background-color: #111;
  border: none;
  padding: 60px 30px;
  box-shadow: none;
}

#about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #8A2BE2;
}

#about p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: #ccc;
  line-height: 1.8;
}

hr {
  border-color: #444;
}

html {
  scroll-behavior: smooth;
}

.spinner {
  margin: 10px auto;
  width: 40px;
  height: 40px;
  border: 4px solid #999;
  border-top: 4px solid #bb86fc; /* your purple color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

