/* =====================================================
   Alienweb — Subpage shared stylesheet
   Space/alien themed, dark background, green accents
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@400;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #0c0e1a;
  color: #f2f2f2;
  font-family: 'DynaPuff', system-ui, sans-serif;
  line-height: 1.7;
}

.parallax-bg, .parallax-bg-aszf {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  background: url('alienweb_szolgaltatasok_bg_2.png') top center / 100% auto no-repeat;
  z-index: -1;
  will-change: transform;
  pointer-events: none;
}

body.is-mobile .parallax-bg, body.is-mobile .parallax-bg-aszf {
  aspect-ratio: 1 / 3.15;
  background: url('alienweb_szolgaltatasok_bg_mobil.png') top center / 100% auto no-repeat;
  z-index: -1;
  will-change: transform;
}

#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%
  );
}

#site-header {
  opacity: 1;
  pointer-events: auto;
  transition: padding 0.3s ease, background 0.3s ease;
}

#site-header.is-scrolled {
  padding: 0.75rem 2.5rem;
  background: rgba(0, 0, 0, 0.7);
}

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

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

/* --- 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);
}

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

/* 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.2rem 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);
}


body.is-mobile header .jogok {
  display: none;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  /* --- Header mobile --- */
  #subpage-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.1rem 0.7rem 0rem 0.7rem;
    font-size: 0.85rem;
  }

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

/* --- Main content wrapper --- */
.subpage-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 9rem 3rem 4rem;
}

/* --- Hero --- */
.subpage-hero {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(124, 255, 138, 0.15);
  /* Scroll-down entrance animation */
  opacity: 0;
  transform: translateY(-15px);
  animation: heroSlideIn 0.8s ease 0.3s forwards;
}

@keyframes heroSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subpage-hero h1 {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.7rem;
}

.accent {
  color: #7cff8a;
  text-shadow: 0 0 20px rgba(124, 255, 138, 0.4);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(242, 242, 242, 0.75);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
}

/* --- Service blocks --- */
.services-detail {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.service-block {
  position: relative;
  padding: 2rem 2.5rem;
  max-width: 85%;
  transition: border-color 0.3s ease, opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
}

/* Páratlan: bal oldalon, jobbról csúszik be */
.service-block:nth-child(odd) {
  margin-right: auto;
  margin-left: 0;
  border-left: 3px solid rgba(124, 255, 138, 0.35);
  border-right: none;
  text-align: left;
  transform: translateX(-100px);
}

.service-block:nth-child(odd):hover {
  border-left-color: #7cff8a;
}

/* Páros: jobb oldalon, balról csúszik be */
.service-block:nth-child(even) {
  margin-left: auto;
  margin-right: 0;
  border-right: 3px solid rgba(124, 255, 138, 0.35);
  border-left: none;
  text-align: right;
  transform: translateX(100px);
}

/* body.is-mobile .service-block:nth-child(even), body.is-mobile .service-block:nth-child(odd) {
  transform: translateX(0);
} */

.service-block:nth-child(even):hover {
  border-right-color: #7cff8a;
}

/* Amikor láthatóvá válik (JS hozzáadja) */
.service-block.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.service-number {
  position: absolute;
  top: -0.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(124, 255, 138, 0.12);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.service-block:nth-child(odd) .service-number {
  left: -2.5rem;
  right: auto;
}

.service-block:nth-child(even) .service-number {
  right: -2.5rem;
  left: auto;
}

.service-block h2 {
  font-size: 1.75rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 1rem;
}

.service-block p {
  color: rgba(242, 242, 242, 0.85);
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  font-weight: 400;
  line-height: 1.8;
}

.service-block p:last-child {
  margin-bottom: 0;
}

.faq-section {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 2.5rem 2rem 3rem;
  margin-bottom: 4rem;
  border-top: 1px solid rgba(124, 255, 138, 0.15);
}

.subpage-cta {
  background: rgba(0, 0, 0, 0.7);
}

.faq-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
  font-weight: 400;
}

.faq-item {
  border: 1px solid rgba(124, 255, 138, 0.2);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: rgba(124, 255, 138, 0.03);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(124, 255, 138, 0.4);
}

.faq-item[open] {
  border-color: rgba(124, 255, 138, 0.5);
  background: rgba(124, 255, 138, 0.06);
}

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f2f2f2;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: #7cff8a;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: rgba(242, 242, 242, 0.8);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
}

