/* HAMBURGER BUTTON */

.hamburger-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: transform 0.3s ease;
}

@keyframes neonChaos {
  0% { background-position: 0% 0%; background-size: 200% 200%; }
  25% { background-position: 80% 30%; background-size: 400% 400%; }
  50% { background-position: 20% 90%; background-size: 300% 300%; }
  75% { background-position: 100% 10%; background-size: 600% 600%; }
  100% { background-position: 0% 0%; background-size: 200% 200%; }
}

.hamburger-btn span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;

  background-image: radial-gradient(
    circle at 30% 30%,
    #ece5c4,
    #4999d4,
    #f9a336,
    #efebdb
  );
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: neonChaos 8s ease-in-out infinite alternate;

  transition: transform 0.9s ease, opacity 0.3s ease;
  transform-origin: center;
  position: relative;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.hamburger-btn:hover span {
  transform: scale(1.4);
  animation-duration: 3s;
}

/* Transform to X */
.hamburger-btn.active {
  transform: rotate(0deg) translatex(10px);
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(13px);
  background-color: #ffffff;
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-13px);
  background-color: #ffffff;
}

.hamburger-btn.active:hover {
  transform: scale(1.4) translatex(10px);
}

/* MENU OVERLAY */

.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  transform: scale(0);
  transform-origin: top right;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
  opacity: 0;
}

.menu-overlay.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: all;
}

/* Menu Links */
.menu-links {
  list-style: none;
  padding: 0;
  text-align: center;
}

.menu-links li {
  margin: 1rem 0;
}

.menu-links a {
  color: white;
  font-size: 3rem;
  font-weight: 200;
  text-decoration: none;
  display: inline-block; /* enables transform */
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu-links a:hover {
  color: #4999d4;
  opacity: 1 !important;
  transform: scale(1.1);
  font-family: "headline";
  font-style: italic;
  transition: all 0.3s ease;
}

/* ============================
   ICONS IN MAIN UL (NO MODAL)
   ============================ */

/* Stack contact icons like nav links */
.menu-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2rem;          /* was 1.2rem */
}


/* Slightly soften icons vs main nav text */
.menu-icons .contact-icon {
  opacity: 0.9;
   line-height: 1;
}

.menu-icons .contact-icon:hover {
  opacity: 1;
}

.menu-icons::before {
  content: "";
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin-top: 1.75rem;
  margin-bottom: 1.2;
}

/* Override the big-link styling for icons */
.menu-links .menu-icons > a {
  font-size: inherit;        /* we control icon size below */
  font-family: inherit;
  font-style: normal !important;
  color: inherit;
}

/* Emoji icon */
.contact-icon {
  font-size: 3.2rem !important;
  line-height: 1;
  color: #fcfcfc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
  font-style: normal !important; /* prevent italic inheritance */
}

/* Subtle hover for emoji (not huge) */
.menu-links .menu-icons > a.contact-icon:hover {
  transform: scale(1.08);
  color: #fcfcfc; /* keep as-is */
}

/* Image-based contact icons (LinkedIn) */
.contact-icon--img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon--img img {
  height: 3.0rem;  /* tuned to feel close to the emoji visually */
  width: auto;     /* preserve aspect ratio */
  display: block;
  transition: transform 0.25s ease;
}

/* Subtle hover for LinkedIn */
.contact-icon--img:hover img {
  transform: scale(1.06);
}

/* ✅ Responsive styles for mobile */
@media screen and (max-width: 750px) {
  .menu-links a {
    font-size: 2.4rem;
  }

  .menu-icons {
    margin-top: 2rem;
    gap: 2rem;
  }

  .contact-icon {
    font-size: 2.4rem !important;
  }

  .contact-icon--img img {
    height: 2.2rem;
    width: auto;
  }
}

/* === Home icon: fixed left, spin on hover (desktop), one-tap nav on mobile === */
a.home-link {
  position: fixed;
  top: 26px;
  left: 20px;
  z-index: 999;
  display: inline-flex;
  width: auto;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  pointer-events: auto;
}

a.home-link > img {
  display: block;
  width: 44px;
  height: auto;
  transform-origin: center;
  transition: transform 0.25s ease;
}

@keyframes spinHome {
  from { transform: rotate(0deg) scale(1.05); }
  to   { transform: rotate(360deg) scale(1.05); }
}

@media (hover: hover) {
  a.home-link:hover > img {
    animation: spinHome 0.9s linear infinite !important;
    will-change: transform;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.home-link:hover > img {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 750px) {
  a.home-link { top: 24px; left: 16px; width: 36px; height: 32px; }
  a.home-link > img { width: 36px; height: 32px; }
}

/* Keep custom cursor layers from blocking clicks if you use them */
#cursor-container, #custom-cursor { pointer-events: none !important; }
