/* ============================================
   VELORIA AUTOMOTIVE - Custom CSS
   ============================================ */

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Carbon fiber texture */
.carbon-texture {
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 50%
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 50%
    );
  background-size: 8px 8px;
}

/* Gold glow text */
.text-glow {
  text-shadow: 0 0 20px rgba(242, 202, 80, 0.3), 0 0 60px rgba(242, 202, 80, 0.1);
}

/* Material icons */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Glassmorphism panel */
.glass-panel {
  background: rgba(20, 19, 19, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 228, 226, 0.10);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.glass-panel:hover {
  border-color: rgba(242, 202, 80, 0.4);
  background: rgba(30, 29, 29, 0.7);
  box-shadow: 0 0 30px rgba(242, 202, 80, 0.05), inset 0 0 30px rgba(242, 202, 80, 0.02);
}

/* Nav link hover underline */
.nav-link-hover {
  position: relative;
}
.nav-link-hover::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, #f2ca50, #e9c349);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link-hover:hover::after { width: 100%; }
.nav-link-active::after { width: 100%; }

/* Scrolled nav */
.nav-scrolled {
  background: rgba(10, 10, 10, 0.92) !important;
  border-bottom-color: rgba(242, 202, 80, 0.15) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Gradient divider */
.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 202, 80, 0.4), transparent);
}

/* Animated gold border button */
.btn-gold {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(242, 202, 80, 0.5);
  color: #f2ca50;
  transition: color 0.35s ease;
}
.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #f2ca50;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.btn-gold:hover::before { transform: translateY(0); }
.btn-gold:hover { color: #3c2f00; }
.btn-gold span { position: relative; z-index: 1; }

/* Animated fill button */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: #f2ca50;
  color: #3c2f00;
  transition: box-shadow 0.3s ease;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffe088;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { box-shadow: 0 0 30px rgba(242, 202, 80, 0.3); }
.btn-primary span { position: relative; z-index: 1; }

/* Spec card */
.spec-card {
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(77, 70, 53, 0.3);
}
.spec-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(242, 202, 80, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.spec-card:hover { border-color: rgba(242, 202, 80, 0.5); box-shadow: 0 0 40px rgba(242, 202, 80, 0.07); }
.spec-card:hover::before { opacity: 1; }

/* Model card */
.model-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.model-card img {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}
.model-card:hover img { transform: scale(1.06); filter: brightness(0.7); }
.model-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  transition: background 0.5s ease;
}
.model-card:hover .model-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.2) 100%);
}
.model-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.model-card-cta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.model-card:hover .model-card-cta { opacity: 1; transform: translateY(0); }

/* Cursor glow */
#cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 202, 80, 0.04) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: opacity 0.3s ease;
}

/* Parallax container */
.parallax-img {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Progress bar animation */
.stat-bar {
  height: 2px;
  background: rgba(242, 202, 80, 0.15);
  position: relative;
  overflow: hidden;
}
.stat-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #f2ca50, #e9c349);
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated number counter */
.counter-num {
  font-variant-numeric: tabular-nums;
}

/* Hero title entrance */
.hero-title-enter {
  opacity: 0;
  transform: translateY(30px) skewY(2deg);
  animation: heroTitleIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes heroTitleIn {
  to { opacity: 1; transform: translateY(0) skewY(0deg); }
}
.hero-sub-enter {
  opacity: 0;
  animation: fadeIn 1s ease 0.6s forwards;
}
.hero-btn-enter {
  opacity: 0;
  animation: fadeIn 1s ease 0.9s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Scroll indicator */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}

/* Mobile menu */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open {
  transform: translateX(0);
}

/* Gold line accent */
.gold-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, #f2ca50, transparent);
}

/* Image reveal on hover */
.img-reveal-container {
  overflow: hidden;
  position: relative;
}
.img-reveal-container img {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}
.img-reveal-container:hover img {
  transform: scale(1.04);
  filter: brightness(0.9);
}

/* Ambient background glow */
.ambient-glow-top {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(242, 202, 80, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Marquee ticker */
.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Tinted image overlay */
.gold-tint-hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(242, 202, 80, 0);
  transition: background 0.5s ease;
  pointer-events: none;
}
.gold-tint-hover:hover::after {
  background: rgba(242, 202, 80, 0.05);
}

/* Page loading bar */
#loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #f2ca50, #e9c349, #f2ca50);
  background-size: 200% 100%;
  z-index: 9999;
  animation: loadBar 0.8s ease forwards, shimmer 1s linear infinite;
}
@keyframes loadBar {
  from { width: 0; opacity: 1; }
  to { width: 100%; opacity: 0; }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
