/* Universal Styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

/* Header Styles */
.top-marquee {
  font-size: 1.5rem;
  background-color: #2d1070;
  color: white;
  height: 40px;
}

/* Marquee Animation */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

/* Marquee Content Container */
.m-cont {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  animation: marquee-animation 15s infinite linear;
}

.m-cont > div:not(:first-child) {
  margin-left: 100px;
}

.m-cont i {
  margin-right: 10px;
  margin-left: 14px;
}

.m-cont a {
  text-decoration: none;
  color: white;
}

.sched,
.m-msg {
  display: flex;
  align-items: center;
}

.wt-logo {
  background-image: url(/images/TyrePro-logo-white.png);
  width: 7.5rem;
  height: 2.3rem;
  background-size: cover;
}

/* Front Look Styles */
.front-look {
  position: relative;
  width: 100vw;
  height: 70vh;
  overflow: hidden; /* Ensures the background image doesn't overflow */
}

.front-look::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1); /* Semi-transparent black overlay */
}

.front-look::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(/images/tiresheader.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(50%); /* Adjust the brightness percentage as needed */
}

.front-content {
  position: relative;
  z-index: 1;
  opacity: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center; /* Center align text */
  color: white; /* Ensures text is visible against the background */
}

/* Navbar Styles */
.navbar-brand {
  background-image: url(/images/TyrePro-logo.png);
  width: 13rem;
  height: 4rem;
  background-size: cover;
}

.navbar {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  width: 100%;
  background-color: white;
  z-index: 2!important;
}

.navbar-list {
  display: flex;
  justify-content: flex-end;
  flex: 1;
  list-style: none;
}

.navbar-item {
  margin-right: 3%;
}

.navbar-item a {
  text-decoration: none;
  color: black;
  padding: 0.6rem 0.9rem 0.6rem 0.9rem;
  border-radius: 5px;
}

.navbar-item a:hover {
  background-color: #2d1070;
  color: #c93f1b;
}

.icon {
  display: none;
}

/* Dropdown Button */
.dropbtn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 1.1rem;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Dropdown Position */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Front Head Styles */

.front-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90vw;
  height: 50vh;
  position: relative;
  padding: 3% 3%;
  color: white;
  font-size: 2rem;
  text-align: center;
  margin-top: 15px;
}

.front-content h1 {
  padding-top: 15px;
  border-top: 2px solid red;
}

/* Front Message Styles */
.about-section {
  display: flex;
  align-items: center;
  width: 100vw;
  height: 65vh;
  position: relative;
  padding: 35px 0;
  background-color: #2d1070;
  color: #fff33f;
}

.front-msg {
  width: 45%;
  margin: 15px 30px;
  padding: 25px;
  border: 5px solid #fff33f;
}

.front-msg p {
  margin-top: 5vh;
  font-size: 1.3rem;
}

.shop-img {
  background-image: url(/images/shop-inside.jpg);
  background-size: cover;
  overflow: hidden;
  background-repeat: no-repeat;
  width: 40%;
  height: 80%;
  margin: 15px 30px;
  border: 5px solid #fff33f;
}

.welcome-section {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.welcome-section div {
  width: 70%;
  margin-top: 5vh;
}

.welcome-heading {
  text-align: center;
  margin-top: 10px;
  color: #c93f1b;
}

.welcome-paras p {
  margin-bottom: 4vh;
  font-size: 1.4rem;
  color: #2d1070;
}

.services {
  background-color: #f6f6f6;
  padding: 50px 0;
}

.services-heading {
  text-align: center;
  margin-bottom: 40px;
}

.services-div {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.service {
  width: calc(30%);
  height: 27vw;
  margin: 0 15px 30px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
}

.service-img {
  width: 100%;
  height: 16vw;
  background-image: url(/images/tire-op.jpg);
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}

.service-heading {
  margin: 5% 0;
  color: #2d1070;
  text-align: center;
}

.service-button a {
  margin-top: 20px;
  padding: 10px 30px;
  background-color: #2d1070;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.service-button a:hover {
  background-color: #ffffff;
  color: #2d1070;
}

.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #2d1070;
  color: #fff33f;
}

.value {
  display: flex;
  align-items: center;
  max-width: 1000px;
  margin: 10vh 0;
}

.value-img1,
.value-img2 {
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  border: 5px solid #fff33f;
}

.value-img1 {
  background-image: url(/images/car-on-road.jpg);
  margin-right: 30px;
}

.value-img2 {
  background-image: url(/images/mechanic.jpg);
  margin-left: 30px;
}

.value-des {
  width: 50%;
}

.value-des h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
}

