html {
  scroll-behavior: smooth;
}

/* Scroll animation base states */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Metal card */
.metal-card {
  background: linear-gradient(145deg, #1a1a25, #151520);
  border: 1px solid #3a3a4a;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-left: 1px solid rgba(255,255,255,0.04);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.metal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 101, 10, 0.3);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 30px rgba(232, 101, 10, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Gallery image hover */
.gallery-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-img:hover {
  transform: scale(1.05);
}

/* Gradient text — laser orange */
.gradient-text {
  background: linear-gradient(135deg, #e8650a, #ff8c32);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Parallax background images */
.parallax-bg {
  will-change: transform;
  transition: none;
  transform: scale(1.3);
}
.hero-bg {
  background-size: cover;
  background-position: center;
}

/* Heading font */
h1, h2, h3 {
  font-family: 'Rajdhani', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Nav metal */
.nav-metal {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(58, 58, 74, 0.5);
}

/* CTA button metal */
.btn-metal {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e8650a, #c04a00);
  border: 1px solid rgba(255, 140, 50, 0.3);
  transition: all 0.3s ease;
}
.btn-metal::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.btn-metal:hover::after {
  left: 100%;
}
.btn-metal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(232, 101, 10, 0.3);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
  max-height: 400px;
}

/* Pulse dot */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}
.pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-anim {
  animation: float 6s ease-in-out infinite;
}

/* Laser scan line */
@keyframes laser-scan {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(300%); opacity: 0; }
}
.laser-line::before {
  content: '';
  position: absolute;
  bottom: 40%;
  left: 0;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e8650a, transparent);
  animation: laser-scan 4s ease-in-out infinite;
}

/* Metal divider */
.metal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #3a3a4a, rgba(232,101,10,0.3), #3a3a4a, transparent);
}

/* Brushed metal texture */
.brushed-metal {
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.015) 0px,
      transparent 1px,
      transparent 2px,
      rgba(255,255,255,0.015) 3px
    );
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* Before/After compare slider */
#heroCompare {
  cursor: none;
}
#heroCompare:hover #laserCursor {
  display: block !important;
}
#compareOverlay img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}

/* Dark autofill override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #1a1a25 inset !important;
  -webkit-text-fill-color: #d0d0dc !important;
  border-color: #3a3a4a !important;
}
