:root {
    --primary-color: #1b5e20; /* Deep Institutional Green */
    --primary-light: #4c8c4a;
    --primary-dark: #003300;
    --secondary-color: #01579b; /* Deep Institutional Blue */
    --accent-color: #f9a825; /* Harvest Gold */
    --text-main: #263238;
    --text-light: #546e7a;
    --bg-color: #ffffff;
    --bg-alt: #f1f8e9;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* =========================================
   Navbar
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.7rem 5%;
    box-shadow: var(--shadow-sm);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.logo span {
    color: var(--primary-light);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.3s;
}

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

.cta-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(rgba(27, 94, 32, 0.05), rgba(27, 94, 32, 0.1));
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.badge {
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-text h2 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.btn {
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
}

.secondary-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
}

.image-wrapper {
    background: white;
    padding: 15px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.image-wrapper img {
    width: 100%;
    border-radius: 10px;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* =========================================
   Sections
========================================= */
.section {
    padding: 6rem 5%;
}

.alt-bg {
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h3 {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-alt);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.card h4 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.card ul {
    list-style: none;
    color: var(--text-light);
}

.card ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

/* =========================================
   Modal
========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    position: relative;
    animation: slideDown 0.4s ease-out;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.login-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-light);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-decoration: none;
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info h4 span {
    color: var(--primary-light);
}

.footer-links h5, .footer-social h5 {
    margin-bottom: 1.2rem;
}

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

.footer-links ul li a {
    color: #a0aec0;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    margin-top: 2rem;
}

/* Animations */
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h2 {
        font-size: 2rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .nav-links {
        display: none;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}
