html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000;
  color: #f5f5f5;
}
section {
  scroll-margin-top: 90px; /* kb. a header magassága */
}
a {
  text-decoration: none;
  color: #d4af37;
}
h1,
h2,
h3 {
  color: #d4af37;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header --- */
header {
  background-color: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid #333;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #d4af37;
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #d4af37;
  transition: width 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}

/* --- Hamburger Menu --- */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  transition: 0.3s;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #d4af37;
  border-radius: 2px;
  transition: all 0.4s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Mobile Menu --- */
/* --- Mobile Menu --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  background: rgba(17, 17, 17, 0.97);
  padding: 1rem;
  position: fixed; /* <-- ez a kulcs: ne tolja el a többit */
  top: 70px; /* a header alá illesztjük */
  left: 0;
  width: 100%;
  z-index: 999; /* mindig a tartalom fölött legyen */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none; /* ne lehessen kattintani, ha zárva van */
  transition: all 0.5s ease;
  backdrop-filter: blur(6px);
}

.mobile-menu a {
  font-size: 1.2rem;
}

.mobile-menu.active {
  max-height: 400px;
  opacity: 1;
  pointer-events: auto; /* kattintható, ha aktív */
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("./header-bg.jpg") center/cover;
  text-align: center;
  padding: 8rem 1rem;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.btn {
  background-color: #d4af37;
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}
.btn:hover {
  background-color: #b9962c;
  transform: scale(1.05);
}

/* --- Sections --- */
section {
  padding: 4rem 0;
}
.text-center {
  text-align: center;
} /* --- About Us --- */
.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; /* térköz az elemek között */
  align-items: stretch;
  margin-top: 2rem;
  padding: 1rem; /* extra tér mobilon a szélekhez */
}

.about-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #111;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #333;
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
  box-sizing: border-box;
}

.about-box:hover {
  border-color: #d4af37;
  transform: translateY(-6px);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

.about-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .about-content {
    gap: 1.5rem;
    padding: 1.5rem 0.5rem;
  }

  .about-box {
    padding: 1.5rem;
  }
}

/* --- Services --- */
.services {
  background: #111;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.service-card {
  background: #000;
  border: 1px solid #333;
  padding: 2rem;
  border-radius: 10px;
  transition: 0.3s;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* --- Why Choose Us --- */
.why {
  text-align: center;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.why-card {
  background: #111;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #333;
}

.why-card img {
  height: 250px;
}

/* --- Contact --- */
.contact form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input,
textarea {
  padding: 0.8rem;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #111;
  color: #f5f5f5;
}
input:focus,
textarea:focus {
  outline: 1px solid #d4af37;
}
button {
  background-color: #d4af37;
  border: none;
  padding: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}
button:hover {
  background-color: #b9962c;
  transform: scale(1.05);
}

/* --- Footer --- */
footer {
  background-color: #000;
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #aaa;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
