/* MRF Tyres Dindigul RMS - Custom CSS */

:root {
  /* Main brand colors (maintaining original MRF color scheme) */
  --primary-color: #E30613; /* MRF Red */
  --secondary-color: #1D1D1B; /* MRF Dark */
  --accent-color: #F7A600; /* MRF Yellow/Orange */
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --white-color: #ffffff;
  --gray-color: #6c757d;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-color);
  overflow-x: hidden;
}

/* Header styles */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand img {
  height: 50px;
}

.navbar-scrolled {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--white-color);
  padding: 0.5rem 0;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  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;
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 80%;
  left: 10%;
}

/* Hero section */
.hero-section {
  position: relative;
  height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--white-color);
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 4px;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #c9050f;
  border-color: #c9050f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(227, 6, 19, 0.2);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  border-radius: 4px;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(227, 6, 19, 0.2);
}

/* Section titles */
.section-title {
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Feature boxes */
.feature-box {
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  text-align: center;
  height: 100%;
}

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

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Product cards */
.product-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  height: 100%;
}

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

.product-image {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.product-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.product-content {
  padding: 1.5rem;
}

.product-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-description {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Testimonial section */
.testimonial-section {
  background-color: #f8f9fa;
  padding: 5rem 0;
}

.testimonial-card {
  background-color: var(--white-color);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

.testimonial-quote:before {
  content: '\201C';
  font-size: 4rem;
  position: absolute;
  left: 0;
  top: -2rem;
  color: var(--primary-color);
  opacity: 0.2;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h5 {
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.author-info p {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Contact section */
.contact-section {
  padding: 5rem 0;
}

.contact-info {
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.contact-details h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-form .form-control {
  border-radius: 4px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ced4da;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.25);
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: var(--white-color);
  padding: 5rem 0 0;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 1.5rem;
}

.footer-description {
  max-width: 300px;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.footer-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--white-color);
  opacity: 0.8;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  margin-right: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-5px);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  opacity: 0.8;
}

/* About page */
.about-hero {
  position: relative;
  height: 50vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  background-attachment: fixed;
}

.about-hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.about-content {
  padding: 5rem 0;
}

.about-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(227, 6, 19, 0.8), transparent);
  padding: 2rem;
  color: var(--white-color);
}

.about-image-overlay h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.counter-item {
  text-align: center;
  margin-bottom: 2rem;
}

.counter-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.counter-title {
  font-weight: 500;
  color: var(--gray-color);
}

/* Team section */
.team-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.team-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.team-image {
  height: 300px;
  background-size: cover;
  background-position: center;
}

.team-content {
  padding: 1.5rem;
  text-align: center;
}

.team-name {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-position {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  justify-content: center;
}

.team-social a {
  width: 35px;
  height: 35px;
  background-color: rgba(227, 6, 19, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin: 0 0.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.team-social a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
}

/* Product filter */
.product-filter {
  margin-bottom: 3rem;
}

.filter-button {
  background-color: transparent;
  border: 1px solid #ced4da;
  color: var(--dark-color);
  padding: 0.5rem 1.5rem;
  margin-right: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
}

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .about-image {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .feature-box,
  .product-card,
  .testimonial-card {
    margin-bottom: 1.5rem;
  }

  .contact-info {
    margin-bottom: 2rem;
  }
}
