/* =========================
   GLOBAL RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #061a24, #020b11);
  color: #e8f5f2;
  line-height: 1.7;
  overflow-x: hidden;
}

/* =========================
   FUTURISTIC COLOR SYSTEM
========================= */
:root {
  --neon-green: #4dff9a;
  --aqua: #38f9ff;
  --electric-blue: #3b82f6;
  --deep-blue: #041a2f;
  --dark-glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.18);
}

/* =========================
   NAVBAR (GLASS)
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 8%;
  background: rgba(4, 26, 47, 0.65);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 44px;
}

.logo span {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--neon-green), var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: #dff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-green), var(--aqua));
  transition: 0.3s;
}

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

/* =========================
   HERO (FUTURE ENERGY)
========================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 8%;
  background:
    radial-gradient(circle at 20% 20%, rgba(77,255,154,0.25), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(56,249,255,0.25), transparent 40%),
    linear-gradient(180deg, #020b11, #041a2f);
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #4dff9a, #38f9ff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: #c7f6ef;
}
.hero-bg-logo img {
    width: auto;           /* Do not force it to 100% width */
    max-width: 800px;      /* Set a fixed size so it doesn't stretch and blur */
    height: auto;
    object-fit: contain;
    opacity: 0.12;
    
    /* THE ANTI-BLUR TRIPLE THREAT */
    image-rendering: -webkit-optimize-contrast; /* For Chrome/Safari */
    image-rendering: crisp-edges;               /* For Firefox */
    image-rendering: pixelated;                 /* General fallback */

    /* Add a sharpening filter */
    filter: contrast(1.1) brightness(1.1); 
    
    pointer-events: none;
    user-select: none;
    
    /* Prevent sub-pixel blurring during page movement */
    transform: translateZ(0); 
    backface-visibility: hidden;
}

.hero-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    /* Use 'will-change' to tell the browser to keep it sharp */
    will-change: transform; 
    overflow: hidden;
}


/* =========================
   FUTURISTIC BUTTON
========================= */
.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon-green), var(--aqua));
  color: #041a2f;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(77,255,154,0.5);
  transition: 0.35s ease;
}

.btn:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 0 45px rgba(56,249,255,0.8);
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 100px 8%;
}

.section h2 {
  font-size: 42px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--neon-green), var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================
   GLASS PANELS
========================= */
.light,
.dark {
  background: transparent;
}

.glass {
  background: var(--dark-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
}

/* =========================
   ABOUT
========================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-grid img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(56,249,255,0.25);
}

/* =========================
   PRODUCTS (NEON CARDS)
========================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.card {
  background: var(--dark-glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  padding: 28px;
  border-radius: 22px;
  text-align: center;
  transition: 0.4s ease;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, transparent, rgba(77,255,154,0.3), transparent);
  opacity: 0;
  transition: 0.4s;
}

.card:hover::before {
  opacity: 1;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
}

.card h3 {
  color: var(--neon-green);
  margin-bottom: 10px;
}

.card:hover {
  transform: translateY(-14px);
  box-shadow: 0 0 40px rgba(56,249,255,0.35);
}

/* Update your card image styling to match the brand */
.card img {
  width: 100%;
  height: 220px; /* Increased for better visibility */
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--glass-border); /* [cite: 31] */
  transition: 0.3s ease;
}

.card:hover img {
  box-shadow: 0 0 20px var(--neon-green); /* [cite: 26] */
  transform: scale(1.02);
}

/* =========================
   SUSTAINABILITY
========================= */
.sustain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sustain-grid ul {
  margin-top: 20px;
  list-style: none;
}

.sustain-grid li {
  margin-bottom: 14px;
  font-weight: 500;
  color: #bfffea;
}

/* =========================
   CONTACT
========================= */
form {
  max-width: 520px;
  margin-top: 30px;
}

form input,
form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.08);
  color: #e8f5f2;
  font-family: inherit;
}

form textarea {
  min-height: 130px;
  resize: none;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 35px;
  background: #020b11;
  color: #8bded2;
  font-size: 14px;
  border-top: 1px solid var(--glass-border);
}

