/* Fő stílusok */
:root {
  --primary-color: #555555;
  --text-color: #333333;        /* sötétszürke */
  --bg-color: #ffffff;
  --accent-color: #888888;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Gombok */
button {
  display: block;
  margin: 0 auto 0 auto;
  width: fit-content;
  max-width: 100%;
  font-size: 1.1rem;
  padding: 25px 35px;
  color: #fff;
  text-shadow: none;
  border: none;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none !important;
  text-align: center;
}

.btn {
  display: block;
  margin: 18px auto 0 auto;
  width: fit-content;
  max-width: 100%;
  font-size: 1.1rem;
  padding: 25px 35px;
  background: linear-gradient(90deg, #f7f7fc 0%, #ededf8 100%);
  color: #232333;
  text-shadow: none;
  border: 1.5px solid #fff7;
  border-radius: 32px;
  font-weight: bold;
  letter-spacing: 0.5px;
  box-shadow:
  0 4px 22px 0 #fff7,
  0 0 0 2.5px #fff9,
  0 2px 12px 0 #8b7cff26;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  animation: btn-blink 2s infinite;
  text-decoration: none !important;
  text-align: center;
}
.btn:hover {
  background: linear-gradient(90deg, #fafdff 0%, #e4e8ff 100%);
  box-shadow:
    0 8px 32px #fff8,
    0 0 0 3px #c5bfff55,
    0 2px 20px #aab0ff40;
  color: #232333;
  animation: none !important;
}
@keyframes btn-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes usp-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  position: relative;
  min-height: 100vh;
  color: var(--text-color);
  background:
    linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
    url("../images/background.jpg") center center / cover no-repeat fixed;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}
body > * {
  position: relative;
  z-index: 1;
}

main {
  flex: 1;
  margin-top: 80px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 0 5px 0;
  background: none;
  color: #fff;
  transition: background 0.3s, color 0.3s;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
}
header, 
header a, 
header .contact-info, 
header .contact-item, 
header .icon,
header .fa-solid,
header nav a {
  color: #fff;
  transition: color 0.3s;
}
header.scrolled {
  background: #fff;
  color: #222;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
header.scrolled, 
header.scrolled a, 
header.scrolled .contact-info, 
header.scrolled .contact-item, 
header.scrolled .icon,
header.scrolled .fa-solid,
header.scrolled nav a {
  color: #222;
}
header .icon,
header .icon path {
  color: #fff !important;
  fill: currentColor !important;
  transition: color 0.3s, fill 0.3s;
}
header.scrolled .icon,
header.scrolled .icon path {
  color: #222 !important;
  fill: currentColor !important;
}
header .logo-black {
  display: none;
}
header .logo-white {
  display: block;
}
header.scrolled .logo-black {
  display: block;
}
header.scrolled .logo-white {
  display: none;
}
header.scrolled .menu-toggle .hamburger-icon {
  color: #222;
  fill: #222;
}

.logo {
  max-height: auto;
  width: auto;
  display: block;
}
.logo-img {
  display: none;
  height: 80px;
  width: auto;
}

.contact-info {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 0 auto;
}
.contact-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
}
.contact-item i {
  margin-right: 8px;   /* az ikon és a szöveg közé térköz */
  vertical-align: middle;
}
.contact-item:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
}
.menu-toggle .hamburger-icon {
  color: #fff;
  fill: #fff;
  transition: color 0.3s, fill 0.3s;
}
menu-open nav {
  display: block;
}
nav {
  display: block;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 500;
}
nav a:hover {
  color: var(--primary-color);
}
/* Űrlapok */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
input, textarea {
  padding: 10px;
  border: 1px solid var(--accent-color);
  border-radius: 5px;
  font-size: 1rem;
}
/* Címsorok */
.section-title {
  color: #fff;
  font-size: 2.8rem;
  font-weight: bold;
  margin-top: 64px;
  margin-bottom: 0;
  letter-spacing: 1px;
  text-shadow:
    0 6px 24px #000c,
    0 1.5px 2px #0008,
    0 0 2px #fff,
    0 0.5px 10px #ac86f455;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  text-align: center;
  line-height: 1.2;
}
.section-subtitle {
  color: #fff;
  text-shadow:
    0 6px 24px #000c,
    0 1.5px 2px #0008,
    0 0 2px #fff,
    0 0.5px 10px #ac86f455;
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 12px;
  margin-bottom: 0;
  letter-spacing: 0.2px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-shadow:
    0 6px 24px #000c,
    0 1.5px 2px #0008,
    0 0 2px #fff,
    0 0.5px 10px #ac86f455;
  margin-bottom: 16px;
  text-align: center;
}

/* Szekció alap (háttér, keret, árnyék) */
.section-bg {
  position: relative;
  overflow: hidden;
  width: calc(100% - 32px);
  margin: 0px auto 48px auto;
  padding: 48px 2vw;
  background: #192233;
  border-radius: 54px;
  box-shadow:
    0 12px 42px 0 #000c,
    0 0 0 3.5px #665eff33,
    0 0 36px 4px #7e6cff2f;
  z-index: 2;
  max-width: 100vw;
}
/* Háttérkép szekcióhoz (pl. logó mintázat) */
.section-bg-img {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.1;
}
.section-bg-img img {
  width: 90%;
  height: 90%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(7deg);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  animation: usp-blink 3s infinite;
}
/* Kártyák alapja minden szekcióban */
.section-card {
  position: relative;
  background: rgba(25, 34, 51, 0.82);
  border-radius: 32px;
  margin: 0 12px;
  padding: 28px 18px 20px 18px;
  max-width: 340px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  outline: 1.5px solid #24344d66;
  box-shadow:
    0 6px 28px 0 #0008,
    0 0 0 2.5px #6b4cff22,
    0 0 12px 0 #fff1;
  transition: transform .18s cubic-bezier(.48,.19,.5,.95), box-shadow .18s;
}
/* Kártya háttérkép (ha kell) */
.card-bg {
  display: none; /* mobilon lehet display: block */
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.1;
}
.card-bg img {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(25deg);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  animation: usp-blink 3s infinite;
}

/* Hero */
.hero {
  min-height: 420px;
  padding-top: 150px;
  margin-top: 0;
  margin-bottom: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero .container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 48px 28px 40px 28px;
}
.hero-flex {
  display: flex;
  flex-direction: row; /* vagy nincs megadva, alapból row */
  align-items: center;
  justify-content: flex-start;
  gap: 56px;
  width: 100%;
  min-height: 420px;
}
.hero-content {
  display: block;
  order: 1;
  flex-direction: column;
  flex: 1 1 0px;
  min-width: 410px;
  max-width: 800px;
  text-align: left;
}
.hero-content > * {
  margin-top: 0;
  margin-bottom: 0;
}
.hero .section-title {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-shadow:
    0 6px 24px #000c,
    0 1.5px 2px #0008,
    0 0 2px #fff,
    0 0.5px 10px #ac86f455;
}
.hero-image {
  flex: 0 1 440px;
  order: 2;
  min-width: 300px;
  max-width: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  max-width: 100%;
  max-height: 340px;
  border-radius: 18px;
  box-shadow: 0 10px 50px #0002, 0 2px 8px #0003;
}
.hero-btn {
	margin-top: 36px;
}
.highlight-text {
  color: #fa44a8;
}
.rotating-desc {
  min-height: 40px;
  margin-top: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.anim-text {
  display: block;           /* vagy inline-block, ha úgy jobban tetszik */
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.7rem;
  font-weight: bold;
  background: linear-gradient(90deg, #b3eaff 0%, #e0ceff 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
  letter-spacing: 0.5px;
  transition: opacity 0.4s, transform 0.4s;
  opacity: 1;
}

/* OLDALAK */
/* Szolgáltatások (Főoldal) */
.services-list {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 20px;
  justify-content: center;
  padding-bottom: 12px;
  margin-top: 64px;
}
.service-icon {
  font-size: 48px;
  color: var(--accent-color, #3796ea);
  margin-bottom: 18px;
}
.service-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}
.service-list li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  position: relative;
  padding-left: 20px;
}
.service-list li::before {
  content: "✔";
  color: #4DFF93;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
}
.service-btn {
	margin-top: auto;
	margin-bottom: 24px;
	border-radius: 32px;
	padding: 1px 60px;
    width: fit-content;
    max-width: 100%;
	animation: none !important;
}
/* Kapcsolatfelvétel - Átadás */
.steps-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  justify-content: center;
  padding-bottom: 12px;
  margin-top: 64px;
}
.step-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg,#6b4cff 60%,#8b70ff 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 13px auto;
  box-shadow: 0 4px 18px 0 #6b4cff45;
  border: 2.5px solid #fff4;
}
.step-desc {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  position: relative;
  padding-left: 20px;
}

