
:root {
  --primary-color: #0f172a;
  --secondary-color: #4f46e5;
  --accent-color: #ec4899;
  --danger-color: #dc2626;
  --warning-color: #f59e0b;
  --background-color: #fdf4ff;
  --card-bg: #ffffff;
  --text-color: #1e293b;
  --muted-color: #64748b;
  --border-color: #e2e8f0;
  --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(120deg, pink, white);
  background-attachment: fixed;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.6;
  width: 100vw;
  overflow-x: hidden;
}

h1 {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(to right, white, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
}

.nav-links a {
  color: white;
  font-size: 1.05rem;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  font-weight: bold;
}

.nav-links a.active::after {
  width: 100%;
}
.landing {
  background: url('https://media.istockphoto.com/id/1267943701/photo/gamer-work-space-concept-top-view-a-gaming-gear-mouse-keyboard-joystick-headset-mobile.jpg?s=612x612&w=0&k=20&c=dkYaZvcgbpArPJ2WwjQQKRnOmQSM57d88E0RZjpFYZo=') no-repeat center center/cover;
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.landing .overlay {
  background-color: rgba(0, 0, 0, 0.5); /* dark overlay for contrast */
  padding: 4rem 2rem;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.landing-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #0056b3;
}


/* Stylish search input */
#search-input {
  width: 300px;
  max-width: 100%;
  padding: 12px 16px;
  border: 2px solid #007bff;
  border-radius: 30px;
  font-size: 1rem;
  color: #333;
  transition: box-shadow 0.3s ease;
  background-color: #fff;
}

#search-input::placeholder {
  color: #aaa;
}

#search-input:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}


.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  border-radius: 2px;
  transition: 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--primary-color);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    display: none;
    box-shadow: var(--box-shadow);
    border-bottom-left-radius: 8px;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}


.landing h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-button {
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* About Section */
.about {
  padding: 80px 20px;
  background-color: var(--card-bg);
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about p {
  font-size: 1.1rem;
  color: var(--muted-color);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  background-color: var(--background-color);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

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

.feature h3 {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.feature p {
  font-size: 1rem;
  color: var(--text-color);
  margin: 0;
}


#products {
  padding: 80px 20px;
  width: 100%;
  box-sizing: border-box;
}

#products > * {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}


form {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  border: 1px solid var(--border-color);
}

input[type="text"],
input[type="number"] {
  padding: 14px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
}


button[type="submit"],
.sort-btn {
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  color: white;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 20px;
}

button[type="submit"]:hover,
.sort-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


#searchInput {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2rem;
  padding: 14px;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
#searchInput:focus {
  border-color: var(--secondary-color);
}


#productList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0;
  list-style: none;
}

.product-item {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}
.product-item:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.product-item h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}
.product-item p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: var(--muted-color);
}


.action-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.action-buttons button {
  padding: 8px 14px;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: white;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.edit-btn {
  background-color: var(--warning-color);
}
.edit-btn:hover {
  background-color: #d97706;
}
.delete-btn {
  background-color: var(--danger-color);
}
.delete-btn:hover {
  background-color: #b91c1c;
}
.like-btn {
  margin-top: 10px;
  background-color: #10b981;
  padding: 6px 12px;
  border-radius: 6px;
  color: white;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.like-btn:hover {
  background-color: #059669;
}
.review-section {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #fbbf24;
}


.footer {
  background-color: #111;
  color: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}


.contact-form {
  background-color: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  max-width: 600px;
  margin: 0 auto 40px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-form p {
  color: var(--muted-color);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
}

.contact-form button {
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
}

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

.footer-section h4 {
  margin-bottom: 10px;
  font-size: 15px;
  color: #f4f4f4;
}

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

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #ccc;
  font-size: 14px;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-social a {
  margin-right: 50px;
}

.footer-social img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  font-size: 15px;
  color: grey;
  border-top: 1px solid #333;
  margin-top: 30px;
}


.contact-form {
  background-color: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  max-width: 600px;
  margin: 40px auto;
  border: 1px solid var(--border-color);
  text-align: center;
}

.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-form p {
  color: var(--muted-color);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
}

.contact-form button {
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 20px;

}

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

.footer-section h4 {
  margin-bottom: 10px;
  font-size: 15px;
  color: #f4f4f4;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #ccc;
  font-size: 14px;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-social a {
  margin-right: 50px;
}

.footer-social img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  font-size: 15px;
  color:grey;
  border-top: 1px solid #333;
  margin-top: 30px;

}


.contact-form {
  background-color: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  max-width: 600px;
  margin: 40px auto;
  border: 1px solid var(--border-color);
  text-align: center;
}

.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-form p {
  color: var(--muted-color);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
}

.contact-form button {
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
}

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

.footer-section h4 {
  margin-bottom: 10px;
  font-size: 15px;
  color: #f4f4f4;
}

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

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #ccc;
  font-size: 14px;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-social a {
  margin-right: 50px;
}

.footer-social img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  font-size: 15px;
  color: grey;
  border-top: 1px solid #333;
  margin-top: 30px;
}
