/* Load site fonts in one place so all pages stay consistent */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

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

:root {
    --primary-color: #4E4151;
    --secondary-color: #9E80A2;
    --color-lavender: #d8d0e5;
    --color-purple: #a27fa4;
    --color-pink: #d589b4;
    --color-coral: #e77e80;
    --color-orange: #fdb740;
    --color-yellow: #ffe18b;
    --accent-color: #a27fa4;
    --accent-purple: #d8d0e5;
    --accent-pink: #d589b4;
    --accent-orange: #fdb740;
    --accent-coral: #e77e80;
    --accent-yellow: #ffe18b;
    --background-color: #ffffff;
    --background-alt: #f8f7f9;
    --background-tint: #f0eef2;
    --text-color: #2d2d2d;
    --text-light: #5a5a5a;
    --border-color: #e5e0ea;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-colored: 0 10px 30px rgba(162, 127, 164, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background: var(--primary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    display: block;
    height: 36px;
    width: auto;
}

.logo:hover img {
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-lavender);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef3f2 0%, #f0f9ff 50%, #f5f3ff 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image {
    grid-column: 1;
    grid-row: 1;
}

.hero-image img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.hero-header {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-pink) 75%, var(--color-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.hero-body {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 100%);
    color: var(--background-color);
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-coral) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
}

.btn-secondary {
    background: transparent;
    color: var(--color-pink);
    border: 2px solid var(--color-pink);
}

.btn-secondary:hover {
    background: var(--color-pink);
    color: var(--background-color);
    box-shadow: var(--shadow-colored);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-lavender) 0%, var(--color-pink) 50%, var(--color-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Featured Projects - Longodesigns-inspired full-width tiles */
.featured-projects {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.project-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.project-tile:hover {
    transform: scale(1.02);
}

.project-tile:hover .project-tile-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.project-tile:hover .project-tile-link {
    opacity: 1;
    transform: translateY(0);
}

.project-tile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.project-tile-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.project-tile-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.project-tile-link {
    display: inline-block;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    opacity: 0.9;
    transition: var(--transition);
}

.project-tile:hover .project-tile-link {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

/* Legacy project card styles (used on about page, projects listing, etc.) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-purple) 0%, var(--color-pink) 100%);
    transform: scaleY(0);
    transition: var(--transition);
}

.project-card:hover::before {
    transform: scaleY(1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-colored);
    border-color: var(--color-pink);
    background: #2f2f2f;
}

.project-card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-lavender) 0%, var(--color-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-card-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.project-link {
    color: var(--color-pink);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.project-link:hover {
    color: var(--color-coral);
    transform: translateX(3px);
}

/* Design Philosophy */


.services-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

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

.services-grid {
    grid-template-columns: repeat(2, 1fr);
}

.philosophy-item {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border-top: 4px solid transparent;
    transition: var(--transition);
}

.philosophy-item:nth-child(1) {
    border-top-color: var(--color-purple);
}

.philosophy-item:nth-child(2) {
    border-top-color: var(--color-pink);
}

.philosophy-item:nth-child(3) {
    border-top-color: var(--color-coral);
}

.philosophy-item:nth-child(4) {
    border-top-color: var(--color-orange);
}

.philosophy-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.philosophy-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.philosophy-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Page Header - default for projects listing etc. */
.page-header {
    background: var(--primary-color);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Center H1 on non-project pages (About, Resume, Work with Me, Projects listing) */
main:not(:has(.project-detail-page)) .page-header {
    text-align: center;
}

/* Projects listing page - darker header background */
main:has(.projects-listing) .page-header {
    background: #3d3340;
}

/* About, Resume, Work with Me - full white background */
main:has(.about-content),
main:has(.resume-content) {
    background: #ffffff;
}

main:has(.about-content) .page-header,
main:has(.resume-content) .page-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

main:has(.about-content) .page-header .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 1.5rem auto 0;
    line-height: 1.8;
}

main:has(.about-content) .page-header h1,
main:has(.resume-content) .page-header h1 {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 50%, var(--color-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About, Work with Me, Resume - H2 styling (color from palette) */
main:has(.about-content) .about-intro h2,
main:has(.about-content) .section-title,
main:has(.resume-content) .resume-header h2 {
    font-size: 2.25rem;
    color: var(--color-purple);
    background: none;
    -webkit-text-fill-color: var(--color-purple);
}

/* About - H2s use darker purple from brand */
main:has(.about-content) .about-section h2,
main:has(.about-content) .about-section h3,
main:has(.about-content) .philosophy-item h3 {
    color: var(--primary-color);
    background: none;
    -webkit-text-fill-color: var(--primary-color);
}

main:has(.resume-content) .resume-section h3 {
    color: #2a2a2a;
    background: none;
    -webkit-text-fill-color: #2a2a2a;
}

main:has(.about-content) .page-subtitle,
main:has(.resume-content) .page-subtitle {
    color: var(--text-light);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    background: linear-gradient(135deg, var(--color-lavender) 0%, var(--color-pink) 50%, var(--color-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Page header subtitle - light on dark headers */
.page-header .page-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* About Page */
.about-content {
    padding: 4rem 0;
}

.about-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.about-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-lavender) 0%, var(--color-pink) 50%, var(--color-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-intro .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-sections {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-section {
    max-width: 900px;
    margin: 0 auto;
}

.about-section h2,
.about-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-style: italic;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-lavender) 0%, var(--color-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.125rem;
}

.about-section-intro {
    margin-bottom: 1.5rem;
}

/* About page: 4 columns × 1 row image grid */
.about-image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 0;
}

.about-image-grid img {
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}

/* Creating for Fun: square images */
.about-image-grid--square img {
    aspect-ratio: 1 / 1;
}

/* Behind the Scenes: vertical rectangles */
.about-image-grid--portrait img {
    aspect-ratio: 3 / 4;
}

.about-cta {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Projects Listing Page */
.projects-listing {
    padding: 0;
}

/* Edge-to-edge photo tiles grid */
.projects-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.project-photo-tile {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: var(--transition);
}

.project-photo-tile:hover .project-photo-tile-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.project-photo-tile-placeholder {
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--color-purple) 20%, var(--color-pink) 50%, var(--color-coral) 80%, var(--background-alt) 100%);
    background-size: 200% 200%;
    cursor: default;
}

.project-photo-tile-placeholder .project-photo-tile-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.project-photo-tile-placeholder .project-photo-tile-content h2 {
    opacity: 0.9;
}

.project-photo-tile-placeholder-text {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.project-photo-tile-placeholder:hover .project-photo-tile-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.project-photo-tile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.project-photo-tile-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.5rem;
}

.project-photo-tile-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    font-style: italic;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.75rem;
}

.project-photo-tile-link {
    display: inline-block;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.project-photo-tile:hover .project-photo-tile-link {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card-large {
    background: var(--background-alt);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-pink) 50%, var(--color-coral) 100%);
    transform: scaleX(0);
    transition: var(--transition);
}

.project-card-large:hover::before {
    transform: scaleX(1);
}

.project-card-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-colored);
    border-color: var(--color-pink);
    background: #2f2f2f;
}

.projects-grid a:nth-child(1) .project-card-large::before {
    background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-lavender) 100%);
}

.projects-grid a:nth-child(2) .project-card-large::before {
    background: linear-gradient(90deg, var(--color-pink) 0%, var(--color-coral) 100%);
}

.projects-grid a:nth-child(3) .project-card-large::before {
    background: linear-gradient(90deg, var(--color-coral) 0%, var(--color-orange) 100%);
}

.projects-grid a:nth-child(4) .project-card-large::before {
    background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-yellow) 100%);
}

