* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background: linear-gradient(to bottom, #1a1246, #331a5d);
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Video Section */
#video-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.audio-controls{
    position: absolute;
    right: 32px;
    transform: translateY(-85px);
}
#play-audio-btn,
#pause-audio-btn {
  background: linear-gradient(145deg, #5e2d91, #8c4ddd);
  border: none;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#play-audio-btn:hover,
#pause-audio-btn:hover {
  background: linear-gradient(145deg, #7235b4, #a768f2);
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.title {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(173, 216, 230, 0.8);
  text-align: center;
}

.subtitle {
  font-size: 1.5rem;
  text-shadow: 0 0 5px rgba(173, 216, 230, 0.6);
  text-align: center;
}

/* Auto-typing Text Section */
#auto-type-section {
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #331a5d, #5a3694);
}

.text-container {
  max-width: 800px;
  height: 400px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 2rem;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

#typed-text {
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Form Section */
/* Form Section */
#form-section {
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #5a3694, #331a5d);
}
#form-section h2{
    text-align: center;
    font-size: 45px;
    margin-bottom: 47px;
}
.form-container {
  display: block;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

/* Form Toggler */
.form-toggle-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.form-toggle {
     display: inline;
    width: 25%;
}

.toggle-btn {
  padding: 0.5rem 1.5rem;
  background: #6e32d1;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 0 1rem 0;
  transition: background-color 0.3s ease;
}

.toggle-btn:hover {
  background: #8a5eff;
}

.toggle-btn.active {
  background: #9b6dff;
}

/* Form Content */
.form-content-container {
  width: 75%;
}

.form-content {
  display: none;
}

.form-content.active {
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.3);
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to right, #9b6dff, #6e32d1);
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(to right, #8a5eff, #5a1ecc);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(138, 43, 226, 0.6);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 43, 226, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-toggle-container {
    display: block;}
    .form-content-container {
    width: 100%;
    margin-top: 44px;
    }
    #form-section h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 30px;
    margin-top: 10px;
   }
  .title {
    font-size: 3rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  .text-container {
    padding: 1.5rem;
    height: 350px;
  }
  
  #typed-text {
    font-size: 1.1rem;
  }
  
  .form-container {
    padding: 1.5rem;
  }
}