* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* HOMEPAGE */
#homepage {
  padding: 40px;
}

#closeOverlay {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 24px;
  z-index: 1000;
}

/* OVERLAY */
#overlay {
  position: fixed;
  inset: 0;
  display: flex;
  z-index: 999;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#overlay.hidden {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

/* PANELS */
.panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s ease;
}

/* BACKGROUNDS (FIXED PATHS) */
.panel.left {
  background: url('/images/emu_muhedinovic_3D_ograde.png') center/cover no-repeat;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.panel.right {
  background: url('/images/emu_muhedinovic_2D_ograde.png') center/cover no-repeat;
}

/* DARK OVERLAY */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.75)
  );
}

/* DEPTH EFFECT */
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.6));
}

/* HOVER (desktop only) */
.panel:hover {
  transform: scale(1.03);
}

/* CONTENT */
.content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

/* ICON SIZE */
.icon {
  width: 140px;
  max-width: 70%;
}

/* TEXT */
.content h2 {
  margin-top: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* BUTTON (PREMIUM STYLE) */
.content a {
  margin-top: 15px;
  padding: 12px 26px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.content a:hover {
  background: white;
  color: black;
}

/* FLOAT ANIMATION */
@keyframes float {
  0% { transform: translate(0,0); }
  50% { transform: translate(5px,-10px); }
  100% { transform: translate(0,0); }
}

.icon1 { animation: float 5s ease-in-out infinite; }
.icon2 { animation: float 6s ease-in-out infinite; }

/* CENTER LOGO (FIXED) */
#mainIcon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: white;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  cursor: pointer;
  z-index: 10;

  transition: all 0.3s ease;
}

#mainIcon:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

#mainIcon img {
  width: 50px;
}

/* BOUNCE */
@keyframes bounce {
  0%,100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 10px)); }
}

/* 📱 MOBILE VERSION */
@media (max-width: 768px) {

  #overlay {
    flex-direction: column;
  }

  .panel {
    height: 50vh;
  }

  .panel:hover {
    transform: none;
  }

  #mainIcon {
    top: 50%;
    width: 70px;
    height: 70px;
  }

  #mainIcon img {
    width: 40px;
  }

  .icon {
    width: 120px;
  }

  .content h2 {
    font-size: 20px;
    margin-top: 10px;
  }

  .content a {
    padding: 10px 18px;
    font-size: 14px;
  }

}