/* ============================================
   EMBROIDERY & NEEDLEPOINT ART - FUTURISTIC DESIGN
   Digital Loom Theme
   ============================================ */

:root {
  /* Color Palette - Digital Loom Theme */
  --canvas: #0F111A;
  --fiber: #FF007A;
  --glow: #00FF9C;
  --text-primary: #FFFFFF;
  --text-secondary: #B8BCC8;
  --text-muted: #6B7280;
  --bg-overlay: rgba(15, 17, 26, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Layout */
  --container-max: 1200px;
  --section-padding: 4rem 1rem;
  --section-padding-mobile: 2rem 1rem;
  
  /* Border & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --glow-fiber: 0 0 20px rgba(255, 0, 122, 0.5);
  --glow-cyber: 0 0 30px rgba(0, 255, 156, 0.4);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Grid */
  --grid-gap: 1.5rem;
  --grid-gap-mobile: 1rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--canvas);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Generative Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 0, 122, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 122, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--fiber), var(--glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: var(--glow);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--fiber);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.section-center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-center h2,
.section-center h3 {
  text-align: center;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  position: relative;
  z-index: 100;
  padding: var(--space-lg) var(--space-md);
  background: var(--bg-overlay);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  gap: 15px;
  list-style: none;
  align-items: center;
}

.nav-menu li a {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--fiber);
  transition: width var(--transition-base);
}

.nav-menu li a:hover {
  color: var(--text-primary);
}

.nav-menu li a:hover::after {
  width: 80%;
}

/* Burger Menu */
.burger-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.5rem;
  transition: all var(--transition-base);
  order: 999;
  z-index: 1000001;
}

.burger-toggle:hover {
  border-color: var(--fiber);
  box-shadow: var(--glow-fiber);
}

.burger-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all var(--transition-base);
}

/* Mobile Navigation */
@media (max-width: 1023px) {
  .burger-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: var(--space-3xl) var(--space-xl);
    gap: var(--space-md);
    transition: right var(--transition-base);
    z-index: 1000;
    border-left: 1px solid var(--glass-border);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu li a {
    display: block;
    width: 100%;
    padding: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
  }
  
  .nav-menu li a::after {
    display: none;
  }
  
  .burger-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .burger-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .burger-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* ============================================
   BANNERS & HERO SECTIONS
   ============================================ */

.hero-banner {
  width: 100vw;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-2xl);
  max-width: 900px;
  margin: 0 auto;
  background: rgba(15, 17, 26, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-content h1 {
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 30px rgba(255, 0, 122, 0.5);
}

.banner-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid-container {
  display: grid;
  gap: var(--grid-gap);
  margin: var(--space-xl) auto;
  max-width: 100%;
  justify-items: center;
}

.grid-two {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-three {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-four {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 122, 0.1), transparent);
  transition: left var(--transition-slow);
}

.grid-item:hover {
  transform: translateY(-5px);
  border-color: var(--fiber);
  box-shadow: var(--glow-fiber);
}

.grid-item:hover::before {
  left: 100%;
}

.grid-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.grid-content h3 {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.grid-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--fiber), var(--glow));
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyber);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--fiber);
  color: var(--fiber);
}

.btn-secondary:hover {
  background: var(--fiber);
  color: var(--text-primary);
}

/* ============================================
   FORMS
   ============================================ */

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--fiber);
  box-shadow: 0 0 0 3px rgba(255, 0, 122, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ============================================
   MAPS
   ============================================ */

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-xl) 0;
  border: 1px solid var(--glass-border);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   PRODUCTS
   ============================================ */

.product-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--glow);
  box-shadow: var(--glow-cyber);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.product-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--glow);
  margin-top: var(--space-md);
}

/* ============================================
   LOOM-VISION TOGGLE
   ============================================ */

.vision-toggle {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 999;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--fiber);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-base);
  box-shadow: var(--glow-fiber);
}

.vision-toggle:hover {
  background: var(--fiber);
  transform: scale(1.05);
}

.loom-vision .grid-item,
.loom-vision .product-card {
  background: transparent;
  border: 2px dashed var(--fiber);
  position: relative;
}

