:root {
  /* Dark Premium Palette */
  --bg-dark: #09090b;
  --bg-darker: #050505;
  --primary-accent: #FF6B35; /* Brand Orange */
  --primary-glow: rgba(255, 107, 53, 0.4);
  --secondary-accent: #10b981; /* Neon Green for Eco touch */
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
  
  --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
  cursor: none; /* Custom cursor */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, video { max-width: 100%; height: auto; display: block; }

/* Custom Cursor */
.cursor-dot {
  width: 8px; height: 8px;
  background-color: var(--primary-accent);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}
.cursor-outline {
  width: 40px; height: 40px;
  border: 1px solid var(--primary-glow);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Ambient Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}
.glow-1 {
  width: 500px; height: 500px;
  background: var(--primary-glow);
  top: -100px; right: -100px;
}
.glow-2 {
  width: 600px; height: 600px;
  background: rgba(16, 185, 129, 0.15); /* Eco green glow */
  bottom: -200px; left: -200px;
}

/* Utilities */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 8rem 0; }
.text-gradient {
  background: linear-gradient(135deg, #FF6B35, #ff9f7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 3rem; }

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

/* Hover Links */
.hover-link { position: relative; }
.hover-link::after {
  content: ''; position: absolute;
  width: 0; height: 2px;
  bottom: -4px; left: 0;
  background-color: var(--primary-accent);
  transition: var(--transition-fast);
}
.hover-link:hover::after { width: 100%; }

/* Header */
header {
  position: fixed; top: 0; width: 100%;
  z-index: 1000; padding: 1.5rem 0;
  transition: var(--transition-slow);
}
header.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { opacity: 0; transform: translateY(-10px); transition: var(--transition-fast); }
header.scrolled .logo { opacity: 1; transform: translateY(0); }
.header-logo-img { height: 40px; }
.nav-links { display: flex; gap: 3rem; font-weight: 500; font-size: 0.95rem; }
.mobile-menu-btn { display: none; background: none; border: none; }
.mobile-menu-btn span { display: block; width: 30px; height: 2px; background: #fff; margin: 6px 0; }

/* Buttons */
.btn {
  display: inline-block; padding: 1rem 2.5rem;
  border-radius: 50px; font-weight: 600; font-family: var(--font-heading);
  text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;
  transition: var(--transition-fast);
}
.btn-primary { background: var(--primary-accent); color: #fff; box-shadow: 0 10px 30px var(--primary-glow); }
.btn-primary:hover { background: var(--secondary-hover); transform: translateY(-3px); }
.btn-glass { background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); color: #fff; }
.btn-glass:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }

/* Hero */
.hero { height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-bg-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 120%; z-index: 0; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%); }
.hero-container { position: relative; z-index: 1; width: 100%; }
.hero-content { max-width: 900px; }
.hero-main-logo { height: clamp(60px, 10vw, 120px); margin-bottom: 2rem; filter: drop-shadow(0 0 20px rgba(255,107,53,0.5)); }
.hero-title { font-size: clamp(3rem, 8vw, 6.5rem); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: -2px; }
.hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--text-muted); margin-bottom: 3rem; max-width: 600px; }
.hero-cta { display: flex; gap: 1.5rem; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 40px; right: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
}
.scroll-line { width: 1px; height: 60px; background: rgba(255,255,255,0.2); overflow: hidden; position: relative; }
.scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--primary-accent);
  animation: scrollLine 2s infinite ease-in-out;
}
@keyframes scrollLine { 0% {top: -100%} 100% {top: 100%} }

/* Values Grid */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.value-card { padding: 3rem; transition: transform var(--transition-slow); }
.value-card:hover { transform: translateY(-10px) scale(1.02); border-color: var(--primary-glow); }
.value-icon { font-size: 2.5rem; color: var(--primary-accent); margin-bottom: 1.5rem; }
.value-title { font-size: 1.5rem; margin-bottom: 1rem; }
.value-desc { color: var(--text-muted); line-height: 1.8; }

/* Services Showcase (Alternating Layout) */
.services-showcase { display: flex; flex-direction: column; gap: 8rem; }
.service-row { display: flex; align-items: center; gap: 4rem; }
.service-row.reverse { flex-direction: row-reverse; }
.service-img-wrapper { flex: 1; border-radius: 24px; overflow: hidden; height: 500px; }
.service-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: var(--transition-slow); }
.service-row:hover .service-img { transform: scale(1); }
.service-text { flex: 1; }
.service-title { font-size: 2.5rem; margin-bottom: 1.5rem; }
.service-text p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; }

/* Biodigester Sticky Section */
.biodigester-sticky .sticky-container { display: flex; align-items: flex-start; gap: 4rem; }
.sticky-text { position: sticky; top: 150px; flex: 1; }
.sticky-subtitle { color: var(--text-muted); font-size: 1.2rem; margin-top: 1rem; line-height: 1.8; }
.scrolling-content { flex: 1; display: flex; flex-direction: column; gap: 3rem; margin-top: 50px; }
.feature-card { padding: 3rem; position: relative; overflow: hidden; }
.feature-number { position: absolute; top: -20px; right: 20px; font-size: 6rem; font-family: var(--font-heading); font-weight: 800; color: rgba(255,255,255,0.03); }
.feature-card h4 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary-accent); }
.feature-card p { color: var(--text-muted); line-height: 1.8; }

