@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --steel: #4A5B6E;
  --gold: #D4AF37;
  --navy: #1A2A3A;
  --machinery: #E5E7EB;
  --charcoal: #2C2C2C;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--machinery);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Liquid Glass Refraction */
.liquid-glass {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 20px 40px -15px rgba(0, 0, 0, 0.05);
}

.liquid-glass-dark {
  background: rgba(26, 42, 58, 0.6); /* Navy with opacity */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px -10px rgba(0, 0, 0, 0.4);
}

/* Premium Surface (Bento 2.0 Base - White card on Machinery background) */
.premium-surface {
  background: #ffffff;
  border: 1px solid rgba(74, 91, 110, 0.1); /* Subtle Steel border */
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.04);
  border-radius: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-surface:hover {
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.08);
  border-color: rgba(212, 175, 55, 0.3); /* Gold tint on hover */
}

/* Stagger Fade Setup */
.stagger-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-target.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Tactile push buttons */
.btn-tactile {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s;
}

.btn-tactile:active {
  transform: scale(0.97) translateY(1px);
}

/* Magnetic physics base - JS will handle the numbers */
.magnetic-wrap {
  position: relative;
  display: inline-block;
}

.magnetic-item {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* Skeleton Shimmer */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.shimmer-loading {
  position: relative;
  overflow: hidden;
  background-color: rgba(74, 91, 110, 0.05);
}

.shimmer-loading::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, 
      rgba(255,255,255,0) 0%, 
      rgba(255,255,255,0.6) 50%, 
      rgba(255,255,255,0) 100%);
  animation: shimmer 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Infinite Carousel */
@keyframes carouselSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

.infinite-carousel-track {
  display: flex;
  width: max-content;
  animation: carouselSlide 25s linear infinite;
}

.infinite-carousel:hover .infinite-carousel-track {
  animation-play-state: paused;
}

/* Split Image Reveal Curtain */
.image-curtain {
  position: relative;
  overflow: hidden;
}

.image-curtain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--navy);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 10;
}

.image-curtain.revealed::before {
  transform: scaleX(0);
}

/* Process Timeline Path */
.timeline-dot {
  position: relative;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 2rem;
  width: calc(100% - 2rem);
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(212, 175, 55, 0.1) 100%);
  transform: translateY(-50%);
  z-index: -1;
}

.timeline-dot:last-child::before {
  display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--machinery);
}
::-webkit-scrollbar-thumb {
  background: var(--steel);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--navy);
}

/* Gradient Text */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(135deg, var(--gold), #f7d66f);
}

.hide-scroll {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.hide-scroll::-webkit-scrollbar {
  display: none;
}

/* Grid Table Lines */
.data-grid-row {
  display: grid;
  border-bottom: 1px solid rgba(74, 91, 110, 0.1);
  transition: background-color 0.2s ease;
}
.data-grid-row:hover {
  background-color: rgba(255, 255, 255, 0.6);
}
.data-grid-row > div {
  padding: 1rem 0.5rem;
  display: flex;
  align-items: center;
}
