@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');


body {
    font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.landing-container {  
  color: #222;
  background: #f8fafc;
  min-height: 100vh;
  position: relative;
  z-index: 0;
  max-width: 100vw;
  overflow-x: hidden;
}
.landing-container::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.13;
  /* Soft abstract waves using a linear gradient overlay */
  background: linear-gradient(120deg, #e9e4f0 0%, #f8fafc 60%, #e0e7ff 100%);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100vw;
  height: 100vh;
}

.hero {
  /*background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: #fff;*/  
  padding: 60px 20px 40px 20px;
  text-align: center;
  color: #222;
  position: relative; /* Ensure stacking above .hero-background */
  background: none; /* Remove any background that could cause opacity issues */
  z-index: 1; /* Ensure above .hero-background */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1; /* Make sure this is -1 */
  opacity: 0.1; /* More transparent */
  pointer-events: none; /* Prevents blocking interaction */
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  font-family: 'Permanent Marker', cursive;
  font-weight: 400;
}

[dir='rtl'] .hero h1 {
  font-family:"Fredoka", sans-serif;
  font-optical-sizing: auto;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 32px;
}

.register-btn {
  background: #fff;
  color: #222;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(118,75,162,0.15);
  transition: background 0.2s, color 0.2s;
}

.register-btn:hover {
  background: #764ba2;
  color: #fff;
}

.mockup-image {
    max-width: 50%;
    height: auto;
    width: auto; /* Add this to prevent stretching */
    object-fit: contain; /* Add this to maintain aspect ratio */
}

.features {
  padding: 40px 20px;
  background: #fff;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}

.feature-card {
  background: #f3f0fa;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.07);
  padding: 24px 20px;
  max-width: 260px;
  min-width: 220px;
  text-align: left;
}

.faq {
  padding: 40px 20px;
  background: #f8fafc;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(102,126,234,0.06);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item.open {
  box-shadow: 0 4px 16px rgba(102,126,234,0.13);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 1.13rem;
  font-weight: 500;
  color: #764ba2;
  padding: 18px 20px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
}

.faq-question:hover {
  background: #f3f0fa;
}

.faq-arrow {
  font-size: 1.1rem;
  margin-left: 12px;
}

.faq-answer {
  background: #f8fafc;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(.4,0,.2,1), padding 0.2s, opacity 0.25s;
  padding: 0 20px;
  opacity: 0;
}
.faq-item.open .faq-answer {
  padding: 12px 20px 18px 20px;
  opacity: 1;
}

.faq-answer p {
  margin: 0;
  color: #333;
  font-size: 1rem;
}

.faq h2 {
  font-size: 1.5rem;
  color: #764ba2;
  margin-bottom: 16px;
  text-align: center;
    font-family: 'Permanent Marker', cursive;
    font-weight: 400;
}

[dir="rtl"] .faq h2 {
  font-family: "Fredoka", sans-serif;
  font-optical-sizing: auto;
}

.footer {
  text-align: center;
  padding: 24px 0;
  background: #fff;
  color: #888;
  font-size: 0.95rem;
  margin-top: 40px;
}

.how-it-works {
  background: #f8fafc;
  padding: 40px 20px 30px 20px;
  text-align: center;
}

.how-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.how-step {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.07);
  padding: 22px 18px;
  min-width: 180px;
  max-width: 220px;
}

.how-step-title {
  font-weight: bold;
  color: #764ba2;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.how-step-desc {
  color: #444;
  font-size: 1rem;
}

.testimonials {
  background: #fff;
  padding: 40px 20px 30px 20px;
  text-align: center;
}

.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-top: 24px;
}

.testimonial-card {
  background: #f3f0fa;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(118,75,162,0.10);
  padding: 22px 18px;
  max-width: 320px;
  min-width: 220px;
  text-align: left;
}

.testimonial-text {
  font-style: italic;
  color: #333;
  margin-bottom: 10px;
}

.testimonial-name {
  color: #764ba2;
  font-weight: bold;
  font-size: 1rem;
}

