/* Mobile Navigation Menu Styles */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 10px;
  z-index: 1000;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--black_900);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Default state for larger screens */
@media screen and (min-width: 1050px) {
  .header__menu-list {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile menu styles */
@media screen and (max-width: 1049px) {
  .header__top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row !important; /* Force row layout */
    width: 100%;
  }
  
  .header__logo {
    max-height: 35px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .header__navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white_a700);
    z-index: 999;
    transition: right 0.3s ease;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .header__navigation.active {
    right: 0;
  }
  
  .header__menu {
    width: 100%;
  }
  
  .header__menu-list {
    flex-direction: column;
    width: 100%;
  }
  
  .header__menu-list li {
    width: 100%;
    margin: 10px 0;
  }
  
  .header__menu-item--about {
    padding: 10px 0;
    display: block;
    width: 100%;
  }
  
  .header__button--join {
    margin-top: 20px;
    width: 100%;
  }
  
  /* Overlay when menu is active */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }
  
  .menu-overlay.active {
    display: block;
  }
}
/* Responsive Image and Layout Adjustments */

/* Hero section responsive adjustments */
@media screen and (max-width: 1049px) {
  .stack__image--cylinder,
  .image { /* This targets the half_torus image */
    display: none !important;
  }
  
  .hero-content {
    width: 100%;
    padding: 40px 20px;
  }
  
  .hero-content__title {
    line-height: 1.3;
    font-size: 42px;
  }
  
  .stack {
    height: auto;
    margin-left: 0;
    width: 100%;
  }
  
  .stack__image--visual {
    position: relative;
    width: 100%;
    height: auto;
  }
}

/* Feature section responsive adjustments */
@media screen and (max-width: 1049px) {
  .columnhalftorus {
    margin-top: 0;
  }
  
  .columntorusone {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  .rowtorusone_one {
    position: relative;
    padding: 30px 20px;
  }
  
  /* Hide the half_torus and pyramid images */
  .pyramidone_one, .torusone_one,
  .feature-decorative-image {
    display: none !important;
  }
  
  /* Center the content */
  .section__footer-list {
    display: flex;
    flex-direction: column;
    align-items: left;
    width: 100%;
  }
  
  .agent-builder-ui {
    width: 100%;
    text-align: left;
  }
  
  .agent-builder-ui__column {
    align-items: left;
  }
  
  .section__product-image {
    max-width: 90%;
    margin: 30px auto;
    position: relative;
    z-index: 2;
  }

  .torusone_one {
    height: 180px;
    margin-bottom: 30px;
  }
}

/* Newsletter section responsive adjustments */
@media screen and (max-width: 1049px) {
  .image-1 { /* Emoji star image */
    display: none !important;
  }
  
  .newsletter-section__image { /* Helix image */
    display: none !important;
  }
  
  .row_one {
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
  }
  
  .newsletter-section {
    width: 100%;
    align-items: center;
  }
  
  .newsletter-section__column {
    width: 100%;
    text-align: center;
  }
}

.footer-dropdown__icon {
  display: none; /* Hide icons by default on desktop */
}

/* Footer section dropdown adjustments */
@media screen and (max-width: 1049px) {
  .content-section__row--product-info {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .footer-dropdown {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .footer-dropdown__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
  }
  
  .footer-dropdown__icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .footer-dropdown__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .footer-dropdown.active .footer-dropdown__icon {
    transform: rotate(180deg);
  }
  
  .footer-dropdown.active .footer-dropdown__content {
    max-height: 200px; /* Adjust based on content */
    padding-bottom: 15px;
  }
  
  .content-section__column--main,
  .content-section__column--company {
    width: 100%;
    margin: 0;
  }
  
  .content-section__column--main a,
  .content-section__column--company a {
    padding: 8px 0;
    display: block;
  }
}