:root {
  /* Color Palette - Dark Sophisticated */
  --color-void: #0E0F11;
  --color-graphite: #181B20;
  --color-storm: #1F252C;
  --color-smoke: #272D34;
  --color-iron: #303740;
  --color-accent: #5A7BA6;
  --color-light: #E8EEF5;
  --color-glow: rgba(90, 123, 166, 0.3);
  
  /* Typography */
  --font-primary: 'Urbanist', sans-serif;
  --font-accent: 'Space Grotesk', monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3rem;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Effects */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 20px var(--color-glow);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--color-void);
  color: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Quantum Background Effect */
.quantum-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(180deg, var(--color-void) 0%, var(--color-graphite) 50%, var(--color-storm) 100%);
  overflow: hidden;
}

.quantum-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0;
  animation: quantumFloat 8s infinite ease-in-out;
}

@keyframes quantumFloat {
  0%, 100% { 
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  50% { 
    opacity: 0.6;
    transform: translateY(-10vh) scale(1);
  }
}

/* Unique Header - Collapsible Overlay */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform var(--transition-slow);
}

.header-wrapper.hidden {
  transform: translateY(-100%);
}

.site-header {
  background: rgba(14, 15, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(90, 123, 166, 0.1);
  padding: var(--space-sm) 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-accent);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-light);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-light);
  margin: 5px 0;
  transition: var(--transition-base);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.main-nav a {
  color: var(--color-light);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}



.main-nav a:hover {
  color: var(--color-accent);
}

.main-nav a:hover::before {
  transform: translateX(0);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 60px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}

.slide-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: var(--space-lg);
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-content h1 {
  font-family: var(--font-accent);
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.slide-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.slider-nav {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 20;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(232, 238, 245, 0.3);
  border: 1px solid var(--color-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  background: var(--color-accent);
  box-shadow: var(--shadow-glow);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-family: var(--font-accent);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-light);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: rgba(232, 238, 245, 0.7);
  max-width: 700px;
  margin: 0 auto;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-light);
  box-shadow: var(--shadow-md);
}

.btn-primary::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-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-light);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* Cards */
.card {
  background: var(--color-graphite);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(90, 123, 166, 0.1);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(90, 123, 166, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: var(--text-3xl);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-light);
}

.card-text {
  color: rgba(232, 238, 245, 0.8);
  font-size: var(--text-sm);
}

/* Product Card */
.product-card {
  background: var(--color-graphite);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
  border: 1px solid rgba(90, 123, 166, 0.1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: var(--space-md);
}

.product-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-light);
}

.product-desc {
  color: rgba(232, 238, 245, 0.7);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

.product-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--color-light);
  font-size: var(--text-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid rgba(90, 123, 166, 0.2);
  border-radius: var(--radius-md);
  background: var(--color-storm);
  color: var(--color-light);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.form-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: var(--text-sm);
  color: rgba(232, 238, 245, 0.8);
  cursor: pointer;
}

/* Contact Page Unique Design */
.contact-hero {
  text-align: center;
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, var(--color-storm) 0%, var(--color-smoke) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info-card {
  background: var(--color-graphite);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(90, 123, 166, 0.1);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item-icon {
  font-size: var(--text-2xl);
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-item-content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
  color: var(--color-light);
}

.contact-item-content p {
  color: rgba(232, 238, 245, 0.7);
  font-size: var(--text-sm);
}

.contact-form-wrapper {
  background: var(--color-graphite);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(90, 123, 166, 0.1);
}

/* Map Container */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(90, 123, 166, 0.1);
  margin-top: var(--space-lg);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) invert(92%) contrast(83%);
}

/* Footer */
.site-footer {
  background: var(--color-graphite);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(90, 123, 166, 0.1);
  margin-top: var(--space-2xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-text {
  font-size: var(--text-sm);
  color: rgba(232, 238, 245, 0.6);
}

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(232, 238, 245, 0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-accent);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-graphite);
  border-top: 1px solid var(--color-accent);
  padding: var(--space-md);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: var(--text-sm);
  color: rgba(232, 238, 245, 0.9);
}

.cookie-text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Thank You Page */
.thank-you-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
}

.thank-you-content {
  padding: 50px 0;
  max-width: 600px;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.thank-you-title {
  font-family: var(--font-accent);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.thank-you-text {
  font-size: var(--text-lg);
  color: rgba(232, 238, 245, 0.8);
  margin-bottom: var(--space-xl);
}

/* 404 Page */
.error-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
}

.error-code {
  font-family: var(--font-accent);
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-md);
  text-shadow: 0 0 30px var(--color-glow);
}

