/* main.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

@import './styles.scss';
#sidebar {
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(142, 68, 236, 0.8);
  animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
  0% { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}
@keyframes fadeOut {
    to {
      opacity: 0;
      visibility: hidden;
    }
  }

.animate-slideIn {
  animation: slideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  will-change: transform, opacity, filter;
}

 @keyframes glow {
    0%, 100% { box-shadow: 0 0 8px #7c3aed; }
    50% { box-shadow: 0 0 16px #a78bfa; }
  }
  .animate-glow {
    animation: glow 2s infinite;
  }

  /* Fade In for Text */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.animate-fadeIn {
  animation: fadeIn 0.5s ease-out both;
}

/* Glowing Text */
@keyframes glow {
  0%, 100% { text-shadow: 0 0 5px #6366f1, 0 0 10px #6366f1; }
  50% { text-shadow: 0 0 15px #c084fc, 0 0 20px #c084fc; }
}
.animate-glow-text {
  animation: glow 2s infinite;
  color: #e0e7ff; /* Optional: soft neon color */
}

/* Typing Text Effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blinkCaret {
  50% { border-color: transparent; }
}
.typing-effect {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #fff;
  width: 0;
  animation: typing 3s steps(40, end) forwards, blinkCaret 0.75s step-end infinite;
}

/* Bounce In Text */
@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.animate-bounceIn {
  animation: bounceIn 1s ease-out forwards;
}

/* Pulse Text */
@keyframes pulseText {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}
.animate-pulseText {
  animation: pulseText 2s infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.animate-fadeIn {
  animation: fadeIn 0.5s ease-out both;
}

@keyframes hintSlide {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-4px); opacity: 1; }
}
.animate-hintSlide {
  animation: hintSlide 2s ease-in-out infinite;
}

@keyframes glowText {
  0%, 100% { text-shadow: 0 0 4px #8b5cf6; }
  50% { text-shadow: 0 0 12px #a78bfa; }
}
.animate-glow-text {
  animation: glowText 1.5s infinite ease-in-out;
}

@keyframes riseFromLamp {
  from { opacity: 0; transform: translateY(80px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-riseFromLamp {
  animation: riseFromLamp 0.9s ease-out both;
}

@keyframes smokeFloat {
  0% { opacity: 0.1; transform: scale(0.9) translateY(0); }
  50% { opacity: 0.4; transform: scale(1.1) translateY(-20px); }
  100% { opacity: 0; transform: scale(1.2) translateY(-60px); }
}
.genie-smoke {
  background: radial-gradient(circle at center, #a78bfa55 0%, transparent 80%);
  border-radius: 50%;
  animation: smokeFloat 3s infinite ease-in-out;
  filter: blur(12px);
  position: absolute;
}
#fogCanvas,
#sparkCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}
#logo3d, #computer3d, #map3d {
  width: 100%;
  height: 300px;
  position: relative;
  z-index: 1;
  background: #141414;
  overflow: hidden;
}

  .model-viewer {
    width: 100%;
    height: 300px;
    position: relative;
    z-index: 1;
    background: #141414;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #333;
    cursor: pointer;
  }

  .fullscreen {
    position: fixed !important;
    top: 0; left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    background: #000;
  }

  .fullscreen .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    z-index: 10000;
    border-radius: 5px;
  }

  .fullscreen .close-btn:hover {
    background: rgba(255, 0, 0, 0.7);
  }


#feedbackList::-webkit-scrollbar {
  height: 6px;
}
#feedbackList::-webkit-scrollbar-thumb {
  background-color: #00bcd480;
  border-radius: 4px;
}

body.light-mode {
  background-color: #f4f4f8;
  color: #111;
}

body.light-mode .blog-card {
  background-color: #fff;
  color: #111;
}

body.light-mode .blog-card h3 {
  color: #6b21a8;
}

body.light-mode .blog-card p {
  color: #333;
}

 #pageViewsDisplay {
    box-shadow: 0 0 20px #8b5cf6aa, 0 0 40px #22d3eeaa;
    border-radius: 12px;
    font-family: 'Segoe UI', monospace;
  }

  /* Feedback form */
  @keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
#feedbackPopup > div {
  animation: fadeIn 0.3s ease-out;
}
