:root {
    
    --forest-green: #013309; 
    --lime-green: #26781b; 
    --light-green-bg: #E8F5E9; 
    --white: #ffffff; 
    --black: #1E2124;
    
    
    --body-gradient-start: #C8E6C9; 
    --body-gradient-end: #A5D6A7; 

    
    --header-gradient-start: #044D2A; 
    --header-gradient-end: #105814; 
    
    
    --login-btn-start: #228e27; 
    --login-btn-end: #26982b; 
    --error-red: #D32F2F; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-image: linear-gradient(135deg, var(--body-gradient-start) 0%, var(--body-gradient-end) 100%);
    color: var(--black);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


header {
   
    background: linear-gradient(90deg, var(--header-gradient-start), var(--header-gradient-end));
    color: var(--white);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: headerFadeIn 1.2s;
}

@keyframes headerFadeIn {
    from { opacity: 0; transform: translateY(-30px);}
    to { opacity: 1; transform: translateY(0);}
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    
    background: linear-gradient(90deg, var(--white), var(--light-green-bg));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: logoPopIn 1.2s;
}

@keyframes logoPopIn {
    from { opacity: 0; transform: scale(0.5);}
    to { opacity: 1; transform: scale(1);}
}

.logo span {
    color: var(--white);
    -webkit-text-fill-color: var(--light-green-bg); 
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 300;
    font-size: 18px;
    letter-spacing: 0.5px;
    padding: 8px 18px;
    border-radius: 24px;
    transition: background 0.25s, color 0.25s;
}

.nav-links a:hover {
    background: var(--light-green-bg);
    color: var(--lime-green);
}

.login-nav-btn {
    margin-left: 20px;
    background: var(--lime-green);
    color: var(--black);
    border: none;
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 24px;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    cursor: pointer;
}

.login-nav-btn:hover {
    background: var(--forest-green);
    color: var(--white);
    box-shadow: 0 4px 18px rgba(123, 204, 112, 0.3);
}


.signup-nav-btn {
    background-color: var(--login-btn-start);
    color: var(--white);
    border: none;
    padding: 10px 26px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 18px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 24px;
    transition: background-color 0.3s;
    font-weight: 600;
}
.signup-nav-btn:hover {
    background-color: var(--login-btn-end);
}
.logout-nav-btn {
    background-color: var(--error-red);
    color: var(--white);
    border: none;
    padding: 10px 26px;
    text-align: center;
    text-decoration: none;
    display: none; 
    font-size: 18px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 24px;
    transition: background-color 0.3s;
    font-weight: 600;
}
.logout-nav-btn:hover {
    background-color: #A31F1F;
}




.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('ddd.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-green-bg);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 24px;
    color: var(--white); 
    text-shadow: 0 5px 30px #00000070;
    animation: slideDown 1.2s cubic-bezier(.4,1.7,.92,.92);
}

@keyframes slideDown {
    from {opacity: 0; transform: translateY(-60px);}
    to {opacity: 1; transform: translateY(0);}
}

.hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 36px;
    color: var(--light-green-bg);
    text-shadow: 0 1px 8px #00000080;
    animation: fadeIn 2s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}



.modal {
    display: none; 
    position: fixed; 
    z-index: 500; 
    left: 0;
    top: 0;
    width: 100vw; 
    height: 100vh; 
    overflow: auto; 
    background: rgba(123, 204, 112, 0.15);
    backdrop-filter: blur(2px);
    transition: background 0.35s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.4s;
}

@keyframes modalFadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.login-container {
    position: relative;
    width: 380px;
    margin: 0 auto;
    perspective: 1000px;
}

.login-form {
    background: var(--white);
    padding: 38px 30px 30px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    position: relative;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); } 
    50% { transform: translateY(-8px) rotateX(-1deg) rotateY(1deg); }
}

.login-form h2 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--forest-green);
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--forest-green);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--body-gradient-end);
    border-radius: 7px;
    font-size: 16px;
    background: var(--light-green-bg);
    transition: border 0.25s;
    color: var(--black);
}