/* Bento Grid Gallery */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
}
.bento-item { border-radius: 24px; overflow: hidden; position: relative; background: #111; }
.bento-item img, .bento-item video { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.bento-item:hover img, .bento-item:hover video { transform: scale(1.05); }
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-small { grid-column: span 1; grid-row: span 1; }
.bento-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex; align-items: flex-end; padding: 2rem; opacity: 0; transition: var(--transition-fast);
}
.bento-item:hover .bento-overlay { opacity: 1; }

/* Coverage */
.coverage-wrapper { padding: 4rem; display: flex; align-items: center; justify-content: space-between; }
.coverage-info h2 { font-size: 3rem; margin-bottom: 1rem; }
.country-list { margin-top: 2rem; }
.country-list li { margin-bottom: 1rem; font-size: 1.1rem; display: flex; align-items: center; gap: 1rem; }
.country-list i { color: var(--primary-accent); }
.coming-soon { color: var(--text-muted); font-size: 0.9rem !important; }
.globe-spin { font-size: 15rem; color: var(--glass-border); animation: spin 20s linear infinite; }
@keyframes spin { 100% {transform: rotate(360deg);} }

/* Footer */
.footer-premium { border-top: 1px solid var(--glass-border); padding: 6rem 0 2rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-logo-img { height: 60px; margin-bottom: 2rem; }
.footer-desc { color: var(--text-muted); max-width: 400px; font-size: 1.1rem; line-height: 1.8; }
.footer-heading { font-size: 1.5rem; margin-bottom: 1.5rem; }
.contact-list li { margin-bottom: 1rem; }
.contact-list a { font-size: 1.1rem; color: var(--text-muted); display: flex; align-items: center; gap: 1rem; }
.contact-list i { color: var(--primary-accent); }
.footer-bottom { text-align: center; border-top: 1px solid var(--glass-border); padding-top: 2rem; color: var(--text-muted); font-size: 0.9rem; }

/* Lightbox & Chat (Dark UI adapt) */
.lightbox { position: fixed; z-index: 2000; inset: 0; background: rgba(0,0,0,0.95); display: flex; justify-content: center; align-items: center; opacity: 1; transition: var(--transition-fast); }
.lightbox.hidden { opacity: 0; pointer-events: none; }
.lightbox-content { max-width: 90vw; max-height: 90vh; border-radius: 12px; animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.lightbox-close { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 3rem; cursor: none; }

.whatsapp-float {
  position: fixed; bottom: 40px; right: 40px; width: 65px; height: 65px;
  background: var(--primary-accent); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 10px 30px var(--primary-glow); z-index: 1000; transition: var(--transition-fast); border: none;
}
.whatsapp-float:hover { transform: scale(1.1); background: var(--secondary-hover); }

.chat-widget {
  position: fixed; bottom: 120px; right: 40px; width: 380px;
  background: rgba(15, 15, 20, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; z-index: 1000;
  transform-origin: bottom right; transition: var(--transition-fast);
}
.chat-widget.hidden { opacity: 0; transform: scale(0.9) translateY(20px); pointer-events: none; }
.chat-header { padding: 1.5rem; border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }
.chat-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; display: flex; gap: 10px; align-items: center; color: var(--primary-accent); }
#close-chat-btn { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: none; }
.chat-messages { height: 350px; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-bubble { max-width: 85%; padding: 1rem; border-radius: 16px; font-size: 0.95rem; line-height: 1.5; animation: fadeUp 0.3s ease-out; }
.chat-bubble.bot { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-main); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.user { background: var(--primary-accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-options { padding: 1.5rem; border-top: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 0.8rem; }
.chat-option-btn { background: transparent; border: 1px solid var(--primary-accent); color: var(--primary-accent); padding: 0.8rem 1.2rem; border-radius: 12px; font-weight: 600; text-align: left; transition: var(--transition-fast); cursor: none; }
.chat-option-btn:hover { background: var(--primary-accent); color: #fff; }
.chat-option-btn.whatsapp-link { background: #25d366; border-color: #25d366; color: #fff; text-align: center; justify-content: center; display: flex; gap: 10px; font-size: 1rem; }

/* Animations */
@keyframes fadeUp { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:translateY(0);} }
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .biodigester-sticky .sticky-container { flex-direction: column; gap: 2rem; }
  .sticky-text { position: relative; top: 0; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-large { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
  * { cursor: auto !important; } /* Disable custom cursor on mobile */
  .cursor-dot, .cursor-outline { display: none; }
  .nav-links { 
    position: fixed; 
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--bg-darker); 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 2rem; 
    transform: translateY(-100%); 
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow); 
    z-index: 999;
  }
  .nav-links.active { 
    transform: translateY(0); 
    opacity: 1;
    visibility: visible;
  }
  .mobile-menu-btn { display: block; z-index: 1001; position: relative; }
  .logo { position: relative; z-index: 1001; }
  .hero-title { font-size: 3rem; }
  .hero-cta { flex-direction: column; }
  .services-showcase { gap: 4rem; }
  .service-row, .service-row.reverse { flex-direction: column; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-small { grid-column: span 1; grid-row: span 1; }
  .coverage-wrapper { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .chat-widget { width: calc(100% - 40px); right: 20px; bottom: 120px; }
}