.projects-grid a:nth-child(5) .project-card-large::before {
    background: linear-gradient(90deg, var(--color-pink) 0%, var(--color-purple) 100%);
}

.project-card-header {
    margin-bottom: 1.5rem;
}

.project-card-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--color-lavender) 0%, var(--color-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card-body p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-card-body .project-link {
    color: var(--color-pink);
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.project-card-large:hover .project-link {
    color: var(--color-coral);
    transform: translateX(5px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Individual Project Page - Edge to edge white */
main:has(.project-detail-page) {
    background: #ffffff;
}

main:has(.project-detail-page) .page-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 2rem;
}

main:has(.project-detail-page) .page-header h1 {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 50%, var(--color-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

main:has(.project-detail-page) .back-link {
    background: var(--background-tint);
    color: var(--color-purple);
}

main:has(.project-detail-page) .back-link:hover {
    background: var(--color-lavender);
    color: var(--primary-color);
}

main:has(.project-detail-page) .project-meta {
    color: var(--text-light);
    margin-top: 1.5rem;
}

main:has(.project-detail-page) .project-meta strong {
    color: var(--color-purple);
}

main:has(.project-detail-page) .project-tag {
    background: rgba(162, 127, 164, 0.15);
    color: var(--color-purple);
    border-color: rgba(162, 127, 164, 0.3);
}

.project-detail-page {
    padding: 4rem 2rem;
    background: #ffffff;
}

.back-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
}

.back-link:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-purple);
    transform: translateX(-3px);
}

.project-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(162, 127, 164, 0.2);
    color: var(--color-lavender);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(162, 127, 164, 0.3);
}

.page-header .project-tag {
    margin-top: 1rem;
    display: inline-block;
}

.project-detail-page .project-content {
    display: grid;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.project-detail-page .project-content > div {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.project-detail-page .project-content > div:last-child {
    border-bottom: none;
}

.project-detail-page .project-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-purple);
    background: none;
    -webkit-text-fill-color: var(--color-purple);
    padding-left: 1rem;
    border-left: 4px solid var(--color-purple);
}

.project-detail-page .project-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.project-detail-page .project-content p:last-child {
    margin-bottom: 0;
}

.project-detail-page .project-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-meta strong {
    color: var(--color-lavender);
    font-weight: 600;
}

.project-gallery {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.project-gallery img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
}

/* Photo gallery with side margins (e.g. lettering page) */
.project-gallery-margins {
    margin-left: 2rem;
    margin-right: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-gallery-margins img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

@media (min-width: 768px) {
    .project-gallery-margins {
        grid-template-columns: repeat(3, 1fr);
        margin-left: 3rem;
        margin-right: 3rem;
    }
}

/* Resume Page */
.resume-content {
    padding: 4rem 0;
}

.resume-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.resume-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-lavender) 0%, var(--color-pink) 50%, var(--color-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.resume-title {
    font-size: 1.5rem;
    color: var(--text-light);
}

.resume-contact {
    margin-top: 1rem;
    font-size: 1.25rem;
    color: var(--text-color);
}

.resume-contact a {
    color: var(--color-purple);
    text-decoration: none;
    transition: var(--transition);
}

.resume-contact a:hover {
    color: var(--color-pink);
}

.resume-contact-divider {
    margin: 0 0.75rem;
    opacity: 0.5;
}

.experience-list {
    display: grid;
    gap: 2.5rem;
}

.experience-item {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--color-pink);
}

.experience-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.experience-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 0.25rem;
    color: #2a2a2a;
}

