/* Paytm AI Hub & Homepage - Premium Hackathon Theme */
:root {
  --paytm-navy: #002970;
  --paytm-blue: #00b9f1;
  --paytm-dark-blue: #0f4a8a;
  --paytm-light-bg: #f5f7fa;
  --paytm-cyan: #00baf2;
  --paytm-cyan-light: #e6f8fe;
  --paytm-border: #e2e8f0;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f4f7fb;
  color: #1e293b;
  overflow-x: hidden;
}

/* Micro-interaction & Click feedback */
.interactive-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

.interactive-btn:active {
  transform: scale(0.96) translateY(1px);
}

.interactive-btn:hover {
  transform: translateY(-2px);
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  background-color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.ripple-dark {
  background-color: rgba(0, 41, 112, 0.2);
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Robot Mascot Floating Animation */
@keyframes floatRobot {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    filter: drop-shadow(0 15px 25px rgba(0, 185, 241, 0.35));
  }
  50% {
    transform: translateY(-10px) rotate(1.5deg);
    filter: drop-shadow(0 25px 35px rgba(0, 185, 241, 0.5));
  }
}

.floating-robot {
  animation: floatRobot 4s ease-in-out infinite;
  transform-origin: center bottom;
}

/* Glowing Pulse on Paytm AI Hub Card */
@keyframes aiGlow {
  0%, 100% {
    box-shadow: 0 10px 30px -5px rgba(0, 186, 242, 0.25), 0 0 0 1px rgba(0, 186, 242, 0.15);
  }
  50% {
    box-shadow: 0 18px 45px -5px rgba(0, 186, 242, 0.45), 0 0 0 2px rgba(0, 186, 242, 0.4);
  }
}

.ai-hub-glow-card {
  animation: aiGlow 3.5s infinite alternate ease-in-out;
  background: linear-gradient(135deg, #e8f7ff 0%, #d8f1fe 45%, #b9e7fe 100%);
  position: relative;
  border: 1px solid rgba(0, 186, 242, 0.3);
}

/* Explore AI Hub Button Shine */
.btn-explore-ai {
  background: linear-gradient(135deg, #002970 0%, #0d47a1 100%);
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-explore-ai::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(25deg);
  animation: btnShine 4s infinite;
}

@keyframes btnShine {
  0%, 70% {
    left: -60%;
  }
  100% {
    left: 140%;
  }
}

.btn-explore-ai:hover {
  background: linear-gradient(135deg, #001f54 0%, #002970 100%);
  box-shadow: 0 8px 20px rgba(0, 41, 112, 0.35);
  transform: translateY(-2px) scale(1.02);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: white;
  color: #1e293b;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  border-left: 4px solid #00b9f1;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOutToast 0.3s ease 2.7s forwards;
  max-width: 380px;
}

@keyframes slideInToast {
  from {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes fadeOutToast {
  to {
    transform: translateY(10px);
    opacity: 0;
  }
}

/* Page Transition Portal Effect */
.page-portal-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #00b9f1 0%, #002970 80%);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.page-portal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
