/* --- Base Variables & Reset --- */
:root {
    --primary-font: 'Newsreader', serif;
    --secondary-font: 'Instrument Serif', serif;
    --text-color: #333333;
    --bg-color: #ebe5d5;
    --header-bg: #ebe5d5; /* Off-white cream */
    --header-text: #1d2631; /* Very dark blue / gray */
}

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

body {
    font-family: var(--primary-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header & Nav --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4vw;
    background-color: var(--header-bg); 
    color: var(--header-text);
    position: relative; /* Sits naturally above the rest of the page */
    width: 100%;
    z-index: 100;
}

.logo a {
    font-family: var(--secondary-font);
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.desktop-nav a {
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    opacity: 0.6;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--header-text); /* Matches the dark blue/gray text */
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 90vh; /* Slightly reduced so you can see it right under the header */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 4vw;
    background-image: url('../images/background_pic.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
}

/* Darkens the background image slightly so the white text is readable */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-family: var(--secondary-font);
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
}

/* --- Portfolio Gallery --- */
.portfolio-gallery {
    padding: 5vw 4vw;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1; 
    transition: transform 0.5s ease;
}

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

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .desktop-nav {
        display: none; 
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}