/* ============================================
   FUTURISTIC HERB GARDEN DESIGN SYSTEM
   Clean-Room Laboratory / Space Station Galley
   ============================================ */

:root {
  /* Color Palette */
  --color-synthetic-white: #F5F7FA;
  --color-ultraviolet: #9D50BB;
  --color-chlorophyll: #39FF14;
  --color-steel-mesh: #8492A6;
  --color-dark-base: #1a1a2e;
  --color-accent-purple: #6a4c93;
  --color-accent-green: #2d8659;
  
  /* Typography */
  --font-primary: 'Rajdhani', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Layout */
  --container-max: 1200px;
  --section-padding: 4rem 1rem;
  
  /* Effects */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --blur-glass: blur(20px);
  --shadow-glow: 0 0 30px rgba(157, 80, 187, 0.3);
  --shadow-glow-green: 0 0 20px rgba(57, 255, 20, 0.4);
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

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

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

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  background: var(--color-synthetic-white);
  color: var(--color-dark-base);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* 3D Hex-Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(30deg, rgba(157, 80, 187, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(157, 80, 187, 0.03) 87.5%, rgba(157, 80, 187, 0.03)),
    linear-gradient(150deg, rgba(157, 80, 187, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(157, 80, 187, 0.03) 87.5%, rgba(157, 80, 187, 0.03)),
    linear-gradient(30deg, rgba(157, 80, 187, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(157, 80, 187, 0.03) 87.5%, rgba(157, 80, 187, 0.03)),
    linear-gradient(150deg, rgba(157, 80, 187, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(157, 80, 187, 0.03) 87.5%, rgba(157, 80, 187, 0.03));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* Oxygen Bubbles Animation */
@keyframes float-up {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) translateX(20px);
    opacity: 0;
  }
}

.oxygen-bubble {
  position: fixed;
  width: 8px;
  height: 8px;
  background: rgba(57, 255, 20, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: float-up 15s linear infinite;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.4rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h2 {
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: clamp(1rem, 3vw, 1.75rem);
  font-weight: var(--font-weight-medium);
}

p {
  margin-bottom: var(--space-md);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

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

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

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

.site-header {
  position: relative;
  z-index: 100000002;
  padding: var(--space-md) var(--space-lg);
  background: rgba(245, 247, 250, 0.85);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid rgba(157, 80, 187, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.brand-text {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark-base);
}

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

.main-nav a {
  font-weight: var(--font-weight-medium);
  font-size: clamp(0.9rem, 2vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: var(--space-xs) 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-chlorophyll);
  transition: width var(--transition-fast);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Burger Menu */
.burger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
  position: relative;
  right: 10px;
  order: 999;
}

.burger-icon {
  width: 28px;
  height: 3px;
  background: var(--color-dark-base);
  position: relative;
  transition: background var(--transition-fast);
}

.burger-icon::before,
.burger-icon::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 3px;
  background: var(--color-dark-base);
  transition: transform var(--transition-fast);
}

.burger-icon::before {
  top: -8px;
}

.burger-icon::after {
  bottom: -8px;
}

.burger-toggle.active .burger-icon {
  background: transparent;
}

.burger-toggle.active .burger-icon::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-toggle.active .burger-icon::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
@media (max-width: 1023px) {
  .burger-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: rgba(245, 247, 250, 0.98);
    backdrop-filter: var(--blur-glass);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-xxl) var(--space-lg);
    gap: var(--space-lg);
    transition: right var(--transition-slow);
    z-index: 99;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav a {
    font-size: 1.1rem;
    width: 100%;
    padding: var(--space-md);
    border-bottom: 1px solid rgba(157, 80, 187, 0.1);
  }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
  position: relative;
  z-index: 10;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.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%);
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(157, 80, 187, 0.4), rgba(57, 255, 20, 0.2));
  z-index: 2;
}

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

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  max-width: 800px;
  background: rgba(245, 247, 250, 0.75);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-lg);
  margin: var(--space-lg);
  box-shadow: var(--shadow-glow);
}

.hero-content h1 {
  color: var(--color-dark-base);
  margin-bottom: var(--space-md);
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-dark-base);
  font-weight: var(--font-weight-light);
}

/* ============================================
   SECTIONS
   ============================================ */

