/* M Strategy Theme Styling — Box.com Modern Inspired Design */
:root {
  --box-navy: #001538;
  --box-dark-navy: #06152D;
  --box-midnight: #040D1B;
  --box-blue: #0061D5;
  --box-blue-light: #2280F6;
  --box-cyan: #00B0FF;
  --m-orange: #FF6500;
  --m-orange-hover: #FF781A;
  --m-orange-glow: rgba(255, 101, 0, 0.35);
  --box-blue-glow: rgba(0, 97, 213, 0.25);
  --slate-dark: #0F172A;
  --slate-subtle: #F8FAFC;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0F172A;
  background-color: #FFFFFF;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #001538;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6500;
}

/* Box.com Dark Blue Background Sections */
.bg-box-darkblue {
  background-color: #001538;
}

.bg-box-midnight {
  background-color: #040D1B;
}

.bg-box-section-dark {
  background: radial-gradient(circle at 85% 15%, rgba(255, 101, 0, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(0, 97, 213, 0.2) 0%, transparent 55%),
              #001538;
}

.bg-box-hero-dark {
  background: radial-gradient(circle at 80% 20%, rgba(255, 101, 0, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(0, 97, 213, 0.25) 0%, transparent 55%),
              #040D1B;
}

/* AI Grid & Pattern Backgrounds */
.bg-box-grid {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-box-light-grid {
  background-image: linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Box.com Signature Typography Gradients */
.text-gradient-box-headline {
  background: linear-gradient(135deg, #FFFFFF 0%, #BAE6FD 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #FF6500 0%, #FF8A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #0061D5 0%, #00B0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Elements Animation (Box.com Hero Floating Badges) */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(-0.5deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.03);
  }
}

.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatReverse 7s ease-in-out infinite;
}

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

/* Glassmorphism Floating Cards */
.floating-glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 40px -15px rgba(0, 21, 56, 0.18), 0 0 15px rgba(255, 101, 0, 0.08);
  transition: all 0.3s ease;
}

.floating-glass-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 50px -15px rgba(0, 21, 56, 0.25), 0 0 25px rgba(255, 101, 0, 0.15);
}

.floating-glass-card-dark {
  background: rgba(6, 21, 45, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 97, 213, 0.2);
  transition: all 0.3s ease;
}

.floating-glass-card-dark:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 101, 0, 0.5);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 101, 0, 0.3);
}

/* Browser Frame & Screenshot Containers */
.browser-frame {
  box-shadow: 0 25px 50px -12px rgba(0, 21, 56, 0.25), 0 0 25px rgba(0, 97, 213, 0.1);
  transition: all 0.35s ease;
}

.browser-frame:hover {
  box-shadow: 0 35px 65px -15px rgba(0, 21, 56, 0.35), 0 0 35px rgba(255, 101, 0, 0.2);
  transform: translateY(-3px);
}

.browser-frame-dark {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 97, 213, 0.25);
  transition: all 0.35s ease;
}

.browser-frame-dark:hover {
  box-shadow: 0 35px 65px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 101, 0, 0.3);
  transform: translateY(-3px);
}

/* Motion Cards */
.motion-grid-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.motion-grid-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #FF6500, #0061D5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.motion-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(0, 21, 56, 0.12), 0 0 20px rgba(255, 101, 0, 0.15);
}

.motion-grid-card:hover::before {
  opacity: 1;
}

/* Buttons (Box.com Style with Orange Primary Accent) */
.btn-primary-orange {
  background-color: #FF6500;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 101, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-orange:hover {
  background-color: #FF781A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 101, 0, 0.45);
}

.btn-primary-navy {
  background-color: #001538;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 21, 56, 0.3);
  transition: all 0.25s ease;
}

.btn-primary-navy:hover {
  background-color: #062258;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 21, 56, 0.4);
}

.btn-outline-navy {
  background: transparent;
  border: 1.5px solid #001538;
  color: #001538;
  transition: all 0.25s ease;
}

.btn-outline-navy:hover {
  background: #001538;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  transition: all 0.25s ease;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #FF6500;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 101, 0, 0.3);
}

/* Badges */
.badge-orange {
  background: rgba(255, 101, 0, 0.1);
  border: 1px solid rgba(255, 101, 0, 0.3);
  color: #FF6500;
}

.badge-dark-orange {
  background: rgba(255, 101, 0, 0.15);
  border: 1px solid rgba(255, 101, 0, 0.4);
  color: #FF8A00;
}

.badge-blue {
  background: rgba(0, 97, 213, 0.1);
  border: 1px solid rgba(0, 97, 213, 0.3);
  color: #0061D5;
}

/* Navigation Links */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF6500;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Modal Backdrop */
.modal-backdrop {
  background: rgba(0, 15, 38, 0.85);
  backdrop-filter: blur(12px);
}