/* =========================
   RESPONSIVE
========================= */
/* --- MODERN FLOATING GLASS MOBILE NAV --- */
@media (max-width: 900px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        
        /* Floating Card Style */
        position: fixed;
        top: 85px; /* Spacing from top */
        right: -100%; /* Hidden by default */
        width: 280px; /* Reduced width */
        height: auto;
        padding: 40px 30px;
        margin-right: 20px;
        
        /* High-End Glossy Effect */
        background: rgba(10, 25, 41, 0.85); 
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px; /* Modern Rounded Corners */
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0; /* Slides into view */
    }

    /* Modern Typography in Menu */
    .nav-links li {
        margin: 15px 0;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.2rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        color: #ffffff !important;
        position: relative;
        transition: 0.3s;
    }

    /* Underline Hover Effect */
    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--neon-green);
        transition: 0.3s;
    }

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

    /* Light Mode Adjustments */
    body.light-mode .nav-links {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    body.light-mode .nav-links a {
        color: #0f172a !important;
    }
}

.sustain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sustain-text {
  padding-right: 20px;
}

.sustain-image {
  width: 100%;
  height: 100%;
}

.sustain-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 0 45px rgba(56,249,255,0.35);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* =========================
   POPUP SYSTEM
========================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: none;
  z-index: 9998;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 520px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 35px;
  display: none;
  z-index: 9999;
  transition: 0.3s ease;
}

.popup h2 {
  background: linear-gradient(90deg, #4dff9a, #38f9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.popup ul {
  margin: 10px 0 20px;
  padding-left: 20px;
}

.popup li {
  margin-bottom: 8px;
}

.popup .close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

.popup .highlight {
  font-weight: 600;
  color: #4dff9a;
}

/* ACTIVE STATE */
.popup.active {
  display: block;
  transform: translate(-50%, -50%) scale(1);
}

.popup-overlay.active {
  display: block;
}

/* =========================
   NEW RESPONSIVE FOOTER
========================= */
.main-footer {
  background: #020b11;
  padding: 60px 8% 20px;
  border-top: 1px solid var(--glass-border);
  color: #dff;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  flex: 1;
  min-width: 250px; /* Forces stacking on mobile */
}

.footer-logo {
  font-size: 24px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--neon-green), var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  font-size: 14px;
  color: var(--neon-green);
  margin-bottom: 15px;
}

.footer-col h3 {
  color: var(--aqua);
  margin-bottom: 20px;
  font-size: 18px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #8bded2;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--neon-green);
  padding-left: 5px;
}

.contact-item {
  display: flex;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: #5d8a83;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: left;
  }
  
  .footer-col {
    min-width: 100%;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
}

/* MAP LINK STYLING */
.map-link {
  text-decoration: none;
  color: #e8f5f2; /* Matches base body color */
  transition: color 0.3s ease;
  display: flex;
  align-items: flex-start;
}

.map-link:hover {
  color: var(--aqua); /* Futuristic glow on hover */
}

.map-link span {
  line-height: 1.6;
}

/* MOBILE MENU TOGGLE STYLING */
.menu-toggle {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--neon-green);
  transition: 0.3s;
}

/* MOBILE RESPONSIVE LOGIC */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex; /* Shows only on phone */
  }

  .nav-links {
    position: fixed;
    top: 70px; /* Sits right under the navbar */
    right: -100%; /* Hidden off-screen by default */
    flex-direction: column;
    background: rgba(4, 26, 47, 0.95);
    backdrop-filter: blur(20px);
    width: 250px;
    height: auto;
    padding: 40px;
    border-radius: 0 0 0 20px;
    border: 1px solid var(--glass-border);
    transition: 0.4s ease;
    gap: 25px;
  }

  /* When the menu is clicked */
  .nav-links.active {
    right: 0; /* Pops out from the right */
  }
}

/* CENTERED CONTACT FORM */
.contact-section {
  display: flex;
  justify-content: center; /* Horizontal centering */
  align-items: center;     /* Vertical centering */
  min-height: 80vh;        /* Ensures there is enough space to see it centered */
  text-align: center;
}

.contact-container {
  width: 100%;
  max-width: 600px; /* Limits width for better readability */
  padding: 40px;
  background: var(--dark-glass); /* Adds the brand's glass effect */
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-container form {
  width: 100%;
  margin-top: 20px;
}

/* Ensures the button is also centered inside the form */
.contact-container .btn {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* HERO LAYOUT ADJUSTMENTS */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* THE FUTURISTIC BIO-ORB */
.main-orb {
  position: relative;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--neon-green) 0%, var(--aqua) 50%, transparent 70%);
  border-radius: 50%;
  
  box-shadow: 0 0 80px rgba(77, 255, 154, 0.4);
  animation: pulse-glow 4s infinite ease-in-out;
}

