/* --- Variables & Reset --- */
:root {
    --primary-green: #2e7d32; /* Deep farm green */
    --light-green: #4caf50;
    --accent-yellow: #fbc02d; /* Honey yellow */
    --bg-color: #f9fbf9;
    --text-dark: #333333;
    --text-light: #ffffff;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .nav-brand {
    font-family: 'Merriweather', serif;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem; 
    background-color: transparent; 
    box-shadow: none;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--text-light); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    padding: 1rem 2rem; 
}

.nav-brand-link {
    text-decoration: none;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
    position: relative; /* Required for the underline to attach correctly */
}

/* The starting state of the underline (invisible/width 0) */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px; /* Positions it just below the text */
    left: 0;
    background-color: var(--light-green);
    transition: width 0.3s ease-in-out;
}

/* The hover state: text changes color and line expands to 100% */
.nav-links a:hover {
    color: var(--light-green);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Icon Styles */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
    margin-left: 2rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(249, 251, 249, 0.9), rgba(249, 251, 249, 0.9)), url('../assets/images/logo.png') center/cover;
    padding-top: 80px;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.hero-logo {
    width: 350px;
    max-width: 90%;
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin-top: 1.5rem;
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* --- Sections & About --- */
.section {
    padding: 5rem 5%;
}

.text-center { 
    text-align: center; 
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-green);
    color: var(--text-light);
}

/* --- Animations --- */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 0;
        right: -100%;
        background-color: var(--text-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100vh;
        transition: right 0.4s ease;
        margin-left: 0; 
    }

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

    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-logo {
        width: 250px;
    }
}