* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'DynaPuff', cursive;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: url('alienweb_home_basic_bg.png') center center / cover no-repeat #7e84a5;
  color: #fff;
  min-height: 100vh !important;
}

button {
  font-family: 'DynaPuff', cursive;
}

@keyframes upAndDownAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(12px);
    }
    100% {
        transform: translateY(0);
    }
}

/* --- Loading overlay --- */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: #070b20;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

#loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  width: 65px;
  height: 65px;
  animation:
    loading-rotate 2s cubic-bezier(0.9, 0, 0.1, 1) infinite,
    loading-scale  2s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes loading-rotate {
  0%   { rotate: 0deg; }
  80%  { rotate: 360deg; }
  100% { rotate: 360deg; }
}

@keyframes loading-scale {
  0%   { scale: 1; }
  30%  { scale: 1.15; }
  80%  { scale: 1; }
  100% { scale: 1; }
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;

  /* subtle cosmic gradient fade so header blends with the scene */
  background: linear-gradient(
    180deg,
    rgba(20, 8, 40, 0.75) 0%,
    rgba(20, 8, 40, 0.35) 60%,
    rgba(20, 8, 40, 0) 100%
  );
}

body.header-visible #site-header {
  opacity: 1;
  pointer-events: auto;
}

/* --- Logo --- */
.header-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(120, 255, 140, 0.0));
}

.header-logo img {
  height: 70px;
  width: auto;
  display: block;
}

.header-logo:hover {
  transform: rotate(-10deg) scale(1.05);
  filter: drop-shadow(0 0 12px rgba(120, 255, 140, 0.6));
}

/* --- Nav --- */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: 0.65rem;
  margin-top: 6px;
  
}

.nav-link {
  position: relative;
  display: inline-block;
  color: #f2f2f2;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.2rem;
  overflow: hidden;
}

/* The glitch/duplicate-letter effect on hover: a green ghost behind the text */
.nav-link::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.4rem 0.2rem;
  color: #7cff8a;
  opacity: 0;
  transform: translate(0, 0);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.nav-link:hover::before {
  opacity: 0.85;
  transform: translate(2px, -2px);
}

/* Animated underline */
.nav-link-inner {
  position: relative;
  display: inline-block;
}

.nav-link-inner::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #7cff8a, #b4ffa0);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover .nav-link-inner::after {
  transform: scaleX(1);
}

/* CTA variant: Kapcsolat gets a subtle outlined pill */
.nav-link-cta {
  padding: 0.55rem 1.15rem;
  border: 2.5px solid rgba(124, 255, 138, 0.5);
  border-radius: 999px;
  transition: border-color 0.3s ease, background 0.3s ease,
              box-shadow 0.3s ease;
}

.nav-link-cta:hover {
  border-color: #7cff8a;
  background: rgba(124, 255, 138, 0.1);
  box-shadow: 0 0 20px rgba(124, 255, 138, 0.25);
}

.nav-link-cta .nav-link-inner::after {
  display: none; /* no underline on the pill */
}

.nav-link-cta::before {
  display: none; /* no glitch on the pill, it has its own glow */
}

header .jogok {
    position: absolute;
    right: 2.5rem;
    color: grey;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
}
header .jogok:hover {
  color: rgb(180,180,180);
}

/* --- Responsive --- */
@media (max-width: 720px) {
  #site-header {
    padding: 0.9rem 1.25rem;
    gap: 1rem;
  }
  .header-logo img { height: 40px; }
  .header-nav { gap: 1.1rem; margin-left: 0; }
  .nav-link { font-size: 0.95rem; }
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.bg-video.is-visible {
  opacity: 1;
}

.panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform-origin: center center;
}

/* Belépő kiindulóállapot — irány szerint */
.panel.enter-from-down {
  visibility: visible;
  opacity: 0;
  transform: scale(0.7) translateX(80px);
  transition: none;
}

.panel.enter-from-up {
  visibility: visible;
  opacity: 0;
  transform: scale(0.7) translateX(-80px);
  transition: none;
}

