/* ==========================================================================
   MCT Enterprise Tech — Fluid Motion, Glassmorphism & Micro-Interactions
   ========================================================================== */
:root {
  --mct-ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --mct-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --mct-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

/* 1. Ultra-thin Top Scroll Progress Indicator */
.mct-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 99999;
  pointer-events: none;
  background: transparent;
}
.mct-scroll-progress__bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #2563EB 0%, #06B6D4 60%, #60A5FA 100%);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.55);
  will-change: transform;
}

/* 2. Scroll Reveal Choreography (graceful progressive enhancement) */
.mct-reveal-ready [data-mct-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.65s var(--mct-ease-smooth),
    transform 0.65s var(--mct-ease-smooth);
  will-change: opacity, transform;
}
.mct-reveal-ready [data-mct-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 3. Modern Glassmorphic Sticky Header */
body.mct-enterprise-ui .header-wrapper.stuck #masthead.header-main {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom-color: rgba(226, 232, 240, 0.85);
  transition: background 0.3s var(--mct-ease-smooth), box-shadow 0.3s var(--mct-ease-smooth);
}
body.mct-enterprise-ui .header-wrapper.stuck {
  box-shadow: 0 10px 30px -10px rgba(11, 31, 58, 0.16);
}

/* Animated Nav Link Underline */
body.mct-enterprise-ui #wide-nav .header-bottom-nav > li > a {
  position: relative;
  transition: color 0.25s var(--mct-ease-smooth);
}
body.mct-enterprise-ui #wide-nav .header-bottom-nav > li > a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2.5px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #38BDF8, #2563EB);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--mct-ease-smooth);
}
body.mct-enterprise-ui #wide-nav .header-bottom-nav > li > a:hover::after,
body.mct-enterprise-ui #wide-nav .header-bottom-nav > li.current-menu-item > a::after {
  transform: scaleX(1);
}

/* Smooth Mega Menu Dropdown Entrance */
body.mct-enterprise-ui .nav > li.has-dropdown > .nav-dropdown {
  transition:
    opacity 0.28s var(--mct-ease-smooth),
    transform 0.28s var(--mct-ease-smooth),
    visibility 0.28s var(--mct-ease-smooth);
  transform: translateY(10px);
}
body.mct-enterprise-ui .nav > li.has-dropdown.current-dropdown > .nav-dropdown,
body.mct-enterprise-ui .nav > li.has-dropdown:hover > .nav-dropdown {
  transform: translateY(0);
}

/* 4. Button Shimmer & Tactile Press */
.mct-btn {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.28s var(--mct-ease-spring),
    box-shadow 0.28s var(--mct-ease-smooth),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.mct-btn:active {
  transform: translateY(0) scale(0.98);
}
.mct-btn--primary::before,
.mct-btn--accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  transition: left 0.65s var(--mct-ease-smooth);
  pointer-events: none;
}
.mct-btn--primary:hover::before,
.mct-btn--accent:hover::before {
  left: 145%;
}

/* 5. Modern Tech Ambient Mesh Background for Hero */
.mct-hero-section {
  position: relative;
  background-image:
    radial-gradient(at 12% 15%, rgba(37, 99, 235, 0.08) 0px, transparent 48%),
    radial-gradient(at 88% 12%, rgba(6, 182, 212, 0.08) 0px, transparent 44%),
    radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 24px 24px !important;
}

/* Hero Slider Modern Rounded Frame + Smooth Flickity Nav */
.mct-hero-slider .img-inner {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 40px -14px rgba(11, 31, 58, 0.2);
}
.mct-hero-slider .flickity-prev-next-button,
body.mct-enterprise-ui .slider-nav-circle .flickity-prev-next-button {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  box-shadow: 0 6px 16px rgba(11, 31, 58, 0.12);
  color: var(--mct-navy) !important;
  transition: transform 0.25s var(--mct-ease-spring), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.mct-hero-slider .flickity-prev-next-button:hover,
body.mct-enterprise-ui .slider-nav-circle .flickity-prev-next-button:hover {
  background: var(--mct-blue) !important;
  border-color: var(--mct-blue) !important;
  color: #fff !important;
  transform: scale(1.08);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
}
.mct-hero-slider .flickity-prev-next-button:hover svg,
body.mct-enterprise-ui .slider-nav-circle .flickity-prev-next-button:hover svg {
  fill: #fff !important;
}
.mct-hero-slider .flickity-page-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.65);
  opacity: 1;
  transition: width 0.35s var(--mct-ease-smooth), background 0.25s ease;
}
.mct-hero-slider .flickity-page-dots .dot.is-selected {
  width: 26px;
  background: var(--mct-blue);
}

