/* Változók */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --text-color: #333;
  --link-color: #2980b9;
  --border-radius: 5px;
}

/* Reset és alapértelmezett stílusok */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, sans-serif, 'Helvetica Neue', 'Helvetica';
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--light-color);
  max-width: 100%;
  overflow-x: hidden;
}

ul {
  padding-left: 2.5rem;
}
ul li:not(:last-child),
ol li:not(:last-child) {
  margin-bottom: 1rem;
}

a {
  color: var(--link-color);
}

/* Konténer */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Fejléc */
header {
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
}

.logo-icon {
  margin-right: 0.8rem;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Főmenü */
.main-navigation {
  position: relative;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-items {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.menu-items li {
  margin-left: 2rem;
}

.menu-items li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  padding: 0.5rem 0;
  position: relative;
  font-weight: 600;
}

.menu-items li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--secondary-color);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.menu-items li a:hover,
.menu-items li a:focus {
  color: var(--secondary-color);
}

.menu-items li a:hover::after,
.menu-items li a:focus::after {
  width: 100%;
}

/* Sr-only class a kisegítő szövegek elrejtéséhez vizuálisan */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Fő tartalom */
main {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Gombok */
button, .btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-size: 18px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  width: auto;
  min-width: 200px;
}
.primary-button {
  background-color: var(--primary-color);
  color: white;
}
.primary-button:hover {
  background-color: var(--dark-color);
}
.secondary-button {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.secondary-button:hover {
  color: var(--dark-color);
  border-color: var(--dark-color);
}

/* Lábléc */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 1.5rem 1rem;
  margin-top: 4rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
}

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 1.5rem;
}

.footer-column ul {
  padding-left: 0;
  list-style: none;
}

.footer-column a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.copyright {
  font-size: 14px;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  left: auto;
  transform: none;
  background-color: white;
  padding: 1.2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  max-width: 400px;
  width: auto;
  display: none;
  border: 1px solid #ddd;
}

.cookie-popup.show {
  display: block;
}

.cookie-popup p {
  font-size: 14px;
  margin-bottom: 1.2rem;
  line-height: 1.6;
  color: var(--text-color);
}

.cookie-popup .buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.cookie-popup .buttons button {
  font-size: 14px;
  padding: .6rem 1.2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.cookie-popup .accept-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.cookie-popup .accept-button:hover {
  background-color: var(--link-color);
}

.cookie-popup .reject-button {
  background-color: #f8f9fa;
  color: var(--text-color);
  border: 1px solid #ddd;
}

.cookie-popup .reject-button:hover {
  background-color: #e9ecef;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Landing Page Stílusok */
.hero {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--light-color) 0%, #fff 100%);
  margin-bottom: 4rem;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 600px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 3;
}
.hero-subtitle {
  font-size: 1.25rem;
}
.section-title {
  text-align: center;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.dynamic-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: linear-gradient(135deg, var(--light-color) 0%, #fff 100%);
  z-index: 0;
}

.dynamic-background-perspective {
  perspective: 500px;
  height: 100%;
  position: relative;
}

.dynamic-row {
  margin: 5px 0;
  display: flex;
  justify-content: flex-start;
  width: 150%;
  flex-wrap: nowrap;
  flex-grow: 1;
  transform: translateX(200px) translateY(-200px);
}

.dynamic-image {
  transform-style: preserve-3d;
  transform: rotateX(20deg) rotateY(0deg);
  min-width: 240px;
  min-height: 160px;
  display: inline-block;
  background-position: center;
  background-size: cover;
  margin: 7px;
  border-radius: 12px;
  transform: skewX(335deg);
  transition: transform 0.3s ease;
}

.dynamic-image:hover {
  transform: skewX(335deg) scale(1.1);
  z-index: 2;
}

.dynamic-background-container {
  height: 100%;
  transform: rotateX(365deg) rotateY(352deg) rotateZ(10deg) translateX(200px);
  transform-style: preserve-3d;
  animation: background_move 60s linear infinite alternate;
}

@keyframes background_move {
  from {
    transform: rotateX(365deg) rotateY(352deg) rotateZ(10deg) translateX(200px);
  }

  to {
    transform: rotateX(365deg) rotateY(352deg) rotateZ(10deg) translateX(-400px);
  }
}

.dynamic-gradient {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  background: linear-gradient(125deg,
      var(--light-color) 28%,
      rgba(255, 255, 255, 0) 100%);
}

/* Szolgáltatások */
.services {
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
}
.services ul {
  list-style: none;
  font-size: 1.2rem;
  padding: 0;
}
.services li:before {
  content: '✓';
  margin-right: .5rem;
  color: var(--primary-color);
}
.services-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.services img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius);
  margin-top: 2rem;
}

