/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  background: url('../img/bg_main_2.jpg') no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #000;
}

/* Top Left Name */
.name {
  position: absolute;
  top: 50px;
  left: 50px;
  font-size: 1.5em;
  font-weight: bold;
  z-index: 1002; /* Zawsze nad menu */
  color: #000;
}

/* Top Right Menu (Desktop Only) */
.menu {
  position: absolute;
  top: 50px;
  right: 50px;
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.menu a {
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
  color: #000;
}

.menu a:hover {
  text-decoration: underline;
}

/* Zamiast EN dodajemy logo */
/* Standardowe logo */
.logo {
  position: absolute;
  bottom: 50px;
  right: 50px;
  width: 50px;
  height: 50px;
  background: url('../img/emefef_logo_hover.png') no-repeat center center;
  background-size: contain;
}

/* Czerwone logo po najechaniu */
.logo:hover {
  background: url('../img/emefef_logo.png') no-repeat center center;
  background-size: contain;
}

/* Hamburger Button */
.hamburger {
  display: none; /* Hidden by default */
  position: absolute;
  top: 50px;
  right: 50px;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 4px;
  background: #000;
  border-radius: 2px;
}

.hamburger[aria-expanded="true"] span {
  background-color: #000; /* Upewniamy się, że kolor pozostaje czarny po rozwinięciu */
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translateY(0);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0; /* Ukrycie środkowej linii */
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translateY(0);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .lang {
    display: none; /* Ukryj EN w wersji mobilnej */
  }

  .hamburger {
    display: flex; /* Pokaż hamburger w wersji mobilnej */
  }

  .menu {
    display: none; /* Ukryj menu domyślnie */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    line-height: 1.0;
    font-size: 1.9em;
  }

  .menu.open {
    display: flex; /* Pokaż menu po otwarciu */
  }

  .menu a {
    font-size: 1.5em;
  }

  .menu a:hover {
    text-decoration: underline;
  }
}