/* Hero Quick Panel Glass Elevation */
.mct-hero-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: 0 14px 32px -12px rgba(11, 31, 58, 0.12);
  transition: box-shadow 0.35s var(--mct-ease-smooth);
}
.mct-hero-panel:hover {
  box-shadow: 0 20px 42px -12px rgba(11, 31, 58, 0.16);
}
.mct-hero-panel__dot {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  animation: mctPulseBlue 2.4s infinite;
}
@keyframes mctPulseBlue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
  60% { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0); }
}
.mct-hero-panel__item {
  transition: transform 0.25s var(--mct-ease-smooth), background 0.22s ease, border-color 0.22s ease;
}
.mct-hero-panel__item:hover {
  transform: translateX(4px);
}
.mct-hero-panel__item:hover .mct-hero-panel__icon {
  background: var(--mct-blue);
  transform: scale(1.06);
  transition: transform 0.25s var(--mct-ease-spring), background 0.25s ease;
}

/* 6. USP Cards with Spotlight Hover & Icon Glow */
.mct-usp-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  transition:
    transform 0.35s var(--mct-ease-smooth),
    box-shadow 0.35s var(--mct-ease-smooth),
    border-color 0.3s ease;
}
.mct-usp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, 0.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.mct-usp-card:hover::before {
  opacity: 1;
}
.mct-usp-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mct-blue), var(--mct-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s var(--mct-ease-smooth);
}
.mct-usp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -10px rgba(11, 31, 58, 0.14);
}
.mct-usp-card:hover::after {
  transform: scaleX(1);
}
.mct-usp-card__icon {
  transition: transform 0.35s var(--mct-ease-spring), background 0.25s ease, color 0.25s ease, box-shadow 0.3s ease;
}
.mct-usp-card:hover .mct-usp-card__icon {
  background: var(--mct-blue);
  color: #fff;
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.32);
}

/* 7. Fluid Infinite Brand Marquee (pauses smoothly on hover) */
.mct-brand-strip {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  box-shadow: 0 6px 20px -10px rgba(11, 31, 58, 0.08);
  overflow: hidden;
}
.mct-marquee-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.mct-marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 4px 0 6px;
  animation: mctBrandMarquee 30s linear infinite;
  will-change: transform;
}
.mct-marquee-viewport:hover .mct-marquee-track {
  animation-play-state: paused;
}
@keyframes mctBrandMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.mct-brand-item {
  min-width: 158px;
  flex-shrink: 0;
  transition:
    transform 0.3s var(--mct-ease-spring),
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.3s var(--mct-ease-smooth);
}
.mct-brand-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px -8px rgba(37, 99, 235, 0.24);
}

