body,
html {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
  background-color: #000;
}

#logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.75);
  z-index: 1000;
}

#logoimg {
  max-width: 100%;
  height: auto;
  display: block;
}

.lines {
   display: block;
   position: absolute;
   top: 50%;
   left: 50%;
   margin-left: -17px;
   margin-top: -1px;
   width: 35px;
   height: 4px;
   background: #0000cc;
   border-radius: 1em;
   transition: transform 200ms;
}
.line-1 {
   transform: translate3d(0, -9px, 0);
}
.line-2 {
   transform: translate3d(0, 0, 0);
}
.line-3 {
   transform: translate3d(0, 9px, 0);
}

.menu-open:checked + .menu-open-button .line-1 {
   transform: translate3d(0, 0, 0) rotate(45deg);
}
.menu-open:checked + .menu-open-button .line-2 {
   transform: translate3d(0, 0, 0) scale(0, 1);
}
.menu-open:checked + .menu-open-button .line-3 {
   transform: translate3d(0, 0, 0) rotate(-45deg);
}

.menu-open:checked ~ .menu-item.about-menu-item {
  transition-delay: 
    0.08s, /* translate delay */
    0s,    /* scale delay */
    0s,    /* transform delay */
    0s;    /* box-shadow delay */
  translate: -110px 0px 0;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 4px 6px rgba(0, 0, 0, 0.2);
}
.menu-open:checked ~ .menu-item.services-menu-item {
  transition-delay: 
    0.16s, /* translate delay */
    0s, 
    0s, 
    0s;
  translate: -77px 77px 0;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 4px 6px rgba(0, 0, 0, 0.2);
}
.menu-open:checked ~ .menu-item.contact-menu-item {
  transition-delay: 
    0.24s, /* translate delay */
    0s, 
    0s, 
    0s;
  translate: 0px 110px 0;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 4px 6px rgba(0, 0, 0, 0.2);
}

.menu-item {
  text-decoration: none;
  color: inherit;
}

.menu-item:visited {
  color: inherit;
}

.menu-item,
.menu-open-button {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 100%;
  position: absolute;
  background-color: #cefcff;
  translate: 0 0 0;
  scale: 1;
  transition: 
    translate cubic-bezier(0.935, 0, 0.34, 1.33) 350ms, 
    scale ease-in-out 150ms, 
    transform ease-in-out 150ms,
    box-shadow ease-in-out 150ms;
}

.menu-open-button {
  z-index: 10;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 4px 6px rgba(0, 0, 0, 0.2);
}

.menu-item,
.menu-open-button {
  cursor: pointer;
}

.menu-open-button:hover,
.menu-item:hover {
  scale: 1.2;
  box-shadow: 
    0 20px 30px rgba(0, 0, 0, 0.5),
    0 10px 15px rgba(0, 0, 0, 0.2);
}

.menu {
  position: fixed;
  right: 30px;
  top: 30px;
  height: 70px;
  width: 70px;
  filter: url('#goo');
}

#menu-open {
  display: none;
}

/* Black fade overlay (for screen fade effect) */
#blackOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 0.4s ease-in-out;
}

#blackOverlay.fade-in {
  opacity: 1;
}

/* Content overlay styles */
#contentOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#overlayText {
  background: transparent;
  padding: 40px;
  color: white;
  max-width: 700px;
  text-align: center;
  font-family: 'Trebuchet MS', sans-serif;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#overlayText.visible {
  opacity: 1;
}

#overlayText h2 {
  margin-top: 0;
  font-size: 42px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

#overlayText p {
  font-size: 20px;
  line-height: 1.8;
  margin: 25px 0;
}

#closeOverlay {
  background: white;
  color: #000;
  border: none;
  padding: 14px 35px;
  font-size: 16px;
  font-family: 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
  margin-top: 20px;
}

#closeOverlay:hover {
  background: #38618c;
  color: white;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  #logo {
    width: 90%;
    display: flex;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.6);
  }
}
