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

:root {
    --color-bg: #fefefe;
    --color-text: #1a1a1a;
    --color-text-light: #555555;
    --color-accent: #2a2a2a;
    --color-border: #e8e8e8;
    --color-white: #ffffff;
    --color-warm: #f9f7f5;
    --font-primary: Garamond, 'EB Garamond', Georgia, 'Times New Roman', serif;
    --font-serif: Garamond, 'EB Garamond', Georgia, 'Times New Roman', serif;
    --transition: 0.3s ease;
    --max-width: 1000px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    color: var(--color-text-light);
}

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3 {
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-text);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* Button */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn:hover {
    background: var(--color-text-light);
    color: var(--color-white);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    background: var(--color-warm);
}

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

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-light);
}

/* Featured Section */
.featured {
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

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

.featured-item {
    position: relative;
    overflow: hidden;
}

.featured-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform var(--transition);
}

.featured-item:hover img {
    transform: scale(1.05);
}

.featured-item span {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}

/* Story Caption Styling */
.featured-item .story-caption {
    margin-top: 1rem;
    text-transform: none;
    letter-spacing: normal;
}

.featured-item .story-caption .story-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.featured-item .story-caption .story-text::before {
    content: '"';
}

.featured-item .story-caption .story-text::after {
    content: '"';
}

/* Placeholder Images */
.placeholder-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #e8e6e4 0%, #d4d2d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image::before {
    content: 'Add your photo';
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.placeholder-image.profile {
    aspect-ratio: 3/4;
}

.about-image img.profile {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

/* Page Header */
.page-header {
    padding: 10rem 2rem 4rem;
    text-align: center;
    background: var(--color-warm);
}

.page-header p {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* About Page */
.about-content {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text h3 {
    margin-top: 2rem;
    font-weight: 400;
}

.approach-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.approach-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.approach-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    background: var(--color-text);
    border-radius: 50%;
}

/* Portfolio Page - Masonry Gallery */
.portfolio-grid {
    column-count: 3;
    column-gap: 1rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.02);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content .lightbox-image {
    max-width: 90vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-caption {
    text-align: center;
    padding: 1.5rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.lightbox-caption .story-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--color-white);
    margin: 0;
}

.lightbox-caption .story-text::before {
    content: '"';
}

.lightbox-caption .story-text::after {
    content: '"';
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    transition: opacity var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

/* Contact Page */
.contact-content {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-details {
    margin: 2rem 0;
}

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

.contact-item h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.contact-item p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width var(--transition);
}

.social-link:hover::after {
    width: 100%;
}

/* Contact Form */
.contact-form {
    background: var(--color-white);
    padding: 3rem;
    border: 1px solid var(--color-border);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: border-color var(--transition);
}

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

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

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
}

.form-status.error {
    display: block;
    background: #ffebee;
    color: #c62828;
}

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

footer p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .portfolio-grid {
        column-count: 2;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-grid {
        column-count: 1;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }
}

/* Hide items when filtering */
.portfolio-item.hidden {
    display: none;
}
