:root {
  --primary: #007a33; 
  --primary-glow: rgba(0, 122, 51, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --text: #1a2a1f;
  --text-muted: #4a5a4e;
  --bg-color: #f0f4f1;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Dark Mode Overrides */
body.dark {
  --glass-bg: rgba(25, 35, 28, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f0fdf4;
  --text-muted: #a1b0a6;
  --bg-color: #0a0f0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-color);
  /* Added a subtle organic pattern for the glass to "sit" on */
  background-image: radial-gradient(at 0% 0%, rgba(0, 122, 51, 0.05) 0px, transparent 50%),
                    radial-gradient(at 100% 100%, rgba(0, 122, 51, 0.05) 0px, transparent 50%);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.5s ease;
  min-height: 100vh;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphic Topbar */
.topbar {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logo img { height: 45px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }

nav { display: flex; align-items: center; gap: 20px; }
nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}
nav a:hover { color: var(--primary); }

button {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
  font-weight: bold;
  transition: var(--transition);
}

button:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Animated Hero */
.hero {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 15px;
  background: linear-gradient(to right, var(--primary), #2ecc71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideUp 0.8s ease-out;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeIn 1.2s ease-out;
}

/* Glass Cards Grid */
.services { padding: 40px 0 80px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0; /* Handled by JS animation */
  transform: translateY(30px);
}

.card.animate {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 20px 40px var(--primary-glow);
}

.icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 8px 16px var(--primary-glow);
}

.icon svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 2; }

.card h3 { margin-bottom: 12px; font-size: 1.25rem; font-weight: 700; }
.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  flex-grow: 1;
}

.card span {
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Trust Section - Glass Pill */
.trust { margin-bottom: 60px; }
.trust .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.trust span {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  backdrop-filter: blur(5px);
}

/* Animations */
@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 600px) {
  .hero { padding: 60px 0; }
  .grid { gap: 20px; }
}
:root {
  --primary: #007a33; 
  --primary-glow: rgba(0, 122, 51, 0.3);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --text: #1a2a1f;
  --bg: #f4f7f5;
}

body.dark {
  --glass: rgba(20, 30, 25, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --bg: #0a0f0c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.4s ease;
  background-image: radial-gradient(circle at 10% 20%, rgba(0, 122, 51, 0.05) 0%, transparent 40%);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Glassmorphism Class */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.topbar {
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar .container, nav { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary); }
.logo img { height: 40px; }

nav { gap: 20px; }
nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.9rem; }

.hero { padding: 80px 0 40px; text-align: center; }
.hero h1 { 
  font-size: clamp(2rem, 5vw, 3rem); 
  background: linear-gradient(90deg, var(--primary), #2ecc71);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  padding: 40px 0;
}

.card {
  padding: 30px;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(20px);
}

.card.visible { opacity: 1; transform: translateY(0); }
.card:hover { 
  transform: scale(1.03); 
  border-color: var(--primary);
  box-shadow: 0 15px 30px var(--primary-glow);
}

.icon-wrapper {
  width: 55px; height: 55px;
  background: var(--primary);
  color: white;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.icon-wrapper svg { width: 28px; height: 28px; }

.btn-text { color: var(--primary); font-weight: 700; margin-top: auto; display: block; }

.trust { padding: 40px 0; text-align: center; }
.glass-pill {
  display: inline-block;
  padding: 8px 20px;
  margin: 5px;
  background: var(--glass);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--primary);
}

footer { padding: 40px 0; text-align: center; margin-top: 40px; }

/* Ticker Container */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
  border-bottom: 1px solid var(--glass-border);
}

.ticker-label {
  background: var(--primary);
  color: white;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

.ticker {
  display: flex;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 30s linear infinite;
}

.ticker__item {
  display: inline-block;
  padding: 0 40px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Pause animation on hover for readability */
.ticker-wrap:hover .ticker {
  animation-play-state: paused;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(8px);
}

.modal-content {
  width: 90%;
  max-width: 500px;
  padding: 30px;
  border-radius: 24px;
  position: relative;
  animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.close-modal { background: none; border: none; font-size: 2rem; color: var(--text); cursor: pointer; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.input-group input {
  width: 100%; padding: 12px; border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 1.1rem;
}

.calc-primary-btn {
  width: 100%; background: var(--primary); color: white;
  padding: 15px; border-radius: 12px; border: none;
  font-weight: 700; cursor: pointer; margin-bottom: 20px;
}

.results-grid {
  display: grid; gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}

.result-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px; border-radius: 8px; background: rgba(0,122,51,0.05);
}

.result-item.highlight { background: var(--primary-glow); border: 1px solid var(--primary); }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: rgba(37, 211, 102, 0.2); /* Semi-transparent WA Green */
  color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  transition: all 0.3s ease;
  animation: pulse-wa 2s infinite;
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

.whatsapp-float:hover {
  background: #25d366;
  color: white;
  transform: scale(1.1) rotate(10deg);
}

/* Tooltip */
.wa-tooltip {
  position: absolute;
  right: 75px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
  border: 1px solid var(--glass-border);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  right: 85px;
}

/* Pulse Animation */
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Dark mode adjustment */
body.dark .whatsapp-float {
  background: rgba(37, 211, 102, 0.15);
}

/* ... [Previous Glassmorphism & Ticker CSS] ... */

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 60px; /* Larger logo in footer */
  background: white;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Modal result highlight */
.result-item.highlight {
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  transform: scale(1.02);
}

/* Ensure Logo in Topbar looks crisp */
.logo img {
  height: 45px;
  background: white;
  padding: 5px;
  border-radius: 8px;
}