/* Aktív állapot — a belépő animáció célja */
.panel.is-active {
  opacity: 1;
  transform: scale(1) translateX(0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.7s ease,
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When a transition starts, the active panel is still in the DOM but its
   content is hidden behind the video; we also fade the content so nothing
   peeks through if the video has any transparency. */
.panel .content {
  text-align: center;
  transition: opacity 0.4s ease;
  color: white;
}

.panel.is-transitioning .content {
  opacity: 0;
}

.section-one-logo {
    width: 400px;
    height: 92.68px;
    margin-bottom: 15px;
}
.section-one-slogen {
    font-size: 1.5em;
    margin-bottom: 35px;
}
.section-one-btn {
    width: 195px;
    height: 52px;
    background: rgb(150,210,74);
    color: black;
    font-size: 1.25em;
    display: inline-block;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    transition: 0.5s ease;
    position: relative;
    margin-bottom: 40px;
    
}
.section-one-btn:hover {
    background: rgb(180,240,100);
}
.section-one-scroll-info {
    font-size: 1.3em;
    color: rgb(128,128,128);
    animation: upAndDownAnimation infinite 3s;
}
.section-one-scroll-info p { 
    margin-bottom: 6px;
}
.section-one-scroll-info img {
    width: 36px;
    height: 36px;
}

.mobile-section-title {
  display: none;
}

/* Section 1 intro animations: everything starts invisible. */
.section-one-logo,
.section-one-btn,
.section-one-scroll-info {
  opacity: 0;
  transition: opacity 0.75s ease;
}

.section-one-slogen {
  /* The <p> itself stays visible; the per-word spans animate. */
  opacity: 1;
}

.section-one-slogen .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(1em);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* When these classes are added, elements fade in. */
.section-one-logo.is-visible,
.section-one-btn.is-visible,
.section-one-scroll-info.is-visible {
  opacity: 1;
}

.section-one-slogen .word.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-two-left {
    position: absolute;
    left: 60px;
    top: 21vh;
    width: 44%;
    background: rgba(50,50,50,0.35);
    border-radius: 30px;
    border: 3px solid rgb(128,128,128);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 30px 20px 30px;
}
.section-two-left .title {
    font-size: 1.6em;
    color: rgb(150,210,74);
    margin-bottom: 40px;
}
.section-two-left .content {
    font-size: 1.35em;
    color: white;
    text-align: left;
    width: 100%;
}
.rainbow {
    letter-spacing: 0.2px;
}
.rainbow span:nth-child(1) { color: rgb(235, 60, 60); }
.rainbow span:nth-child(2) { color: orange; }
.rainbow span:nth-child(3) { color: rgb(235,235,10); }
.rainbow span:nth-child(4) { color: rgb(50,200,50); }
.rainbow span:nth-child(5) { color: rgb(50, 120, 250); }
.rainbow span:nth-child(6) { color: rgb(180, 0, 180); letter-spacing: 1px; }
.rainbow span:nth-child(7) { color: violet; }

.section-two-left ul {
    text-align: left;
    font-size: 1.3em;
    margin: 7px 0;
    width: 100%;
    padding-left: 30px;
}
.stats-row {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;       /* alul igazodnak, mert a méretük változik */
  gap: 2rem;
  padding-top: 1.5rem;
  min-height: 110px;           /* helyet tartunk a legnagyobb méretnek */
  width: 100%;
}

.stat-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.stat-number {
  /* Alapszín fehér, alap méret — JS-ből íródik felül counting közben */
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
  /* will-change segít a smooth skálázásban */
  will-change: font-size, color;
  transition: none;            /* a JS minden frame-ben frissíti, ne küzdjön vele */
}

.stat-label {
  font-size: 1rem;
  color: rgba(242, 242, 242, 0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

@media (max-width: 720px) {
  .stats-row { gap: 1rem; min-height: 90px; }
  .stat-label { font-size: 0.7rem; }
}

.section-two-right {
    position: absolute;
    right: 60px;
    top: 21vh;
    width: 26%;
    background: rgba(50,50,50,0.35);
    border-radius: 30px;
    border: 3px solid rgb(128,128,128);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
}


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

.section-two-right .title {
    font-size: 1.6em;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}
.section-two-right .content {
    width: 100%;
    display: flex;
}

/* --- Review carousel --- */
.reviews-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 0.75rem;
  margin-top: 1.25rem;
  width: 100%;

}

.review-nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
}
.review-nav:first-child {
    margin-left:8px;
}
.review-nav:last-child {
    margin-right:8px;
}
.review-nav img {
  width: 40px;
  height: 40px;
}

.review-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  width: 340px;
  gap: 30px;
}

.review-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  gap: 30px;
}

