/* Elizabeth Hansen Shapiro Portfolio - Main Stylesheet */

/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --text-light: #666;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --border-color: #e0e0e0;
    --max-width: 1100px;
    --nav-height: 70px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-weight: 400;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Navigation */
nav {
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.nav-logo:hover {
    color: var(--accent-color);
}

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

.nav-links a {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.95rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Main Content */
main {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
}

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

/* Hero Section - Homepage */
.hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    padding: 4rem 0;
}

.hero-image {
    width: 100%;
    max-width: 300px;
}

.hero-image img,
.hero-image .photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.photo-placeholder {
    background-color: var(--background-alt);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.9rem;
}

.hero-content h1 {
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-bio p {
    font-size: 1.05rem;
}

/* Page Header */
.page-header {
    background-color: var(--background-alt);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* Page Header with Background Image */
.page-header-bg {
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    position: relative;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.page-header-bg h1 {
    position: relative;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Section Styles */
.section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    margin-bottom: 1.5rem;
}

/* CV Styles */
.cv-section {
    margin-bottom: 3rem;
}

.cv-section h2 {
    font-size: 1.4rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.cv-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--background-alt);
}

.cv-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.cv-item .date {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.cv-item p {
    margin-bottom: 0.5rem;
}

/* Publications Styles */
.publication-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.publication-meta {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.publication-item p {
    font-size: 0.95rem;
}

.publication-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.9rem;
}

/* Contact Page */
.contact-content {
    max-width: 600px;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.contact-item a,
.contact-item p {
    font-size: 1.1rem;
}

/* Contact Form */
.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background);
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--background-alt);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
}

footer p {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background-color: var(--background);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    h1 { font-size: 1.75rem; }
}
