@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

/* --- Design Tokens & Variables --- */
:root {
  --bg-primary: #06070d;
  --bg-secondary: #0c0d18;
  --bg-tertiary: #131526;
  --bg-glass: rgba(12, 13, 24, 0.75);
  --border-glass: rgba(255, 255, 255, 0.07);
  
  --color-text: #e2e8f0;
  --color-text-muted: #8a92b2;
  --color-text-dark: #4a5068;
  
  --neon-cyan: #00f0ff;
  --neon-purple: #d900ff;
  --neon-pink: #ff0055;
  
  --shadow-cyan: 0 0 10px rgba(0, 240, 255, 0.3), 0 0 20px rgba(0, 240, 255, 0.1);
  --shadow-purple: 0 0 10px rgba(217, 0, 255, 0.3), 0 0 20px rgba(217, 0, 255, 0.1);
  
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* --- Base Styles & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
  outline: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* --- Utility Typography & Layout --- */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

.text-glow-cyan {
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.text-glow-purple {
  text-shadow: 0 0 8px rgba(217, 0, 255, 0.6);
}

/* --- Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-smooth);
}

header.scrolled .navbar {
  height: 64px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--neon-cyan);
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
  transition: var(--transition-smooth);
}

.logo-link:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(217, 0, 255, 0.8));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-action-btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition-fast);
  color: var(--color-text);
  position: relative;
}

.nav-action-btn svg {
  width: 20px;
  height: 20px;
  transition: var(--transition-fast);
}

.nav-action-btn:hover {
  color: var(--neon-cyan);
  background: rgba(255, 255, 255, 0.05);
}

.nav-action-btn:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px var(--neon-cyan));
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px var(--neon-pink);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none; /* We can add a simple toggle for mobile later */
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, var(--bg-primary) 0%, rgba(6, 7, 13, 0.4) 50%, rgba(6, 7, 13, 0.2) 100%);
  z-index: 2;
}

/* Glowing background blobs */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 1;
  opacity: 0.15;
  pointer-events: none;
}

.hero::before {
  top: 10%;
  left: 5%;
  background: var(--neon-cyan);
}

.hero::after {
  bottom: 10%;
  right: 5%;
  background: var(--neon-purple);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
  margin-top: 60px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  animation: pulse 3s infinite alternate;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #a2aed4 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 3rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: 1px solid var(--neon-cyan);
  background: rgba(0, 240, 255, 0.03);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
  transition: 0.5s;
}

.hero-cta:hover {
  background: var(--neon-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
  font-weight: 700;
}

.hero-cta:hover::before {
  left: 100%;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--neon-cyan), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background: var(--color-text);
  animation: scrollDown 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Pieces / Product Grid Section --- */
.pieces-section {
  padding: 8rem 0;
  background-color: var(--bg-primary);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.01em;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1.6rem;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--neon-purple);
  box-shadow: 0 0 10px var(--neon-purple);
}

.products-count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  opacity: 0;
  transition: var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image-container {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  background-color: #0e0f1d;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

/* Badge styling */
.badge-new {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--neon-cyan), var(--bg-primary));
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.8rem;
  text-transform: uppercase;
  border-radius: 2px;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* Quick Add Overlay */
.quick-add-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(6, 7, 13, 0.95), transparent);
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  display: flex;
  justify-content: center;
  z-index: 15;
}

.product-card:hover .quick-add-overlay {
  opacity: 1;
  transform: translateY(0);
}

.btn-quick-add {
  width: 100%;
  padding: 0.9rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-quick-add:hover {
  background: var(--color-text);
  color: var(--bg-primary);
  border-color: var(--color-text);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.product-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-transform: uppercase;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neon-cyan);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

/* Cyber styling filters for dynamic product images */
.filter-p1 { filter: brightness(1.1) contrast(1.05); }
.filter-p2 { filter: brightness(1.0) saturate(1.1); }
.filter-p3 { filter: hue-rotate(240deg) saturate(1.2) brightness(0.9); }
.filter-p4 { filter: hue-rotate(120deg) saturate(1.3) brightness(0.95); }
.filter-p5 { filter: grayscale(1) contrast(1.6) brightness(0.8); }
.filter-p6 { filter: hue-rotate(90deg) contrast(1.1) brightness(1.05); }
.filter-p7 { filter: invert(0.9) hue-rotate(200deg) brightness(0.85) contrast(1.2); }
.filter-p8 { filter: hue-rotate(60deg) saturate(1.4) contrast(1.1); }

/* --- About Us Section --- */
.about-section {
  display: flex;
  width: 100%;
  min-height: 600px;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-glass);
}

@media (max-width: 900px) {
  .about-section {
    flex-direction: column;
  }
}

.about-column {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.about-column:hover .about-img {
  transform: scale(1.05);
}

.about-column-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(6, 7, 13, 0.85) 0%, rgba(12, 13, 24, 0.4) 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.about-column:hover .about-column-overlay {
  background: linear-gradient(135deg, rgba(6, 7, 13, 0.95) 0%, rgba(217, 0, 255, 0.25) 100%);
}

.about-column-right:hover .about-column-overlay {
  background: linear-gradient(135deg, rgba(6, 7, 13, 0.95) 0%, rgba(0, 240, 255, 0.25) 100%);
}

.about-content {
  position: relative;
  z-index: 10;
  padding: 3rem;
  max-width: 550px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.about-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.about-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.btn-about {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  border: 1px solid var(--color-text);
  margin-top: 1rem;
  transition: var(--transition-smooth);
}

.btn-about:hover {
  background: var(--color-text);
  color: var(--bg-primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* --- Footer Section --- */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 6rem 0 3rem 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 5rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--neon-cyan);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--neon-cyan);
  padding-left: 5px;
}

.newsletter-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 400px;
}

.newsletter-form {
  display: flex;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.newsletter-input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-glass);
  font-size: 0.9rem;
  color: var(--color-text);
  transition: var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.btn-newsletter {
  padding: 0 1.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-left: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-newsletter:hover {
  background: var(--neon-cyan);
  color: var(--bg-primary);
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.scroll-top-btn {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.scroll-top-btn:hover {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  box-shadow: 0 0 10px rgba(217, 0, 255, 0.2);
  transform: translateY(-3px);
}

.scroll-top-btn svg {
  width: 18px;
  height: 18px;
}

/* --- Keyframe Animations --- */
@keyframes scrollDown {
  0% {
    top: -15px;
    opacity: 0;
  }
  30% {
    top: 0;
    opacity: 1;
  }
  60% {
    top: 45px;
    opacity: 0;
  }
  100% {
    top: 45px;
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    opacity: 0.8;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(0, 240, 255, 0.8);
  }
}
