/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Section Common Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
}

/* Video Section Styles */
.video-section {
  padding: 50px;
  display: flex;
  justify-content: center;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  width: 60%;
  background: #f5f5f5;
}

.video-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(245, 245, 245, 0.9);
  z-index: 1;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container.loaded .video-loader {
  opacity: 0;
  pointer-events: none;
}

.video-container.loaded iframe {
  opacity: 1;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Fix Features section ID to match convention */
#features {
  padding: 50px;
  text-align: center;
  width: 60%;
  margin: 0 auto;
}

/* Media Queries */
@media (max-width: 768px) {
  .video-container {
    width: 90%;
  }

  #features {
    width: 90%;
  }

  .pricing-section {
    width: 90%;
  }

  .pricing-plans {
    flex-direction: column;
    align-items: center;
  }
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #fff;
}

header {
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-bottom: 60px;
}

#header-img {
  height: 50px;
}

#nav-bar {
  display: flex;
  gap: 15px;
}

.nav-link {
  color: #000;
  text-decoration: none;
  font-size: 1em;
}

.nav-link:hover {
  text-decoration: underline;
}

#hero {
  text-align: center;
}

.hero-title {
  font-size: 3em;
  margin: 0;
}

.hero-subtitle {
  font-size: 1.5em;
  margin-top: 10px;
}

#form-section {
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#form-section form {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 60%;
}

#form-section input {
  padding: 10px;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 80%;
}

#form-section input[type="submit"] {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 20%;
}

#form-section input[type="submit"]:hover {
  background-color: #555;
}

#video-section {
  padding: 50px;
  display: flex;
  justify-content: center;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  width: 60%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#Features-section {
  padding: 50px;
  text-align: center;
  width: 60%;
  margin: 0 auto;
}

.feature-grid {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.feature {
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  width: 300px;
  min-width: 20px;
}

.feature i {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.feature p {
  color: #666;
  font-size: 1rem;
}

footer {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  position: sticky;
  bottom: 0;
  z-index: 1000;
}

@media (max-width: 480px) {
  #form-section form {
    width: 90%;
  }

  .feature-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
  }
}

.pricing-section {
  padding: 50px;
  text-align: center;
  width: 60%;
  margin: 0 auto;
}

.pricing-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #333;
}

.pricing-plans {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.pricing-plan {
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  width: 300px;
  min-width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-plan:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.pricing-plan .recommended {
  border: 2px solid #333;
}

.recommended-badge {
  background-color: #333;
  color: #fff;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 15px;
}

.plan-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}

.plan-features {
  list-style-type: none;
  padding: 0;
  margin-bottom: 20px;
}

.plan-features li {
  color: #555;
  font-size: 1rem;
  margin-bottom: 10px;
}

.choose-plan-btn {
  background-color: #333;
  color: white;
  padding: 12px 30px;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.choose-plan-btn:hover {
  background-color: #555;
}

/* Mobile-first media queries */
@media (max-width: 768px) {
  /* Header adjustments */
  header {
    flex-direction: column;
    padding: 20px 10px;
    gap: 15px;
    text-align: center;
  }

  #nav-bar {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  /* Hero section */
  .hero-title {
    font-size: 2em;
    padding: 0 15px;
  }

  .hero-subtitle {
    font-size: 1.2em;
    padding: 0 15px;
  }

  /* Form section */
  #form-section form {
    width: 95%;
    flex-direction: column;
    gap: 15px;
  }

  #form-section input {
    width: 100%;
    margin-right: 0;
  }

  #form-section input[type="submit"] {
    width: 100%;
  }

  /* Features section */
  #features {
    width: 95%;
    padding: 30px 15px;
  }

  .feature-grid {
    gap: 20px;
  }

  .feature {
    width: 100%;
    max-width: none;
  }

  /* Video section */
  .video-section {
    padding: 30px 15px;
  }

  .video-container {
    width: 100%;
  }

  /* Pricing section */
  .pricing-section {
    width: 95%;
    padding: 30px 15px;
  }

  .pricing-title {
    font-size: 2em;
  }

  .pricing-plans {
    flex-direction: column;
    gap: 30px;
  }

  .pricing-plan {
    width: 100%;
    max-width: none;
  }

  /* General section titles */
  .section-title {
    font-size: 2em;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  #features,
  .pricing-section {
    width: 90%;
  }

  .pricing-plans {
    gap: 15px;
  }

  .pricing-plan {
    min-width: 220px;
  }

  .feature-grid {
    gap: 15px;
  }

  .feature {
    width: calc(50% - 15px);
  }
}

/* Additional responsive improvements */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8em;
  }

  .hero-subtitle {
    font-size: 1.1em;
  }

  .plan-features {
    padding: 0 10px;
  }

  .plan-price {
    font-size: 2rem;
  }

  .feature i {
    font-size: 1.5rem;
  }

  .feature h3 {
    font-size: 1.2rem;
  }
}
