/* Custom resets & behaviors */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
html[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #090A0F;
}
::-webkit-scrollbar-thumb {
  background: #E5E7EB;
  border-radius: 999px;
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #1F2937;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF3800;
}

/* Theme Toggle Custom Icons */
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Custom Animations & Transitions */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active, .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Shorthand animation presets */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 56, 0, 0.4), 0 4px 12px rgba(255, 56, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 56, 0, 0), 0 4px 20px rgba(255, 56, 0, 0.2);
  }
}
.pulse-glow {
  animation: pulse-glow 2.2s infinite;
}

/* Slide in directions */
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active, .reveal-left.in {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active, .reveal-right.in {
  opacity: 1;
  transform: translateX(0);
}

/* Glassmorphism panel styling shorthand */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html[data-theme="dark"] .glass-panel {
  background: rgba(20, 22, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Logo inversion for dark mode */
html[data-theme="dark"] .logo-img {
  filter: invert(1) hue-rotate(180deg) brightness(1.5);
}

/* Wizard step progress states */
.wl-step-dot.active .wl-dot-circle {
  background: #ff3800 !important;
  border-color: #ff3800 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 6px rgba(255, 56, 0, 0.15) !important;
  transform: scale(1.08);
}
.wl-dot-circle {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wl-step-dot.done .wl-dot-circle {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
}
.wl-step-dot.active .wl-step-label {
  color: #ff3800 !important;
  font-weight: 700 !important;
}
.wl-step-dot.done .wl-step-label {
  color: #22c55e !important;
}
.wl-connector.done {
  background: #22c55e !important;
}

/* Checkbox item checked states */
.check-item {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.check-item:has(input:checked) {
  border-color: #ff3800 !important;
  background-color: rgba(255, 56, 0, 0.05) !important;
  transform: scale(1.02);
}
html[data-theme="dark"] .check-item:has(input:checked) {
  background-color: rgba(255, 56, 0, 0.1) !important;
}

/* Micro-interaction scale hover effect for cards */
.interactive-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.interactive-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
html[data-theme="dark"] .interactive-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Smooth custom button transition link classes */
.btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Advanced Smart Animations */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.active, .reveal-scale.in {
  opacity: 1;
  transform: scale(1);
}

.reveal-blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(15px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
}
.reveal-blur.active, .reveal-blur.in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Staggered transition delays for lists/grids */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }

/* Abstract Background Elements (to fill emptiness) */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
}
.bg-blob-orange { background: rgba(255, 56, 0, 0.15); }
.bg-blob-yellow { background: rgba(255, 183, 3, 0.15); }
html[data-theme="dark"] .bg-blob-orange { background: rgba(255, 56, 0, 0.1); }
html[data-theme="dark"] .bg-blob-yellow { background: rgba(255, 183, 3, 0.1); }

.bg-pattern-grid {
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
}
html[data-theme="dark"] .bg-pattern-grid {
  background-image: linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
}