.cta {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  padding: 48px 20px 40px 20px;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 24px;
    font-family: 'Permanent Marker', cursive;
    font-weight: 400;
}

[dir="rtl"] .cta h2 {
  font-family: "Fredoka", sans-serif;
  font-optical-sizing: auto;
}

.register-btn.large {
  font-size: 1.2rem;
  padding: 18px 48px;
}

.feature-detail {
  background: #fff;
  padding: 36px 20px 24px 20px;
  max-width: 800px;
  margin: 0 auto 24px auto;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(102,126,234,0.07);
  position: relative;
}

.feature-detail.alt {
  background: #f8fafc;
}

.feature-section {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 950px;
  margin: 0 auto 36px auto;
  background: #fff !important; /* Add !important to ensure this overrides any other styles */
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(102,126,234,0.10);
  padding: 40px 32px;
  transition: box-shadow 0.2s, transform 0.2s;
  opacity: 1; /* Ensure fully opaque */  
  position: relative; /* Ensure proper stacking context */
  z-index: 1; /* Position above background elements */
}

.feature-section::before,
.feature-section::after {
  content: none !important; /* Prevent any pseudo-elements from causing transparency */
}

/* For .feature-section.alt, ensure it also has a solid background */
.feature-section.alt {
  background: #fff !important; /* White background with !important */
}

.feature-section.reverse {
  flex-direction: row-reverse;
}

.feature-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, #764ba2 60%, #667eea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: #fff;
  margin-bottom: 0;
  box-shadow: 0 2px 12px rgba(118,75,162,0.10);
}

.feature-content {
  flex: 1;
}

.feature-content h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.7rem;
  color: #764ba2;
  font-family: 'Permanent Marker', cursive;
  font-weight: 400;
}

[dir="rtl"] .feature-content h2 {
  font-family: "Fredoka", sans-serif;
  font-optical-sizing: auto;
}

.feature-content p {
  font-size: 1.13rem;
  color: #333;
  margin-bottom: 0;
}

.feature-subtitle {
  font-size: 1.08rem;
  color: #667eea;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.feature-screenshot-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  max-width: 600px;
  width: 100%;
}