/* --- CTA section --- */
.subpage-cta {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid rgba(124, 255, 138, 0.25);
  border-radius: 16px;
  margin-bottom: 3rem;
}

.subpage-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-weight: 400;
}

.subpage-cta p {
  color: rgba(242, 242, 242, 0.75);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.cta-button {
  position: relative;
  left: calc(50% - 125px);
  height: 60px;
  width:250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  border: 2px solid rgb(150,210,74);
  outline: none;
  color: white;
  font-size: 1.3rem;
  overflow: hidden;
  transition: 0.4s;
  text-decoration: none;
  z-index: 2;
}
.cta-button::before {
  content: '';
  position: absolute;
  left: -250px;
  top: 0;
  height: 60px;
  width: 250px;
  background: rgb(150,210,74);
  transform: skewX(20deg);
  opacity: 0;
  transition: 0.4s;
  z-index: -1;
}
.cta-button:hover::before {
  opacity: 1;
  left:0;
}
.cta-button:hover {
  color: black;
  background: transparent;
}

/* --- Footer --- */
.subpage-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(124, 255, 138, 0.1);
  color: rgba(242, 242, 242, 0.5);
  font-size: 0.85rem;
}

.subpage-footer a {
  display: none;
}
body.is-mobile .subpage-footer a {
  display: flex;
  text-decoration: none;
  color: rgba(242, 242, 242, 0.5);
  width: 100%;
  justify-content: center;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .service-block:nth-child(even) {
    text-align: left;
    border-right: none;
    border-left: 3px solid rgba(124, 255, 138, 0.35);
  }
  .service-block:nth-child(even):hover {
    border-left-color: #7cff8a;
  }
  .service-block:nth-child(even) .service-number {
    left: -1.5rem;
    right: auto;
  }
  .service-block:nth-child(odd) .service-number { left: -1.5rem; font-size: 2rem; }
}

/* --- Egyedi IT igény page --- */
.egyedi-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 4rem);
}

.egyedi-content {
  text-align: center;
  max-width: 1300px;
  margin: 0 auto 4rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  padding: 3rem 3.5rem;
  border: 1px solid rgba(124, 255, 138, 0.15);
  opacity: 0;
  transform: translateY(30px);
  animation: egyediSlideIn 0.8s ease 0.6s forwards;
}

@keyframes egyediSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.egyedi-content p {
  color: rgba(242, 242, 242, 0.88);
  font-size: 1.15rem;
  line-height: 1.9;
  font-weight: 400;
}

@media (max-width: 720px) {
  .egyedi-content {
    padding: 2rem 1.5rem;
  }
  .egyedi-content p {
    font-size: 1rem;
  }
}

.subpage-content#aszf {
  padding: 12rem 3rem 4rem;
}

/* --- ÁSZF & Adatvédelem page --- */
.legal-section {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  padding: 3rem 3rem 2rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(124, 255, 138, 0.15);
}
 
.legal-section h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 400;
}
 
.legal-updated {
  text-align: center;
  color: rgba(242, 242, 242, 0.4);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
 
.legal-block {
  margin-bottom: 2rem;
}
 
.legal-block:last-child {
  margin-bottom: 0;
}
 
.legal-block h3 {
  font-size: 1.15rem;
  font-weight: 400;
  color: #7cff8a;
  margin-bottom: 0.6rem;
}
 
.legal-block p {
  color: rgba(242, 242, 242, 0.85);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 400;
}
 
@media (max-width: 720px) {
  .legal-section {
    padding: 2rem 1.5rem 1.5rem;
  }
  .legal-section h2 {
    font-size: 1.5rem;
  }
  .legal-block h3 {
    font-size: 1.05rem;
  }
  .legal-block p {
    font-size: 0.93rem;
  }
}