/* Központosított CTA gombok */
.cta-center {
  text-align: center;
  margin-top: 2rem;
  display: block;
}

/* Szekció térközök */
section {
  padding: 4rem 0;
}

section:last-child {
  margin-bottom: 0;
}

/* Probléma szekció */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.problem-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Megoldás szekció */
.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.solution-benefits {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.solution-benefits li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.solution-image img {
  width: 100%;
  border-radius: var(--border-radius);
}

/* Rólunk szekció */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Demo videó */
.video iframe {
  border-radius: var(--border-radius);
  margin: 0 auto;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 800px;
  max-height: 450px;
  min-height: 450px;
}

/* Árak */
.pricing-container {
  display: flex;
  gap: 2rem;
  max-width: 980px;
  margin: 0 auto;
}

.options-container {
  flex: 1;
  padding: 2rem;
}

.options-container h3 {
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #666;
  margin-bottom: 2rem;
}

.option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.option-icon {
  font-size: 1.5rem;
}

.option-text {
  display: flex;
  flex-direction: column;
}

.option-text strong {
  font-size: 1.1rem;
}

.option-text span {
  font-size: 0.9rem;
  color: #666;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--primary-color);
}

input:checked+.slider:before {
  transform: translateX(26px);
}

/* Price Display */
.price-display {
  flex: 1;
}

.price-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--primary-color);
}

.price-header {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.price-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.price-features li {
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-features li:before {
  content: "✓";
  color: var(--primary-color);
}

.price-note {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
}

/* GYIK */
.faq-accordion {
  max-width: 800px;
  margin: 2rem auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: white;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-color);
}

.faq-question .arrow {
  transition: transform 0.3s ease;
}

.faq-question.active .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: white;
}

.faq-answer.active {
  padding: 0 1.5rem 1.5rem;
  max-height: fit-content;
}

.faq-answer p {
  margin: 0;
  color: #666;
}

/* Vélemények */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-item {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info strong {
  display: block;
  color: var(--dark-color);
}

/* Final CTA */
.final-cta {
  text-align: center;
  border: 1px solid var(--dark-color);
  border-radius: var(--border-radius);
  background: white;
  padding: 2rem;
}

.final-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Reszponzív dizájn */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .main-navigation .menu-items {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: .6rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    z-index: 9;
  }
  .main-navigation.is-open .menu-items {
    display: flex;
  }
  .menu-items li {
    margin-left: 0;
    width: 100%;
  }
  .menu-items li a {
    display: block;
    padding: .6rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }
  .menu-items li:last-child a {
    border-bottom: none;
  }
  .menu-items li a::after {
    display: none;
  }
  nav ul {
    flex-direction: column;
  }
  .footer-links {
    flex-direction: column;
  }
  .menu-toggle {
    display: block;
  }
  .menu-items {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
  }
  .menu-items li {
    margin-left: 0;
    margin-bottom: 0.5rem !important;
  }  
  .menu-items li:last-child {
    margin-bottom: 0 !important;
  }
  .main-navigation.is-open .menu-items {
    display: flex;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  .cta-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    max-width: 100%;
  }
  .services-content {
    display: block;
  }
  .solution-content,
  .service-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 3rem 0;
  }
  .pricing-container {
    flex-direction: column;
  }
  .options-container {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  h1 {
    font-size: 2rem;
  }
  .cookie-popup {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: 100%;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: 0;
  }
  @keyframes slideIn {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  section {
    padding: 2rem 0;
  }
}

