/* ============================================
   msadev Design System v2.0 — Premium CSS
   ============================================ */

:root {
  --brand: #3b82f6;
  --accent: #eab308;
  --bg: #080d16;
  --surface: #0f172a;
  --border: rgba(255,255,255,0.08);
  --text-muted: #64748b;
}

/* === Gradient Text === */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #eab308);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Card Glow === */
.card-glow {
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.card-glow:hover {
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 24px rgba(59,130,246,0.15);
}

/* === Noise Overlay === */
.noise::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* === Fade Up Animation === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeup { 
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; 
  opacity: 0;
}

/* === Staggered Fade In (for lists/grids) === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-fadein {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* === Gradient Orb (Hero BG) === */
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -40px) scale(1.05); }
  66%  { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}
.gradient-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.35), transparent 70%);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.gradient-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.30), transparent 70%);
  bottom: -50px; left: -50px;
  animation-delay: -3s;
}
.gradient-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(234,179,8,0.20), transparent 70%);
  top: 40%; left: 50%;
  animation-delay: -6s;
}

/* === Shimmer Button Effect === */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.btn-shimmer {
  position: relative;
  overflow: hidden;
  background-size: 200% auto;
  background-image: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  animation: shimmer 3s ease infinite;
}

/* === Floating Animation === */
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* === Pulse Glow Ring === */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(59,130,246,0); }
}
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* === Scroll Down Indicator === */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(8px); opacity: 0.5; }
}
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* === Number Counter Animation Helper === */
@keyframes countPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* === Glass Panel Enhanced === */
.glass-card,
.glass-panel {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover,
.glass-panel:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 8px 40px rgba(59,130,246,0.1);
  transform: translateY(-4px);
}

/* Light mode glass card */
:root .glass-card,
:root .glass-panel,
html:not(.dark) .glass-card,
html:not(.dark) .glass-panel {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.06);
}
html:not(.dark) .glass-card:hover,
html:not(.dark) .glass-panel:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 8px 40px rgba(59,130,246,0.08);
}

/* === Animated Gradient Border === */
@keyframes gradientBorder {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.gradient-border {
  position: relative;
  border-radius: 1.5rem;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #eab308, #3b82f6);
  background-size: 300% 300%;
  animation: gradientBorder 6s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}
.gradient-border:hover::before {
  opacity: 1;
}

/* === Marquee / Ticker === */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-ticker {
  animation: ticker 30s linear infinite;
}

/* === CTA Wave Background === */
@keyframes waveMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.wave-bg {
  background: linear-gradient(-45deg, #1e3a8a, #3b82f6, #8b5cf6, #6366f1);
  background-size: 400% 400%;
  animation: waveMove 10s ease infinite;
}

/* === Product Card Premium Shadow === */
.product-card-premium {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
html.dark .product-card-premium:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(59,130,246,0.08);
}

/* === Smooth Scroll === */
html {
  scroll-behavior: smooth;
}

/* === Feature Icon Rotate on Hover === */
.feature-icon {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.group:hover .feature-icon {
  transform: rotateY(180deg) scale(1.1);
  background: #3b82f6;
  color: white;
}

/* === Section Divider Glow Line === */
.section-glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), transparent);
}

/* === Testimonial Carousel Dots === */
.dot-active {
  background: #3b82f6;
  width: 24px;
  border-radius: 12px;
}

/* === Badge Variants === */
.badge-gradient {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.2);
}
html:not(.dark) .badge-gradient {
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.08));
  color: #2563eb;
}

/* === Scroll Reveal Helper (JS toggles .revealed) === */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
