/* ============================================
   CYBER-CRAFT & FLOATING ORNAMENT AESTHETIC
   Embroidery & Needlework Art Website
   ============================================ */

:root {
  /* Color Palette */
  --color-bg-primary: #08080A;
  --color-bg-secondary: #0F0F12;
  --color-accent-primary: #D1D1D1;
  --color-accent-secondary: #FF3366;
  --color-accent-tertiary: #C0C0C0;
  --color-highlight: #BFA100;
  --color-text-primary: #E8E8E8;
  --color-text-secondary: #B0B0B0;
  
  /* Typography */
  --font-primary: 'Cormorant Garamond', serif;
  --font-secondary: 'Barlow Condensed', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --border-thin: 1px solid var(--color-accent-primary);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(191, 161, 0, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Glassmorphism */
  --glass-bg: rgba(13, 13, 16, 0.7);
  --glass-border: rgba(209, 209, 209, 0.2);
  --glass-blur: blur(20px);
}

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

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

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

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

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

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

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

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

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

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

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

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

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

.site-header {
  position: relative;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: var(--border-thin);
  z-index: 1000;
}

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

.brand-text {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--color-text-primary);
}

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

.nav-menu li a {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-sm) var(--space-md);
  position: relative;
}

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

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

.burger-toggle {
  display: none;
  background: transparent;
  border: var(--border-thin);
  color: var(--color-accent-primary);
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 10001;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.burger-toggle:hover {
  border-color: var(--color-highlight);
  color: var(--color-highlight);
}

.burger-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: absolute;
  transition: all var(--transition-base);
}

.burger-toggle span:nth-child(1) {
  top: 12px;
}

.burger-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.burger-toggle span:nth-child(3) {
  bottom: 12px;
}

.burger-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.burger-toggle.active span:nth-child(2) {
  opacity: 0;
}

.burger-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 1023px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-left: var(--border-thin);
    flex-direction: column;
    padding: var(--space-xxl) var(--space-lg);
    gap: var(--space-md);
    transition: right var(--transition-base);
    z-index: 10000;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu li a {
    display: block;
    padding: var(--space-md);
    border-bottom: var(--border-thin);
  }
  
  .burger-toggle {
    display: flex;
    position: relative;
    z-index: 10001;
  }
  
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    backdrop-filter: blur(2px);
  }
  
  .nav-overlay.active {
    display: block;
  }
}

/* ============================================
   HERO BANNERS (Full-Width)
   ============================================ */

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

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform var(--transition-slow);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: var(--space-xl);
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--border-thin);
  margin: var(--space-lg);
}

.hero-content h1 {
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  color: var(--color-text-secondary);
}

/* ============================================
   SECTIONS & LAYOUT
   ============================================ */

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  width: 100%;
}

.content-section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-md);
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-md);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-highlight);
}

/* Grid Layouts */
.grid-container {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

/* Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--border-thin);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(191, 161, 0, 0.1), transparent);
  transform: rotate(45deg);
  transition: all var(--transition-slow);
  opacity: 0;
}

.glass-card:hover::before {
  opacity: 1;
  animation: shimmer 2s infinite;
}

.glass-card:hover {
  border-color: var(--color-highlight);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Image Containers */
.image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  margin-bottom: var(--space-md);
  border: var(--border-thin);
  max-height: 300px;
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.glass-card:hover .image-wrapper img {
  transform: scale(1.05);
}

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

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: transparent;
  border: var(--border-thin);
  color: var(--color-accent-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  margin-top: 10px;
}

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

.btn-primary {
  background: var(--color-highlight);
  border-color: var(--color-highlight);
  color: var(--color-bg-primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-highlight);
}

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

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--border-thin);
  color: var(--color-text-primary);
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: all var(--transition-base);
}

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

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

.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;
  text-transform: none;
  font-size: 0.9rem;
  cursor: pointer;
}

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

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

.product-image {
  width: 100%;
  padding-top: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-md);
  border: var(--border-thin);
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.product-price {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  color: var(--color-highlight);
  margin-top: var(--space-md);
}

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

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

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

/* ============================================
   LIGHT-ANGLE VIEWER
   ============================================ */

.light-viewer-container {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  border: var(--border-thin);
  cursor: crosshair;
  margin-bottom: var(--space-md);
}

.light-viewer-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--transition-base);
}

.light-source {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 161, 0, 0.4), transparent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: none;
}

.light-viewer-container.active .light-source {
  display: block;
}

.light-toggle {
  margin-bottom: var(--space-md);
}

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

.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 8, 10, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.privacy-popup.active {
  display: flex;
}

.privacy-content {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--border-thin);
  padding: var(--space-xl);
  position: relative;
}

.privacy-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  border: var(--border-thin);
  color: var(--color-accent-primary);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.privacy-close:hover {
  border-color: var(--color-highlight);
  color: var(--color-highlight);
}

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

.site-footer {
  margin-top: var(--space-xxl);
  padding: var(--space-xl) var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-top: var(--border-thin);
}

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

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

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

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

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

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

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: var(--border-thin);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* ============================================
   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); }

.date {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-style: italic;
}

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

@media (max-width: 768px) {
  main {
    padding: var(--space-lg) var(--space-md);
  }
  
  .content-section {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) 0;
  }
  
  .grid-two,
  .grid-three,
  .grid-four {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    padding: var(--space-lg);
    margin: var(--space-md);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 14px;
  }
  
  .header-container {
    padding: var(--space-sm);
  }
  
  main {
    padding: var(--space-md) var(--space-sm);
  }
}

/* ============================================
   ZOOM ON SCROLL EFFECT
   ============================================ */

.zoom-on-scroll {
  transform: scale(1);
  transition: transform var(--transition-slow);
}

.zoom-on-scroll.zoomed {
  transform: scale(1.1);
}

/* ============================================
   VECTOR PATH ANIMATIONS
   ============================================ */

.path-line {
  stroke: var(--color-highlight);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 3s ease-in-out forwards;
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

