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

body {
  font-family: system-ui, sans-serif;
  background: #333;
}

/* Navbar base */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  padding: 20px 30px;
  color: white;
  position: relative;
  z-index: 1000;
}

.logo {
  img {
    width: 220px;
  }
}

/* Desktop menu */
.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-size: 20px;
}

.menu a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.menu a:hover {
  color: #ffcc00;
}

/* Hamburger icon */
.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1002;
}

.menu-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center; /* ensures perfect rotation symmetry */
}

/* Hide checkbox */
.menu-toggle {
  display: none;
}

.socialmedia {
  display: flex;
}
.socialmedia-mobile {
  display: none;
}
.socialmedia, .socialmedia-mobile {
  background: #333;
  justify-content: center;
  align-items: center;
  padding: 10px;

  .youtube {
    padding: 0 20px;
    img {
      width: 100px;
    }
  }
  .instagram {
    padding: 0 20px;
    img {
      width: 35px;
    }
  }
}

.main-body {
  .hero img {
    width: 100%;
  }
}

.footer {
  width: 100%;
  margin-top: 100px;
  color: #bbb;
  text-align: center;
}

/* ---------- ============= ---------- */
/* ---------- Mobile Styles ---------- */
/* ---------- ============= ---------- */
@media (max-width: 768px) {
  .logo {
    img {
      width: 150px;
    }
  }

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: rgba(51, 51, 51, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;
    gap: 2rem;
    z-index: 1000;
  }

  .menu-icon {
    display: flex;
  }

  /* Show full-screen menu */
  .menu-toggle:checked ~ .menu {
    display: flex;
  }

  /* Perfectly centered X animation */
  .menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(0, 13px);
  }

  .menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(0, -13px);
  }

  .socialmedia {
    display: none;
  }
  .socialmedia-mobile {
    display: flex;
  }
}
