/* MACONE EXPO 2027 - Custom Industrial Theme Styles */
/* Color Palette matched to MaConE Expo Logo:
   Primary Orange: #FF6E00 / #F97316
   Charcoal Black: #141417 / #1C1C21
   Crisp White:    #FFFFFF
*/

:root {
  --brand-orange: #ff6e00;
  --brand-orange-hover: #e05d00;
  --brand-orange-light: #fff3e8;
  --brand-dark: #141417;
  --brand-charcoal: #1e1e24;
  --brand-slate: #2a2a32;
}

[x-cloak] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #18181b;
  background-color: #ffffff;
}

.font-display {
  font-family: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif;
}

/* Logo-inspired slanted industrial stripes (///) */
.industrial-stripes {
  background-image: repeating-linear-gradient(
    -60deg,
    rgba(255, 110, 0, 0.14),
    rgba(255, 110, 0, 0.14) 10px,
    transparent 10px,
    transparent 24px
  );
}

.industrial-stripes-dark {
  background-image: repeating-linear-gradient(
    -60deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 12px,
    transparent 12px,
    transparent 28px
  );
}

/* Subtle engineering blueprint grid */
.blueprint-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 110, 0, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 110, 0, 0.07) 1px, transparent 1px);
}

/* Logo-inspired angled accent bar */
.angle-badge {
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.angle-banner {
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}

/* Hexagonal emblem accent matching the left icon of the MaConE logo */
.hex-frame {
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
}

/* Smooth animated machinery reel fallback for Video Hero mode */
@keyframes kenBurnsSlow {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
  100% {
    transform: scale(1) translate3d(0, 0, 0);
  }
}

.animate-ken-burns {
  animation: kenBurnsSlow 18s ease-in-out infinite;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* 3D Split-Flap Flip Countdown Styles */
.flip-unit {
  perspective: 800px;
}

.flip-card {
  position: relative;
  height: 92px;
  border-radius: 14px;
  background: #141417;
  border: 1px solid #3f3f46;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform-style: preserve-3d;
}

.flip-seam {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 20;
  pointer-events: none;
}

.flip-half {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-half-top {
  top: 0;
  align-items: flex-end;
  background: linear-gradient(180deg, #27272e 0%, #1c1c22 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
}

.flip-half-bottom {
  bottom: 0;
  align-items: flex-start;
  background: linear-gradient(180deg, #17171c 0%, #1e1e24 100%);
}

.flip-digit {
  font-family: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 92px;
  height: 92px;
  display: block;
  user-select: none;
}

.flip-half-top .flip-digit {
  transform: translateY(46px);
}

.flip-half-bottom .flip-digit {
  transform: translateY(-46px);
}

.flip-flap-top {
  z-index: 15;
  transform-origin: bottom center;
  animation: flipTopDown 0.28s ease-in forwards;
}

.flip-flap-bottom {
  z-index: 16;
  transform-origin: top center;
  transform: rotateX(90deg);
  animation: flipBottomDown 0.28s 0.28s ease-out forwards;
}

@keyframes flipTopDown {
  0% {
    transform: rotateX(0deg);
    filter: brightness(1);
  }
  100% {
    transform: rotateX(-90deg);
    filter: brightness(0.55);
  }
}

@keyframes flipBottomDown {
  0% {
    transform: rotateX(90deg);
    filter: brightness(0.6);
  }
  100% {
    transform: rotateX(0deg);
    filter: brightness(1);
  }
}

@media (min-width: 640px) {
  .flip-card {
    height: 108px;
  }
  .flip-digit {
    font-size: 3.75rem;
    line-height: 108px;
    height: 108px;
  }
  .flip-half-top .flip-digit {
    transform: translateY(54px);
  }
  .flip-half-bottom .flip-digit {
    transform: translateY(-54px);
  }
}

/* Partner / Exhibitor Swiper Theme */
.partner-swiper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.partner-swiper .swiper-wrapper {
  box-sizing: border-box;
}

.partner-swiper.swiper-cards .swiper-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
}

.partner-swiper.swiper-cards .swiper-slide > div {
  width: 100%;
}

.partner-swiper .swiper-pagination {
  bottom: 2px !important;
}

.partner-swiper .swiper-pagination-bullet {
  background: #a1a1aa;
  opacity: 0.6;
  width: 8px;
  height: 8px;
  transition: all 0.25s ease;
}

.partner-swiper .swiper-pagination-bullet-active {
  background: #ff6e00;
  opacity: 1;
  width: 22px;
  border-radius: 999px;
}

/* Hero Banner Swiper Theme */
.banner-swiper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.banner-swiper .swiper-pagination {
  bottom: 12px !important;
  left: 50% !important;
  transform: translateX(-50%);
  width: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.banner-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
  width: 9px;
  height: 9px;
  margin: 0 !important;
  transition: all 0.25s ease;
}

.banner-swiper .swiper-pagination-bullet-active {
  background: #ff6e00;
  width: 26px;
  border-radius: 999px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f4f4f5;
}

::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff6e00;
}
