:root {
    --primary-green: #00b873;
    --dark-bg: #12222b;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 5%;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    justify-self: start;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-self: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-links a.active-link {
    color: var(--primary-green);
    font-weight: 700;
    position: relative;
}

.nav-links a.active-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px; /* Adjust as needed */
    width: 100%;
    height: 2px;
    background-color: var(--primary-green);
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 184, 115, 0.2);
}

.btn-secondary {
    background-color: #d9534f;
    color: var(--text-light);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 115, 0.3);
    opacity: 1;
}

.btn:active {
    transform: translateY(0);
}

.hero {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 8rem 5%;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.badge {
    background-color: rgba(0, 184, 115, 0.1);
    color: var(--primary-green);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid var(--primary-green);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    color: #a0aec0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.features {
    display: flex;
    justify-content: space-around;
    padding: 2rem 5%;
    background-color: #ffffff;
    margin: -3rem 5% 2rem 5%;
    border-radius: 8px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 184, 115, 0.1);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.feature-text h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.feature-text p {
    font-size: 0.8rem;
    color: #666;
}



.nav-auth {
    display: flex;
    align-items: center;
    justify-self: end;
}

/* Mobile Responsiveness */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s linear;
}

@media (max-width: 768px) {
    nav {
        display: flex;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-auth {
        display: none; /* Hide login button in main nav on mobile or move to menu */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .features {
        flex-direction: column;
        gap: 2rem;
        margin: -2rem 5% 2rem 5%;
        padding: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Menu Open State for Toggle */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}