body {
    background-color:#ECFFDC;
    margin: 0;
    overflow-x: hidden; /* Change this from 'hidden' to 'overflow-x: hidden' */
    min-height: 100vh;
}
.maindiv{
    /* margin: 100px; */
    margin-top: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}
.maindiv.reveal {
    opacity: 1;
    transform: translateY(0);
}


/* ── LOGO BRAND ── */
.logo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #50C878, #2e7d32);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.brand-name {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #2e7d32;
    letter-spacing: -0.3px;
}

.buttons {
    margin: 15px;
    width: 150px;
    height: 40px;
    font-size: large;
    border-radius: 1rem;
    border: 1px solid rgb(255, 255, 255);
    background-color: #50C878;
    color: white;
    cursor: pointer; /* Changes the mouse to a hand icon */
    
    /* Smooth transition for the scale effect */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
}

/* Hover State */
.buttons:hover {
    transform: scale(1.1); /* Scales the button up by 10% */
    background-color: #3eb366; /* Slightly darker green on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Adds a soft shadow to lift it */
}

/* Active State (When clicked) */
.buttons:active {
    transform: scale(0.95); /* Shrinks slightly when clicked for a 'press' feel */
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px; /* Gives the tagline some breathing room */
}

.tagline {
  font-size: 3rem;
  /* font-family: 'Courier New', Courier, monospace;  */
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  margin: 0 auto;
  
  /* The Cursor: A solid right border */
  border-right: 4px solid #50C878; 
  
  /* Animation 1: Typing - 3.5 seconds
     Animation 2: Cursor Blink - 0.7 seconds, infinite
     Animation 3: Hide Cursor - triggers after 4 seconds (typing 3.5s + 0.5s pause)
  */
  animation: 
    typing 2.5s steps(40) forwards,
    blink 0.7s step-end infinite,
    hideCursor 0s forwards 4s; 
}

/* Typing: reveal width character by character */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* Blinking: toggle border color between green and transparent */
@keyframes blink {
  from, to { border-color: transparent; }
  50% { border-color: #50C878; }
}

/* Final State: Remove the border entirely */
@keyframes hideCursor {
  to { border-right: none; }
}


.background {
  position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1; /* Make sure it's behind your text */
    overflow: hidden;
    filter: contrast(1.2);
}

.dot {
    position: fixed;
    background: #50C878;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    box-shadow: 0 0 5px rgba(80, 200, 120, 0.5);
}

/* Glassmorphism Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px); /* Blurs background behind nav */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 100;
}

.nav-links a {
    text-decoration: none;
    color: #3e8e63;
    margin-left: 25px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #50C878;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(80, 200, 120, 0.4) 0%, rgba(236, 255, 220, 0) 70%);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(80, 200, 120, 0.3) 0%, transparent 70%);
}

.blob-2 {
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(144, 238, 144, 0.4) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.1); }
}

/* Optional: Add a subtle mesh texture */
.background::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
    opacity: 0.05; /* Very faint texture */
    pointer-events: none;
}

.stats-ribbon {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.5);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}
.stats-ribbon.reveal {
    opacity: 1;
    transform: scale(1);
}
.stat-item { text-align: center; }
.stat-number { font-weight: bold; font-size: 1.5rem; color: #3eb366; }
.stat-item p { margin: 0; font-size: 0.8rem; opacity: 0.7; }
.stat-divider { width: 1px; height: 30px; background: rgba(80, 200, 120, 0.3); }

.how-section {
    padding: 80px 5vw;
    background: transparent; /* Keeps your blob background visible */
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #2a6b47;
    margin-bottom: 50px;
}

.section-title span {
    color: #50C878;
}

.steps-row {
    display: flex;
    align-items: flex-start; /* Aligns items to the top */
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: nowrap; /* Prevents Step 3 from dropping down */
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 200px;
}

.step-num {
    width: 60px; 
    height: 60px;
    background: #50C878;
    color: white;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.5rem; 
    font-weight: bold;
    margin-bottom: 20px;
    z-index: 2;
}

.step-title { 
    font-size: 1.2rem; 
    font-weight: bold; 
    color: #2a6b47; 
    margin-bottom: 10px; 
}

.step-desc { 
    font-size: 0.9rem; 
    color: #5a8a6e; 
    line-height: 1.5;
    padding: 0 10px;
}

/* The Connector Line */
.step-connector {
    flex: 0 0 100px; /* Fixed width for the line */
    height: 2px;
    background: #50C878;
    margin-top: 30px; /* Positions line in the middle of the circles */
    opacity: 0.6;
}

/* Responsive: Stack them on mobile */
@media (max-width: 768px) {
    .steps-row {
        flex-direction: column;
        align-items: center;
    }
    .step-connector {
        width: 2px;
        height: 40px;
        margin: 10px 0;
    }
}

.cta-section { padding: 60px 5vw; text-align: center; }
.cta-box {
    max-width: 620px;
    margin: 0 auto;
    background: #50C878;
    border-radius: 2rem;
    padding: 48px 40px;
    color: white;
    opacity: 1;
    transform: translateY(0);
}
.cta-box.visible { animation: fadeUp 0.6s ease forwards; }
.cta-box h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; }
.cta-box p  { font-size: 1rem; opacity: 0.9; margin-bottom: 28px; }
.btn-white {
    background: white;
    color: #3eb366;
    border: none;
    padding: 12px 36px;
    font-size: 1rem; font-weight: 700;
    border-radius: 2rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-white:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* --- ANIMATIONS --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scalePop {
    0% { transform: scale(0.8); opacity: 0; }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-box {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.cta-box.visible {
    opacity: 1;
    transform: translateY(0);
}