/* style.css */
body {
  font-family: "Inter", "Helvetica Neue", "Arial", sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #000;
  color: #fff;
}

/* Animations that were handled by Framer Motion */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Parallax elements */
.parallax-bg {
  will-change: transform;
}

/* Navbar background transition */
nav {
  transition: background-color 0.5s ease, padding 0.5s ease;
}

nav.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Concept specific transition */
#chassis-blueprint {
  transition: opacity 0.5s ease;
}
#base-car-render {
  transition: opacity 0.5s ease;
}

/* Safety Foldable transition */
#safety-base-car {
  transition: opacity 0.5s ease;
}
#safety-foldable-car {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Fashion interactive skins */
.skin-img {
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 90%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.95);
  filter: blur(10px);
  z-index: 0;
}

.skin-img.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
  z-index: 10;
}

/* Sustainability Pulse */
@keyframes eco-pulse {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
  100% { transform: scale(1); opacity: 0.3; }
}

.eco-glow {
  animation: eco-pulse 5s infinite ease-in-out;
}

/* Tech hotspots */
@keyframes hotspot-ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
.hotspot-ping {
  animation: hotspot-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
