/* ===== Custom Styles for JT Automotive ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Floating card animations */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1s; }
.card-3 { animation-delay: 2s; }
.card-4 { animation-delay: 3s; }
.card-5 { animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* Geometric background shapes */
.hero-shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 83, 42, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  animation: pulse-slow 8s ease-in-out infinite;
}

.shape-rect-1 {
  width: 200px;
  height: 200px;
  background: rgba(228, 162, 74, 0.06);
  bottom: 20%;
  left: -50px;
  border-radius: 24px;
  transform: rotate(15deg);
  animation: rotate-slow 20s linear infinite;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid rgba(232, 83, 42, 0.05);
  top: 30%;
  left: 10%;
  animation: float-slow 10s ease-in-out infinite;
}

.shape-circle-2 {
  width: 150px;
  height: 150px;
  border: 3px solid rgba(228, 83, 42, 0.1);
  border-radius: 50%;
  bottom: 15%;
  right: 5%;
  animation: pulse-slow 6s ease-in-out infinite;
}

.shape-dots {
  background-image: radial-gradient(circle, rgba(232, 83, 42, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  width: 200px;
  height: 200px;
  top: 40%;
  right: 15%;
  opacity: 0.6;
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes rotate-slow {
  from { transform: rotate(15deg); }
  to { transform: rotate(375deg); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Mobile menu animations */
#mobileMenuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#mobileMenuBtn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

/* Service card hover - border animation */
.group:hover .rounded-xl {
  transition: background-color 0.3s ease;
}

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

::-webkit-scrollbar-track {
  background: #fdf8e8;
}

::-webkit-scrollbar-thumb {
  background: #e8532a;
  border-radius: 4px;
}

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

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #e8532a;
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .floating-card {
    animation: none;
  }
  .hero-shape {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