.inner-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: rgba(4, 26, 47, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
}

.orbit-ring {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  border: 1px solid var(--aqua);
  border-radius: 50%;
  opacity: 0.3;
  animation: rotate 10s linear infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* MOBILE FRONT-END RESPONSIVENESS */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }
  
  .main-orb {
    width: 250px;
    height: 250px;
  }

  .hero h1 {
    font-size: 38px; /* Adjusted for mobile readability [cite: 7] */
  }
}

/* BIO-ORB REDESIGN */
.main-orb {
  position: relative;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(77, 255, 154, 0.2) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-leaf-core {
  width: 120px;
  height: 120px;
  color: var(--neon-green);
  filter: drop-shadow(0 0 15px var(--neon-green));
  z-index: 10;
  animation: floatLeaf 4s ease-in-out infinite;
}

.bio-leaf-core svg {
  width: 100%;
  height: 100%;
}

/* BRIGHT ENERGY RINGS */
.orbit-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--aqua);
  border-radius: 50%;
  opacity: 0.4;
  animation: rotateRing 8s linear infinite;
}

.orbit-ring.secondary {
  width: 80%;
  height: 80%;
  border-color: var(--neon-green);
  animation-duration: 12s;
  animation-direction: reverse;
}

/* SCROLL RESPONSIVE ANIMATION */
@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.1); }
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 900px) {
  .main-orb {
    width: 220px;
    height: 220px;
    margin-top: 20px;
  }
  .bio-leaf-core {
    width: 80px;
    height: 80px;
  }
}

/* UPDATED IMAGE CORE STYLING */
.bio-leaf-core {
  width: 130px; /* Slightly larger for image clarity */
  height: 130px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatLeaf 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--neon-green)); /* Adds a neon glow to the image */
}

.bio-leaf-core img {
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Optional: filter: brightness(1.2); to make it pop against the dark background */
}

/* Ensure the orb background isn't too dark */
.main-orb {
  position: relative;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(77, 255, 154, 0.3) 0%, transparent 75%);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* =========================
   THEME TOGGLE STYLING
========================= */
.theme-btn {
  background: var(--dark-glass);
  border: 1px solid var(--glass-border);
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: 0.3s;
}

.theme-btn .sun-icon { display: none; }
.theme-btn .moon-icon { display: block; }

