/* ==========================================================================
   Credit Consultant — Minimalist Financial UI/UX Design System
   Tailored for Indian Credit Bureau Advisory, CIBIL Repair & Loan Sanction
   ========================================================================== */

@font-face {
  font-family: 'Google Sans Flex';
  src: local('Google Sans Flex'), local('GoogleSansFlex-Regular'), local('Google Sans'), local('Outfit');
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans';
  src: local('Google Sans'), local('GoogleSans-Regular'), local('Plus Jakarta Sans');
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --primary-navy: #0f172a;
  --primary-blue: #1d4ed8;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --surface-ground: #f8fafc;
  --border-hairline: rgba(226, 232, 240, 0.8);
}

/* ── Typography & Global Reset ────────────────────────────── */
html, body {
  font-family: 'Google Sans', 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative !important;
  color: #1e293b;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Google Sans Flex', 'Google Sans', 'Outfit', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* ── Subtle Financial Card Tokens ──────────────────────────── */
.fin-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fin-card:hover {
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  transform: translateY(-2px);
}

.fin-card-interactive {
  transition: all 0.2s ease-in-out;
}

.fin-card-interactive:hover {
  border-color: #93c5fd;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -12px rgba(37, 99, 235, 0.12);
}

/* ── Glassmorphism & Overlays ─────────────────────────────── */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── 3-D & Micro Animations from Next.js ──────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-10px) rotate(0.5deg); }
  66%       { transform: translateY(-5px) rotate(-0.5deg); }
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

@keyframes blob {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33%       { transform: scale(1.1) translate(25px, -18px); }
  66%       { transform: scale(0.95) translate(-18px, 12px); }
}

@keyframes rise {
  0%   { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

@keyframes spin-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.25; }
  50%       { transform: translateY(-35px) scale(1.5); opacity: 0.75; }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes progress {
  from { width: 0; }
  to   { width: 72%; }
}

@keyframes marquee {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 188, 125, 0.5), 0 10px 25px -5px rgba(0, 188, 125, 0.3);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(0, 188, 125, 0), 0 20px 35px -5px rgba(0, 188, 125, 0.45);
  }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes slide-in-bottom {
  0% { transform: translateY(100%) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes attention-ping {
  0% { transform: scale(1); opacity: 1; }
  75%, 100% { transform: scale(2); opacity: 0; }
}

.animate-float         { animation: float 6s ease-in-out infinite; }
.animate-float-gentle  { animation: float-gentle 4s ease-in-out infinite; }
.animate-blob          { animation: blob 12s ease-in-out infinite; }
.animate-rise          { animation: rise 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.animate-spin-slow     { animation: spin-slow 18s linear infinite; }
.animate-spin-reverse  { animation: spin-reverse 24s linear infinite; }
.animate-orbit         { animation: orbit 10s linear infinite; }
.animate-particle      { animation: particle 8s ease-in-out infinite; }
.animate-pulse-slow    { animation: pulse-slow 4s ease-in-out infinite; }
.animate-progress      { animation: progress 1.4s ease-out 0.8s both; }
.animate-pulse-glow    { animation: pulse-glow 2.5s infinite; }
.animate-marquee       { display: flex; width: max-content; animation: marquee 25s linear infinite; }
.animate-marquee:hover { animation-play-state: paused; }
.animate-slide-up      { animation: slide-in-bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ── Shimmer Button Overlay ───────────────────────────────── */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-150%);
  animation: shimmer 3.5s infinite;
}

/* ── Custom Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ── Mobile Touch & Responsive Polishes ───────────────────── */
* {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 640px) {
  /* Prevent horizontal scroll on small viewports */
  body, html {
    overflow-x: hidden !important;
    position: relative;
    width: 100vw;
  }

  /* Compact scrollbars on mobile */
  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
}