/* 8. Silky Enterprise Product Cards */
body.mct-enterprise-ui .product-small.box {
  position: relative;
  border-radius: 12px;
  transition:
    transform 0.38s var(--mct-ease-smooth),
    box-shadow 0.38s var(--mct-ease-smooth),
    border-color 0.3s ease;
  will-change: transform;
}
body.mct-enterprise-ui .product-small.box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, var(--mct-blue), var(--mct-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s var(--mct-ease-smooth);
}
body.mct-enterprise-ui .product-small.box:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 18px 36px -12px rgba(11, 31, 58, 0.16), 0 4px 12px -4px rgba(37, 99, 235, 0.1);
}
body.mct-enterprise-ui .product-small.box:hover::before {
  transform: scaleX(1);
}
body.mct-enterprise-ui .product-small.box .box-image img {
  transition: transform 0.55s var(--mct-ease-smooth);
}
body.mct-enterprise-ui .product-small.box:hover .box-image img {
  transform: scale(1.07);
}
body.mct-enterprise-ui .product-small.box .add-to-cart-button a.button,
body.mct-enterprise-ui .product-small.box .mct-btn-quote {
  transition: all 0.28s var(--mct-ease-smooth);
}
body.mct-enterprise-ui .product-small.box:hover .add-to-cart-button a.button,
body.mct-enterprise-ui .product-small.box:hover .mct-btn-quote {
  background: var(--mct-blue);
  border-color: var(--mct-blue);
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

/* Category Pills & View All Micro-Motion */
.mct-cat-pills li a {
  transition: all 0.25s var(--mct-ease-spring);
}
.mct-cat-pills li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.24);
}
.mct-view-all {
  transition: color 0.2s ease, transform 0.25s var(--mct-ease-smooth);
  display: inline-block;
}
.mct-view-all:hover {
  transform: translateX(3px);
}

/* 9. Animated Aurora B2B CTA Banner */
.mct-b2b-cta {
  background:
    radial-gradient(420px circle at var(--mx, 80%) var(--my, 30%), rgba(37, 99, 235, 0.35), transparent 65%),
    linear-gradient(135deg, #061224 0%, #0B1F3A 52%, #133568 100%);
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow: 0 22px 46px -16px rgba(7, 21, 41, 0.45);
}
.mct-b2b-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 20%, transparent 80%);
  pointer-events: none;
}
.mct-b2b-cta::after {
  animation: mctAuroraDrift 9s ease-in-out infinite alternate;
}
@keyframes mctAuroraDrift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.75; }
  100% { transform: translate(-45px, 28px) scale(1.22); opacity: 1; }
}

/* 10. Blog Cards Fluid Elevation */
body.mct-enterprise-ui .mct-home-blog .box {
  border-radius: 12px;
  transition: transform 0.38s var(--mct-ease-smooth), box-shadow 0.38s var(--mct-ease-smooth), border-color 0.3s ease;
}
body.mct-enterprise-ui .mct-home-blog .box:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -12px rgba(11, 31, 58, 0.15);
}
body.mct-enterprise-ui .mct-home-blog .box-image img {
  transition: transform 0.6s var(--mct-ease-smooth);
}
body.mct-enterprise-ui .mct-home-blog .box:hover .box-image img {
  transform: scale(1.07);
}

/* 11. AI Chatbot Silky Transitions & Message Pop-in */
.mct-ai-window {
  transition:
    opacity 0.32s var(--mct-ease-smooth),
    transform 0.36s var(--mct-ease-spring) !important;
  transform: translateY(20px) scale(0.94) !important;
  transform-origin: bottom right;
}
.mct-ai-root.is-open .mct-ai-window {
  transform: translateY(0) scale(1) !important;
}
.mct-ai-msg {
  animation: mctMsgIn 0.32s var(--mct-ease-smooth) both;
}
@keyframes mctMsgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.mct-ai-product-card {
  transition: transform 0.25s var(--mct-ease-smooth), border-color 0.2s ease, box-shadow 0.25s ease !important;
}
.mct-ai-product-card:hover {
  transform: translateX(4px);
}

/* 12. Smooth Floating Back-To-Top Button */
.mct-back-top {
  position: fixed;
  left: 22px;
  bottom: 24px;
  z-index: 9980;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--mct-navy);
  box-shadow: 0 8px 22px rgba(11, 31, 58, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s var(--mct-ease-smooth);
  margin: 0;
  padding: 0;
}
.mct-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mct-back-top:hover {
  background: var(--mct-blue);
  border-color: var(--mct-blue);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
}

@media (max-width: 767px) {
  .mct-back-top {
    left: 12px;
    bottom: 72px;
    width: 38px;
    height: 38px;
  }
}

/* Respect accessibility reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .mct-reveal-ready [data-mct-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
