:root {
  --color-bg: #111;
  --color-text: #eee;
  --color-accent: #25d366;
  --color-accent-hover: #1ebe57;
  --color-btn-bg: #222;
  --color-btn-hover-bg: #333;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === Universal box-sizing === */
*, *::before, *::after {
  box-sizing: border-box;
}

/* === Background Watermark === */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><text x='0' y='20' font-size='18' fill='rgba(255,255,255,0.05)' transform='rotate(-45)'>AQ Designs</text></svg>");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* === Base Body === */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  scroll-behavior: smooth;
  text-align: center;
  user-select: none;
}

/* === Header === */
.sticky-header {
  position: sticky;
  top: 0;
  background-color: var(--color-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.sticky-header .logo img {
  height: 40px;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

/* === Hero Section === */
.hero-banner {
  background-color: var(--color-bg);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-text);
  padding: 0 20px;
}

.hero-banner h1.glow-text {
  font-size: 3.5rem;
  text-shadow: 0 0 8px var(--color-accent);
  margin-bottom: 10px;
}

.hero-banner p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.hero-banner .btn {
  background-color: var(--color-accent);
  color: var(--color-bg);
  padding: 14px 36px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin-bottom: 30px;
  box-shadow: 0 0 15px var(--color-accent);
  cursor: pointer;
  border: none;
}

.hero-banner .btn:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-bg);
}

.hero-image {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 15px var(--color-accent);
  margin-top: 10px;
}

/* === Lifestyle Vibe Tiles === */
.vibe-tiles h2 {
  color: var(--color-accent);
  margin-bottom: 30px;
  text-shadow: 0 0 8px var(--color-accent);
}

.tiles {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.tile {
  width: 200px;
  height: 250px;
  background-color: var(--color-btn-bg);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  text-align: center;
  color: var(--color-text);
}

.tile:hover {
  box-shadow: 0 0 20px var(--color-accent);
  transform: translateY(-5px);
}

.tile h3 {
  font-size: 1rem;
  margin: 6px 0;
  font-weight: bold;
}

.tile p {
  font-size: 0.85rem;
  margin: 6px;
  color: #ccc;
  line-height: 1.3;
}

/* === Square vibe images === */
.vibe-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vibe-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--color-accent);
}

/* === Shop By Vibe Buttons === */
.vibe-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0 60px;
}

.vibe {
  background-color: var(--color-btn-bg);
  color: var(--color-text);
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

.vibe:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

/* === Virtual to Reality Section === */
.process h2 {
  color: var(--color-accent);
  margin-bottom: 20px;
  text-shadow: 0 0 8px var(--color-accent);
}

.steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-weight: 700;
  color: var(--color-text);
}

.step {
  background-color: var(--color-btn-bg);
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px var(--color-accent);
  transition: transform 0.3s ease;
  cursor: default;
}

.step:hover {
  transform: translateY(-5px);
}

/* === Ambassador Spotlight Section === */
.spotlight {
  padding: 40px 20px;
  max-width: 960px;
  margin: 0 auto 40px;
  color: var(--color-text);
  user-select: none;
}

.spotlight h2 {
  color: var(--color-accent);
  margin-bottom: 30px;
  text-shadow: 0 0 8px var(--color-accent);
}

