@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Inter:wght@300;400;500;700&display=swap');

:root {
  --bg-dark: #050505;
  --bg-light: #0a0a0a;
  --text-main: #ffffff;
  --text-muted: #888888;
  --accent-blue: #00d2ff;
  --accent-purple: #8a2be2;
  --accent-glow: rgba(138, 43, 226, 0.4);
  --border-color: rgba(255, 255, 255, 0.1);
  
  --font-heading: 'Syncopate', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Selection */
::selection {
  background: var(--accent-purple);
  color: #fff;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1 { font-size: 5rem; line-height: 1; }
h2 { font-size: 3rem; }

/* Custom Cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
}

.cursor.hovered {
  width: 60px;
  height: 60px;
  background-color: transparent;
  border: 1px solid white;
}

/* Navbar (Glassmorphism) */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(5, 5, 5, 0.5);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: padding 0.3s ease;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 4px;
}

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

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

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

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

.cart-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent-purple);
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  margin-left: 1.5rem;
  z-index: 102;
}

.hamburger span {
  width: 30px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease-in-out;
    z-index: 101;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    font-size: 1.5rem;
  }
  .hamburger {
    display: flex;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  .section-padding { padding: 4rem 1.5rem; }
  .section-title { font-size: 2rem; }
  .cart-drawer { width: 100%; right: -100%; }
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent-purple);
  font-size: 0.7rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Three.js Canvas Container */
#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Behind everything */
  opacity: 0.6;
}

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

.hero-content {
  text-align: center;
  z-index: 10;
  pointer-events: none; /* Let clicks pass to 3D if needed */
}

.hero-title {
  font-size: 8rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
  position: relative;
  margin-bottom: 1rem;
}

.hero-title::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  width: 0%;
  overflow: hidden;
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
}

.hero:hover .hero-title::before {
  width: 100%;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.btn-primary {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: var(--font-heading);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Marquee */
.marquee-container {
  width: 100%;
  background: var(--bg-light);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-muted);
  animation: marquee 25s linear infinite;
}

.marquee-content span {
  margin: 0 3rem;
  color: #fff;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Featured Collections */
.section-padding {
  padding: 8rem 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

.product-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
  cursor: pointer;
  transform-style: preserve-3d;
}

.product-card:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 30px var(--accent-glow);
}

.product-image-wrapper {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.product-info {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  position: absolute;
  bottom: 0;
  width: 100%;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-price {
  color: var(--text-muted);
  font-family: var(--font-body);
}

.add-to-cart-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.add-to-cart-btn:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 3rem;
  background: #000;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 500px;
  height: 100vh;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
  z-index: 1000;
  transition: right 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-cart {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close-cart:hover {
  transform: rotate(90deg);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.cart-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cart-item img {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.qty-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 25px;
  height: 25px;
  border-radius: 4px;
  cursor: pointer;
}

.cart-footer {
  padding: 2rem;
  border-top: 1px solid var(--border-color);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkout-btn {
  width: 100%;
  background: #fff;
  color: #000;
  padding: 1.2rem;
  border: none;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.checkout-btn:hover {
  background: var(--text-muted);
}
