/* Custom Styles for Grewal Truck & Trailer Repairs */

/* Top Bar */
.top-bar {
  font-size: 14px;
}

.top-bar a {
  text-decoration: none;
  transition: opacity 0.3s;
}

.top-bar a:hover {
  opacity: 0.8;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
}

.navbar-brand img {
  max-height: 60px;
}

.navbar-toggler {
  margin-right: 15px;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1.2rem !important;
  color: #333 !important;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: #dc3545 !important;
}

.navbar-nav .nav-item.active .nav-link {
  color: #dc3545 !important;
}

/* Hero Slider */
.banner-carousel-item {
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.banner-carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.slider-content {
  position: relative;
  z-index: 2;
}

.slide-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-sub-title {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Feature Boxes */
.feature-box {
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.feature-icon i {
  transition: transform 0.3s;
}

.feature-box:hover .feature-icon i {
  transform: scale(1.1);
}

/* About Section */
.about-images img {
  transition: transform 0.3s;
}

.about-images img:hover {
  transform: scale(1.05);
}

/* Service Cards */
.service-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.service-card img {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-icon i {
  transition: transform 0.3s;
}

.service-card:hover .service-icon i {
  transform: rotate(360deg);
}

/* Gallery */
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  transition: transform 0.3s;
  height: 250px;
  object-fit: cover;
  width: 100%;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Footer */
.footer a {
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #dc3545 !important;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border: 2px solid #fff;
  border-radius: 50%;
  transition: all 0.3s;
}

.social-links a:hover {
  background: #dc3545;
  border-color: #dc3545;
  transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  display: none;
  z-index: 999;
  transition: all 0.3s;
}

.back-to-top:hover {
  background: #c82333;
  transform: translateY(-5px);
  color: #fff;
}

/* Buttons */
.btn-danger {
  background: #dc3545;
  border-color: #dc3545;
  transition: all 0.3s;
}

.btn-danger:hover {
  background: #c82333;
  border-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

/* Slick Slider Customization */
.slick-dots {
  bottom: 30px;
}

.slick-dots li button:before {
  font-size: 12px;
  color: #fff;
}

.slick-dots li.slick-active button:before {
  color: #dc3545;
}

.slick-prev,
.slick-next {
  width: 50px;
  height: 50px;
  z-index: 10;
}

.slick-prev {
  left: 30px;
}

.slick-next {
  right: 30px;
}

.slick-prev:before,
.slick-next:before {
  font-size: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .banner-carousel-item {
    height: 400px;
  }
  
  .slide-title {
    font-size: 2rem !important;
  }
  
  .slide-sub-title {
    font-size: 1.2rem !important;
  }
  
  .top-bar-info,
  .top-bar-social {
    text-align: center !important;
    margin-bottom: 10px;
  }
  
  .service-card img,
  .gallery-item img {
    height: 200px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

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

/* Section Spacing */
section {
  position: relative;
}

.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

/* Shadow Effects */
.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Text Colors */
.text-danger {
  color: #dc3545 !important;
}

/* Background Colors */
.bg-light {
  background-color: #f8f9fa !important;
}

.bg-dark {
  background-color: #212529 !important;
}
