/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f2d;
    --primary-dark: #1e4620;
    --secondary-color: #97cc04;
    --accent-color: #f39c12;
    --text-color: #333;
    --text-light: #666;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --success: #4CAF50;
    --error: #f44336;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Navigation
   =================================== */
.topnav {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topnav-logo-hb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.topnav .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.topnav .logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.topnav .logo:hover img {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Mobile Menu Toggle */
.menu {
    cursor: pointer;
    display: block;
    width: 35px;
    height: 30px;
    position: relative;
    z-index: 1001;
}

.menu .bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: var(--transition);
    position: absolute;
}

.menu .bar:nth-of-type(1) {
    top: 0;
}

.menu .bar:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu .bar:nth-of-type(3) {
    bottom: 0;
}

/* Hamburger Animation */
.topnav.open .menu .bar:nth-of-type(1) {
    transform: translateY(13px) rotate(45deg);
}

.topnav.open .menu .bar:nth-of-type(2) {
    opacity: 0;
}

.topnav.open .menu .bar:nth-of-type(3) {
    transform: translateY(-13px) rotate(-45deg);
}

/* Navigation Links */
#myLinks {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: var(--primary-dark);
}

.topnav.open #myLinks {
    max-height: 300px;
}

#myLinks a {
    padding: 1rem 1.5rem;
    text-align: center;
    color: #fff;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

#myLinks a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

/* Language Selector */
.lang-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.lang-selector a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-selector a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-selector a.active {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .topnav {
        position: sticky;
    }

    .topnav-logo-hb {
        padding: 1rem 2rem;
    }

    .menu {
        display: none;
    }

    #myLinks {
        flex-direction: row;
        max-height: none;
        background: transparent;
        gap: 0.5rem;
    }

    #myLinks a {
        padding: 0.5rem 1rem;
        border: none;
        border-radius: 4px;
    }

    .lang-selector {
        padding: 0;
        background: transparent;
        margin-left: 1rem;
    }
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
}

.section {
    margin: 3rem 0;
    padding: 2rem 0;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero .lead {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.btn-primary:hover {
    background: #87b804;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: transparent;
    color: #fff;
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

/* ===================================
   Impact Stats
   =================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.stat-card h3 {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   Footer
   =================================== */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: auto;
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (min-width: 768px) {
    .container {
        padding: 3rem 2rem;
    }

    .hero {
        padding: 6rem 2rem;
    }

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

    .hero h2 {
        font-size: 2rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }
}
