/* --- RESET & VARS --- */
:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    --text-dark: #222222;
    --text-light: #666666;
    --accent: #777777;
    --bg-gray: #F9F9F9;
    --border: #EAEAEA;
    --link-color: #333;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* --- HERO BANNER --- */
.hero-banner {
    height: 300px;
    background-size: cover;
    background-position: top center;
    background-color: #ddd; /* Fallback */
    width: 100%;
}

/* --- PROFILE SECTION --- */
.profile-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    margin-top: -60px; /* Pulls profile up into banner area slightly if desired, or sit flush */
    padding-bottom: 60px;
}

.profile-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.avatar-wrapper {
    flex-shrink: 0;
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid #fff; /* White ring */
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-content {
    padding-top: 60px; /* Adjust based on alignment with avatar */
}

h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: #111;
}

.subtitle {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
}

.bio {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 700px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #555;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s;
}
.icon-btn:hover { background: #000; }

/* --- NAV DIVIDER --- */
.nav-divider {
    margin-bottom: 40px;
}
.nav-divider .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.active-tab {
    display: inline-block;
    padding: 10px 20px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    border: 1px solid #ddd;
    border-bottom: 1px solid #fff; /* Blends with bg */
    background: #fff;
    position: relative;
    top: 1px; /* Pushes it down over the HR */
    color: #111;
}
hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin-top: 0;
}

/* --- PORTFOLIO GRID --- */
.portfolio-section {
    padding-bottom: 80px;
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: #fff;
    border: 1px solid #eee; /* Very subtle border like screenshot */
    transition: transform 0.2s;
}
.card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #ddd;
}

.card-img-link {
    display: block;
    height: 200px;
    overflow: hidden;
    position: relative;
}
.card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.card:hover .card-img-link img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.category {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400; /* Serif doesn't need to be bold to look good */
    margin-bottom: 12px;
    line-height: 1.3;
}
.card h3 a:hover {
    text-decoration: underline;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- FOOTER --- */
footer {
    background: #333;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
    font-size: 0.85rem;
}
.social-links-footer {
    margin-top: 15px;
}
.social-links-footer a {
    color: #fff;
    font-size: 1.5rem;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .profile-content { padding-top: 10px; }
    .subtitle { justify-content: center; }
    .social-links { justify-content: center; margin-top: 15px; }
    .grid { grid-template-columns: 1fr; }
}