/* --- Global Styles & Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: #555;
    background-color: #f4f4f4;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Lora', serif; /* Overrides the body font */
    color: #4a4a4a;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 2rem;
}

/* --- Layout Structure --- */

/* The Left Sidebar (Header) */
#header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    position: fixed;
    top: 0;
    left: 0;
    width: 35%;
    height: 100vh;
    padding: 4rem 3rem;
    background: #1e1e1e url('images/bg-image.jpg') center/cover; /* Add a dark background image here */
    color: #fff;
    text-align: right;
}

#header h1 {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    line-height: 1.75;
}

#header h1 strong {
    color: #fff;
    font-weight: 600;
}

.image.avatar {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.image.avatar img {
    width: 140px;
    height: 180px;
    border-radius: 100%;
    object-fit: cover;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end; /* Aligns everything cleanly to the right */
    align-items: center;
    gap: 0.6rem; /* This sets the exact space between the pipe and the next link */
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: #fff;
}

/* Draws a perfectly centered pipe after every link EXCEPT the last one */
.footer-social a:not(:last-child)::after {
    content: '';
    display: inline-block;
    height: 1em; /* Matches the height of the text */
    width: 1px; /* Thickness of the pipe */
    background-color: rgba(255, 255, 255, 0.3); /* Slightly dimmer than the text */
    margin-left: 0.6rem; /* Matches the flex 'gap' to ensure perfect symmetry */
}

.sidebar-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 2rem;
    line-height: 1.5;
}

/* The Main Content Area */
#main {
    margin-left: 35%;
    padding: 6rem 4rem;
    background-color: #fff;
    min-height: 100vh;
}

/* --- H2 Standout Styling --- */
#main h2 {
    font-size: 2.2rem;
    font-weight: 600; /* Makes it bolder */
    color: #2c2c2c; /* A darker, sharper gray/black */
    letter-spacing: -0.02em; /* Tightens it up for a cleaner look */
    margin-bottom: 2rem;
    position: relative;
}

/* Creates a custom accent line under the headers */
#main h2::after {
    content: '';
    display: block;
    width: 65px; /* Length of the accent line */
    height: 4px; /* Thickness */
    background-color: #49bf9d; /* Ties in perfectly with your submit button */
    margin-top: 0.75rem;
    border-radius: 2px;
}

section {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 2px solid #f0f0f0;
}

section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

/* --- Recent Work Grid --- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.work-item {
    margin-bottom: 1rem;
}

.work-item h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.work-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Image Link Hover Effects */
.image-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.image-link img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.image-link .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
}

.image-link:hover img {
    transform: scale(1.05);
}

.image-link:hover .overlay {
    opacity: 1;
}

/* --- Contact Form --- */
.contact-container {
    max-width: 800px;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row input, .form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.actions {
    list-style: none;
}

.button {
    background-color: #49bf9d; /* Strata's default green-ish accent */
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.button:hover {
    background-color: #3e9e82;
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 980px) {
    #header {
        position: relative;
        width: 100%;
        height: auto;
        padding: 4rem 2rem;
        align-items: center;
        text-align: center;
    }

    #main {
        margin-left: 0;
        padding: 4rem 2rem;
    }

    .form-row {
        flex-direction: column;
    }
}

#footer {
    display: none; /* Handled inside #header on desktop */
}

@media screen and (max-width: 980px) {
    #footer {
        display: block;
        text-align: center;
        padding: 2rem;
        background: #f4f4f4;
        color: #888;
        font-size: 0.9rem;
    }
}