.error-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.error-text {
  font-size: var(--text-lg);
  color: rgba(232, 238, 245, 0.7);
  margin-bottom: var(--space-xl);
}

/* Responsive Design */
@media (max-width: 968px) {
  :root {
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-graphite);
    padding: var(--space-2xl) var(--space-lg);
    transition: right var(--transition-base);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: var(--space-md);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    height: 70vh;
  }

  .slide-content h1 {
    font-size: var(--text-3xl);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav ul {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  :root {
    --text-2xl: 1.5rem;
    --text-3xl: 1.75rem;
    --text-4xl: 2rem;
    --space-lg: 2rem;
    --space-xl: 2.5rem;
    --space-2xl: 3rem;
  }

  .header-container {
    padding: 0 var(--space-sm);
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .slide-content {
    padding: var(--space-md);
  }

  .product-image {
    height: 200px;
  }

  .map-container {
    height: 300px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-actions .btn {
    width: 100%;
  }

  .error-code {
    font-size: 5rem;
  }
}

/* ================================
   ULTRA MOBILE — 320PX OPTIMIZATION
   ================================ */
@media (max-width: 320px) {

  /* Root Adjustments */
  :root {
    --text-xs: 0.7rem;
    --text-sm: 0.8rem;
    --text-base: 0.9rem;
    --text-lg: 1rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.6rem;
    --text-3xl: 1.9rem;
    --text-4xl: 2.2rem;

    --space-xs: 0.35rem;
    --space-sm: 0.6rem;
    --space-md: 0.9rem;
    --space-lg: 1.4rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
  }

  /* Global Softening */
  body {
    padding: 0;
    margin: 0;
  }

  /* Header */
  .site-header {
    padding: var(--space-xs) 0;
  }

  .logo {
    font-size: 1.1rem !important;
  }

  .nav-toggle span {
    width: 20px;
    margin: 4px 0;
  }

  .main-nav {
    width: 240px;
    padding: var(--space-xl) var(--space-md);
  }

  .main-nav a {
    padding: var(--space-xs) 0;
    font-size: var(--text-sm);
  }

  /* Hero Slider */
  .hero-slider {
    height: 60vh;
  }

  .slide-content {
    padding: var(--space-md);
  }

  .slide-content h1 {
    font-size: var(--text-2xl);
    line-height: 1.25;
  }

  .slide-content p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
  }

  .slider-nav {
    gap: 6px;
    bottom: var(--space-md);
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  /* Containers */
  .container {
    padding: 0 var(--space-sm);
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .section-title {
    font-size: 15px;
  }

  .section-subtitle {
    font-size: var(--text-sm);
  }

  /* Cards */
  .card {
    padding: var(--space-md);
  }

  .card-title {
    font-size: var(--text-lg);
  }

  .card-text {
    font-size: var(--text-xs);
  }

  /* Product Cards */
  .product-image {
    height: 160px;
  }

  .product-title {
    font-size: var(--text-lg);
  }

  .product-desc {
    font-size: var(--text-xs);
  }

  .product-price {
    font-size: 1.25rem;
  }

  /* Buttons */
  .btn {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
  }

  /* Contact Page */
  .contact-hero {
    padding: var(--space-xl) var(--space-sm);
  }

  .contact-info-card,
  .contact-form-wrapper {
    padding: var(--space-md);
  }

  .contact-item {
    gap: var(--space-sm);
  }

  .contact-item-icon {
    font-size: 1.4rem;
  }

  /* Forms */
  .form-input,
  .form-textarea {
    padding: 0.6rem;
    font-size: var(--text-sm);
  }

  .form-checkbox label {
    font-size: var(--text-xs);
  }

  /* Map */
  .map-container {
    height: 220px;
  }

  /* Footer */
  .footer-content {
    padding: 0 var(--space-sm);
  }

  .footer-text {
    font-size: var(--text-xs);
  }

  .footer-nav a {
    font-size: var(--text-xs);
  }

  /* Cookie Popup */
  .cookie-content {
    gap: var(--space-sm);
  }

  .cookie-text {
    font-size: var(--text-xs);
  }

  .cookie-actions .btn {
    font-size: var(--text-sm);
  }

  /* 404 */
  .error-code {
    font-size: 4rem;
  }

  .error-title {
    font-size: var(--text-lg);
  }

  .error-text {
    font-size: var(--text-sm);
  }

  /* Thank You Page */
  .thank-you-icon {
    font-size: 3rem;
  }

  .thank-you-title {
    font-size: var(--text-xl);
  }

  .thank-you-text {
    font-size: var(--text-sm);
  }
}
