/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0; /* Ensures no default browser padding */
    background-color: #fdfdf7; /* Very light cream/beige */
    color: #5c4033; /* Dark brown for text */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden; /* Clears floats within the container */
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: #fdfdf7; /* Consistent with body background */
    color: #5c4033; /* Dark brown for header text */
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #b08968 3px solid; /* Muted warm brown/beige for accent */
    text-align: center;
}

header h1 {
    margin: 0;
    padding-bottom: 10px;
}

header nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

header nav li {
    display: block; /* Stacks links on mobile */
    padding: 5px 0;
}

header nav a {
    color: #5c4033; /* Dark brown for links */
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    padding: 5px 10px;
    transition: color 0.3s ease;
    white-space: nowrap;
}
/* Active and hover states for navigation links */
header nav a:hover,
header nav a.active {
    color: #b08968; /* Muted warm brown/beige for active/hover */
    font-weight: bold;
}

/* Main Content */
main {
    padding: 20px 0;
}

.welcome img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 5px;
}

/* Footer */
footer {
    padding: 20px;
    margin-top: 20px;
    color: #fdfdf7; /* Light cream for footer text */
    background-color: #D8D3C7; /* Specified light gray/beige for footer background */
    text-align: center;
}

/* --- Portfolio Grid --- */
.portfolio-grid {
    display: grid;
    /* Creates a responsive grid that adjusts the number of columns */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden; /* Hides parts of the image that go outside the container on zoom */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #fff;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1); /* Zoom effect on hover */
}

.portfolio-item-caption {
    padding: 15px;
    font-size: 0.9em;
    color: #5c4033;
    text-align: center;
}


/* Contact Form Styles */
.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form button {
    padding: 10px 20px;
    border: none;
    background-color: #5c4033; /* Dark brown */
    color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #7a5c4a; /* A slightly lighter brown for hover */
}


/* --- Media Query for Larger Screens (Desktop) --- */
@media(min-width: 768px) {
    header {
        text-align: left;
    }

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header nav ul {
        display: flex;
    }

    header nav li {
        display: inline; /* Puts links side-by-side */
        padding: 0 10px;
    }
}
