:root {
  /* Color Palette - Quantum Blue Spectrum */
  --color-primary: #0B1C2C;
  --color-secondary: #0F2340;
  --color-tertiary: #142B4D;
  --color-accent: #1A355A;
  --color-deep: #10223A;
  --color-highlight: #2A7FFF;
  --color-light: #E8F4FF;
  --color-text: #E0E8F0;
  --color-text-muted: #8FA5BF;
  --color-success: #4ECDC4;
  --color-error: #FF6B6B;
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-xxl: 8rem;
  
  /* Typography */
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'JetBrains Mono', monospace;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3.5rem;
  
  /* Layout */
  --container-max: 1200px;
  --container-padding: var(--space-md);
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 1.5rem;
  
  /* Effects */
  --shadow-sm: 0 2px 8px rgba(42, 127, 255, 0.1);
  --shadow-md: 0 4px 16px rgba(42, 127, 255, 0.15);
  --shadow-lg: 0 8px 32px rgba(42, 127, 255, 0.2);
  --shadow-glow: 0 0 30px rgba(42, 127, 255, 0.3);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-organic: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-primary);
  position: relative;
  overflow-x: hidden;
}

/* === PARTICLE CANVAS BACKGROUND === */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* === QUANTUM MEMBRANE OVERLAY === */
.quantum-membrane {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(42, 127, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(78, 205, 196, 0.06) 0%, transparent 50%);
  mix-blend-mode: screen;
}

/* === MAIN CONTENT WRAPPER === */
.content-wrapper {
  position: relative;
  z-index: 2;
}

/* === HEADER DESIGN === */
header {
  position: relative;
  padding: var(--space-sm) 0;
  background: rgba(11, 28, 44, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(42, 127, 255, 0.1);
  transition: all var(--transition-base);
}

header.scrolled {
  padding: var(--space-xs) 0;
  background: rgba(11, 28, 44, 0.95);
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-light);
  text-decoration: none;
  font-family: var(--font-secondary);
  letter-spacing: -0.02em;
  transition: all var(--transition-fast);
  position: relative;
  display: inline-block;
}

.logo::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-highlight), var(--color-success));
  transition: width var(--transition-base);
}

.logo:hover::before {
  width: 100%;
}

/* === NAVIGATION === */
nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.nav-menu a {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.nav-menu 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 a:hover,
.nav-menu a.active {
  color: var(--color-light);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 80%;
}

/* === BURGER MENU === */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
  transition: all var(--transition-base);
}

.burger-line {
  width: 1.5rem;
  height: 2px;
  background: var(--color-light);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translateY(0.5rem);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-0.5rem);
}

/* === HERO SECTION === */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(42, 127, 255, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.hero-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.1;
  background: linear-gradient(135deg, var(--color-light) 0%, var(--color-highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-organic);
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
  width: 300%;
  height: 300%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-highlight) 0%, var(--color-success) 100%);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--color-light);
  border: 2px solid var(--color-highlight);
}

.btn-secondary:hover {
  background: var(--color-highlight);
  transform: translateY(-2px);
}

/* === CONTAINER === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* === SECTION STYLES === */
section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-light);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* === GRID SYSTEM === */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* === CARD COMPONENTS === */
.card {
  background: rgba(15, 35, 64, 0.6);
  border: 1px solid rgba(42, 127, 255, 0.15);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-organic);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(42, 127, 255, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(42, 127, 255, 0.3);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-highlight);
  margin-bottom: var(--space-sm);
}

.card h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-light);
}

.card p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* === PRODUCT CARDS === */
.product-card {
  background: rgba(15, 35, 64, 0.6);
  border: 1px solid rgba(42, 127, 255, 0.15);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  transition: all var(--transition-organic);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(78, 205, 196, 0.4);
  box-shadow: var(--shadow-glow);
}

.product-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: linear-gradient(135deg, var(--color-highlight), var(--color-success));
  color: var(--color-primary);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
}

.product-price {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-success);
  margin: var(--space-sm) 0;
  font-family: var(--font-secondary);
}

.product-features {
  list-style: none;
  margin: var(--space-md) 0;
  flex-grow: 1;
}

.product-features li {
  padding: var(--space-xs) 0;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.product-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: bold;
}

/* === CONTACT FORM === */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-info {
  background: rgba(15, 35, 64, 0.6);
  border: 1px solid rgba(42, 127, 255, 0.15);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--color-highlight);
  flex-shrink: 0;
}

.contact-item-content h3 {
  font-size: var(--font-size-lg);
  color: var(--color-light);
  margin-bottom: var(--space-xs);
}

