/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Color Palette and Global Styles */
:root {
    --sage-green: #8A9A5B;
    --dark-sage: #556B2F;
    --light-cream: #f7f6f1;
    --white: #ffffff;
    --dark-text: #2c2c2c;

    --font-primary: 'Inter', sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-cream);
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 5%;
    transition: background-color 0.4s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark-sage);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--sage-green);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.burger { display: none; } /* Mobile navigation styles below */

/* Main Content & Section Styling */
main {
    padding: 2rem 5%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 1rem;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive font size */
    font-weight: 900;
    color: var(--dark-sage);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--sage-green);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--dark-sage);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Featured Work Section - Bento Grid */
.featured-work {
    padding: 4rem 0;
}

.featured-work h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-sage);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.bento-item {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.bento-item:hover {
    transform: scale(1.03);
}

.bento-item:nth-child(1) { grid-column: span 2; }
.bento-item:nth-child(4) { grid-column: span 2; }

.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.bento-item:hover .bento-overlay {
    transform: translateY(0);
}

.bento-overlay h3 {
    color: var(--white);
    margin: 0;
}

/* Generic Content Page (About, Contact, Services) */
.content-page {
    max-width: 700px;
    margin: 4rem auto;
}

.content-page h1 {
    font-size: 3rem;
    color: var(--dark-sage);
    margin-bottom: 2rem;
}

.content-page p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}


/* Footer */
footer {
    text-align: center;
    padding: 2rem 5%;
    background: var(--dark-sage);
    color: var(--light-cream);
    margin-top: 4rem;
}

/* Animations on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive Design for Mobile */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }
    .nav-links li { margin: 2rem 0; }
    .burger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }
    .burger div {
        width: 25px;
        height: 3px;
        background-color: var(--dark-text);
        margin: 5px;
        transition: all 0.3s ease;
    }
    .nav-active { transform: translateX(0%); }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    .bento-item:nth-child(1),
    .bento-item:nth-child(4) {
        grid-column: span 1;
    }
}