.form-group input:focus {
    border-color: var(--forest-green);
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, var(--login-btn-start), var(--login-btn-end));
    color: var(--white);
    border: none;
    border-radius: 7px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-btn:hover {
    opacity: 0.9;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 28px;
    color: var(--forest-green);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover { 
    color: var(--lime-green); 
}



.features {
    padding: 70px 0;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 47px;
    color: var(--forest-green);
    font-size: 2.1rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 38px;
}


.features-grid a {
    text-decoration: none;
    color: inherit;
}

.feature-card {
    background: linear-gradient(135deg, #04913a 70%, #0A6640 100%);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.35s, box-shadow 0.35s;
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 1.3s;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: scale(0.93);}
    to { opacity: 1; transform: scale(1);}
}

.feature-icon {
    font-size: 48px;
    color: var(--lime-green);
    margin-bottom: 15px;
    display: inline-block;
    animation: none;
}

.feature-card h3, .feature-card h4 {
    margin-bottom: 10px;
    color: var(--white);
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.feature-card p {
    color: var(--light-green-bg);
    font-size: 0.95rem;
}




footer {
   
    background: linear-gradient(90deg, var(--header-gradient-start), var(--header-gradient-end));
    color: var(--white);
    padding: 54px 0 20px;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--white);
}

.footer-section p, .footer-section a {
    color: var(--light-green-bg);
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3); 
    color: var(--light-green-bg);
}



@media (max-width: 900px) {
    .hero h1 { font-size: 2.2rem; }
    .features, .footer-content { padding-left: 12px; padding-right: 12px;}
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 1.59rem; }
    .login-container { width: 98%; }
    .section-title { font-size: 1.8rem;}

    .header button { margin-top: 5px; margin-bottom: 5px;}
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 150;
}

.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Show hamburger on smaller screens */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        right: -100%;
        width: 240px;
        height: calc(100% - 64px);
        background: linear-gradient(90deg, var(--header-gradient-start), var(--header-gradient-end));
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 15px;
        transition: right 0.3s ease;
        z-index: 140;
        border-radius: 0 0 0 12px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin-left: 0;
    }

    .nav-links a {
        font-size: 20px;
        padding: 10px 20px;
        display: block;
        width: 100%;
        text-align: center;
    }

    .login-nav-btn, .signup-nav-btn, .logout-nav-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 90%;
        font-size: 18px;
        padding: 12px 0;
        border-radius: 24px;
    }

    nav {
        flex-wrap: wrap;
        gap: 5px;
    }
}

/* Hamburger menu animation on toggle */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Additional smaller screen tweaks */

@media (max-width: 500px) {
    .footer-content { grid-template-columns: 1fr; }
    .login-nav-btn, .signup-nav-btn, .logout-nav-btn {
        padding: 8px 15px;
        font-size: 16px;
        border-radius: 18px;
    }
    
    .hero h1 {
        font-size: 1.3rem;
        padding: 0 10px;
    }
    
    .feature-card {
        padding: 20px 10px;
    }
    
    .feature-card h3, .feature-card h4 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .login-container {
        width: 95%;
        margin: 0 10px;
    }
}


    
        #content-gated {
            display: none; 
        }
        .welcome-message {
            text-align: center;
            padding: 50px 20px;
            font-size: 1.5em;
            color: #333;
        }
        
        .signup-nav-btn {
            background-color: #188030; 
            color: white;
            border: none;
            padding: 8px 15px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            margin-left: 10px;
            cursor: pointer;
            border-radius: 5px;
            transition: background-color 0.3s;
        }
        .signup-nav-btn:hover {
            background-color: #198a31;
        }
        .logout-nav-btn {
            background-color: #dc3545; 
            color: white;
            border: none;
            padding: 8px 15px;
            text-align: center;
            text-decoration: none;
            display: none; 
            font-size: 16px;
            margin-left: 10px;
            cursor: pointer;
            border-radius: 5px;
            transition: background-color 0.3s;
        }
        .logout-nav-btn:hover {
            background-color: #c82333;
        }
