/* =====================================================
   Alienweb — Mobile responsive overrides
   Overrides ALL absolute positioning to vertical stacking.
   Link AFTER styles.css
   ===================================================== */

@media (max-width: 768px) {

body.is-mobile {
  overflow: auto !important;
}

body.is-mobile {
  background-position: center center;
  background-size: cover;
  min-height: 100vh !important;
}

html {
  overflow: auto !important;
  height: auto !important;
}

  /* --- Body & HTML: allow scrolling --- */
  body.is-mobile,
  body.is-mobile html {
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* --- Header mobile --- */
  #site-header {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
    display: flex;
    justify-content: center;
    background: rgba(0,0,0,0.6);
  }

  .header-logo img {
    height: 42px;
  }

  .header-nav {
    gap: 0.8rem;
    margin-left: 0;
    margin-top: 0;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.3rem 0.1rem;
  }

  .nav-link:hover::before {
    display: none;
  }

  .nav-link-cta {
    padding: 0.25rem 0.7rem;
    font-size: 0.85rem;
  }

  header .jogok {
    display: none !important;
    width: 0% !important;
  }

  /* --- Videos stay fixed behind content --- */
  body.is-mobile .bg-video,
  body.is-mobile #frame-holder {
    position: fixed;
    z-index: 1;
  }

  /* =========================================================
     PANELS: override fixed to relative, auto height
     ========================================================= */

  body.is-mobile .panel[data-index="1"], body.is-mobile .panel[data-index="2"], body.is-mobile .panel[data-index="3"] {
    position: relative !important;
    display: none;
    inset: auto !important;
    width: 100%;
    height: auto !important;
    min-height: auto;
    overflow: visible;
    flex-direction: column;
    align-items: center;
    padding-top: 85px;
    padding-bottom: 30px;
    z-index: 10;
  }
  body.is-mobile section[data-index="0"] {
    display: flex !important;
    inset: auto !important;
    width: 100%;
    height: auto !important;
    min-height: auto;
    overflow: visible;
    flex-direction: column;
    align-items: center;
    padding-top: 85px;
    padding-bottom: 30px;
    z-index: 10;
  }
  body.is-mobile section[data-index="0"] .content {
    position: absolute;
    top: 31vh;
    height: 38vh;
  }


