
/* 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%,
    #fae821,
    #3c67de,
    #db4933,
    rgb(114, 154, 73)
  );
  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 to work */
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu-links a:hover {
  color: #1750e2;
  opacity: 1 !important;
  transform: scale(1.1);
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

/* Contact Callout Section */
.contact-callout {
  position: relative;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
  display: flex;
  flex-direction: row;              /* 🔁 Side by side layout */
  justify-content: center;
  align-items: center;
  gap: 7rem;
  width: 400px;
  padding: 2.5rem 2rem;
  margin: 2rem auto;
  box-sizing: border-box;
  overflow: visible;
  z-index: 1;
}

/* Background panel */
.contact-callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgb(0, 64, 255);
  z-index: 0;
  box-shadow: 0 0 20px 20px rgba(0, 64, 255, 1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
}

/* Active state */
.contact-callout.active {
  opacity: 1;
  max-height: 20rem;
}

/* Emoji-only contact links */
.contact-icon {
  font-size: 4rem !important;
  color: #fcfcfc;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
  position: relative;
  z-index: 1;
}

.contact-icon:hover {
  transform: scale(1.2);
  color: black !important;
}

/* Remove unused contact-link/contact-item styles */
#contact-callout {
  margin-top: 60px;
}

/* Shrink nav links when contact opens */
.menu-links.shrink > li > a {
  font-size: 2rem;
  opacity: 0.25;
  transition: all 0.3s ease;
}

/* ✅ Responsive styles for mobile */
@media screen and (max-width: 750px) {
  .contact-callout {
    width: 80vw;
    padding: 2rem 1rem;
    gap: 2rem;
  }

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


/* =====================================
   HOME LINK FIXED + CONTINUOUS SPIN
   (appended with high specificity & !important)
===================================== */
a.home-link {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9000; /* above overlay (10000) and hamburger (10001) */
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
}

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

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


/* Enforce spin even if global CSS cancels animations on <img> */
a.home-link:hover > img,
a.home-link:focus-visible > img {
  animation: spinHome 0.9s linear infinite !important;
  
  will-change: transform;
}

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

/* Responsive tweak */
@media (max-width: 750px) {
  a.home-link { top: 22px; left: 18px; width: 36px; height: 36px; }
  a.home-link > img { width: 36px; height: 32px; }
}


/* Ensure custom cursor layers never block hover/clicks */
#cursor-container,
#custom-cursor {
  pointer-events: none !important;
}

