/* Styles for eye hover effect */
.eye-container {
  position: absolute;
  top: 30%;
  right: 10%;
  width: 120px;
  height: 120px;
  z-index: 3;
}

.eye {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f5f5f5;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2),
              inset 0 0 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 500px;
  transition: background 0.3s ease; /* Transition for background change */
  display: flex; /* Enable flexbox for centering content */
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
}

.eye:hover {
  background: radial-gradient(circle at center, #e0e0e0 0%, #f5f5f5 100%); /* Gradient background for depth */
}

.sclera {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff; /* Ensure sclera remains white on hover */
}

.iris {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #19a0a0 0%, #115555 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-out, opacity 0.3s ease; /* Transition for opacity */
  transform-origin: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.eye:hover .iris {
  opacity: 0; /* Hide iris on hover */
}

.pupil {
  width: 45%;
  height: 45%;
  border-radius: 50%;
  background: #000;
  position: relative;
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.4);
}

.highlight {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 20%;
  height: 20%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.eyelid {
  position: absolute;
  width: 150%;
  height: 100%;
  background: var(--primary-bg);
  left: -25%;
  transition: transform 0.15s ease-out;
}

.eyelid.top {
  top: 0;
  border-bottom-left-radius: 60%;
  border-bottom-right-radius: 60%;
  transform: translateY(-100%);
}

.eyelid.bottom {
  bottom: 0;
  border-top-left-radius: 60%;
  border-top-right-radius: 60%;
  transform: translateY(100%);
}

.typing-part {
  display: inline;
}

.eye-hover-text {
  position: absolute;
  color: var(--primary-bg);
  font-size: 1.1em; /* Slightly smaller font for better fit */
  font-weight: bold;
  text-align: center;
  padding: 0 10px;
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  display: flex; /* Use flexbox for vertical centering */
  flex-direction: column; /* Stack items vertically */
  justify-content: center; /* Center vertically */
  line-height: 1.1; /* Adjust line height for better spacing */
  text-shadow: 0px 1px 0px #c0c0c0, 0px 2px 0px #b0b0b0, 0px 3px 0px #a0a0a0, 0px 4px 0px #909090, 0px 5px 10px rgba(0, 0, 0, 0.6); /* 3D text effect using text-shadow */
}

.eye-hover-text span {
    display: block; /* Ensure each span is on a new line */
}

.eye-hover-text span:first-child {
    margin-bottom: 0.1em; /* Add a little space between lines */
}

.eye:hover .eye-hover-text {
  opacity: 1; /* Show text on hover */
}

@media (max-width: 768px) {
  .eye-container {
    top: 20%;
    right: 5%;
    width: 80px;
    height: 80px;
  }
  .eye-hover-text {
    font-size: 0.8em; /* Adjust font size for smaller screens */
  }
}