/* ---------- MODERN LUXE INTRO LANDING SYSTEM ---------- */
.intro-body {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  
  /* Abstract background matching your palette */
  background: 
    radial-gradient(circle at 80% 20%, #b28d93 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, #3d1822 0%, transparent 50%),
    #fce4ec; 
  
  position: relative;
}

/* The Frosted Glass overlay */
.intro-body::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  background: rgba(252, 228, 236, 0.2);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  z-index: 1;
  
  /* Smooth transition configuration for the unblur animation */
  transition: backdrop-filter 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
              background 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Triggered by JS: Fades out the blur cleanly to reveal "home" */
.intro-body.clear-bg::before {
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: rgba(252, 228, 236, 0);
}

.intro-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  perspective: 1000px;
  position: relative;
  z-index: 2;
}

/* Elegant circular image card container */
.intro-card {
  background: #b28d93; 
  width: 240px;
  height: 240px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 40px rgba(178, 141, 147, 0.4), 0 10px 30px rgba(61, 24, 34, 0.15);
  
  opacity: 0;
  animation: 
    modernReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    floatingKitten 4s ease-in-out infinite 1.4s;
  
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.image-frame {
  width: 224px;
  height: 224px;
  border-radius: 50%;
  overflow: hidden;
  background: #fce4ec;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-card:hover {
  transform: scale(1.05) translateY(-5px) !important;
  box-shadow: 0 0 50px rgba(178, 141, 147, 0.7), 0 20px 40px rgba(61, 24, 34, 0.25);
}

/* On click, the card will fly to the header logo position and fade out */
/* triggered by JS */ it takes the .intro-card and animates it to the header logo position assigns to the top-left track while fading out */
.intro-wrapper.fly-to-header .intro-card {
  animation: flyToHeaderLogo 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Hint Subtext (Welcome / Click kitty) */
.intro-hint {
  font-family: "Poppins", sans-serif;
  color: #3d1822;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInHint 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.9s;
  
  /* Quick, sharp fade out transition */
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Handled by JS instantly on click */
.intro-wrapper.fade-text .intro-hint {
  opacity: 0 !important;
  transform: translateY(-15px);
}

/* ---------- ANIMATION KEYFRAMES ---------- */
@keyframes modernReveal {
  0% { opacity: 0; transform: scale(0.9) translateY(40px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes floatingKitten {
  0% { transform: translateY(0px) scale(1); box-shadow: 0 0 40px rgba(178, 141, 147, 0.4); }
  50% { transform: translateY(-12px) scale(1.03); box-shadow: 0 0 60px rgba(178, 141, 147, 0.6); }
  100% { transform: translateY(0px) scale(1); box-shadow: 0 0 40px rgba(178, 141, 147, 0.4); }
}

@keyframes fadeInHint {
  to { opacity: 0.6; transform: translateY(0); }
}

/* FLIGHT PATH TRAJECTORY */
@keyframes flyToHeaderLogo {
  0% {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  80% {
    opacity: 0.8; /* Keeps image beautifully visible mid-air */
  }
  100% {
    top: 40px;   /* Matches header spacing */
    left: 60px;  /* Matches header padding */
    transform: translate(0, 0) scale(0.22); /* Clean shrink to matching icon size */
    opacity: 0;  /* Fades out completely as it merges into home.html */
  }
}