.contact-item-content p,
.contact-item-content a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-item-content a:hover {
  color: var(--color-highlight);
}

.form-container {
  background: rgba(15, 35, 64, 0.6);
  border: 1px solid rgba(42, 127, 255, 0.15);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-light);
  font-weight: 500;
  font-size: var(--font-size-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  background: rgba(11, 28, 44, 0.6);
  border: 1px solid rgba(42, 127, 255, 0.2);
  border-radius: var(--border-radius-sm);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-highlight);
  box-shadow: 0 0 0 3px rgba(42, 127, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.checkbox-group label {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* === MAP === */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(42, 127, 255, 0.15);
  margin-top: var(--space-lg);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) invert(100%) brightness(0.8) contrast(1.2);
}

/* === FOOTER === */
footer {
  background: rgba(11, 28, 44, 0.95);
  border-top: 1px solid rgba(42, 127, 255, 0.1);
  padding: var(--space-md) 0 var(--space-sm);
  margin-top: var(--space-xl);
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-menu a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-menu a:hover {
  color: var(--color-highlight);
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* === PRIVACY POPUP === */
.privacy-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(15, 35, 64, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(42, 127, 255, 0.2);
  padding: var(--space-md);
  z-index: 1000;
  transition: bottom var(--transition-slow);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.privacy-popup.show {
  bottom: 0;
}

.privacy-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.privacy-text {
  flex: 1;
  min-width: 250px;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.privacy-text a {
  color: var(--color-highlight);
  text-decoration: none;
}

.privacy-actions {
  display: flex;
  gap: var(--space-sm);
}

/* === 404 PAGE === */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) 0;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-highlight) 0%, var(--color-success) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-sm);
  font-family: var(--font-secondary);
}

/* === THANK YOU PAGE === */
.thank-you-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) 0;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--color-success);
  margin-bottom: var(--space-md);
  animation: scaleIn 0.6s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2.5rem;
    --font-size-3xl: 2rem;
    --font-size-2xl: 1.5rem;
    --space-xl: 3rem;
    --space-xxl: 5rem;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(11, 28, 44, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-md);
    transition: right var(--transition-slow);
    border-left: 1px solid rgba(42, 127, 255, 0.2);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu a {
    width: 100%;
    padding: var(--space-sm);
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .error-code {
    font-size: 5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
    --container-padding: var(--space-sm);
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}
/* === 320px MOBILE OPTIMIZATION === */
@media (max-width: 320px) {
  :root {
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.25rem;
    --font-size-2xl: 1.125rem;
    --font-size-xl: 1rem;
    --font-size-lg: 0.875rem;
    --font-size-base: 0.8125rem;
    --font-size-sm: 0.75rem;
    --space-xxl: 3rem;
    --space-xl: 2rem;
    --space-lg: 1.5rem;
    --space-md: 1rem;
    --space-sm: 0.5rem;
    --space-xs: 0.25rem;
    --container-padding: 0.5rem;
  }

  header {
    padding: var(--space-xs) 0;
  }

  .header-container {
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 0 var(--container-padding);
  }

  .nav-menu {
    width: 100%;
    max-width: 100%;
    padding: var(--space-lg) var(--container-padding);
  }

  .nav-menu a {
    font-size: var(--font-size-sm);
    padding: var(--space-xs) var(--space-sm);
  }

  .burger-menu {
    display: flex;
  }

  .hero {
    min-height: 60vh;
    padding: var(--space-lg) 0;
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
    line-height: 1.2;
  }

  .hero p {
    font-size: var(--font-size-base);
    max-width: 100%;
    margin-bottom: var(--space-md);
  }

  .btn {
    width: 100%;
    font-size: var(--font-size-sm);
    padding: 0.625rem 1rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .form-container,
  .contact-info {
    padding: var(--space-md);
  }

  .map-container {
    height: 250px;
  }

  footer {
    padding: var(--space-sm) 0;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .privacy-content {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .privacy-text {
    font-size: var(--font-size-xs);
  }

  .error-code {
    font-size: 4rem;
  }

  .thank-you-container {
    padding: var(--space-lg) 0;
  }

  .thank-you-icon {
    font-size: 3.5rem;
  }

  /* Adjust cards */
  .card, .product-card {
    padding: var(--space-sm);
  }

  .product-price {
    font-size: var(--font-size-2xl);
  }
}


/* === ACCESSIBILITY === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === PRINT STYLES === */
@media print {
  #particle-canvas,
  .quantum-membrane,
  header,
  footer,
  .privacy-popup {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}