.value-des p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.value-des p:last-child {
  margin-bottom: 0; /* Remove margin bottom for last paragraph */
}

/* Contact Section */

.contact-us {
  text-align: center;
  padding: 50px 20px;
}

.contact-heading h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2d1070;
}

.contact-paras {
  max-width: 800px;
  margin: 0 auto;
}

.contact-paras p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-button a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #2d1070;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.contact-button a:hover {
  background-color: #1e0c40;
}

/* Footer Styles */
.footer {
  background-color: #2d1070;
  color: #fff;
  padding: 40px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  width: 120px;
  height: auto;
}

.footer-links ul,
.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-social li {
  display: inline-block;
  margin-right: 20px;
}

.footer-links a,
.footer-social a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
}

.footer-social i {
  font-size: 24px;
}

/* Copyright Styles */
.copyright {
  text-align: center;
  margin-top: 20px;
}

.copyright p {
  font-size: 14px;
}

/* media Queries */

@media screen and (max-width: 1170px) {
  .value {
    margin: 10vh 10vw;
  }

  .value-img1,
  .value-img2 {
    width: 40%;
    height: 100%;
  }

  .value-des {
    width: 60%;
  }

  .value-des h2 {
    font-size: 2rem;
  }

  .value-des p {
    font-size: 1.2rem;
  }

  #search-form-header {
    font-size: 2.5rem;
  }

  .form-div select {
    width: 75%;
  }

  .tire-stock-img {
    height: 80%;
    width: 40%;
  }

  .tire-search-forms {
    width: 55%;
  }
}

@media screen and (max-width: 1100px) {
  .service {
    width: 35%;
    height: 50vh;
  }

  .service-img {
    height: 70%;
  }

  .service-heading {
    margin: 7% 0;
  }
}

@media screen and (max-width: 985px) {
  #value1 {
    flex-direction: column;
  }

  #value2 {
    flex-direction: column-reverse;
  }

  .value {
    margin: 7vw 10vw;
  }

  .value-img1,
  .value-img2 {
    width: 100%;
    height: 50vw;
    margin-bottom: 30px;
    margin-left: 0;
    margin-right: 0;
  }

  .value-des {
    width: 100%;
  }

  .values {
    padding: 30px 0;
  }

  /* Responsive about Section */

  .front-msg {
    font-size: 0.8rem;
  }

  .front-msg p {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 800px) {
  .about-section {
    flex-direction: column;
    height: 75vh;
  }

  .front-msg {
    width: 90%;
    font-size: 0.8rem;
  }

  .front-msg p {
    font-size: 0.9rem;
  }

  .front-head {
    flex-direction: column;
    height: 60vh;
    font-size: 1.5rem;
  }

  .tire-stock-img {
    width: 100%;
    margin: 15px 0;
  }

  .front-look {
    height: 70vh;
  }

  .tire-search-forms {
    width: 90%;
    margin-top: 40px;
  }

  .navbar {
    flex-direction: column;
  }

  .dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dropdown-content {
    top: 60px;
  }

  .toggleList {
    display: none;
  }

  .navbar-list {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .navbar-item {
    padding: 13px 0;
    margin-right: 0;
  }

  .icon {
    font-size: 27px;
    text-decoration: none;
    text-align: right;
    width: 100%;
    color: #c93f1b;
    padding-right: 40px;
    background-color: #2d1070;
    display: block;
    margin: 5px 0;
  }
}

@media screen and (max-width: 770px) {
  .services-div {
    flex-direction: column;
    align-items: center;
  }

  .service {
    width: 60%;
    height: 55vh;
  }

  .m-cont {
    animation-duration: 8s;
  }
}

@media screen and (max-width: 500px) {
  .shop-img {
    width: 80%;
  }

  .front-msg p {
    margin-top: 10px;
  }

  .about-section {
    height: 85vh;
  }
}

@media screen and (max-width: 435px) {
  .service {
    height: 50vh;
  }

  #search-form-submit {
    width: 45%;
  }

  .search-form-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links,
  .footer-social {
    margin-top: 20px;
  }
}

/* Keyframes */
@keyframes marquee-animation {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
