/* Main Styles for AI Syllables Website */

/* General Styles */
:root {
  --primary-color: #4e73df;
  --secondary-color: #2e59d9;
  --accent-color: #f1c40f;
  --light-color: #f8f9fc;
  --dark-color: #5a5c69;
  --success-color: #1cc88a;
  --info-color: #36b9cc;
  --warning-color: #f6c23e;
  --danger-color: #e74a3b;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  transition: all 0.2s;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  color: white;
  padding: 100px 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-weight: 800;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-image {
  position: relative;
  z-index: 1;
}

/* Video tabs styling */
.nav-tabs .nav-link {
  color: var(--dark-color);
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  border: none;
  border-radius: 0;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  background-color: transparent;
}

@media (min-width: 768px) {
  .nav-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

.tab-content {
  padding: 1rem 0;
}

.video-caption {
  font-size: 0.9rem;
  color: var(--dark-color);
  margin-bottom: 0;
  font-style: italic;
}

.feature-video {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Video placeholder */
.video-placeholder {
  height: 100%;
  border-radius: 8px;
  background-color: #f8f9fa;
}

/* Animation for demo (legacy support) */
.demo-animation {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

/* Why Use Section */
.why-use {
  padding: 80px 0;
}

.why-item {
  border-radius: 10px;
  transition: all 0.3s;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.why-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.why-icon {
  color: var(--primary-color);
}

/* Features Section */
.features {
  padding: 80px 0;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 5px;
  transition: all 0.3s;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* Pricing Section */
.pricing {
  background-color: var(--light-color);
  padding: 80px 0;
}

.pricing-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
  margin-bottom: 30px;
}

.pricing-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.pricing-header {
  background-color: var(--primary-color);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.pricing-popular .pricing-header {
  background-color: var(--accent-color);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0;
}

.pricing-period {
  font-size: 1rem;
  opacity: 0.7;
}

.pricing-features {
  padding: 30px 20px;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li i {
  margin-right: 10px;
  color: var(--success-color);
}

.pricing-action {
  padding: 0 20px 30px;
  text-align: center;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
}

.testimonial-item {
  text-align: center;
  padding: 30px;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content:before {
  content: '\201C';
  font-size: 4rem;
  position: absolute;
  top: -30px;
  left: -10px;
  color: rgba(0, 0, 0, 0.1);
}

.testimonial-name {
  font-weight: 700;
  margin-bottom: 5px;
}

.testimonial-position {
  font-size: 0.9rem;
  color: var(--dark-color);
  opacity: 0.7;
}

/* Contact Section */
.contact {
  background-color: var(--light-color);
  padding: 80px 0;
}

.contact-info i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 10px;
}

.contact-form label {
  font-weight: 600;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: white;
  padding: 50px 0 20px;
}

.footer h5 {
  color: white;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-right: 10px;
  color: white;
}

.social-icons a:hover {
  background-color: var(--primary-color);
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fadeInUp {
  animation-name: fadeInUp;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-image {
    margin-top: 30px;
  }
}

@media (max-width: 767.98px) {
  .hero {
    text-align: center;
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .feature-item {
    margin-bottom: 30px;
  }
}