/* General Styles */


.btn-primary {
  background-color: #3498db;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #e74c3c;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #c0392b;
}



/* Feature Sections */
.feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px;
  flex-wrap: wrap;
  gap: 40px; /* Gap between text and image columns */
}

.feature.reverse {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
  max-width: 50%;
  animation: fadeInUp 1s ease;
}

.feature h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.feature p {
  font-size: 18px;
  margin-bottom: 40px;
}

.feature-image {
  flex: 1;
  max-width: 50%;
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease;
}

/* Call-to-Action Section */
.cta {
  text-align: center;
  padding: 60px 20px;
  background-color: #3498db;
  color: white;
  animation: fadeInUp 1s ease;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta p {
  font-size: 18px;
  margin-bottom: 40px;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 40px 20px;
  text-align: center;
  animation: fadeInUp 1s ease;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-media img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-media img:hover {
  transform: scale(1.2);
}

.newsletter input {
  padding: 10px;
  border-radius: 5px;
  border: none;
  margin-right: 10px;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero, .feature, .feature.reverse {
    flex-direction: column;
    text-align: center;
    gap: 20px; /* Reduce gap on smaller screens */
  }

  .hero-content, .feature-content, .feature-image {
    max-width: 100%;
  }

  .feature-image {
    margin-top: 20px; /* Add spacing between text and image on mobile */
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #2c3e50;
    position: absolute;
    top: 60px;
    left: 0;
  }

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





/* Feature Image Transitions */
.feature-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image img:hover {
  transform: scale(1.05); /* Slightly enlarge the image on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Add a stronger shadow on hover */
}





  .desktop{
      display: block;
  }
  .mobile{
      display: none;
  }
  






/* Mobile-specific styles using a class approach instead of DOM manipulation */
@media (max-width: 768px) {
    
    .feature h2 {
    font-size: 26px;
    line-height: 1.1;
    margin-bottom: 20px;
}

  .desktop{
      display: none;
  }
  .mobile{
      display: block;
      margin-bottom: 20px;
  }
  
}