@charset "utf-8";
/* CSS Document */

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #D9EE9F; /* Pale Green Background */
    color: #213500; /* Dark Green Text */
}

header {
    background: linear-gradient(135deg, #213500, #32470C); /* Gradient Header */
    color: #fff;
    text-align: center;
    padding: 1.5rem; /* Adjusted padding */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative; /* Allows nav to overlap seamlessly */
    z-index: 1; /* Ensure header is above nav */
}

nav {
    background: transparent; /* Initial transparent */
    position: fixed; /* Fixed position for the menu */
    top: 0; /* Stick to the top */
    left: 0; /* Align to the left */
    right: 0; /* Align to the right */
    z-index: 2; /* Ensure it is above other content */
    padding: 1rem 0; /* Adjusted padding */
    transition: background 0.3s, box-shadow 0.3s; /* Smooth transition */
}

nav.scrolled {
    background: linear-gradient(135deg, #213500, #32470C); /* Same as header */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Shadow effect when scrolled */
}

nav a {
    color: #fff; /* White text for better visibility on the header */
    margin: 0 1rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background 0.3s, color 0.3s;
    border-radius: 5px;
}

nav a:hover {
    background: #768C43; /* Light Green on Hover */
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
    padding-top: 40px; /* Prevent content from hiding behind the fixed nav */
}

section {
    margin: 2rem 0;
    padding: 2rem;
    background: #fff; /* Section Background */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.portfolio-item {
    margin: 1rem 0;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    max-width: 100%;
    height: auto;
    border-bottom: 4px solid #32470C; /* Medium Dark Green */
}

footer {
    text-align: center;
    padding: 1rem;
    background: #213500; /* Dark Green */
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
}

h2 {
    color: #32470C; /* Medium Dark Green */
    margin-bottom: 0.5rem; /* Reduced space */
}

p {
    line-height: 1.6;
}

@media (max-width: 600px) {
    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    nav a {
        margin: 0.5rem 0;
    }
}