* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #151817;
  color: #fff;
}

/* Header */
header {
  background-color: #000000;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-left: 2rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: blue;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
}

.search-bar input {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1.5px solid #ccc;
  background: #fff;
  color: #000;
}

.search-bar button {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: none;
  background-color: #2c3e50;
  color: white;
  cursor: pointer;
}

.search-bar button:hover {
  background-color: #1a252f;
}

/* Toggle Button */
#toggleBtn {
  position: fixed;
  top: 100px;
  left: 20px;
  z-index: 1200;
  width: 50px;
  height: 50px;
  background-color: #000000;
  color: white;
  border: 3px solid white;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  height: calc(100vh - 60px);
  width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #000000;
  transition: width 0.3s ease;
  z-index: 1000;
}

.sidebar.open {
  width: 200px;
}

.sidebar-content {
  opacity: 0;
  padding: 10px;
  transition: opacity 0.3s ease;
}

.sidebar.open .sidebar-content {
  opacity: 1;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  flex-direction: column;
  background-color: #3a3939;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-top: 5px;
}

.dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown-toggle {
  background-color: #444;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

/* Hero */
.hero {
  padding: 3rem;
  text-align: center;
  background-color: #000000;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-content p {
  margin-bottom: 1.5rem;
}

.cta-btn {
  padding: 0.75rem 1.5rem;
  background: blue;
  color: white;
  text-decoration: none;
  border-radius: 20px;
}

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 2rem;
  justify-items: center;
  background-color: #000;
}

.product {
  background: #fff;
  color: #000;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 220px;
  transition: transform 0.3s ease;
}

.product:hover {
  transform: scale(1.03);
}

.product img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background-color: #fff;
  padding: 10px;
  display: block;
}

/* Info Section */
.info {
  text-align: center;
  padding: 2rem;
  background-color: #1a1a1a;
}

.custom-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: blue;
  color: white;
  border-radius: 20px;
  text-decoration: none;
}

.custom-button:hover {
  background-color: #0040ff;
}

/* Footer */
.footer {
  background: #000;
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
}

.brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.bluetext {
  color: blue;
}

.logo-section,
.hero {
  background-color: #1a1a1a;
}

.left-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ============================= */
/* 🌐 Responsive Mobile Styling  */
/* ============================= */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    position: static;
  }

  .logo {
    font-size: 1.1rem;
  }

  .left-group {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    width: auto;
  }

  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.8rem;
    padding-left: 0;
    margin: 0;
  }

  nav ul li {
    width: auto;
  }

  nav ul li a {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
  }

  .search-bar {
    flex-direction: row;
    flex-wrap: nowrap;
    width: auto;
    gap: 0.3rem;
    margin-left: auto;
  }

  .search-bar input,
  .search-bar button {
    width: auto;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  #toggleBtn {
    top: 80px;
    left: 10px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .sidebar {
    top: 60px;
  }

  .sidebar.open {
    width: 160px;
  }

  .products {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .product {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .cta-btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }

  .footer {
    font-size: 0.9rem;
  }
}