/* =========================
   LIGHT MODE OVERRIDES
========================= */
body.light-mode {
  background: radial-gradient(circle at top, #f0f9ff, #ffffff);
  color: #1e293b;
}

body.light-mode .theme-btn .sun-icon { display: block; }
body.light-mode .theme-btn .moon-icon { display: none; }

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-links a { color: #1e293b; }

body.light-mode .hero {
  background: 
    radial-gradient(circle at 20% 20%, rgba(77, 255, 154, 0.15), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(56, 249, 255, 0.15), transparent 40%),
    linear-gradient(180deg, #f0f9ff, #ffffff);
}

body.light-mode .hero p { color: #475569; }

body.light-mode .card, 
body.light-mode .popup,
body.light-mode .contact-container {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  color: #1e293b;
}

body.light-mode form input, 
body.light-mode form textarea {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

body.light-mode footer {
  background: #f1f5f9;
  color: #64748b;
}

/* LIGHT MODE TEXT REFINEMENT */
body.light-mode {
  --text-main: #0f172a;    /* Deep slate for headings */
  --text-body: #334155;    /* Dark grey for paragraphs */
  --text-muted: #64748b;   /* For footer and secondary info */
  background: #f8fafc;
  color: var(--text-body);
}

body.light-mode footer {
  background: #f1f5f9;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode footer b, 
body.light-mode footer strong {
  color: var(--text-main); /* Makes labels like 'Name:' and 'Address:' bold and dark */
}

/* Sustainability List Visibility */
body.light-mode .sustain-grid li {
  color: var(--text-body);
}

/* Popup Visibility */
body.light-mode .popup {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-body);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .popup h2 {
  background: linear-gradient(90deg, #16a34a, #0891b2); /* Darker gradients for light mode */
  -webkit-background-clip: text;
}

body.light-mode .popup strong {
  color: var(--text-main);
}

body.light-mode .hero p {
  color: #475569;
  font-weight: 500; /* Added weight for better readability */
}

/* =========================
   FIX FOR LIGHT MODE VISIBILITY
========================= */

/* Ensure the body text is dark enough */
body.light-mode {
    color: #1e293b !important;
}

/* Fix Hero Subtext */
body.light-mode .hero p {
    color: #475569 !important;
}

/* Fix Sustainability List Items */
body.light-mode .sustain-grid li {
    color: #1e293b !important;
}

/* FIX FOOTER & CONTACT DETAILS (The "Unseen" Text) */
body.light-mode footer,
body.light-mode .contact-section {
    color: #334155 !important;
}

/* Target the specific address and contact lines */
body.light-mode footer p,
body.light-mode footer b,
body.light-mode .contact-info {
    color: #0f172a !important; /* Deep dark blue for maximum visibility */
}

/* Fix for icons and links that might be too light */
body.light-mode .nav-links a {
    color: #1e293b !important;
}

/* Adjust the glass panels to be slightly darker in light mode for contrast */
body.light-mode .card, 
body.light-mode .glass,
body.light-mode .popup {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
}

body.light-mode .hero {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%) !important;
}

/* =========================================
   FINAL LIGHT MODE CONTRAST FIXES
========================================= */
body.light-mode {
    background-color: #f8fafc !important;
    color: #0f172a !important; /* Deep dark blue for main body text */
}

/* 1. MOBILE MENU FIX (The dark block in your screenshot) */
@media (max-width: 900px) {
    body.light-mode .nav-links {
        background: rgba(255, 255, 255, 0.98) !important; /* White background for mobile menu */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-left: 1px solid rgba(0, 0, 0, 0.1);
    }

    body.light-mode .nav-links a {
        color: #0f172a !important; /* Dark text for mobile links */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

/* 2. ADDRESS & CONTACT INFO FIX (The red circles in your footer) */
body.light-mode footer p,
body.light-mode footer span,
body.light-mode .contact-section p,
body.light-mode .footer-info-text {
    color: #1e293b !important; /* High contrast dark grey/blue */
    font-weight: 500;
}

/* Specifically targeting the address and email labels */
body.light-mode .contact-details b,
body.light-mode footer strong {
    color: #000000 !important;
}

/* 3. QUICK LINKS & NAV LINKS VISIBILITY */
body.light-mode .nav-links a,
body.light-mode .footer-links a {
    color: #334155 !important;
}

body.light-mode .nav-links a:hover,
body.light-mode .footer-links a:hover {
    color: var(--neon-green) !important; /* Keep the brand green on hover */
}

/* 4. SUSTAINABILITY LISTS */
body.light-mode .sustain-grid li {
    color: #1e293b !important;
}

/* 5. TITLES (Ensure they pop) */
body.light-mode h1, 
body.light-mode h2, 
body.light-mode h3 {
    color: #0f172a !important;
}


/*ths is where About page starts and please be careful about this 
/* ABOUT PAGE SPECIFIC STYLES */
.about-page {
    padding-top: 100px;
    max-width: 1100px;
    margin: 0 auto;
    padding-inline: 20px;
}

.about-hero {
    text-align: center;
    padding: 60px 0;
}

.about-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.subhead {
    font-size: 1.2rem;
    color: var(--aqua);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.glass-container {
    background: var(--dark-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 60px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* BENEFITS GRID */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.benefit-card {
    padding: 30px;
    text-align: center;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-card .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

/* CTA PANEL */
.about-cta {
    margin: 80px 0;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(77, 255, 154, 0.1), rgba(56, 249, 255, 0.1));
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Light Mode Overrides for New Page */
body.light-mode .glass-container, 
body.light-mode .glass-panel,
body.light-mode .benefit-card {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #1e293b !important;
}

/* ABOUT PAGE GLASSMORMISM */
.about-hero-section {
    background: radial-gradient(circle at top, rgba(77, 255, 154, 0.1), transparent);
    padding: 120px 5% 60px;
    text-align: center;
}

.about-card {
    background: rgba(255, 255, 255, 0.05); /* Very slight white tint */
    backdrop-filter: blur(15px) saturate(180%); /* THE GLOSSY EFFECT */
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white border */
    border-radius: 24px;
    padding: 40px;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    color: #ffffff;
}

/* For Light Mode Gloss */
body.light-mode .about-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1e293b;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.about-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(90deg, #4dff9a, #38f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

/* GLOSSY EFFECT FOR ABOUT CARD */
.glass-morph {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* FIXING UNSEEN TEXT IN LIGHT MODE */
body.light-mode .about-hero-section {
    background: #f8fafc;
}

body.light-mode .about-headline {
    color: #0f172a !important;
    background: none; /* Remove gradient if it's too light */
    -webkit-text-fill-color: #0f172a;
}

body.light-mode .subhead-text {
    color: #334155 !important;
}

body.light-mode .glass-morph {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* HAMBURGER MENU COLOR FIX */
.menu-toggle .bar {
    background-color: #4dff9a; /* Your brand green */
}

body.light-mode .menu-toggle .bar {
    background-color: #0f172a; /* Dark for visibility in light mode */
}

@media (max-width: 900px) {
    body.light-mode .nav-links {
        background: rgba(255, 255, 255, 0.98) !important; /* Forces white menu */
    }
    
    body.light-mode .nav-links a {
        color: #0f172a !important; /* Forces dark text links */
    }
}

/* FORCING THE GLOSSY HEADER */
.navbar.glass {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(15px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* STYLING THE THEME TOGGLE (The red circle on top right) */
.theme-btn {
    background: rgba(77, 255, 154, 0.1) !important;
    border: 1px solid var(--neon-green) !important;
    color: var(--neon-green) !important;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: 0.3s;
}

/* FIXING THE "UNSEEN" TEXT IN LIGHT MODE */
body.light-mode .about-card, 
body.light-mode .contact-section,
body.light-mode footer {
    color: #0f172a !important; /* Deep dark blue for visibility */
}

/* Fix for the red highlighted address area */
body.light-mode .contact-section p, 
body.light-mode footer p {
    color: #1e293b !important; 
    font-weight: 500 !important;
}

@media (max-width: 900px) {
    /* DARK MODE MOBILE MENU */
    .nav-links {
        background: rgba(2, 11, 17, 0.95) !important;
        backdrop-filter: blur(10px);
    }

    /* LIGHT MODE MOBILE MENU FIX */
    body.light-mode .nav-links {
        background: rgba(255, 255, 255, 0.98) !important;
        border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    body.light-mode .nav-links a {
        color: #0f172a !important;
    }
}

/* =========================================
   STRAIGHT GLOSSY NAV & ABOUT PAGE FIXES
========================================= */

/* 1. Force the Navbar to be Straight and Full-Width */
.navbar {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important; /* Removes rounded corners */
    height: 75px;
    padding: 0 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* 2. Fix the About Hero Spacing (Prevent overlap) */
.about-hero-section {
    padding-top: 120px !important; /* Pushes content below fixed nav */
    text-align: center;
}

/* 3. High-Visibility Text for Light Mode (Fixes "Red Highlights") */
body.light-mode .about-headline,
body.light-mode .center-title,
body.light-mode .benefit-card h3 {
    color: #0f172a !important; /* Deep dark navy */
}

body.light-mode .subhead-text,
body.light-mode .glass-container p,
body.light-mode .benefit-card p,
body.light-mode .glass-panel p {
    color: #334155 !important; /* High-contrast slate grey */
    font-weight: 500;
}

/* 4. Glossy Card Visibility in Light Mode */
body.light-mode .glass-container, 
body.light-mode .benefit-card.glass, 
body.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* 5. Mobile Menu Alignment Fix */
@media (max-width: 900px) {
    .nav-links {
        top: 75px !important; /* Aligns with the straight header */
        border-radius: 0 !important;
    }
}

/* --- UNIVERSAL STRAIGHT HEADER --- */
.navbar {
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important; /* REMOVES ROUNDED CORNERS */
    height: 70px;
    background: rgba(10, 20, 30, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* --- ABOUT PAGE LIGHT MODE VISIBILITY --- */
body.light-mode .about-headline,
body.light-mode .center-title {
    color: #0f172a !important; /* Deep Navy */
}

body.light-mode .glass-container, 
body.light-mode .benefit-card.glass, 
body.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1e293b !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Fix for invisible text inside cards and paragraphs */
body.light-mode .about-page p,
body.light-mode .about-content p,
body.light-mode .benefit-card p {
    color: #334155 !important;
    font-weight: 500;
}

/* --- UNIVERSAL LIGHT MODE OVERRIDES --- */
body.light-mode {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* Fix for the 3 lines visibility */
body.light-mode .bar {
    background-color: #0f172a !important;
}

/* Fixing the "Invisible" Address and Footer text */
body.light-mode footer p, 
body.light-mode .contact-section p, 
body.light-mode .footer-links a,
body.light-mode .about-card p {
    color: #1e293b !important;
    opacity: 1 !important;
}

/* Fixing the Mobile Menu Background (The dark block issue) */
@media (max-width: 900px) {
    .nav-links {
        transition: all 0.3s ease-in-out;
        display: none; /* Hidden by default */
    }

    .nav-links.active {
        display: flex; /* Shown when clicked */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 20, 30, 0.98);
    }

    body.light-mode .nav-links.active {
        background: rgba(255, 255, 255, 0.98) !important;
        border-bottom: 1px solid #ddd;
    }

    body.light-mode .nav-links a {
        color: #0f172a !important;
    }
}

/* --- UNIVERSAL NAV FIX (STRAIGHT & GLOSSY) --- */
.navbar {
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 0 !important; /* STRAIGHT EDGES */
    margin: 0 !important;
}

/* --- LIGHT MODE ABOUT PAGE FIX --- */
body.light-mode .about-hero-section,
body.light-mode .about-page {
    background-color: #f8fafc !important;
}

body.light-mode .about-headline {
    color: #0f172a !important;
}

body.light-mode .subhead-text,
body.light-mode .about-page p,
body.light-mode .glass-container p {
    color: #1e293b !important; /* Visible dark text */
    opacity: 1 !important;
}

/* --- MOBILE MENU VISIBILITY --- */
@media (max-width: 900px) {
    .nav-links.active {
        display: flex !important;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #020b11; /* Dark default */
        flex-direction: column;
        z-index: 999;
    }

    body.light-mode .nav-links.active {
        background: #ffffff !important; /* Light mode menu background */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    body.light-mode .nav-links a {
        color: #0f172a !important;
    }

    /* Make the 3 lines visible in light mode */
    body.light-mode .bar {
        background-color: #0f172a !important;
    }
}

/* Ensure Straight Header on both pages */
.navbar {
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 0 !important; 
    margin: 0 !important;
}

/* Light Mode Mobile Menu Fix */
@media (max-width: 900px) {
    body.light-mode .nav-links.active {
        background: rgba(255, 255, 255, 0.98) !important;
        border-left: 1px solid #ddd;
    }
    
    body.light-mode .bar {
        background-color: #0f172a !important; /* Makes 3 lines visible */
    }
}

/* Fix for "About" page content visibility */
body.light-mode .about-page p,
body.light-mode .about-hero-section h1 {
    color: #0f172a !important;
}

/* Forces the navbar to be straight and full-width on both pages */
.navbar {
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 0 !important; 
    margin: 0 !important;
}

/* Ensures the 3 lines are visible in Light Mode */
body.light-mode .bar {
    background-color: #0f172a !important;
}
/* Ensure the 3 lines are visible in Light Mode */
body.light-mode .bar {
    background-color: #0f172a !important;
}

/* Fix for invisible text on About Page in Light Mode */
body.light-mode .about-hero-section h1,
body.light-mode .about-page p,
body.light-mode .benefit-card p,
body.light-mode .glass-container p {
    color: #0f172a !important; /* Deep navy for contrast */
    opacity: 1 !important;
}

/* Ensure the straight-edge glossy header applies to both */
.navbar {
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
}



/* Ensure Navbar is straight and full width on ALL pages */
.navbar {
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 0 !important; 
    margin: 0 !important;
}

/* Visibility for Light Mode */
body.light-mode .bar {
    background-color: #0f172a !important; /* Makes hamburger visible */
}

body.light-mode .about-hero-section h1,
body.light-mode .about-page p,
body.light-mode .benefit-card h3,
body.light-mode .center-title {
    color: #0f172a !important; /* Forces dark text on light background */
}

body.light-mode .nav-links.active {
    background: rgba(255, 255, 255, 0.98) !important;
}

/* HAMBURGER TO X ANIMATION */
.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.bar {
    transition: all 0.3s ease-in-out;
}

/* --- MOBILE IMAGE & CARD OPTIMIZATION --- */
@media (max-width: 900px) {
    /* Ensure the grid doesn't squash the cards */
    .benefits-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
    }

    .benefit-card {
        width: 100% !important;
        max-width: 400px; /* Keeps them from getting too wide on tablets */
        margin: 0 auto;
        padding: 30px 20px !important;
        text-align: center;
    }

    /* Fix image scaling for logos and product shots */
    .logo img {
        height: 35px; /* Scaled down for mobile nav */
        width: auto;
    }

    .benefit-card .icon {
        font-size: 2.5rem; /* Larger icons for better touch-target feel */
        margin-bottom: 15px;
        display: block;
    }

    /* Prevent images from overflowing their containers */
    img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 12px;
    }
}

/* Add this to your style.css */
.about-hero-section {
    padding: 100px 20px 60px !important; /* Extra padding for mobile breathing room */
}

.glass-container {
    margin: 0 15px;
    padding: 25px !important;
    line-height: 1.6;
}

/* --- CENTER "WHY IT MATTERS" SECTION --- */
.why-matters {
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the title and grid container */
    text-align: center;
}

.center-title {
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

/* Centers the grid items */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px; /* Limits width so it stays centered */
    justify-content: center; /* Centers cards if there are fewer than 4 */
}

/* --- MOBILE CARD FIX --- */
@media (max-width: 900px) {
    .benefits-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .benefit-card {
        width: 100%;
        max-width: 350px; /* Keeps cards sleek, not too wide */
        margin-bottom: 20px;
    }
}

/* --- SECTION BACKGROUND GRAPHIC --- */
.why-matters {
    position: relative;
    padding: 100px 5%;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(77, 255, 154, 0.05) 0%, transparent 70%);
}

/* The Graphic Layer (Digital Grid) */
.why-matters::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Creates a subtle technical grid */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* The Glowing Orb behind the cards */
.why-matters::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 249, 255, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -2;
    pointer-events: none;
}

/* Light Mode Adjustments: Make the graphic very subtle */
body.light-mode .why-matters::before {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

body.light-mode .why-matters::after {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
}

@keyframes backgroundPulse {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
}

.why-matters::after {
    animation: backgroundPulse 10s infinite ease-in-out;
}

/* --- MOBILE IMAGE & CARD OPTIMIZATION --- */
@media (max-width: 900px) {
    /* Stack the About and Sustainability grids vertically */
    .about-grid, 
    .sustain-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    /* Professional Image Scaling */
    .about-grid img,
    .card img {
        width: 100%;
        max-width: 450px; /* Prevents images from becoming too large on tablets */
        height: 250px; /* Fixed height for consistency */
        object-fit: cover; /* Crops image to fill area without stretching */
        border-radius: 20px;
        margin: 0 auto;
        display: block;
    }

    /* Center the Benefit Cards */
    .benefits-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .benefit-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

.stat-number {
    color: var(--neon-green);
    font-weight: 700;
    font-size: 2.2rem;
    display: inline-block;
    text-shadow: 0 0 15px rgba(77, 255, 154, 0.4);
}

@media (max-width: 600px) {
    .cta-btns {
        flex-direction: column;
        gap: 15px;
    }
    .cta-btns .btn {
        width: 100%; /* Makes buttons full-width on mobile */
        text-align: center;
    }
}
@media (max-width: 600px) {
    .about-hero-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }
}

/* --- UPDATED FOR CLARITY & SHARPNESS --- */
.bio-leaf-core {
    width: 130px; 
    height: 130px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatLeaf 4s ease-in-out infinite;
    
    /* Forces the browser to keep the logo edges sharp */
    image-rendering: -webkit-optimize-contrast; /* Chrome/Safari */
    image-rendering: crisp-edges;               /* Firefox */
    
    /* Keep your existing neon glow */
    filter: drop-shadow(0 0 20px var(--neon-green)); 
}

.bio-leaf-core img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Keeps the image crisp during the 'floatLeaf' animation */
    will-change: transform; 
}

.orb-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(77, 255, 154, 0.45) 0%,
        rgba(56, 249, 255, 0.35) 40%,
        transparent 70%
    );
    filter: blur(18px);
    z-index: 1;
}
.main-orb {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