.spotlight .gallery {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.spotlight .img {
  background-color: var(--color-btn-bg);
  border-radius: 12px;
  padding: 24px 16px;
  width: 180px;
  min-height: 140px;
  box-shadow: 0 0 15px var(--color-accent);
  text-align: center;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

/* === Ambassador Call to Action === */
.ambassador-cta {
  background: linear-gradient(135deg, #1b311b, #276627);
  color: #d6f5d6;
  padding: 40px 20px;
  border-radius: 12px;
  max-width: 480px;
  margin: 0 auto 60px;
  box-shadow: 0 0 25px #25d366;
  user-select: none;
  text-align: center;
}

.ambassador-cta h2 {
  color: #b0ffb0;
  margin-bottom: 16px;
  text-shadow: 0 0 12px #7fff7f;
}

.ambassador-cta p {
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 1.2rem;
  text-shadow: 0 0 8px #7fff7f;
}

.ambassador-cta .btn {
  background-color: #25d366;
  color: var(--color-bg);
  padding: 14px 36px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
  box-shadow: 0 0 20px #25d366;
  cursor: pointer;
  border: none;
}

.ambassador-cta .btn:hover {
  background-color: #1ebe57;
  color: var(--color-bg);
}

/* === Lookbook Only === */
.lookbook {
  padding: 60px 20px;
  background-color: var(--color-bg);
  text-align: center;
}

.lookbook h2 {
  color: var(--color-accent);
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-shadow: 0 0 8px var(--color-accent);
}

.lookbook-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.lookbook-item {
  position: relative;
  width: 280px;
  height: 360px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 15px var(--color-accent);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.lookbook-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.lookbook-item:hover {
  transform: scale(1.03);
}

.lookbook-item:hover img {
  transform: scale(1.1);
}

.lookbook-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-text);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lookbook-item:hover .lookbook-caption {
  opacity: 1;
}

/* === Responsive Layout === */
@media (max-width: 768px) {
  .tiles,
  .steps,
  .vibe-options,
  .lookbook-gallery {
    flex-direction: column;
    align-items: center;
  }

  .tile,
  .step,
  .vibe,
  .lookbook-item {
    width: 90%;
    max-width: 300px;
  }

  .hero-image {
    width: 300px;
    height: 300px;
  }

  .tile {
    height: 200px;
  }

  .vibe-image {
    height: 120px;
  }

  .ambassador-cta {
    max-width: 90vw;
    padding: 24px 16px;
    margin: 20px auto;
  }
}

@media (max-width: 480px) {
  .design-canvas-container {
    padding: 5px;
  }
  #designCanvas {
    max-height: 400px;
  }
  .design-controls label,
  .design-controls select,
  .design-controls input,
  .design-controls button {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}

/* === Accessibility focus styles === */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* === Shop Page Enhancements === */
.shop-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 40px 20px;
}

.shop-card {
  background-color: var(--color-btn-bg);
  border-radius: 12px;
  padding: 20px;
  width: 260px;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  color: var(--color-text);
}

.shop-card:hover {
  box-shadow: 0 0 20px var(--color-accent);
  transform: translateY(-5px);
}

.shop-card h3 {
  color: var(--color-accent);
  font-size: 1.3rem;
  margin-top: 12px;
}

.shop-card p {
  color: #ccc;
  margin: 12px 0;
  font-size: 0.95rem;
}

.shop-card .price {
  font-weight: bold;
  color: var(--color-accent);
  margin-top: 8px;
}

.placeholder {
  width: 100%;
  height: 130px;
  background-color: #333;
  color: #999;
  font-size: 0.9rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.sort-dropdown {
  margin: 0 auto;
  margin-top: 20px;
  margin-bottom: 40px;
  width: 220px;
}

.sort-dropdown select {
  background-color: var(--color-btn-bg);
  color: var(--color-text);
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  font-weight: 600;
  border: 1px solid #444;
  appearance: none;
  cursor: pointer;
}

/* === Design Section Improvements === */
.design-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #0d1e0d, #203820);
  min-height: 80vh;
  text-align: center;
  color: #cce5cc;
  box-shadow: inset 0 0 50px #25d366aa;
  border-radius: 20px;
  max-width: 800px;
  margin: 40px auto 80px auto;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: text;
}

.design-section h1.section-title {
  color: #a3d9a5;
  font-size: 2.8rem;
  text-shadow: 0 0 8px #7fc97f;
  margin-bottom: 12px;
  font-weight: 800;
}

.design-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #d0f0d0;
  text-shadow: 0 0 4px #7fc97f;
}

.design-controls {
  max-width: 700px;
  margin: 0 auto 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.design-controls label,
.design-controls select,
.design-controls input[type="text"],
.design-controls input[type="color"],
.design-controls input[type="number"],
.design-controls button,
.design-controls .btn {
  background-color: #1f3d1f;
  color: #d0f0d0;
  border: 1px solid #4caf50;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-family: var(--font-main);
}

.design-controls label {
  cursor: default;
  user-select: none;
  padding-top: 12px;
  font-size: 1rem;
}

.design-controls button:hover,
.design-controls .btn:hover,
.design-controls select:hover,
.design-controls input[type="text"]:hover,
.design-controls input[type="color"]:hover,
.design-controls input[type="number"]:hover {
  background-color: #4caf50;
  box-shadow: 0 0 10px #7fff7f;
  color: var(--color-bg);
}

/* === Design Canvas Container & Canvas Fixes === */
.design-canvas-container {
  position: relative;
  margin: 0 auto;
  width: 62.5vw;
  max-width: 400px;
  height: 78.125vw;
  max-height: 500px;
  box-shadow: 0 0 30px #25d366cc;
  border-radius: 20px;
  border: 2px solid #4caf50;
  background: linear-gradient(180deg, #223322, #112211);
  padding: 10px;
  overflow: hidden;
}

/* Canvas element itself */
#designCanvas {
  border: none;
  background-color: #112211;
  width: 60vw;
  max-width: 600px;
  height: 75vw;
  max-height: 650px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: inset 0 0 15px #25d366aa;
  display: block;
}

/* Images inside design canvas container (if any) */
.design-canvas-container img,
.design-canvas-container canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  border-radius: 16px;
}

/* Optional: Zoom image on hover */
.design-canvas-container img:hover {
  transform: scale(1.1);
}

/* === Error message styling === */
.error-message {
  display: none;
  color: #ff5555;
  text-align: center;
  margin: 10px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

/* === Design Text for drag and drop === */
.design-text {
  position: absolute;
  cursor: move;
  user-select: none;
  color: #a3d9a5;
  text-shadow: 0 0 8px #4caf50;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: #1f3d1fbb;
  border: 1px solid #4caf50;
}

/* === Form control styles === */
.color-picker, .font-select, .font-size {
  padding: 6px 10px;
  border-radius: 8px;
  background: #1f3d1f;
  color: #cce5cc;
  border: 1px solid #4caf50;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
}

.color-palette {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}

.color-btn {
  width: 36px;
  height: 36px;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s ease;
}

.color-btn:hover,
.color-btn:focus {
  border-color: #7fff7f;
  outline: none;
}

label[for="imageUpload"] {
  background-color: #25d366;
  color: #112211;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

label[for="imageUpload"]:hover {
  background-color: #1ebe57;
}