.loom-vision .grid-item::after,
.loom-vision .product-card::after {
  content: attr(data-coords);
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-size: 0.7rem;
  color: var(--fiber);
  font-family: 'Courier New', monospace;
}

.loom-vision .banner-image,
.loom-vision .grid-image,
.loom-vision .product-image {
  opacity: 0.1;
  filter: grayscale(100%);
}

/* ============================================
   PRIVACY POPUP
   ============================================ */

.privacy-popup {
  position: fixed;
  bottom: var(--space-xl);
  left: var(--space-xl);
  right: var(--space-xl);
  max-width: 500px;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  display: none;
}

.privacy-popup.active {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.privacy-popup p {
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.privacy-popup-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--bg-overlay);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-2xl) var(--space-md);
  margin-top: var(--space-3xl);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.footer-section h4 {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-size: 1rem;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: var(--space-sm);
}

.footer-menu a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

.footer-menu a:hover {
  color: var(--glow);
}

.footer-info {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-copyright {
  text-align: center;
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Layout Utilities */
.flex-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flex-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.min-height-60 {
  min-height: 60vh;
}

.max-width-900 {
  max-width: 900px;
}

.max-width-600 {
  max-width: 600px;
}

/* Text Utilities */
.text-large {
  font-size: 1.25rem;
}

.text-huge {
  font-size: 4rem;
}

.text-massive {
  font-size: 6rem;
  font-weight: var(--font-weight-bold);
}

.text-muted {
  color: var(--text-muted);
}

/* Spacing Utilities */
.spacing-top {
  margin-top: var(--space-lg);
}

/* List Styles */
.list-styled {
  margin-left: 2rem;
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

/* Special Elements */
.hud-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--fiber);
  color: var(--text-primary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
}

.hud-badge-glow {
  background: var(--glow);
  color: var(--canvas);
}

.spec-box {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 0, 122, 0.1);
  border-left: 3px solid var(--fiber);
  border-radius: var(--radius-sm);
}

.spec-box-glow {
  background: rgba(0, 255, 156, 0.1);
  border-left-color: var(--glow);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.schema-box {
  background: var(--glass-bg);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--glow);
}

.coordinate-display {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  font-family: 'Courier New', monospace;
  text-align: left;
  max-width: 600px;
}

.coordinate-header {
  color: var(--glow);
  margin-bottom: 1rem;
}

.coordinate-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.9rem;
}

/* Canvas for Gallery */
.stitch-canvas {
  width: 100%;
  height: 600px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  cursor: grab;
}

.canvas-content {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-size: cover;
  background-position: center;
  transform-origin: center center;
}

.canvas-zone {
  position: absolute;
  border: 2px dashed;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.zone-fiber {
  background: rgba(255, 0, 122, 0.1);
  border-color: var(--fiber);
  color: var(--fiber);
}

.zone-glow {
  background: rgba(0, 255, 156, 0.1);
  border-color: var(--glow);
  color: var(--glow);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
    --grid-gap: var(--grid-gap-mobile);
  }
  
  .grid-two,
  .grid-three,
  .grid-four {
    grid-template-columns: 1fr;
  }
  
  .hero-banner {
    min-height: 50vh;
  }
  
  .banner-content {
    padding: var(--space-lg);
  }
  
  .form-container {
    padding: var(--space-lg);
  }
  
  .vision-toggle {
    bottom: var(--space-md);
    right: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
  }
  
  .privacy-popup {
    left: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-md);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .section {
    padding: var(--space-lg) var(--space-md);
  }
  
  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.85rem;
  }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: var(--glow-fiber); }
  50% { box-shadow: var(--glow-cyber); }
}

.pulsing-glow {
  animation: glowPulse 2s ease-in-out infinite;
}

/* Thread Editor Interactive Element */
.thread-editor {
  width: 100%;
  height: 400px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  margin: var(--space-xl) 0;
}

.thread-line {
  position: absolute;
  height: 2px;
  background: var(--fiber);
  transform-origin: left center;
  box-shadow: 0 0 10px var(--fiber);
  transition: all 0.1s ease;
}

.thread-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--glow);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--glow);
  transform: translate(-50%, -50%);
}

