/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/*========== 
My style css
===========*/

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'IBM Plex Mono', Roboto, Montserrat, monospace, serif; /* IBM Plex Mono as the default font */
  line-height: 1.6; /* Nice line spacing for readability */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333333;
}

/*========== 
Navbar 
===========*/

nav {
  background-color: #ffffff;
  color: #333333;
  padding: 5px;
  margin: 5px;
  border-radius: 5px;
}

/* Flexbox setup for nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

/* Logo styling */
nav > a img {
  max-height: 40px;
  width: auto;
}

/* Flexbox setup for the menu */
nav > ul {
  display: flex;
  align-items: center;
  list-style: none;
}

nav > ul > li {
  padding: 0 15px;
}

/* Styling for nav links */
nav > ul > li > a {
  font-weight: bold;
  text-decoration: none;
  color: #333333;
  transition: background-color 0.3s, color 0.3s;
}

/* Hover and active link styles */
nav > ul > li > a:hover,
nav > ul > li > a.active {
  color: #ffffff;
  background-color: #26ad60;
  border-radius: 10px;
  padding: 10px 10px;
}

/* Hamburger menu and bars styling */
nav > input[type='checkbox'],
nav > label > span {
  display: none;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
  nav > label {
    display: block;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
  }

  /* Display hamburger bars in mobile */
  nav > label > span {
    display: block;
    height: 3px;
    width: 25px;
    background-color: #333333;
    margin: 6px 0;
    transition: 0.3s;
  }

  nav > input[type='checkbox'] {
    display: none;
  }

  nav > input[type='checkbox']:checked ~ ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  nav > ul {
    display: none;
    width: 100%;
    flex-direction: column;
  }

  nav > ul > li {
    width: 100%;
    padding: 15px 0;
  }

  nav > ul > li > a {
    padding-left: 15px;
  }

  /* Transform hamburger into X on toggle */
  nav > input[type='checkbox']:checked ~ label > span:first-child {
    transform: translateY(9px) rotate(45deg);
  }

  nav > input[type='checkbox']:checked ~ label > span:nth-child(2) {
    opacity: 0;
  }

  nav > input[type='checkbox']:checked ~ label > span:last-child {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/*========== 
Footer
===========*/

footer {
  background-color: #ffffff;
  color: #333333;
  padding: 10px;
  position: relative;
  z-index: 2;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: center;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-column h3,
.footer-column h4 {
  margin-bottom: 15px;
  color: #26ad60;
  font-weight: bold;
}

.footer-column p,
.footer-column ul {
  line-height: 1.5;
  font-size: 0.75em;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8em;
  margin-top: 20px;
  opacity: 0.8;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-column {
    margin-bottom: 25px;
  }

  .footer-bottom {
    font-size: 0.9em;
  }
}

/*========== 
Hero Section
===========*/

section.hero-section {
  background-image: url('images/heroimg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 900px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Styles for the hero content */
section.hero-section .hero-content {
  flex-basis: 50%;
}

/* Styles for the promo text */
section.hero-section h1 {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26ad60;
}

/* Styles for the shop now button */
section.hero-section .shop-now-btn {
  display: inline-block;
  padding: 10px;
  background-color: white;
  color: black;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  border-radius: 15px;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  section.hero-section {
    height: 400px;
  }

  section.hero-section .hero-content {
    padding: 15px;
  }

  section.hero-section h1 {
    font-size: 1.5em;
  }

  section.hero-section p {
    font-size: 1.2em;
  }

  section.hero-section .shop-now-btn {
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  section.hero-section {
    height: 300px;
  }

  section.hero-section h1,
  section.hero-section p {
    font-size: 1em;
  }

  section.hero-section .shop-now-btn {
    padding: 5px 10px;
  }
}

/*========== 
Bikes Photo Grid
===========*/

.home-container {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.home-discover-section {
  flex: 1 0 200px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-product-grid {
  display: flex;
  flex-wrap: wrap;
  flex: 3;
  gap: 20px;
}

.home-product-slide {
  position: relative;
  flex: 1;
  min-width: 150px;
  cursor: pointer;
}

.home-product-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.home-slide-overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.home-product-slide:hover .home-slide-overlay {
  opacity: 1;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .home-container {
    flex-direction: column;
  }

  .home-discover-section {
    width: 100%;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .home-product-slide {
    width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .home-product-slide {
    width: 100%;
  }
}

/*========== 
Bike Category
===========*/

.feature-home {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}
.feature-home > h1 {
  font-weight: bold;
  font-size: 3em;
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}

.feature-home > .feature-item {
  flex: 0 0 30%;
  margin: 10px;
  position: relative;
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.feature-home > .feature-item > h2 {
  font-weight: bold;
  font-size: 2em;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: whitesmoke;
}

.feature-home > .feature-item > a {
  font-weight: bold;
  border: none;
  background-color: #26ad60;
  color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 20px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s;
}

.feature-home > .feature-item > button:hover {
  background-color: #555;
}

/* Background images */
.feature-home > .feature-item.road-bike {
  background-image: url('images/roadbike.jpg');
}
.feature-home > .feature-item.gravel-bike {
  background-image: url('images/gravelbike.jpg');
}
.feature-home > .feature-item.mountain-bike {
  background-image: url('images/mountainbike.jpg');
}

/* Media query */
@media (max-width: 1024px) {
  .feature-home > .feature-item {
    flex: 0 0 48%;
  }
  .feature-home > h1 {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .feature-home > .feature-item {
    flex: 0 0 100%;
    margin: 10px 0;
  }
  .feature-home > h1 {
    font-size: 1.75em;
  }
}

@media (max-width: 480px) {
  .feature-home > .feature-item > h2,
  .feature-home > .feature-item > button {
    font-size: 18px;
  }
  .feature-home > h1 {
    font-size: 1.5em;
    padding: 0 20px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
}

/*========== 
Home Page Promotion
===========*/

.promotion-wrapper {
  background-color: #f3f3f3;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 60px;
  box-sizing: border-box;
  margin: 30px auto;
}

@media (max-width: 991px) {
  .promotion-wrapper {
    padding: 20px;
  }
}

.promotion-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 5.6px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .promotion-items {
    flex-direction: column;
    align-items: stretch;
  }
}

.item {
  flex-grow: 1;
  text-align: center;
  padding: 10px;
}

/*========== 
Shop Banner
===========*/

.banner {
  background-image: url('images/bannerimg/shop.jpg');
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  margin-bottom: 1.5em;
}

.banner h1 {
  max-width: 800px;
  margin: 0 auto;
  color: #26ad60;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  width: 100%;
  display: block;
  text-align: left;
  padding: 0 20px;
}

.banner h1 > span {
  display: block;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .banner h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .banner {
    height: 200px;
  }
  .banner h1 {
    font-size: 1.5rem;
  }
}

/*========== 
Shop Bikes
===========*/

.products-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  max-width: 50%;
  margin: 20px auto;
}

.product-container {
  flex-basis: calc(33.333% - 20px);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-container:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  display: block;
  transition: filter 0.3s ease;
}

.product-info {
  padding: 10px;
  background: #fff;
  text-align: left;
}

.product-info h1,
.product-info .price {
  font-size: 0.8em;
  margin: 0;
}

.product-description {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-description ul {
  list-style-type: disc;
  font-size: 12px;
  margin: 0;
  padding: 0;
}

.product-container:hover .product-image {
  filter: blur(8px);
}

.product-container:hover .product-description {
  visibility: visible;
  opacity: 1;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .product-container {
    flex-basis: calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .product-container {
    flex-basis: 100%;
  }

  .products-row {
    max-width: 100%;
  }
}
/*========== 
Shop Introduction 
===========*/
.shopintro {
  text-align: center;
  padding: 0;
  margin-bottom: 30px;
}

.shopintro h1 {
  color: #333;
  font-weight: bold;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.shopintro p {
  color: #666;
  font-size: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .shopintro h1 {
    font-size: 2rem;
  }
  .shopintro p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .shopintro {
    padding: 20px 10px;
  }

  .shopintro h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .shopintro p {
    font-size: 0.9rem;
  }
}

/*========== 
About us content
===========*/

.brand-story {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.brand-story h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.brand-story p {
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .brand-story h2 {
    font-size: 1.75rem;
  }

  .brand-story p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .brand-story {
    padding: 20px;
  }

  .brand-story h2 {
    font-size: 1.5rem;
  }

  .brand-story p {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .brand-story {
    padding: 15px;
  }

  .brand-story h2 {
    font-size: 1.25rem;
  }

  .brand-story p {
    font-size: 0.8rem;
  }
}

/*========== 
Service Card
===========*/

.service-container {
  display: grid;
  gap: 20px;
  padding: 20px;
  margin: 0 auto;
  max-width: 800px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.service-card h2 {
  color: #fff;
  display: inline-block;
  padding: 5px 15px;
  position: absolute;
  top: -15px;
  left: 20px;
  font-weight: bold;
}

/* Bronze Service */
.service-container .bronze h2 {
  background-color: #cd7f32; /* A bronze-like color */
}

/* Silver Service */
.service-container .silver h2 {
  background-color: #c0c0c0; /* A silver-like color */
}

/* Gold Service */
.service-container .gold h2 {
  background-color: #daa520; /* A gold-like color */
}

.service-card h3 {
  margin-top: 30px;
  color: #333;
}

.time,
.price {
  font-weight: bold;
  margin: 10px 0;
}

.service-list {
  list-style: disc;
  padding: 0;
  margin-top: 10px;
  margin-left: 10px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-list li {
  padding: 5px 0;
  position: relative;
}

.service-button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  max-width: 200px;
  width: auto;
  box-sizing: border-box;
  margin: 0 auto;
  display: block;
}

.popular-badge {
  position: absolute;
  top: -20px;
  left: 75%;
  transform: translateX(-50%);
  background-color: #f8d70a;
  color: #fff;
  padding: 10px 10px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
}

.popular {
  border-color: #ffd700;
}

/* Media queries */
@media (max-width: 1024px) {
  .service-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .service-container {
    grid-template-columns: 1fr;
  }
  .service-card {
    max-width: none;
  }
  .service-button {
    padding: 8px 16px;
    font-size: 0.9rem;
    max-width: 100%;
  }
}

/*========== 
About Banner
===========*/

.about-banner {
  background-image: url('images/bannerimg/about.jpg');
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  margin-bottom: 1.5em;
}

.about-banner h1 {
  max-width: 800px;
  margin: 0 auto;
  color: #26ad60;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  width: 100%;
  display: block;
  text-align: left;
  padding: 0 20px;
}

.about-banner h1 > span {
  display: block;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .about-banner h1 {
    font-size: 2rem;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .about-banner {
    height: 200px;
  }
  .about-banner h1 {
    font-size: 1.5rem;
    padding: 0 5px;
  }
}

/*========== 
Repairs and Service
===========*/

/*repairs  */
.repairs {
  background: #f8f8f8;
  padding: 20px;
  max-width: 800px;
  margin: 25px auto;
}

.repairs > details > summary {
  font-weight: bold;
  background: #fff;
  margin: 10px;
  padding: 10px;
  border-radius: 5px;
  position: relative;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-arrow {
  transition: transform 0.2s ease-in-out;
}

.repairs details[open] .dropdown-arrow {
  transform: rotate(180deg);
}

.repairs > details > ul {
  padding: 0;
}

.repairs ul > li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  background: #fff;
  padding: 10px;
  list-style: none;
}

.repairs li > span {
  font-weight: normal;
}

.repairs li > button {
  padding: 5px 10px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.repairs button:hover {
  background-color: #45a049;
}

.repairs > h1 {
  color: #333;
  font-weight: bold;
  font-size: 2em;
}

.repairs > p {
  color: #666;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .repairs {
    padding: 15px;
  }

  .repairs ul > li {
    flex-direction: column;
    align-items: flex-start;
  }

  .repairs li > button {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .repairs {
    padding: 10px;
  }

  .repairs > details > summary {
    padding: 8px;
  }

  .repairs li > button {
    padding: 5px 15px;
  }
}

/*========== 
Contact
===========*/

.contact-section {
  width: 100%;
  max-width: 50%;
  padding: 20px;
  box-sizing: border-box;
  margin: auto;
}

.contact-section > h1 {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.contact-section > p {
  margin-bottom: 20px;
}

.contact-section form {
  display: flex;
  flex-direction: column;
}

.contact-section form > input,
.contact-section form > textarea {
  padding: 10px;
  margin-bottom: 10px;
  border: 2.5px solid #292929;
}

.contact-section form > textarea {
  height: 100px;
  resize: vertical;
}

.contact-section form > button {
  padding: 10px 20px;
  border: none;
  background-color: #45a049;
  color: #fff;
  cursor: pointer;
  align-self: start;
  width: auto;
}

/* Media Queries for Responsive Design */
@media (min-width: 576px) {
  .contact-button {
    padding: 5px 10px;
  }
}

@media (min-width: 768px) {
  .contact-methods {
    justify-content: space-around;
  }
}

@media (min-width: 992px) {
  .contact-header {
    font-size: 28px;
  }
}

/*========== 
Map
===========*/

.map-container {
  text-align: center;
  padding: 20px;
}

.map-container iframe {
  width: 100%;
  max-width: 100%;
  height: 450px;
  border: none;
}

@media (max-width: 768px) {
  .map-container iframe {
    height: 300px;
  }
}

/*========== 
Contact Banner
===========*/

.contact-banner {
  background-image: url('images/bannerimg/contact.jpg');
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  margin-bottom: 1.5em;
}

.contact-banner h1 {
  max-width: 800px;
  margin: 0 auto;
  color: #26ad60;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  width: 100%;
  display: block;
  text-align: left;
  padding: 0 20px;
}

.contact-banner h1 > span {
  display: block;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .contact-banner h1 {
    font-size: 2rem;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .contact-banner {
    height: 200px;
  }
  .contact-banner h1 {
    font-size: 1.5rem;
    padding: 0 5px;
  }
}

/*========== 
Service Banner
===========*/

.repair-banner {
  background-image: url('images/bannerimg/service.jpg');
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  margin-bottom: 4em;
}

.repair-banner h1 {
  max-width: 800px;
  margin: 0 auto;
  color: #26ad60;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  width: 100%;
  display: block;
  text-align: left;
  padding: 0 20px;
}

.repair-banner h1 > span {
  display: block;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .repair-banner h1 {
    font-size: 2rem;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .repair-banner {
    height: 200px;
  }
  .repair-banner h1 {
    font-size: 1.5rem;
    padding: 0 5px;
  }
}