/* Miért válassz minket? */
.usp-list {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 20px;
  justify-content: center;
  padding-bottom: 12px;
  margin-top: 64px;
}
.usp-card {
  min-width: 340px;
  max-width: 420px;
}
.usp-card p {
  font-size: 1rem;
  line-height: 1.65;
  color: #fff;
}

/* Referenciák */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.portfolio-item img {
  width: 100%;
  border-radius: 8px;
}

/* Árak */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  border: 1px solid var(--accent-color);
  padding: 15px;
  text-align: left;
}

/* Footer */
footer {
  background: var(--text-color);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: auto;
  flex-shrink: 0;
}
#backToTop {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 3000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.57);
  color: #fff;
  border: none;
  outline: none;
  font-size: 1.2rem;
  box-shadow: 0 4px 18px #0003;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s, background 0.21s, box-shadow 0.21s, transform 0.17s;
  backdrop-filter: blur(2.5px);
  display: flex;             /* <-- ÚJ! */
  align-items: center;       /* <-- ÚJ! */
  justify-content: center;   /* <-- ÚJ! */
  padding: 0;                /* <-- ÚJ! */
}
#backToTop.show {
  opacity: 1;
  pointer-events: all;
}
#backToTop i {
  font-size: 1.25em;         /* opcionális, hogy ne legyen túl nagy vagy kicsi a nyíl */
  display: block;            /* biztos, hogy ne csússzon el */
}