/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Steinerlight";
  src: url("../Font/Steinerlight.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Bahnschrift Light";
  src: url("../Font/BAHNSCHRIFT.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Bahnschrift Light";
  background-color: #ffffff;
  color: #000000;
  overflow: hidden; /* Prevent scrolling on home page */
  --dynamic-bg: url('../Mintak/háttér.jpg');
}

/* Background blur overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: var(--dynamic-bg);
  background-size: cover;
  background-position: center center;
  filter: blur(15px);
  transform: scale(1.1);
  z-index: -1;
}

/* Header (fixed at top) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: transparent;
  z-index: 1000;
}

/* Header container grid structure */
.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto; /* Four columns: logo, nav menu, language switcher, social links */
  align-items: center;
  height: 80px;
  padding: 0 20px;
}

/* Position the .logo off-grid */
.logo {
  position: absolute;
  top: 0; 
  left: 20px;
}

.logo img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-top: 0px;
}

/* Navigation Menu */
.nav-menu {
  grid-column: 2; /* Second column for the nav menu */
  justify-self: center; /* Center it horizontally within its column */
  display: flex;
  list-style: none;
  margin-left: 50px; /* Push slightly to the right if needed */
}

.nav-menu ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-menu ul li {
  margin: 0 20px;
}

.nav-menu ul li a {
  text-decoration: none;
  color: #000;
  font-family: "Steinerlight";
  font-size: 24px;
  font-weight: bold;
  transition: font-size 0.3s ease, color 0.3s ease;
  letter-spacing: 3px;
}

.nav-menu ul li a.active {
  font-size: 24px;
  text-decoration: underline;
  color: #000;
}

.nav-menu ul li a:hover {
  font-size: 30px;
}

/* Language Switcher */
.language-switcher {
  grid-column: 3; /* Third column for the language switcher */
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: flex-end;
  margin-right: 15px;
}

.language-switcher .lang-option {
  text-decoration: none;
  font-size: 18px;
  font-family: "Steinerlight";
  font-weight: bold;
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.language-switcher .lang-option:hover {
  background-color: #f5f5f5;
  color: #333;
}

.language-switcher .lang-option.active {
  background-color: #fff;
  color: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Social Links */
.social-links {
  grid-column: 4; /* Fourth column for social links */
  display: flex;
  gap: 15px;
  align-items: center;
  justify-self: flex-end;
}

.social-links .social-dot {
  font-size: 20px;
  color: #000000;
  text-decoration: none;
  transition: transform 0.3s;
}

.social-links .social-dot:hover {
  transform: scale(1.2);
}

/* Main layout */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
  z-index: 1;
  margin-top: 150px; /* Leave space for the fixed header */
}

h1 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px; /* Added bottom padding */
  font-family: "Steinerlight"; /* Updated font */
  letter-spacing: 3px;
}

/* Contact container */
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  gap: 40px;
  width: 100%;
  position: relative;
}

/* Contact image and details (left section) */
.contact-left {
  flex: 1;
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px; /* Ensures consistent height */
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-details {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  text-align: center;
  line-height: 1.5;
  width: 100%;
}

.contact-details a {
  color: #000;
  text-decoration: underline;
}

/* Contact form (right section) */
.contact-form {
  flex: 1;
  order: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
  padding-left: 50px;
  border-radius: 0px;
  background: none; /* Removed background */
}

.contact-form input,
.contact-form textarea {
  width: 90%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 0px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: "Bahnschrift Light";
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  font-size: 14px;
  color: #888; /* Placeholder color */
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #555; /* Highlight on focus */
  outline: none;
}

.contact-form textarea {
  resize: none;
  height: 80px; /* Reduced height */
}

/* Consent section (checkbox and label) */
.contact-form .consent {
  display: block;
  align-items: center;
  justify-content: flex-end; /* Align to the right */
  gap: 5px; /* Minimal gap between checkbox and label */
  margin-bottom: 10px;
}

.contact-form .consent input[type="checkbox"] {
  margin: 0; /* Remove default margins */
  width: 15px; /* Smaller checkbox width */
  height: 15px; /* Smaller checkbox height */
  display: inline-block;
}

.consent a {
  color: #000; /* Set link text color to black */
  text-decoration: underline; /* Keep the underline */
  transition: color 0.3s ease; /* Optional: smooth transition for hover effect */
}

.consent a:hover {
  color: #555; /* Change the text color slightly on hover (optional) */
}

/* Social Section */
.social-section {
  margin-top: 100px; /* Adjust spacing above the socials section */
  text-align: left; /* Align content to the left */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Aligns content at the top of the section */
  align-items: flex-start; /* Aligns content to the left */
  height: 500px; /* Keep the height matching the contact image */
}

.social-section h2 {
  margin-bottom: 15px;
  font-family: "Steinerlight"; /* Use your preferred font */
  font-size: 36px; /* Adjust size for better visibility */
  letter-spacing: 3px;
  text-align: left; /* Ensure "Socials" is aligned to the left */
}

.social-icons {
  display: flex;
  justify-content: flex-start; /* Align icons to the left */
  gap: 15px; /* Space between icons */
  margin-top: 10px; /* Add spacing between text and icons */
}

.social-icons a {
  font-size: 30px; /* Icon size */
  color: #000; /* Icon color */
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #555; /* Hover effect */
  transform: scale(1.1); /* Slight zoom on hover */
}

/* Submit button */
.contact-form button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 0px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #555;
}

