/* Logix AI Lab - Global Design System (Microsoft 365 & Stripe Enterprise Quality) */

:root {
  --color-primary: #0078D4;
  --color-primary-hover: #0067B8;
  --color-accent: #4F46E5;
}

/* Base Smooth Scrolling & Typography */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ========================================================
   UNIFORM CARD & COMPONENT HOVER SYSTEM ACROSS ALL PAGES
   ======================================================== */
.ms-card, .glass-card, .glass-panel, .tour-card, .feature-card, .pricing-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

/* Light Mode Card Styling & Hover */
html:not(.dark) .ms-card, 
html:not(.dark) .glass-card, 
html:not(.dark) .glass-panel,
html:not(.dark) .feature-card {
  background-color: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
}

html:not(.dark) .ms-card:hover, 
html:not(.dark) .glass-card:hover, 
html:not(.dark) .glass-panel:hover,
html:not(.dark) .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
  border-color: #0078D4 !important;
}

/* Dark Mode Card Styling & Hover */
html.dark .ms-card, 
html.dark .glass-card, 
html.dark .glass-panel,
html.dark .feature-card {
  background-color: #161F30;
  border-color: #1F293D;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

html.dark .ms-card:hover, 
html.dark .glass-card:hover, 
html.dark .glass-panel:hover,
html.dark .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 120, 212, 0.15);
  border-color: #0078D4 !important;
}

/* Brand Text Gradients */
.gradient-text, .text-gradient-cyan, .text-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #4338ca 60%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

html.dark .gradient-text, html.dark .text-gradient-cyan, html.dark .text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 60%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0B0F19;
}

html:not(.dark) ::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

html:not(.dark) ::-webkit-scrollbar-thumb {
  background: #CBD5E1;
}

::-webkit-scrollbar-thumb:hover {
  background: #0078D4;
}

/* Video Frame Responsive Container */
.video-responsive-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Branded Video Cards (Stay intentionally dark theater) */
.custom-video-card {
  background: #0B0F19 !important;
  color: #ffffff !important;
}

.custom-video-card * {
  color: inherit;
}
