/* ═══════════════════════════════════════════════════════
   NANOHARVESTX - PROFESSIONAL DESIGN SYSTEM
   Clean Premium Design with SVG Icons
   ═══════════════════════════════════════════════════════ */

/* === DESIGN TOKENS === */
:root {
  /* Colors - Rich Palette */
  --primary-900: #050810;
  --primary-800: #0a0f1e;
  --primary-700: #111827;
  --primary-600: #1f2937;
  
  /* Accent Colors */
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --purple-500: #8b5cf6;
  --purple-400: #a78bfa;
  --pink-500: #ec4899;
  
  /* Semantic Colors */
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #22d3ee 0%, #a78bfa 50%, #ec4899 100%);
  --gradient-dark: linear-gradient(180deg, #050810 0%, #0a0f1e 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.4);
  --shadow-glow-cyan: 0 0 40px rgba(34, 211, 238, 0.4);
  --shadow-glow-purple: 0 0 40px rgba(139, 92, 246, 0.4);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === GLOBAL RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--primary-900);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* === ANIMATED BACKGROUND === */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  animation: gridPulse 20s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.2; }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  top: 10%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  animation-delay: 0s;
}

.orb-2 {
  top: 60%;
  right: 10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  animation-delay: 7s;
}

.orb-3 {
  bottom: 10%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  animation-delay: 14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -50px) scale(1.1); }
  66% { transform: translate(-50px, 50px) scale(0.9); }
}

/* === PARTICLE CANVAS === */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

/* === MAIN CONTENT === */
.main-content {
  position: relative;
  z-index: 2;
}

/* === NAVIGATION === */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
  transition: all var(--transition-base);
}

.nav-wrapper.scrolled {
  padding: var(--space-sm) 0;
  background: rgba(5, 8, 16, 0.95);
  box-shadow: var(--shadow-lg);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-xs);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 0.15;
}

.mobile-toggle {
  display: none;
  background: rgba(34, 211, 238, 0.15);
  border: 2px solid rgba(34, 211, 238, 0.4);
  color: var(--accent-cyan);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  transition: all var(--transition-base);
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-toggle:hover {
  background: rgba(34, 211, 238, 0.3);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(80px + var(--space-xl)) var(--space-lg) var(--space-xl);
  overflow: hidden;
}

.hero-home {
  background: 
    linear-gradient(135deg, rgba(5, 8, 16, 0.95) 0%, rgba(10, 15, 30, 0.85) 100%),
    url('../images/hero-ev-energy.jpg') center / cover no-repeat;
}

.hero-short {
  min-height: 40vh;
  padding: calc(80px + var(--space-lg)) var(--space-lg) var(--space-lg);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero-title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  opacity: 0.5;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-900);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.6);
}

.btn-secondary {
  background: rgba(34, 211, 238, 0.1);
  color: var(--text-primary);
  border: 2px solid rgba(34, 211, 238, 0.3);
}

.btn-secondary:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: rgba(34, 211, 238, 0.5);
  transform: translateY(-3px);
}

/* === SECTIONS === */
.section {
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-block;
  padding: var(--space-xs) var(--space-lg);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan-300);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-description {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-tertiary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === CARDS GRID === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: var(--shadow-glow-cyan);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

/* === SVG ICON STYLES === */
.card-icon svg {
  width: 48px;
  height: 48px;
  color: var(--cyan-400);
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.4));
  transition: all var(--transition-base);
}

.card:hover .card-icon svg {
  color: var(--cyan-300);
  filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.6));
  transform: translateY(-4px) scale(1.1);
}

/* === STEP NUMBER BADGE STYLES === */
.step-number-badge {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-900);
  box-shadow: var(--shadow-glow-cyan);
  transition: all var(--transition-base);
}

.card:hover .step-number-badge {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.6);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.card-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* === STATS GRID === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.stat-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: all var(--transition-base);
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: var(--shadow-glow-cyan);
}

.stat-number {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  display: inline-block;
}

.stat-label {
  color: var(--text-tertiary);
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 100%;
}

/* === FOOTER === */
.footer {
  background: rgba(5, 8, 16, 0.95);
  border-top: 1px solid rgba(34, 211, 238, 0.1);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  position: relative;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer-section p {
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(34, 211, 238, 0.1);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 8, 16, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-lg);
    gap: var(--space-sm);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid rgba(34, 211, 238, 0.2);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-toggle {
    display: flex;
  }

  body {
    overflow-x: hidden;
  }

  .hero {
    padding: calc(80px + var(--space-xl)) var(--space-md) var(--space-xl);
  }

  .hero-content {
    max-width: 100%;
    overflow: hidden;
  }

  .section-label {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    padding: var(--space-md) var(--space-sm);
    min-height: 160px;
  }

  .stat-number {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    padding: 0.25rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .section {
    padding: var(--space-2xl) var(--space-md);
  }

  .card-icon svg {
    width: 40px;
    height: 40px;
  }

  .step-number-badge {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* === FORM STYLING === */
.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
  background: rgba(17, 24, 39, 0.8);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-top: var(--space-md);
  font-style: italic;
}

.text-center {
  text-align: center;
}

/* === VIDEO GRID (3 COLUMNS) === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.video-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  transition: all var(--transition-base);
  overflow: hidden;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: var(--shadow-glow-cyan);
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--primary-800);
  margin-bottom: var(--space-md);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.video-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* === TEAM STYLES === */
.team-initial {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-900);
  margin-bottom: var(--space-md);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}