/* Footer fixed at bottom */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1000;
}

footer p {
  margin-bottom: 3px;
}

footer a {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s;
}

footer a:hover {
  color: #888888;
}

/* Responsive Design */
@media (max-width: 1024px) {
  body {
    overflow-y: auto; /* Ensure scrolling is allowed */
    --dynamic-bg: url('../Mintak/háttér.jpg'); /* Keep original background */
  }

  main {
    margin-top: 75px;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--dynamic-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(15px);
    z-index: -1; /* Keep background behind content */
  }

  header {
    height: 70px; /* Adjust header height for smaller screens */
    backdrop-filter: blur(10px); /* Adds blur to content underneath */
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    z-index: 1001; /* Ensure header stays in front */
  }

  .header-container {
    padding: 15px 10px; /* Reduce padding for smaller screens */
    height: 70px;
  }

  .logo {
    left: 0px;
  }

  .logo img {
    width: 120px;
    height: 120px;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    left: 140px; /* Adjust based on logo width */
    top: 25px; /* Center vertically relative to header height */
    z-index: 1002; /* Ensure menu stays above content */
  }

  .hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
  }

  .nav-menu {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: 80px; /* Below the header */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white background */
    z-index: 1000;
    padding: 20px 0;
    align-items: center;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 15px;
  }

  .nav-menu ul li {
    margin: 10px 0;
  }

  .nav-menu ul li a {
    font-size: 20px;
  }

  /* Contact Container Adjustments */
  .contact-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 20px;
  }

  .contact-left {
    order: 1;
    width: 100%;
    text-align: center;
  }

  .contact-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px; /* Ensures consistent height */
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .contact-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 400px; /* Shorter height for image */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px; /* Spacing between image and details */
  }

  .contact-details {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-align: center;
    line-height: 1.5;
    width: 100%;
  }

  .contact-form {
    order: 2;
    width: 100%;
    text-align: center;
    padding: 20px;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
  }

  .contact-form button {
    width: 100%;
    max-width: 200px;
  }

  .social-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
  }

  .social-icons {
    justify-content: center;
  }

  footer {
    z-index: 1001; /* Ensure footer stays on top */
  }
  .footer-container{
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-y: auto; /* Ensure scrolling is allowed */
    --dynamic-bg: url('../Mintak/háttér.jpg'); /* Keep original background */
  }

  main {
    margin-top: 75px;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--dynamic-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(15px);
    z-index: -1; /* Keep background behind content */
  }

  header {
    height: 70px; /* Adjust header height for smaller screens */
    backdrop-filter: blur(10px); /* Adds blur to content underneath */
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    z-index: 1001; /* Ensure header stays in front */
  }

  .header-container {
    padding: 15px 10px; /* Reduce padding for smaller screens */
    height: 70px;
  }

  .logo {
    left: 0px;
  }

  .logo img {
    width: 80px;
    height: 80px;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    left: 100px; /* Adjust based on logo size */
    top: 20px; /* Center vertically */
    z-index: 1002; /* Ensure menu stays above content */
  }

  .hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
  }

  .nav-menu ul li a {
    font-size: 18px;
  }

  /* Contact Container Adjustments */
  .contact-container {
    gap: 15px;
    padding: 15px;
  }

  .contact-left {
    order: 1;
    text-align: center;
  }

  .contact-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px; /* Ensures consistent height */
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .contact-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 400px; /* Further reduce image height */
    margin-bottom: 10px; /* Space between image and details */
  }

  .contact-details {
    font-size: 16px;
    margin-top: 5px; /* Reduce spacing for smaller screens */
  }

  .contact-form {
    order: 2;
    text-align: center;
  }

  .contact-form input,
  .contact-form textarea {
    width: 90%;
    max-width: 350px;
  }

  .contact-form button {
    width: 90%;
    max-width: 180px;
  }

  .social-section {
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
  }

  .social-icons {
    justify-content: center;
  }

  footer {
    z-index: 1001; /* Ensure footer stays on top */
  }

  .footer-container{
    font-size: 10px;
  }
}