@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap");

:root {
  --primary-color: #00ff88;
  --secondary-color: #ff3366;
  --dark-bg: #0a0a0a;
  --card-bg: rgba(26, 26, 26, 0.6);
  --text-color: #ffffff;
  --text-muted: #aaaaaa;
  --border-color: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--dark-bg)
    url("https://www.transparenttextures.com/patterns/stardust.png");
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  background-color: rgba(10, 10, 10, 0.75);
  padding: 1.5rem 5%;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 8px var(--primary-color);
}

.logo:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 12px var(--secondary-color);
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 2.5rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-icons {
  display: flex;
  align-items: center;
}

.nav-icons a {
  margin-left: 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.nav-icons a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--primary-color);
  transform: translateY(-3px);
}

/* Hamburger Menu Styles */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.nav-toggle .bar {
  width: 28px;
  height: 3px;
  background: var(--primary-color);
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  display: block;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    right: 5%;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.08);
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
    min-width: 180px;
    padding: 1.2rem 1.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links a {
    margin: 1rem 0 0 0;
    font-size: 1.2rem;
    width: 100%;
    display: block;
  }
}

/* Hamburger animation when active */
.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
  margin-top: 100px;
  padding: 8rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(0, 255, 136, 0.15) 0%,
    transparent 60%
  );
  animation: rotateBackground 20s linear infinite;
}

@keyframes rotateBackground {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
}

.hero p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  padding: 1.2rem 3rem;
  background: linear-gradient(45deg, var(--primary-color), #00ccff);
  color: var(--dark-bg);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.6);
}

/* Common Section Styles */
.featured-products,
.categories {
  padding: 6rem 5%;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text-color);
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Glassmorphism Cards */
.product-card,
.category-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.product-card:hover,
.category-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 25px var(--primary-color);
  border-color: var(--primary-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
  font-weight: 600;
}

.product-price {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.4rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.category-card {
  text-align: center;
  padding: 3rem 2rem;
}

.category-card i {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 3rem;
  text-shadow: 0 0 10px var(--primary-color);
}

.category-card h3 {
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
  color: var(--text-color);
  padding: 5rem 5% 2rem 5%;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--primary-color);
}

.social-links a {
  margin-right: 1.5rem;
  color: var(--text-muted);
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
  text-shadow: 0 0 8px var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .nav-links {
    margin: 1rem 0;
  }

  .nav-links a {
    margin: 0 1rem;
    font-size: 1rem;
  }

  .nav-icons {
    margin-top: 0;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .products-grid,
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
    display: flex;
    margin-top: 1.5rem;
  }
}

/* Animation on Scroll */
.animated {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About Section */
.about {
  max-width: 700px;
  margin: 0 auto 4rem auto;
  padding: 3rem 2rem;
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 255, 136, 0.1);
  text-align: center;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
}

.about h2 {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.18);
}

.about p {
  color: var(--text-muted);
  font-size: 1.18rem;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 600px;
  letter-spacing: 0.2px;
}
