/* style.css */

:root {
    --text-main: #111111;
    --text-muted: #666666;
    --bg-main: #FFFFFF;
    --bg-alt: #F9F9F9;
    --accent: #000000;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-weight: 300;
}
/* Ensure all images scale down and never break the page width */
img {
    max-width: 100% !important;
    height: auto !important;
}
/* Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    border-bottom: 1px solid #EEEEEE;
    
    /* New Sticky Properties */
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-main); /* Prevents content from showing through */
}

.logo {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-main);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--text-main);
    font-weight: 500;
}

/* Main Content Layout */
main {
    padding: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 400;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    max-width: 800px;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Hero Image Placeholder */
.hero-image {
    width: 100%;
    height: auto;
    background-color: #ffffff;
    margin-top: 3rem;
    display: flex;
    align-items: left;
    justify-content: left;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 3rem 4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid #EEEEEE;
    display: flex;
    justify-content: space-between;
}/* =========================================
   Portfolio Grid Styling
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-image {
    width: 100%;
    height: 300px;
    background-color: #ffffff;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: left;
    justify-content: left;
    color: var(--text-muted);
}

.portfolio-item:hover .portfolio-image {
    opacity: 0.8;
}

.portfolio-title {
    font-weight: 500;
    margin: 0;
    font-size: 1.1rem;
}

.portfolio-category {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* =========================================
   Contact Page Layout & Form
   ========================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #DDDDDD;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-alt);
    box-sizing: border-box; /* Ensures padding doesn't break layout */
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

button {
    background-color: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #333333;
}
/* =========================================
   About & Team Layouts
   ========================================= */
.two-column-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem 2rem;
    margin-top: 3rem;
}

.team-member img {
    width: 100%;
    height: 300px;
    background-color: #ffffff;
    object-fit: cover;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-member:hover img {
    filter: grayscale(0%);
}

.team-name {
    font-weight: 500;
    margin: 0;
    font-size: 1.1rem;
}

.team-role {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* =========================================
   Awards List Styling
   ========================================= */
.awards-list {
    margin-top: 3rem;
    border-top: 1px solid #EEEEEE;
}

.award-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #EEEEEE;
    align-items: left;
}

.award-year {
    font-weight: 500;
}

.award-title {
    font-size: 1.1rem;
}

.award-org {
    color: var(--text-muted);
    text-align: left;
}
/* =========================================
   Mobile Responsiveness (Screens under 768px)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Adjust General Padding and Typography */
    main {
        padding: 2rem 1.5rem;
    }
    
    header {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    footer {
        padding: 2rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    h1 {
        font-size: 2.25rem; /* Scales down the large headline */
    }

    /* 2. Wrap Navigation Links */
    nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* 3. Stack Multi-Column Layouts to Single Column */
    .contact-layout, 
    .two-column-text {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* 4. Ensure Portfolio Grid Fits Mobile Widths */
    .portfolio-grid {
        /* Changes from 400px minimum to taking up the full width of the phone */
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 2rem 1rem;
    }
    
    .team-member img {
        height: 250px;
    }
}