.content-section {
  padding: var(--section-padding);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-dark-base);
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-ultraviolet), var(--color-chlorophyll));
  margin: var(--space-md) auto;
}

/* Grid Layouts */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.grid-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(157, 80, 187, 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-ultraviolet), var(--color-chlorophyll));
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

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

.grid-item:hover::before {
  transform: scaleX(1);
}

.grid-item h3,
.grid-item p {
  text-align: center;
}

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

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

/* Pulse Animation for Plant Images */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.6);
  }
}

.plant-image {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* HUD Overlay on Hover */
.grid-item:hover .hud-overlay {
  opacity: 1;
}

.hud-overlay {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: var(--blur-glass);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--color-chlorophyll);
  opacity: 0;
  transition: opacity var(--transition-fast);
  font-family: 'Courier New', monospace;
  border: 1px solid var(--color-chlorophyll);
}

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

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--color-ultraviolet), var(--color-accent-purple));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: clamp(0.9rem, 2vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-align: center;
  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.3);
  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(--shadow-glow-green);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-chlorophyll), var(--color-accent-green));
}

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

.btn-secondary:hover {
  background: var(--color-ultraviolet);
  color: white;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--blur-glass);
  padding: var(--space-xxl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(157, 80, 187, 0.2);
}

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

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-dark-base);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid rgba(157, 80, 187, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-ultraviolet);
  box-shadow: 0 0 10px rgba(157, 80, 187, 0.3);
}

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

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

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

.checkbox-group label {
  margin-bottom: 0;
  text-transform: none;
  font-weight: var(--font-weight-regular);
  cursor: pointer;
}

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

.product-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(157, 80, 187, 0.2);
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

.product-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-sm);
  color: var(--color-dark-base);
}

.product-price {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-ultraviolet);
  margin: var(--space-md) 0;
}

/* ============================================
   MAP CONTAINER
   ============================================ */

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-xl) 0;
  border: 2px solid rgba(157, 80, 187, 0.2);
  box-shadow: var(--shadow-glow);
}

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

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

.site-footer {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: var(--blur-glass);
  color: var(--color-synthetic-white);
  padding: var(--space-xxl) var(--space-lg);
  margin-top: var(--space-xxl);
  border-top: 1px solid rgba(157, 80, 187, 0.3);
}

.footer-content {
  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 h3 {
  color: var(--color-chlorophyll);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

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

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-chlorophyll);
}

.footer-info {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.copyright {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(157, 80, 187, 0.2);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

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

.privacy-popup {
  display: none;
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  max-width: 400px;
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: var(--blur-glass);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-chlorophyll);
  box-shadow: var(--shadow-glow-green);
  z-index: 1000;
  color: white;
}

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

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

.privacy-popup h3 {
  color: var(--color-chlorophyll);
  margin-bottom: var(--space-md);
}

.privacy-popup p {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

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

/* ============================================
   KITCHEN-SYNC SIMULATOR
   ============================================ */

.simulator-container {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--blur-glass);
  padding: var(--space-xxl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(157, 80, 187, 0.2);
  max-width: 800px;
  margin: var(--space-xl) auto;
}

.simulator-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.simulator-display {
  width: 100%;
  height: 400px;
  background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 50%, #F5F7FA 100%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(157, 80, 187, 0.3);
  margin-top: var(--space-lg);
}

.solar-path {
  position: absolute;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 200, 0, 0.8), rgba(255, 150, 0, 0.4));
  box-shadow: 0 0 20px rgba(255, 200, 0, 0.6);
  transition: left 1s ease;
}

.herb-indicator {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--color-chlorophyll);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

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

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

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

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

.hidden {
  display: none;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  :root {
    --section-padding: 2rem 1rem;
  }
  
  .hero-content {
    padding: var(--space-lg);
    margin: var(--space-md);
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .privacy-popup {
    max-width: calc(100% - 2rem);
    right: var(--space-md);
    bottom: var(--space-md);
  }
}

@media (max-width: 320px) {
  .site-header {
    padding: var(--space-sm) var(--space-md);
  }
  
  .hero-content {
    padding: var(--space-md);
  }
  
  .content-section {
    padding: var(--space-lg) var(--space-sm);
  }
}

