/* Styling the Hero background for a dramatic effect */
.hero-bg {
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55)),
    url("images/CC Auto hero image red.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  mix-blend-mode: screen;
  z-index: 0;
}

/* Hover effects for cards */
.service-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent; /* Base border for effect */
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(224, 22, 43, 0.2),
    0 4px 6px rgba(224, 22, 43, 0.1);
  border-color: rgba(224, 22, 43, 0.5);
}

/* Base background for the entire application */
body {
  background-color: #000000;
  color: white;
  font-family: sans-serif;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  z-index: 0;
}

body::before {
  content: '';
  position: fixed;
  top: -10%;
  right: -5%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  animation: pulse-glow 8s ease-in-out infinite alternate;
  pointer-events: none;
  mix-blend-mode: screen;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  left: -10%;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 27, 27, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: 0;
  animation: float-slow 15s ease-in-out infinite alternate;
  pointer-events: none;
}

html {
  background-image: linear-gradient(rgba(50, 50, 50, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 50, 50, 0.3) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
}

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

@keyframes float-slow {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, -30px);
  }
}

/* Navigation and Footer use the secondary color */
nav,
footer {
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-100 {
  transition-delay: 0.1s;
}

.reveal-delay-200 {
  transition-delay: 0.2s;
}

.reveal-delay-300 {
  transition-delay: 0.3s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #E0162B !important;
}

.btn-pop {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.18s ease;
  box-shadow: 0 8px 24px rgba(224, 22, 43, 0.35),
    0 2px 8px rgba(224, 22, 43, 0.25);
  will-change: transform, box-shadow;
}

.btn-pop:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 32px rgba(224, 22, 43, 0.45),
    0 6px 14px rgba(224, 22, 43, 0.3);
}

.btn-pop:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 6px 14px rgba(224, 22, 43, 0.3),
    0 2px 8px rgba(224, 22, 43, 0.2);
}