.review-card {
  flex: 0 0 100%;
  padding: 0.6rem 1rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 310px;
  border: 2px solid grey;
  border-radius: 30px;
  height: 375px;
  background: rgba(0,0,0,0.3);
  
}
.review-card:nth-child(1) {
    border: 2px solid rgb(50,100,220);
}
.review-card:nth-child(2) {
    border: 2px solid rgb(230,230,20);
}
.review-card:nth-child(3) {
    border: 2px solid rgb(50,220,40);
}
.review-card:nth-child(4) {
    border: 2px solid rgb(210,75,75);
}
.review-card:nth-child(5) {
    border: 2px solid rgb(120,30,240);
}
.review-card:nth-child(6) {
    border: 2px solid rgb(255,255,255);
}
.review-card:nth-child(7) {
    border: 2px solid rgb(240,120,10);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(124, 255, 138, 0.25), rgba(124, 255, 138, 0.05));
  border: 1px solid rgba(124, 255, 138, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex: 0 0 44px;
}

.review-author h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.4px;
    margin-top: 3px;
}

.review-text {
  color: rgba(242, 242, 242, 0.9);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

/* Lapozó pöttyök (opcionális, de jó feedback) */
.review-dots {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.review-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.review-dot.is-active {
  background: #7cff8a;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(124, 255, 138, 0.6);
}

.section-two-scroll-info, .section-three-scroll-info {
    position: fixed;
    bottom: 30px;
    left: calc(50% - 250px);
    width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: upAndDownAnimation 3s infinite;

}
.section-two-scroll-info p, .section-three-scroll-info p { 
    margin-bottom: 6px;
    font-size: 1.3rem;
    color: rgb(255,255,255);
}
.section-two-scroll-info img, .section-three-scroll-info img {
    width: 48px;
    height: 48px;
}
.section-three.content .title {
  font-size: 2.4rem;
  color: white;
  font-weight: 400;
  margin-bottom: 40px;
}
.section-three-card-container {
    display: flex;
    justify-content: space-evenly;
    width: 100vw;
    flex-wrap: wrap;
}
.section-three-card {
    position: relative;
    height: 500px;
    width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 30px;
    transition: 0.5s;
    
}
.section-three-card::before {
    content: '';
    position: absolute;
    top:0;
    left: 50px;
    width: 50%;
    height: 100%;
    background: rgb(255,255,255);
    border-radius: 15px;
    transform: skewX(15deg);
    transition: 0.5s;
}
.section-three-card::after {
    content: '';
    position: absolute;
    top:0;
    left: 50px;
    width: 50%;
    height: 100%;
    background: rgb(255,255,255);
    border-radius: 15px;
    transform: skewX(15deg);
    transition: 0.5s;
}
.section-three-card:hover::before, .section-three-card:hover::after {
    transform: skewX(0deg);
    left: 20px;
    width: calc(100% - 90px);
}
.section-three-card:nth-child(1)::before,
.section-three-card:nth-child(1)::after {
    background: linear-gradient(315deg, rgb(117, 5, 161), rgb(69, 6, 133))
}
.section-three-card:nth-child(2)::before,
.section-three-card:nth-child(2)::after {
    background: linear-gradient(315deg, rgb(150, 210, 74), rgb(100, 150, 40))
}
.section-three-card:nth-child(3)::before,
.section-three-card:nth-child(3)::after {
    background: linear-gradient(315deg, rgb(75, 150, 200), rgb(25, 80, 150))
}

.section-three-card .content {
  position: relative;
  left: 0;
  width: 100%;
  height: calc(100% - 100px);
  padding: 60px 40px;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 20px;
  backdrop-filter: blur(7.5px);
  transition: 0.5s;
  color: rgb(255,255,255);
  z-index: 50;
  font-weight: 400;
  display:flex;
  flex-direction: column;
  align-items: center;
}
.section-three-card:hover .content {
  left: -25px;
  padding: 60px 40px;
}
.section-three-card .content .title {
  font-size: 2em;
  color: rgb(255,255,255);
  margin-bottom: 30px;
}
.section-three-card .content-content {
  font-size: 1.3em;
  color: rgb(255,255,255);
  margin-bottom: 10px;
  line-height: 1.5em;
}
.section-three-card .content .anchor-container {
  position: absolute;
  bottom: 12px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  padding: 10px;
  border-radius: 5px;
  margin-top: 5px;
}
.section-three-card:nth-child(1) .content a {
    color: rgb(200, 0, 223);
}
.section-three-card:nth-child(2) .content a {
    color: rgb(10, 255, 10);
}
.section-three-card:nth-child(3) .content a {
    color: rgb(84, 210, 233);
}
.section-three-card .content a {
  position: relative;
  text-decoration: none;
}
.section-three-card .content a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;            /* a szöveg alatt 4px-re */
  width: 100%;
  height: 2px;
  background: currentColor; /* automatikusan a link színét veszi fel */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-three-card .content a:hover::after {
  transform: scaleX(1);
}

.section-four-left {
  position: absolute;
  top: 150px;
  left: calc(50% - 22.5%);
  width: 45%;
  height: auto;
  background: rgb(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 3px solid white;
  box-shadow: 0 5px 15px black;
  border-radius: 30px;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-four-left .title {
  font-size: 2rem;
  color: white;
  margin-bottom: 30px;
}
.section-four-left input {
  width: 100%;
  height: 60px;
  background: rgba(0,0,0,0.35);
  border: 2px solid rgb(0, 0, 0);
  border-radius: 50px;
  margin-bottom: 15px;
  padding: 0 20px;
  color: white;
  font-size: 1.2rem;
  outline: none;
  transition: 0.3s ease;
}
.section-four-left textarea {
  height: 220px;
  width: 100%;
  resize: none;
  color: white;
  font-size: 1.2rem;
  padding: 20px;
  background: rgba(0,0,0,0.35);
  border: 2px solid rgb(0, 0, 0);
  border-radius: 30px;
  outline: none;
  transition: 0.3s ease;
  margin-bottom: 15px;
}
.section-four-left input::placeholder, .section-four-left textarea::placeholder {
  color: grey;
}
.section-four-left input:focus {
    border: 2px solid rgb(150,210,74);
}
.section-four-left textarea:focus {
    border: 2px solid rgb(150,210,74);
}
.section-four-left button {
  position: relative;
  height: 60px;
  width: 200px;
  border-radius: 50px;
  background: rgba(0,0,0,0.35);
  border: 2px solid rgb(150,210,74);
  outline: none;
  color: white;
  font-size: 1.3rem;
  overflow: hidden;
  transition: 0.4s;
}
.section-four-left button::before {
  content: '';
  position: absolute;
  left: -200px;
  top: 0;
  height: 60px;
  width: 200px;
  background: rgb(150,210,74);
  transform: skewX(20deg);
  opacity: 0;
  transition: 0.4s;
  z-index: -1;
}
.section-four-left button:hover::before {
  opacity: 1;
  left:0;
}
.section-four-left button:hover {
  color: black;
  background: transparent;
}

.section-four-right {
  position: absolute;
  top: 228px;
  right: 80px;
  width: 350px;
  background: rgb(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 3px solid rgb(150,210,74);
  box-shadow: 0 5px 15px black;
  border-radius: 30px;
  padding: 20px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-four-right img {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
}
.contact-info {
  width: 100%;
  text-align: left;
  margin-bottom: 25px;
}
.phone-info {
  margin-bottom: 8px;
}
.email-info, .phone-info {
  font-size: 1.3rem;
  color: grey;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-info-text {
  width: 100%;
  font-size: 1.3rem;
  color: white;
  text-align: center;
}
.jog-info {
  position: absolute;
  bottom: 10px;
  color: grey;
  width: 500px;
  text-align: center;
  left: calc(50% - 250px);
  font-size: 1rem;
}
.jog-info a {
  display: none;
}
body.is-mobile .jog-info a {
  display: flex;
  text-decoration: none;
  color: grey;
  width: 100%;
  justify-content: center;
}