.experience-date {
    font-size: 0.9rem;
    color: var(--color-pink);
    font-weight: 600;
}

.experience-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.experience-bullets {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.experience-bullets li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.experience-bullets-inline {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
}

.experience-bullets-inline li {
    margin-bottom: 0;
}

.experience-bullets-inline li::before {
    content: "•";
    color: var(--color-pink);
    margin-right: 0.5rem;
}

.resume-section {
    margin-bottom: 4rem;
}

.resume-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-lavender) 0%, var(--color-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--color-purple) 0%, var(--color-pink) 100%) 1;
    padding-bottom: 0.5rem;
}

.resume-section > p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.125rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-category {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 1rem;
}

.skill-category h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: #2a2a2a;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    color: var(--text-light);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.skill-category li:last-child {
    border-bottom: none;
}

.project-list {
    display: grid;
    gap: 2rem;
}

.project-item {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--color-pink);
    transition: var(--transition);
}

.project-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    background: #2f2f2f;
}

.project-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 0.5rem;
    color: var(--color-lavender);
}

.project-type {
    color: var(--color-pink);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.project-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.principles-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.principles-list li {
    padding: 1.5rem;
    background: var(--background-alt);
    border-radius: 0.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.principles-list strong {
    color: var(--color-lavender);
    display: block;
    margin-bottom: 0.5rem;
}

.resume-cta {
    text-align: center;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--primary-color);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-signature {
    height: 60px;
    width: auto;
    opacity: 0.95;
    filter: brightness(1.4);
    transition: var(--transition);
}

.footer-signature:hover {
    opacity: 1;
    filter: brightness(1.6);
}

.footer-tagline {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.footer-icon-link {
    display: inline-flex;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-icon-link:hover {
    opacity: 1;
}

.footer-icon-link:hover img {
    filter: brightness(1.2);
}

.footer-icon-link img {
    width: 24px;
    height: 24px;
}

.footer-email {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-email:hover {
    color: var(--color-lavender);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 2rem;
    }

    .hero-image {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }

    .hero-header {
        grid-column: 1;
        grid-row: 2;
        text-align: center;
    }

    .hero-body {
        grid-column: 1;
        grid-row: 3;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    main:has(.about-content) .page-header h1,
    main:has(.resume-content) .page-header h1 {
        font-size: 2.5rem;
    }

    main:has(.about-content) .about-intro h2,
    main:has(.about-content) .section-title,
    main:has(.resume-content) .resume-header h2 {
        font-size: 1.875rem;
    }

    .container {
        padding: 0 1rem;
    }

    .projects-grid,
    .philosophy-grid {
        grid-template-columns: 1fr;
    }

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

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

    .about-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card-large {
        padding: 1.5rem;
    }

    .project-card-header h2 {
        font-size: 1.5rem;
    }

    .project-tile {
        min-height: 70vh;
    }

    .project-tile-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .projects-tiles-grid {
        grid-template-columns: 1fr;
    }

    .project-photo-tile {
        aspect-ratio: 1;
    }

    .project-photo-tile-content h2 {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }
}

@media (max-width: 480px) {
    .about-image-grid {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        width: 220px;
        height: 220px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .footer-signature {
        height: 45px;
    }
}
