/* Prodrive Theme Colors */
:root {
  --primary-color: #d12c37; /* Red */
  --secondary-color: #ffffff; /* White */
  --accent-color: #212529; /* Black */
  --text-dark: #212529;
  --text-light: #ffffff;
  --overlay-dark: rgba(73 32 32 / 0.38);
  --overlay-light: rgba(255, 255, 255, 0.95);
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

/* General Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  background-color: var(--secondary-color) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all 0.3s ease;
  animation: fadeInDown 0.8s ease;
}

.navbar-brand {
  font-weight: bold;
  color: var(--primary-color) !important;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: rotate(5deg);
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.btn-primary-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.6rem 2rem;
  font-weight: 600;
  transition: all 0.4s ease;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary-custom::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn-primary-custom:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary-custom:hover {
  background-color: #c82333;
  border-color: #bd2130;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-primary-custom:active {
  transform: translateY(-1px) scale(1.02);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  0% {
    background-position: 0 -50px;
  }
  50% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 -50px;
  }
}

/* Fallback if the operatring system prefers reduced motion*/
@media (prefers-reduced-motion) {
  .hero-section {
    animation: scroll 800s linear infinite;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-dark);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-content .btn {
  animation: fadeInUp 1s ease 0.9s both, pulse 2s ease-in-out 2s infinite;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.feature-box {
  text-align: center;
  padding: 2rem;
  transition: all 0.4s ease;
  border-radius: 15px;
  background: transparent;
  opacity: 0;
  transform: translateY(30px);
}

.feature-box.animate {
  animation: fadeInUp 0.8s ease forwards;
}

.feature-box:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-box:nth-child(2) {
  animation-delay: 0.3s;
}
.feature-box:nth-child(3) {
  animation-delay: 0.5s;
}

.feature-box:hover {
  transform: translateY(-15px) scale(1.03);
  background: white;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: all 0.7s ease;
  display: inline-block;
}

.feature-box:hover .feature-icon {
  transform: rotateY(360deg) scale(1.2);
  color: #c82333;
}

.feature-box h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.feature-box:hover h3 {
  color: var(--primary-color);
}

/* About Section */
.about-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

.about-section .col-lg-6:first-child {
  opacity: 0;
  transform: translateX(-50px);
}

.about-section .col-lg-6:first-child.animate {
  animation: slideInLeft 1s ease forwards;
}

.about-section .col-lg-6:last-child {
  opacity: 0;
}

.about-section .col-lg-6:last-child.animate {
  opacity: 1;
  transition: opacity 1.5s ease;
}

.about-section img {
  /* transition: transform 0.5s ease, box-shadow 0.5s ease; */
  transition: opacity 1.5s ease;
}
/* 
.about-section img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
} */

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateX(-30px);
}

.section-title.animate {
  animation: slideInLeft 0.8s ease forwards;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 4px;
  background-color: var(--primary-color);
  transition: width 0.8s ease 0.3s;
}

.section-title.animate::after {
  width: 60px;
}

.section-subtitle {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateX(-30px);
}

.section-subtitle.animate {
  animation: slideInLeft 0.8s ease 0.2s forwards;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #c82333 100%);
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: "";
  position: absolute;
  top: 83%;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/car.svg");
  background-repeat: repeat-x;
  background-size: 150px 50px;
  filter: drop-shadow(3px 10px 5px #dfdfdf75);
  animation: cta-move 12s linear infinite;
  z-index: 0;
}

/* .cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/prodrive-logo-small.png");
  background-repeat: repeat-x;
  background-size: 50px 50px;
  animation: cta-move 12s linear infinite;
  z-index: 0;
} */

@keyframes cta-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 900px 0px;
  }
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scale(0.9);
}

.cta-section h2.animate {
  animation: rotateIn 0.8s ease forwards;
}

.cta-section p {
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

.btn-light-custom {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  padding: 0.8rem 3rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

.btn-light-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--accent-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn-light-custom:hover::after {
  width: 400px;
  height: 400px;
}

.btn-light-custom:hover {
  color: var(--text-light);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.contact-info {
  background-color: var(--secondary-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 1.5s ease;
}

.contact-info.animate {
  opacity: 1;
}

.contact-info:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.contact-info h4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.contact-info img {
  transition: transform 0.3s ease;
}

.contact-info:hover img {
  transform: rotate(5deg) scale(1.05);
}

.contact-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: start;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-right: 1rem;
  margin-top: 0.2rem;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.2) rotate(10deg);
  color: #c82333;
}

.contact-item p {
  margin: 0;
  line-height: 1.6;
}

.contact-item strong {
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.3rem;
}

/* Footer */
.footer {
  background-color: var(--accent-color);
  color: var(--text-light);
  padding: 1rem 0;
  text-align: center;
}

.footer p {
  margin: 0;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-section {
    height: 450px;
  }
}
