/* Általános stílusok */
:root {
  --primary-color: #007bff; /* Kék */
  --secondary-color: #6c757d; /* Szürke */
  --accent-color: #28a745; /* Zöld */
  --dark-color: #343a40; /* Sötét szürke */
  --light-color: #eef2fc; /* Világos szürke */
  --white-color: #ffffff;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Roboto", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul {
  list-style: none;
}

/* Gombok */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: #0056b3; /* Sötétebb kék */
  border-color: #0056b3;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Fejléc */
header {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white-color);
}

.logo img {
  width: 20%;
}

nav .nav-links {
  display: flex;
}

nav .nav-links li {
  margin-left: 30px;
}

nav .nav-links a {
  color: var(--white-color);
  font-weight: 400;
  transition: color 0.3s ease;
}

nav .nav-links a:hover {
  color: var(--primary-color);
}

/* Burger ikon (mobilhoz) */
.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--white-color);
  margin: 5px;
  transition: all 0.3s ease;
}

/* Hero szekció */
.hero-section {
  background: linear-gradient(to right, var(--primary-color), #2c7bfb);
  color: var(--white-color);
  padding: 3rem 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh; /* Minimum magasság a jobb megjelenésért */
}

.hero-section .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1;
  text-align: left;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.highlight {
  font-weight: bold;
}

.hero-content a {
  border: solid 1px white;
}

.hero-image {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Szakaszok általános stílusa */
section {
  padding: 80px 0;
  text-align: center;
}

section:nth-child(even) {
  background-color: var(--white-color);
}

h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 50px;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Szolgáltatások szekció */
.services-section {
  margin-top: 50px;
}

.service-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: auto;
  gap: 30px;
}

.service-item {
  width: 300px;;
  background-color: var(--white-color);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.services-section:nth-child(even) .service-item {
  background-color: var(--light-color); /* Kontraszt a háttérrel */
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-item h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.service-item p {
  font-size: 1rem;
  color: var(--secondary-color);
}

/* Rólunk szekció */
.about-section p {
  max-width: 900px;
  margin: 0 auto 1em auto;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.about-list {
  max-width: 900px;
  margin: 0 auto 3em auto;
}

.about-list li {
  padding: 0.8em;
}

.about-list li span {
  font-weight: bold;
}

/* Kapcsolat szekció */
.contact-section {
  background-color: var(--primary-color);
}

.contact-section h2::after {
  background-color: var(--accent-color);
}

.contact-section p {
  max-width: 900px;
  font-size: 1.1rem;
  margin: 0 auto 50px auto;
  opacity: 0.9;
}

.contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.contact-item {
  text-align: center;
}

.contact-item i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.contact-item p {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 0;
  text-align: center;
}

.contact-item a {
  color: var(--accent-color);
  text-decoration: underline;
}

.contact-form {
  background-color: var(--white-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.contact-form h3 {
  font-family: var(--font-heading);
  color: var(--dark-color);
  margin-bottom: 30px;
  text-align: center;
  font-size: 2rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: var(--font-body);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* Lábléc */
footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Reszponzív design */
@media (max-width: 992px) {
  .logo img {
    width: 30%;
  }
  .hero-section .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 40px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-image {
    width: 80%;
  }
}

@media (max-width: 768px) {
  /* Navigáció */
  body {
    overflow-x: hidden; /* Megakadályozza a vízszintes görgetést a menü nyitásakor */
  }

  .logo img {
    width: 35%;
  }

  nav .nav-links {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 70%;
    background-color: var(--dark-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 999; /* A tartalom fölött legyen */
  }

  nav .nav-links.nav-active {
    transform: translateX(0%);
  }

  nav .nav-links li {
    opacity: 0;
    margin: 25px 0;
  }

  .burger {
    display: block;
  }

  /* Hero */
  .hero-section {
    padding: 80px 0 50px 0;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Szakaszok */
  section {
    padding: 60px 0;
  }

  h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  .services-section .service-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    margin: 0 auto;
    max-width: 400px;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

/* Navigáció animáció mobil nézetben */
@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
  opacity: 0;
}
.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}
