/* Global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  background-color: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: #0af;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
 
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
}
.nav-logo img {
  height: 40px;
}
.nav-links a {
  margin-left: 1rem;
  font-weight: 600;
}
.nav-cart button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
}
.badge {
  background: #f00;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
  position: absolute;
  top: -8px;
  right: -10px;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  background: #111;
  padding: 1rem;
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1100;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-drawer h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 1rem;
}
.checkout-btn {
  width: 100%;
  margin-bottom: 0.5rem;
}
.close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  align-self: flex-end;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1200;
}
.modal.hidden {
  display: none;
}
.modal-content {
  
  background: #111;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 420px;
  text-align: center;
}
.modal-content h2 {
  margin-bottom: 0.5rem;
}
.modal-content p {
  margin-bottom: 1rem;
}
.modal-content input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: none;
  border-radius: 4px;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("../images/bike.png") no-repeat center/cover;
  color: #fff;
  height: 90vh;
  position: relative;
  padding: 2rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-logo {
  width: 400px;
  max-width: 90%;
  margin: 0 auto 1rem auto;
  display: block;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* CTAs */
.cta {
  display: inline-block;
  background: #0af;
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}
.cta:hover {
  background: #08c;
}

/* Sections */
section {
  padding: 4rem 1rem;
}
section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-card .info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.product-card p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.product-card .price {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* About, Community, Contact Sections */
.about-section,
.community-section,
.contact-section {
  background: #111;
  margin-top: 2rem;
  border-radius: 8px;
  padding: 2rem;
}
.about-section p,
.community-section p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #ccc;
}
.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-section input,
.contact-section textarea {
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
}
.contact-section button {
  align-self: flex-start;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem;
  background: #000;
  border-top: 1px solid #222;
  font-size: 0.8rem;
}

/* Utilities */
.hidden {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.3rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .nav-links {
    display: none;
  }
  .navbar {
    justify-content: space-between;
  
  }
}TEST
/* Custom nav logo styling */
.nav-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.8rem;
}
.nav-logo img {
  display: none;
}
.nav-logo::before {
  content: 'cyclehuman';
  margin-right: 0.3rem;
}
.nav-logo::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url('logo_small_bike.png');
  background-size: contain;
  background-repeat: no-repeat;
}
