@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Official MisterStudio Palette */
  --ms-teal-primary: #296889;
  --ms-teal-light: #3D85A8;
  --ms-teal-glow: rgba(41, 104, 137, 0.45);
  
  /* Automotive Wrap Orange Accent */
  --ms-orange-primary: #EA580C;
  --ms-orange-light: #F97316;
  --ms-orange-glow: rgba(234, 88, 12, 0.45);

  --ms-bg-dark: #070A0F;
  --ms-bg-card: #0D131D;
  --ms-border: rgba(41, 104, 137, 0.25);
}

body {
  font-family: var(--font-body);
  background-color: var(--ms-bg-dark);
  color: #E2E8F0;
  overflow-x: hidden;
  selection-background-color: var(--ms-teal-light);
  selection-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
}

.font-mono-code {
  font-family: var(--font-mono);
}

/* Glassmorphism & Luxury Cards */
.glass-panel {
  background: rgba(13, 19, 29, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-glow {
  background: linear-gradient(135deg, rgba(20, 31, 48, 0.75) 0%, rgba(10, 16, 26, 0.9) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ms-border);
  box-shadow: 0 10px 30px -10px var(--ms-teal-glow);
}

.glow-teal {
  box-shadow: 0 0 35px -5px var(--ms-teal-glow);
}

.glow-orange {
  box-shadow: 0 0 35px -5px var(--ms-orange-glow);
}

/* Custom Gradients */
.bg-radial-gradient {
  background: radial-gradient(circle at 50% 20%, rgba(41, 104, 137, 0.25) 0%, rgba(7, 10, 15, 0) 70%);
}

.text-gradient-teal {
  background: linear-gradient(135deg, #FFFFFF 0%, #3D85A8 50%, #296889 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Hero Vignette for Vehicle Photography */
.hero-vignette {
  background: linear-gradient(
    to bottom,
    rgba(7, 10, 15, 0.75) 0%,
    rgba(7, 10, 15, 0.45) 40%,
    rgba(7, 10, 15, 0.85) 80%,
    rgba(7, 10, 15, 1) 100%
  );
}

/* Before / After Slider Styles */
.ba-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.ba-before-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: clip-path;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #38BDF8;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.9), 0 0 30px rgba(56, 189, 248, 0.4);
  z-index: 20;
  touch-action: none;
  will-change: left;
}

.ba-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #070D14;
  border: 2px solid #38BDF8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  cursor: ew-resize;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ba-slider-button:hover,
.ba-slider-button:active {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 25px rgba(56, 189, 248, 1);
  color: white;
  border-color: #F97316;
}

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

::-webkit-scrollbar-track {
  background: #070A0F;
}

::-webkit-scrollbar-thumb {
  background: #172333;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
  background: #296889;
}

/* Pulse animation */
@keyframes pulseSubtle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.03); }
}

.animate-pulse-subtle {
  animation: pulseSubtle 4s infinite ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Floating Action Buttons & Temporal Attention Movement */
@keyframes attentionFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(41, 104, 137, 0.45);
  }
}

@keyframes attentionFloatWA {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 25px -5px rgba(18, 140, 126, 0.4);
  }
  50% {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 32px -4px rgba(37, 211, 102, 0.55);
  }
}

.animate-attention-guide {
  animation: attentionFloat 5s ease-in-out infinite;
}

.animate-attention-wa {
  animation: attentionFloatWA 5s ease-in-out infinite;
  animation-delay: 2.5s;
}

/* Modal slide up animation */
@keyframes slideUpModal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-slide-up {
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Floating Back to Top Button */
#back-to-top-btn {
  will-change: transform, opacity;
}

#back-to-top-btn:hover {
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4), 0 10px 25px -5px rgba(0, 0, 0, 0.8);
}