.feature-screenshot-carousel {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(118,75,162,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102,126,234,0.13);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.carousel-arrow.left {
  left: 8px;
}

.carousel-arrow.right {
  right: 8px;
}

.carousel-arrow:hover {
  background: #764ba2;
  opacity: 1;
}

.feature-screenshot {
  display: block;
  width: 100%;
  max-width: 540px;
  min-width: auto; /* Changed from 320px to auto */
  min-height: 200px;
  background: #e9e4f0;  
  box-shadow: 0 8px 32px rgba(102,126,234,0.18), 0 1.5px 8px rgba(0,0,0,0.08);
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.lang-switcher {
  display: flex;
  justify-content: flex-end;
  padding: 18px 24px 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 10;
}

.lang-dropdown {
  position: relative;
  z-index: 1100;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #764ba2;
  color: #764ba2;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: border 0.2s;
  min-width: 120px;
  outline: none;
}
.lang-dropdown-btn:focus {
  border: 1.5px solid #667eea;
}
.lang-caret {
  font-size: 0.9em;
  margin-left: 4px;
}
.lang-flag {
  font-size: 1.25em;
  margin-right: 4px;
  line-height: 1;
}
.lang-label {
  font-size: 1em;
}

.lang-dropdown-list {
  position: fixed;
  top: auto;
  left: auto;
  min-width: 160px;
  background: #fff;
  border: 1px solid #764ba2;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(102,126,234,0.18), 0 1.5px 8px rgba(0,0,0,0.08);
  margin: 0;
  padding: 8px 0;
  z-index: 2000;
  list-style: none;
  pointer-events: auto;  
}

/* Position the dropdown below the button */
.lang-dropdown.open .lang-dropdown-list {
  top: calc(64px + 8px); /* 64px titlebar height + small gap */
  right: 36px; /* match titlebar padding */
  padding: 8px;
  gap: 16px;
}

/* Responsive: adjust for mobile titlebar height */
@media (max-width: 900px) {
  .lang-dropdown.open .lang-dropdown-list {
    top: calc(48px + 8px);
    right: 10px;
  }
}

.titlebar {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(102,126,234,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;  
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1.5px solid #e9e4f0;
  transition: box-shadow 0.2s;
  box-sizing: border-box;
  max-width: 100vw;
  overflow-x: auto;
  overflow: visible !important; /* Ensure dropdowns can overflow */
}


/* Make sure the language dropdown is rendered above and outside the stacking context of the titlebar */
.titlebar .lang-switcher {
  position: static;
  z-index: auto;
  overflow: visible !important;
  background: transparent;
}

.lang-dropdown {
  position: relative;
  z-index: 1100;
}



/* Position the dropdown below the button */
.lang-dropdown.open .lang-dropdown-list {
  top: calc(64px + 8px); /* 64px titlebar height + small gap */
  right: 36px; /* match titlebar padding */
}

/* Responsive: adjust for mobile titlebar height */
@media (max-width: 900px) {
  .lang-dropdown.open .lang-dropdown-list {
    top: calc(48px + 8px);
    right: 10px;
  }
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 1rem;
  color: #764ba2;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.lang-dropdown-item.selected,
.lang-dropdown-item:hover {
  background: #f3f0fa;
}

.lang-flag-img {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  margin-right: 6px;
  vertical-align: middle;
}

.titlebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.35rem;
  color: #764ba2;
  text-decoration: none;
  letter-spacing: 1px;
  height: 64px;
  flex: 0 0 auto;
}

.titlebar-logo img {
  height: 38px;
  width: auto;
  display: block;
  margin-right: 8px;
}

.titlebar-center {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
}

.titlebar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.titlebar-link {
  color: #764ba2;
  font-weight: 500;
  font-size: 1.08rem;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  background: none;
  outline: none;
  transition: color 0.15s, border-bottom 0.15s;
  cursor: pointer;
  position: relative;
  border: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.titlebar-link:focus-visible {
  outline: 2px solid #764ba2;
  outline-offset: 2px;
  border-radius: 3px;
}

.titlebar-link:hover,
.titlebar-link.active {
  color: #667eea;
  border-bottom: 2px solid #667eea;
}

.titlebar .lang-switcher {
  padding: 0;
  margin: 0;
  max-width: none;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 10;
}

@media (max-width: 900px) {
  .titlebar {
    flex-direction: column;
    height: auto;
    padding: 0 10px;
    gap: 6px;
    width: 100vw;
    min-width: 0;
    overflow-x: auto;
  }
  .titlebar-center {
    height: auto;
    margin: 8px 0;
  }
  .titlebar-nav {
    gap: 18px;
    margin-bottom: 6px;
    height: auto;
  }
  .titlebar-logo {
    font-size: 1.1rem;
    height: 48px;
  }
  .titlebar-logo img {
    height: 28px;
    margin-right: 6px;
  }
  .titlebar .lang-switcher {
    height: 48px;
  }
  .landing-container {
    max-width: 100vw;
    overflow-x: hidden;
  }
}

.pilot-info {
  background: #fffbe9;
  border-top: 2px solid #ffe6a7;
  border-bottom: 2px solid #ffe6a7;
  padding: 48px 0 40px 0;
  margin: 0 0 36px 0;
  display: flex;
  justify-content: center;
}

.pilot-info-inner {
  max-width: 700px;
  margin: 0 16px;
  background: #fffde7;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(255, 230, 167, 0.13);
  padding: 36px 28px 32px 28px;
  text-align: center;
}

.pilot-info h2 {
  color: #764ba2;
  font-size: 2rem;
  margin-bottom: 18px;
    font-family: 'Permanent Marker', cursive;
    font-weight: 400;
}

[dir="rtl"] .pilot-info h2 {
  font-family: "Fredoka", sans-serif;
  font-optical-sizing: auto;
}

.pilot-info h3 {
  color: #667eea;
  font-size: 1.2rem;
  margin-top: 28px;
  margin-bottom: 10px;
    font-weight: 500;
    
}

.pilot-info p {
  font-size: 1.13rem;
  color: #333;
  margin-bottom: 18px;
}

.pilot-info ul {
  list-style: disc inside;
  color: #444;
  margin: 0 0 12px 0;
  padding: 0;
  text-align: left;
  display: inline-block;
}

.pilot-info li {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

@media (max-width: 700px) {
  .pilot-info-inner {
    padding: 22px 8px 18px 8px;
  }
}

/* Fix responsive styles for feature sections */
@media (max-width: 700px) {
  .hero {
    padding: 36px 10px 24px 10px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .mockup-image {
    max-width: 95%;
  }
  .feature-section {
    flex-direction: column !important;
    gap: 18px;
    padding: 22px 12px;
    margin: 0 auto 24px auto;
    width: calc(100% - 24px);
    max-width: 100%;
  }
  .feature-screenshot-container {
    min-width: auto;
    max-width: 100%;
    width: 100%;
  }
  .feature-screenshot {
    max-width: 100%;
    min-width: auto;
    min-height: 120px;
  }
  .feature-content h2 {
    font-size: 1.5rem;
    text-align: center;
  }
  .feature-subtitle {
    font-size: 1rem;
    text-align: center;
  }
  .feature-content p {
    font-size: 1rem;
    text-align: center;
  }
  .faq {
    padding: 24px 12px;
  }
  .faq-list {
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
  }
  .pilot-info {
    padding: 24px 12px 18px 12px;
  }
  .pilot-info-inner {
    padding: 24px 16px 18px 16px;
  }
  .pilot-info h2 {
    font-size: 1.5rem;
  }
  .pilot-info p {
    font-size: 1rem;
  }
  .pilot-info li {
    font-size: 0.95rem;
  }
  .cta {
    padding: 28px 12px 22px 12px;
  }
  .cta h2 {
    font-size: 1.5rem;
  }
  .register-btn.large {
    font-size: 1rem;
    padding: 12px 32px;
  }
}

/* Extra small devices */
@media (max-width: 500px) {
  .titlebar {
    flex-direction: column;
    padding: 4px 10px;
    gap: 2px;
  }
  .titlebar-logo {
    font-size: 1rem;
    height: 40px;
  }
  .titlebar-logo img {
    height: 24px;
    margin-right: 4px;
  }
  .titlebar-center {
    margin: 4px 0;
  }
  .titlebar-nav {
    gap: 10px;
    margin-bottom: 2px;
    overflow-x: auto;
    width: 100%;
    padding: 0 4px;
    justify-content: center;
  }
  .titlebar-link {
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 6px 4px;
  }
  .carousel-arrow {
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
  }
  .carousel-arrow.left {
    left: 4px;
  }
  .carousel-arrow.right {
    right: 4px;
  }
  .feature-content h2 {
    font-size: 1.3rem;
  }
  .feature-content p {
    font-size: 0.95rem;
  }
  .feature-section {
    padding: 16px 10px;
    border-radius: 12px;
  }
  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .register-btn {
    font-size: 0.95rem;
    padding: 10px 24px;
  }
  
  /* Fix RTL for mobile */
  [dir="rtl"] .feature-section {
    flex-direction: column !important;
  }
}

/* Add styles for the about and contact sections and simple form controls so they match the current look-and-feel. */
.about,
.contact {
  padding: 40px 20px;
  background: transparent;
}

.contact .feature-detail,
.about .feature-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 22px;
}

/* Contact form styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  align-items: stretch;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e6e6ef;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  box-shadow: none;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #667eea;
  box-shadow: 0 4px 18px rgba(102,126,234,0.08);
}

.contact-info a {
  color: #667eea;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Make contact form responsive */
@media (max-width: 700px) {
  .contact-form {
    gap: 10px;
  }
  .contact .feature-detail,
  .about .feature-detail {
    padding: 18px 12px;
  }
}

/* Add these missing animation definitions and make sure they're not duplicate or broken */

/* Properly define the fadeInUp animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fix the animate-fade transitions */
.animate-fade {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(.39,.575,.565,1), transform 0.7s cubic-bezier(.39,.575,.565,1);
}

.animate-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Add the hero background animation */
.hero-background img {
  animation: heroZoom 18s ease-in-out infinite alternate;
  will-change: transform;
  transition: opacity 0.5s;
  max-width: 100%;
  height: auto;
}

@keyframes heroZoom {
  from {
    transform: scale(1) rotate(-1deg);
    opacity: 0.85;
  }
  to {
    transform: scale(1.08) rotate(1deg);
    opacity: 1;
  }
}

/* Carousel image animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.feature-screenshot.fade-in {
  animation: fadeIn 0.35s forwards;
}

.feature-screenshot.fade-out {
  animation: fadeOut 0.2s forwards;
}

/* Button hover animation */
.register-btn,
.titlebar-link,
.carousel-arrow {
  transition: transform 0.18s cubic-bezier(.39,.575,.565,1), background 0.2s, color 0.2s, box-shadow 0.2s;
}

.register-btn:hover,
.titlebar-link:hover,
.carousel-arrow:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 4px 18px rgba(102,126,234,0.13);
}

/* Add the pilot pulse animation */
.pilot-info-inner {
  animation: pilotPulse 4s cubic-bezier(.39,.575,.565,1) infinite alternate;
}

@keyframes pilotPulse {
  from { box-shadow: 0 2px 12px rgba(255, 230, 167, 0.13); }
  to { box-shadow: 0 8px 32px rgba(255, 230, 167, 0.22); }
}

/* Feature section hover effect */
.feature-section {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(102,126,234,0.2);
}

/* Define the desktop-only class */
.desktop-only {
  display: inline;
}

@media (max-width: 700px) {
  .desktop-only {
    display: none;
  }
}

/* RTL support */
[dir="rtl"] {
  direction: rtl;
}
[dir="rtl"] .feature-section {
  flex-direction: row-reverse;
}
[dir="rtl"] .feature-section.reverse {
  flex-direction: row;
}
[dir="rtl"] .faq-question {
  text-align: right;  
}
[dir="rtl"] .faq-arrow {
  margin-left: 0;
  margin-right: 12px;
}
[dir="rtl"] .feature-content h2,
[dir="rtl"] .feature-content p {
  text-align: right;
}
[dir="rtl"] .how-step-title,
[dir="rtl"] .how-step-desc {
  text-align: right;
}
[dir="rtl"] .testimonial-card {
  text-align: right;
}

[dir="rtl"] .lang-dropdown-list {
    text-align: right;
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-dropdown.open .lang-dropdown-list {
    right: auto;
    left: 36px;
}

@media (max-width: 900px) {
    [dir="rtl"] .lang-dropdown.open .lang-dropdown-list {
        left: 10px;
        right: auto;
    }
}

[dir="rtl"] .lang-dropdown-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .lang-flag-img {
    margin-left: 6px;
    margin-right: 0;
}

[dir="rtl"] .pilot-info ul {
    text-align: right;
}
  
@media (max-width: 700px) {
  .pilot-info-inner {
    padding: 22px 8px 18px 8px;
  }
}

/* Add sliding animations for scrolling */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Classes for slide animations */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(.39,.575,.565,1), transform 0.8s cubic-bezier(.39,.575,.565,1);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(.39,.575,.565,1), transform 0.8s cubic-bezier(.39,.575,.565,1);
}

.slide-in-left.visible,
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Apply slide animations to specific elements */
.feature-section:nth-child(odd) .feature-screenshot-container {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(.39,.575,.565,1), transform 0.8s cubic-bezier(.39,.575,.565,1);
}

.feature-section:nth-child(odd) .feature-content {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(.39,.575,.565,1), transform 0.8s cubic-bezier(.39,.575,.565,1);
}

.feature-section:nth-child(even) .feature-screenshot-container {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(.39,.575,.565,1), transform 0.8s cubic-bezier(.39,.575,.565,1);
}

.feature-section:nth-child(even) .feature-content {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(.39,.575,.565,1), transform 0.8s cubic-bezier(.39,.575,.565,1);
}

.feature-section.visible .feature-screenshot-container,
.feature-section.visible .feature-content {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered transitions for child elements */
.pilot-info-inner {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.39,.575,.565,1), transform 0.8s cubic-bezier(.39,.575,.565,1);
}

.pilot-info-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternate fade in directions for FAQ items */
.faq-item {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s cubic-bezier(.39,.575,.565,1), transform 0.5s cubic-bezier(.39,.575,.565,1), box-shadow 0.2s;
}

.faq-item:nth-child(even) {
  transform: translateX(30px);
}

.faq-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Disable animations for mobile to improve performance */
@media (max-width: 700px) {
  .feature-section, 
  .feature-section .feature-screenshot-container,
  .feature-section .feature-content,
  .faq-item,
  .pilot-info-inner {
    transition: box-shadow 0.2s;
    opacity: 1;
    transform: none;
  }
}

/* Fixed titlebar styles when user scrolls down */
.titlebar.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98); /* slight translucency */
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 34px rgba(102,126,234,0.18);
  transition: box-shadow 0.18s, background 0.18s, transform 0.18s;
}

/* Placeholder element inserted when titlebar is fixed to avoid layout jump */
.titlebar-placeholder {
  width: 100%;
  display: block;
}

/* Titlebar icons */
.titlebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  color: inherit; /* inherits link color so hover/active color applies */
  flex-shrink: 0;
}

/* Ensure icons remain on the left in LTR, right in RTL */
[dir="rtl"] .titlebar-icon {
  margin-right: 0;
  margin-left: 10px;
}

/* Slight color tone to match default titlebar link color */
.titlebar-link .titlebar-icon svg {
  stroke: currentColor;
  fill: none;
  display: block;
}

/* Always show sections on static HTML (no JS to add .visible) */
.feature-section,
.pilot-info-inner,
.faq-item {
  opacity: 1 !important;
  transform: none !important;
}

/* Always show feature-section children on static HTML (no JS to add .visible) */
.feature-section .feature-screenshot-container,
.feature-section .feature-content {
  opacity: 1 !important;
  transform: none !important;
}

/* Fade-in and slide-up animation for main sections */
@keyframes fadeInUpStatic {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animate feature sections, pilot, faq, cta, about, contact on static HTML */
.feature-section,
.pilot-info-inner,
.faq,
.cta,
.about,
.contact {
  animation: fadeInUpStatic 1s cubic-bezier(.39,.575,.565,1) both;
}

/* Optional: stagger feature sections for a nice effect */
.feature-section:nth-child(1) { animation-delay: 0.1s; }
.feature-section:nth-child(2) { animation-delay: 0.2s; }
.feature-section:nth-child(3) { animation-delay: 0.3s; }
.feature-section:nth-child(4) { animation-delay: 0.4s; }
.feature-section:nth-child(5) { animation-delay: 0.5s; }

/* Scroll-triggered fade-in-up animation using :has(:target) for anchor navigation */
@keyframes fadeInUpScroll {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animate section when targeted by anchor (e.g. #features, #faq, etc.) */
section:target,
div#features:target {
  animation: fadeInUpScroll 0.9s cubic-bezier(.39,.575,.565,1) both;
  z-index: 1;
  position: relative;
}

/* Optionally, animate all sections as they scroll into view (modern browsers only) */
@media (hover: none), (pointer: coarse) {
  section,
  .feature-section {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* For browsers supporting :has(), animate when section is in viewport */
@supports selector(:has(h1)) {
  .feature-section,
  .pilot-info-inner,
  .faq,
  .cta,
  .about,
  .contact {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.39,.575,.565,1), transform 0.7s cubic-bezier(.39,.575,.565,1);
  }
  .feature-section:has(img[loading="lazy"]:not([src=""])),
  .pilot-info-inner:has(h2),
  .faq:has(h2),
  .cta:has(h2),
  .about:has(h2),
  .contact:has(h2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
  }
}

.feature-section,
.feature-section.alt {  
  opacity: 1 !important; /* Force fully opaque, override any other rules */
}