/* ============================================
   CHILCHILL V3 - Futuristic Tech Design
   Modern CSS with Tailwind enhancements
   ============================================ */

/* CSS Variables */
:root {
  --color-dark: #0a0a0f;
  --color-dark-lighter: #12121a;
  --color-primary: #212F53;
  --color-primary-light: #2a3c6a;
  --color-secondary: #88D6C9;
  --color-secondary-light: #9fe5d8;
  --color-accent: #64ffd9;
  --color-light: #ffffff;
  --color-light-dim: rgba(255, 255, 255, 0.6);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-dark: linear-gradient(180deg, var(--color-dark) 0%, var(--color-dark-lighter) 100%);
  --gradient-text: linear-gradient(135deg, var(--color-light) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);

  /* Effects */
  --glow-secondary: 0 0 40px rgba(136, 214, 201, 0.3);
  --glow-primary: 0 0 40px rgba(33, 47, 83, 0.5);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Font */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  background-color: var(--color-dark);
  color: var(--color-light);
  font-family: var(--font-heading);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
.font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
}

.font-body {
  font-family: var(--font-body);
  font-weight: 500;
}

/* Background Effects */
.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}



.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(136, 214, 201, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 214, 201, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  animation: grid-shift 60s linear infinite;
}

@keyframes grid-shift {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.02) rotate(1deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Color Utilities */
.bg-dark {
  background-color: var(--color-dark);
}

.bg-dark-lighter {
  background-color: var(--color-dark-lighter);
}

.bg-primary {
  background-color: var(--color-primary);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.text-dark {
  color: var(--color-dark);
}

.text-light {
  color: var(--color-light);
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

/* Gradients */
.text-gradient-secondary {
  background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-primary {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button Styles */
.btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-secondary);
  transition: var(--transition-smooth);
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.btn-glow:hover::after {
  opacity: 1;
  transform: rotate(45deg) translate(50%, 0);
}

.btn-outline {
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  box-shadow: 0 0 20px rgba(136, 214, 201, 0.2);
}

/* Navigation */
#navbar {
  transition: all 0.3s ease;
}

#navbar.nav-visible {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(136, 214, 201, 0.1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile Menu */
#mobile-menu {
  backdrop-filter: blur(30px);
}

/* Hero Section */
.hero-title {
  animation: hero-fade-in 1s ease-out;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Carousel */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.1);
  animation: subtle-zoom 20s ease-in-out infinite alternate;
}

@keyframes subtle-zoom {
  0% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1.15);
  }
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(10, 10, 15, 0.85) 0%,
      rgba(10, 10, 15, 0.75) 40%,
      rgba(10, 10, 15, 0.85) 100%);
  z-index: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  padding: 12px 20px;
  background: rgba(10, 10, 15, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(136, 214, 201, 0.1);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(136, 214, 201, 0.6);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--color-secondary);
  width: 24px;
  border-radius: 10px;
}


/* Feature Cards */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%,
      rgba(136, 214, 201, 0.15) 0%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.feature-card:hover::before {
  opacity: 1;
}

/* Pricing Cards */
.price-card {
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(136, 214, 201, 0.2);
  transition: var(--transition-smooth);
}

.price-card:hover {
  border-color: rgba(136, 214, 201, 0.5);
  box-shadow: 0 10px 40px rgba(136, 214, 201, 0.1);
}

.price-card.featured {
  border-color: var(--color-secondary);
  box-shadow: var(--glow-secondary);
}

/* Process Steps */
.process-step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -24px;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-secondary) 0%, transparent 100%);
  opacity: 0.3;
}

.process-step:last-child::after {
  display: none;
}

/* Shimmer Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Category Buttons */
.category-btn {
  position: relative;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.category-btn.active {
  background: rgba(136, 214, 201, 0.15);
  border-color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(136, 214, 201, 0.2);
  color: white;
}

/* Motorcycle Display */
#motorcycle-display {
  min-height: 600px;
}

.motorcycle-card {
  background: linear-gradient(145deg, rgba(10, 10, 15, 0.8) 0%, rgba(18, 18, 26, 0.9) 100%);
  border: 1px solid rgba(136, 214, 201, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem;
}

.bike-tabs-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bike-tabs-container::-webkit-scrollbar {
  display: none;
}

.bike-tab {
  transition: var(--transition-smooth);
}

.bike-tab.active {
  background: var(--color-secondary);
  color: var(--color-dark);
  box-shadow: 0 0 20px rgba(136, 214, 201, 0.4);
}

/* Image Modal */
#image-modal {
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.95);
}

/* Reviews */
.review-card {
  background: linear-gradient(145deg, rgba(10, 10, 15, 0.6) 0%, rgba(18, 18, 26, 0.8) 100%);
  border: 1px solid rgba(136, 214, 201, 0.15);
  backdrop-filter: blur(10px);
}

/* Contact Cards */
.contact-card {
  transition: var(--transition-smooth);
}

.contact-card:hover {
  transform: translateX(8px);
}

/* Loading Animation */
.loading-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Selection Styling */
::selection {
  background: var(--color-secondary);
  color: var(--color-dark);
}

/* Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Animations */
.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-scale-in {
  animation: scale-in 0.5s ease-out forwards;
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .process-step::after {
    display: none;
  }

  #motorcycle-display {
    min-height: 500px;
  }

  .category-btn {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 14px;
  }

  .motorcycle-card {
    padding: 1rem;
  }
}

/* High-Res Display */
@media (min-resolution: 2dppx) {
  .bg-grid {
    background-size: 25px 25px;
  }
}

/* Print Styles */
@media print {

  .bg-canvas,
  #navbar,
  #mobile-menu {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}