@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-bangla: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-english: 'Plus Jakarta Sans', sans-serif;
}

* {
  font-family: var(--font-bangla);
  scroll-behavior: smooth;
}

.font-en {
  font-family: var(--font-english);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
  border: 2px solid #090d16;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}

/* Background Grids & Glows */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.bg-radial-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

.glass-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 30px -10px rgba(79, 70, 229, 0.25);
}

.glass-card-active {
  background: rgba(30, 41, 59, 0.85);
  border-color: #3b82f6;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.glow-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.5s ease;
}
.glow-btn:hover::before {
  transform: scale(1);
}

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 5s ease-in-out infinite 1.5s;
}

/* Pulse badge ring */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid currentColor;
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* Device Preview Frame Simulation */
.device-frame-desktop {
  width: 100%;
  height: 520px;
  border-radius: 12px;
  border: 4px solid #334155;
}

.device-frame-tablet {
  width: 480px;
  max-width: 100%;
  margin: 0 auto;
  height: 560px;
  border-radius: 24px;
  border: 8px solid #334155;
}

.device-frame-mobile {
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
  height: 560px;
  border-radius: 36px;
  border: 10px solid #1e293b;
  position: relative;
}
.device-frame-mobile::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  background: #0f172a;
  border-radius: 9999px;
  z-index: 20;
}

/* Custom Checkbox Pill */
.custom-checkbox:checked + label {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}

/* Modal fade animation */
.modal-backdrop {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.95) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-content-animated {
  animation: modalPop 0.25s ease-out forwards;
}

/* Notification Toast */
@keyframes slideInRight {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast-slide {
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
