/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 200px; /* Adjust based on content size */
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    max-height: 200px;
    opacity: 1;
  }
  to {
    max-height: 0;
    opacity: 0;
  }
}

/* CSS Variables */
:root {
  --primary-red: #e53e3e;
  --primary-red-hover: #c53030;
  --text-dark: #2d3748;
  --text-gray: #718096;
  --text-light: #a0aec0;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: "Instrument Sans", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

.btn {
  background: var(--primary-red);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
}

.btn:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
}

.choose-plan {
  padding-top: 30px;
}

.choose-plan h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
}

.choose-plan-headings {
  max-width: 534px;
  margin: 0 auto;
  text-align: center;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.faq {
  padding-top: 100px;
  padding-bottom: 150px;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.faq-content {
  flex: 1;
}

.faq-item {
  background-color: #fff;
  width: 100%;
  border-radius: 10px;
  padding: 16px 24px;
  display: flex;
  gap: 51px;
  align-items: start;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust based on content */
  opacity: 1;
  animation: slideDown 0.3s ease forwards;
}

.faq-item .faq-answer {
  max-height: 0;
  width: 100%;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item h4 {
  font-size: 16px;
  font-weight: 500;
}

.faq-item .faq-answer {
  font-size: 15px;
  font-weight: 400;
  margin-top: 24px;
}

.faq-left h2 {
  font-size: 32px;
  font-weight: 400;
}

.faq-left p {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 24px;
}

.faq-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 50%;
}

.footer {
  background-color: #e5e5e5;
  color: white;
  padding: 3rem 0 1rem;
  padding-bottom: 190px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 0 15px;
}

.footer-section a {
  color: #000;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.footer-section p {
  color: #000;
  font-size: 12px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.header {
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 0 15px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 142px;
}

.hero-text {
  width: 50%;
}

.hero-text h1 {
  font-size: 64px;
  font-weight: 700;
}

.hero-text p {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero-img {
  width: 40%;
}

.mobile-hero-image {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.most-popular {
  border: 2px solid var(--primary-red);
  background-color: #fff0f1;
  border-radius: 24px;
  width: 330px;
  height: 498px;
}

.most-popular-content {
  padding: 24px;
}

.most-popular button {
  border: none;
  width: 100%;
  padding: 12px 0;
  border-radius: 10px;
  margin-top: 20px;
  background-color: var(--primary-red);
  color: #fff;
}

.most-popular h2 {
  font-size: 32px;
  font-weight: 400;
  text-align: center;
  margin-top: 32px;
  margin-bottom: 4px;
}

.most-popular h3 {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4px;
}

.most-popular p {
  font-size: 12px;
  color: #333;
  text-align: center;
}

.most-popular-tag {
  background-color: var(--primary-red);
  color: #fff;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-btn {
  background: white;
  color: var(--primary-red-hover);
  padding: 12px 24px;
  border: 1px solid var(--primary-red-hover);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-btn:hover {
  background: var(--primary-red-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 65px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-red);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
}

.plans-container {
  max-width: 932px;
  margin: 0 auto;
  margin-top: 50px;
}

.plans {
  background-color: #ffffff;
  width: 100%;
  border-radius: 10px;
  margin-bottom: 40px;
}

.plan-card {
  padding: 24px;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 480px) {
  .about h2,
  .services h2,
  .experience-text h2,
  .faq h2 {
    font-size: 2rem;
  }

  .choose-plan-headings {
    display: none;
  }

  .faq {
    flex-direction: column;
    margin-top: 48px;
    gap: 24px;
  }

  .faq-right {
    width: 100%;
    margin-bottom: 146px;
  }

  .faq-left a {
    display: none;
  }

  .footer {
    padding-bottom: 40px;
  }

  .hero {
    flex-direction: column;
  }

  .hero-img {
    width: 100%;
    margin-top: 24px;
  }

  .hero-text {
    width: 100%;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .mobile-hero-image {
    display: block;
  }

  .most-popular {
    width: 100%;
  }

  .plan {
    width: 100%;
  }

  .web-hero-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 0;
    padding-top: 50px;
    margin: 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .container {
    padding: 0 15px;
  }

  .experience {
    display: none;
  }

  .experience-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .faq {
    margin-top: 48px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-section {
    flex-direction: column-reverse;
    gap: 0px;
  }

  .features-left {
    width: 100%;
  }

  .features-right {
    width: 100%;
  }

  .features-right img {
    display: none;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .header {
    padding: 0 15px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-form {
    display: none;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
  }

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

  .nav-btn {
    display: none;
  }

  .services h2 p {
    text-align: left;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
