/* --- Global Styles & Resets --- */
:root {
    --primary-color: #222;
    --secondary-color: #fff;
    --accent-color: #007bff;
    --light-gray: #f4f4f4;
    --text-color: #333;
    --container-width: 1100px;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Header & Navigation --- */
.main-header {
    background: var(--secondary-color);
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-color);
}


/* --- Hero Section --- */
.hero {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin: 0;
}

.hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}


/* --- Featured Work & Portfolio Grid --- */
.featured-work {
    padding: 4rem 0;
    text-align: center;
}

.featured-work h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.project-card {
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.project-card a {
    color: inherit;
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    margin: 0 0 0.25rem 0;
}

.card-info p {
    margin: 0;
    color: #666;
}

/* --- Portfolio Page Styles --- */
.portfolio-page {
    padding: 4rem 0;
}

.page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* --- About Page Styles --- */
.about-page .container {
    max-width: 800px; /* A slightly narrower container is better for reading text */
    text-align: center;
}

.about-headshot {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Makes the image a circle */
    object-fit: cover; /* Prevents the image from stretching */
    margin: 0 auto 2rem auto;
}

.about-content {
    text-align: left;
    margin-bottom: 4rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo-grid img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- New Site-Wide Footer --- */
.site-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 2.5rem 0;
    margin-top: 4rem;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-contact p {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    opacity: 0.7;
}

.footer-contact a {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-icon {
    width: 28px;
    height: 28px;
    fill: var(--secondary-color);
    transition: fill 0.3s ease;
}

.social-icon:hover {
    fill: var(--accent-color);
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
}