@media (max-width: 768px) {

  /* Content alapból rejtve */
  body.is-mobile .panel .content,
  body.is-mobile .panel .section-three {
    opacity: 0;
    transform: scale(0.8);
    transition: none;
  }

  /* Transition alatt is rejtve marad */
  body.is-mobile .panel.is-transitioning .content,
  body.is-mobile .panel.is-transitioning .section-three {
    opacity: 0;
    transform: scale(0.8);
  }

  /* Csak ha is-active ÉS a mobile-revealed osztály rajta van */
  body.is-mobile .panel.is-active.mobile-revealed .content,
  body.is-mobile .panel.is-active.mobile-revealed .section-three {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Desktop zoom-in kikapcsolása mobilon */
  body.is-mobile .panel.enter-from-down,
  body.is-mobile .panel.enter-from-up {
    opacity: 0;
    transform: none;
    transition: none;
  }

  body.is-mobile .panel.is-active {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.is-mobile .panel.is-transitioning.mobile-revealed .content,
  body.is-mobile .panel.is-transitioning.mobile-revealed .section-three {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    transition: opacity 0.2s ease !important;
}

}

  body.is-mobile .panel.is-active {
    display: flex;
  }

  /* Panel content: reset to normal flow */
  body.is-mobile .panel > .content,
  body.is-mobile .panel > .section-three {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.25rem;
  }
  
  /* =========================================================
     SECTION 1 — Already in flow, just resize
     ========================================================= */
  body.is-mobile .section-one-logo {
    width: 260px;
    height: auto;
    margin-bottom: 12px;
  }

  body.is-mobile .section-one-slogen {
    font-size: 1.1rem;
    margin-bottom: 25px;
    padding: 0 0.5rem;
    text-align: center;
  }

  body.is-mobile .section-one-btn {
    width: 170px;
    height: 46px;
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  body.is-mobile .section-one-scroll-info {
    font-size: 1rem;
  }

  body.is-mobile .section-one-scroll-info img {
    width: 28px;
    height: 28px;
  }

  body.is-mobile .mobile-section-title {
    display: block;
    font-size: 1.8rem;
    color: white;
    font-weight: 400;
    margin-bottom: 25px;
    text-align: center;
    width: 100%;
  }

  body.is-mobile section[data-index="3"] .mobile-section-title {
    margin-bottom: 32px;
  }


  /* =========================================================
     SECTION 2 — Left & Right boxes stacked vertically
     ========================================================= */
  body.is-mobile .section-two-left {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 1.5rem;
    padding: 20px 18px 15px;
    border-radius: 20px;
  }

  body.is-mobile .section-two-left .title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  body.is-mobile .section-two-left .content {
    font-size: 1.05rem;
  }

  body.is-mobile .section-two-left ul {
    font-size: 1rem;
    padding-left: 22px;
  }

  body.is-mobile .section-two-left .content.second {
    font-size: 1.05rem;
  }

  body.is-mobile .stats-row {
    flex-direction: row;
    gap: 0.75rem;
    min-height: 80px;
    padding-top: 1rem;
  }

  body.is-mobile .stat-number {
    font-size: 2.05rem !important;
  }

  body.is-mobile .stat-label {
    font-size: 0.75rem;
  }

  body.is-mobile .section-two-right {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    padding: 20px 0 25px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
  }

  body.is-mobile .section-two-right .title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  body.is-mobile .review-viewport {
    width: 100%;
  }

  body.is-mobile .review-card {
    width: 100%;
    height: auto;
    min-height: 200px;
    padding: 1rem;
    gap: 15px;
  }

  body.is-mobile .review-nav {
    width: 36px;
    height: 36px;
  }

  body.is-mobile .review-nav img {
    width: 30px;
    height: 30px;
  }

  body.is-mobile .review-text {
    font-size: 0.95rem;
  }

  /* Scroll info: relative, not fixed */
  body.is-mobile .section-two-scroll-info,
  body.is-mobile .section-three-scroll-info {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    margin-top: 1.5rem;
  }

  body.is-mobile .section-two-scroll-info p,
  body.is-mobile .section-three-scroll-info p {
    font-size: 1rem;
  }

  body.is-mobile .section-two-scroll-info img,
  body.is-mobile .section-three-scroll-info img {
    width: 32px;
    height: 32px;
  }

  /* =========================================================
     SECTION 3 — Cards stacked vertically
     ========================================================= */
  body.is-mobile .section-three.content .title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  body.is-mobile .section-three-card-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
  }

  body.is-mobile .section-three-card {
    width: 100%;
    max-width: 340px;
    height: 420px;
    margin: 20px 0;
  }

  body.is-mobile .section-three-card::before,
  body.is-mobile .section-three-card::after {
    left: 30px;
    width: calc(100% - 60px);
  }

  body.is-mobile .section-three-card .content {
    padding: 40px 25px;
    transition: 0.35s !important;
  }

  body.is-mobile .section-three-card:hover .content {
    left: 0;
    transform: scale(1.05);
    padding: 60px 25px;
  }

  body.is-mobile .section-three-card .content .title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  body.is-mobile .section-three-card .content-content {
    font-size: 1.1rem;
    line-height: 1.4em;
  }

  body.is-mobile .section-three-card .content .anchor-container {
    font-size: 1rem;
  }

  /* =========================================================
     SECTION 4 — Form & contact info stacked
     ========================================================= */
  body.is-mobile .section-four-left {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 1.5rem;
    padding: 25px 20px;
    border-radius: 20px;
  }

  body.is-mobile .section-four-left .title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  body.is-mobile .section-four-left input {
    height: 50px;
    font-size: 16px; /* prevents iOS auto-zoom */
    border-radius: 30px;
    padding: 0 16px;
    margin-bottom: 12px;
  }

  body.is-mobile .section-four-left textarea {
    height: 160px;
    font-size: 16px;
    padding: 15px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
  }

  body.is-mobile .section-four-left button {
    width: 170px;
    height: 50px;
    font-size: 1.15rem;
  }

  body.is-mobile .section-four-right {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 1.5rem;
    padding: 20px 25px 25px;
    border-radius: 20px;
  }

  body.is-mobile .section-four-right img {
    width: 55px;
    height: 55px;
    margin-bottom: 15px;
  }

  body.is-mobile .email-info,
  body.is-mobile .phone-info {
    font-size: 1.1rem;
  }

  body.is-mobile .contact-info-text {
    font-size: 1.1rem;
  }

  body.is-mobile .jog-info {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    text-align: center;
  }

  /* =========================================================
     Section intro animations: simplified for mobile
     ========================================================= */
  body.is-mobile .section-two-left,
  body.is-mobile .section-two-right {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  body.is-mobile .section-two-left.is-visible,
  body.is-mobile .section-two-right.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Panel enter/exit: simpler on mobile */
  body.is-mobile .panel.enter-from-down,
  body.is-mobile .panel.enter-from-up {
    position: relative !important;
    inset: auto !important;
  }
}
