/* ==========================================================================
   Austin Artist Website - Styles
   Modern, minimalist design with Texas-inspired aesthetics
   ========================================================================== */

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

:root {
    /* Austin-inspired Color Palette */
    --primary-color: #D97B4E;        /* Terracotta sunset */
    --secondary-color: #8B7355;      /* Warm earth tone */
    --accent-gold: #E8B67E;          /* Texas gold */
    --accent-sage: #9CAF88;          /* Hill country sage */
    --deep-night: #2C3E50;           /* Indigo night sky */
    --warm-cream: #F5F1E8;           /* Natural cream */
    --soft-white: #FEFEFE;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    
    /* Gradients */
    --sunset-gradient: linear-gradient(135deg, #D97B4E 0%, #E8B67E 50%, #8B7355 100%);
    --sky-gradient: linear-gradient(180deg, #FEFEFE 0%, #F5F1E8 100%);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--soft-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title.centered {
    text-align: center;
}

.section-title.centered::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--sunset-gradient);
    margin: 1rem auto 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(254, 254, 254, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: 2px;
}

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--primary-color);
}

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sunset-gradient);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(232, 182, 126, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 115, 85, 0.3) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--soft-white);
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: var(--soft-white);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(15px);
        opacity: 1;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--soft-white);
    color: var(--primary-color);
    border-color: var(--soft-white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--soft-white);
    border-color: var(--soft-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--soft-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 123, 78, 0.3);
}

.btn-full {
    width: 100%;
}

/* Statement Section */
.statement {
    padding: var(--section-padding);
    background: var(--sky-gradient);
}

.statement-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.statement-image {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.artist-picture,
.artist-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.thesis-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.thesis-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.statement-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    z-index: -1;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-sage) 0%, var(--accent-gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--soft-white);
    transition: transform 0.6s ease;
}

.statement-image:hover .image-placeholder {
    transform: scale(1.05);
}

.statement-content {
    padding: 2rem 0;
}

.statement-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.statement-text p:first-of-type {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 400;
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding);
    background-color: var(--soft-white);
}

/* BFA Thesis / Portfolio page specific styles */
.portfolio-page-header {
    padding: 6rem 0 3rem;
    background: linear-gradient(180deg, rgba(249,246,243,0.6), rgba(255,255,255,0));
}

.page-title { font-size: 2.4rem; margin-bottom: .25rem; }
.page-subtitle { color: var(--text-light); margin-bottom: .5rem; }

.portfolio-page-content { padding: 3rem 0 6rem; }
.artwork-item { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; margin-bottom: 2.5rem; }
.artwork-image { width: 100%; height: auto; overflow: visible; }
.artwork-image .thesis-image { width: 100%; height: auto; object-fit: contain; display: block; }
.artwork-info h3 { margin-bottom: .5rem; }

.artwork-grid-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.grid-item { width: 100%; height: auto; overflow: visible; }
.grid-item img { width: 100%; height: auto; object-fit: contain; display: block; }

@media (max-width: 900px) {
    .statement-grid, .contact-grid, .artwork-item { grid-template-columns: 1fr; }
    .statement-image { height: 420px; }
    .artwork-image { height: auto; }
    .artwork-grid-2x2 { grid-template-columns: 1fr; }
}

/* Wide artwork that spans both columns */
.artwork-item--wide {
    grid-column: 1 / -1;
    display: block;
    text-align: center;
}
.artwork-item--wide .artwork-image img {
    max-width: 100%;
    width: 90%;
    height: auto;
    margin: 0 auto;
}

/* Make specific full-width large images fill the site container (twice the grid item width) */
.full-width-large img,
.artwork-item--wide .full-width-large img {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Roadkill series styles */
.series-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.series-item { overflow: hidden; }
.series-item img { width: 100%; height: auto; display: block; }

.series2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.series2-item { overflow: hidden; }
.stacked-pair .stack-top img, .stacked-pair .stack-bottom img { width: 100%; height: auto; display: block; }
.series2-pair { display: flex; gap: 1rem; margin-top: 1rem; }
.series2-pair .pair-left, .series2-pair .pair-right { flex: 1; overflow: hidden; }
.series2-pair img { width: 100%; height: auto; display: block; }

/* Series Two: make it a 2x5 grid and square thumbnails */
.series2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.series2-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* square aspect ratio */
    overflow: hidden;
}
.series2-item picture,
.series2-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.series-caption { margin: 0.5rem 0 1rem; }
.grid-caption h4 { margin: 0; font-size: 1rem; }
.grid-caption .artwork-details { font-size: 0.9rem; color: var(--text-light); margin: 0.25rem 0 0; }

@media (max-width: 900px) {
    .series-grid, .series2-grid { grid-template-columns: 1fr; }
    .series2-pair { flex-direction: column; }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--soft-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 6px;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-image .image-placeholder {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--accent-gold) 50%, 
        var(--secondary-color) 100%);
    transition: transform 0.5s ease;
}

.portfolio-item:nth-child(2) .image-placeholder {
    background: linear-gradient(135deg, 
        var(--accent-sage) 0%, 
        var(--accent-gold) 100%);
}

.portfolio-item:nth-child(3) .image-placeholder {
    background: linear-gradient(135deg, 
        var(--secondary-color) 0%, 
        var(--primary-color) 100%);
}

.portfolio-item:nth-child(4) .image-placeholder {
    background: linear-gradient(135deg, 
        var(--accent-gold) 0%, 
        var(--accent-sage) 100%);
}

.portfolio-item:nth-child(5) .image-placeholder {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--deep-night) 100%);
}

.portfolio-item:nth-child(6) .image-placeholder {
    background: linear-gradient(135deg, 
        var(--accent-sage) 0%, 
        var(--secondary-color) 100%);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 2rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .image-placeholder {
    transform: scale(1.1);
}

.portfolio-item:hover {
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
    transform: translateY(-4px);
    border-color: rgba(0,0,0,0.09);
}

.portfolio-overlay h3 {
    color: var(--soft-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.portfolio-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Events Section */
.events {
    padding: var(--section-padding);
    background: var(--warm-cream);
}

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

.event-card {
    background: var(--soft-white);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--sunset-gradient);
    color: var(--soft-white);
    padding: 1rem;
    min-width: 80px;
    text-align: center;
}

.event-date .month {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.event-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.event-venue {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.event-location,
.event-time {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

/* Press Section */
.press {
    padding: var(--section-padding);
    background: var(--soft-white);
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.press-item {
    text-align: center;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.press-item:hover {
    transform: translateY(-5px);
}

.press-logo {
    margin-bottom: 1.5rem;
}

.logo-placeholder {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 600;
}

.press-item h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.press-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.collaborations {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--warm-cream);
}

.subsection-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

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

.collab-item {
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.collab-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.collab-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--deep-night);
    color: var(--soft-white);
}

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

.contact-info .section-title {
    color: var(--soft-white);
}

.contact-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--warm-cream);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--warm-cream);
    font-size: 1rem;
}

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

.social-link {
    color: var(--warm-cream);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

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

.social-link:hover {
    color: var(--accent-gold);
}

/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--soft-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

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

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--warm-cream);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    background: var(--deep-night);
    padding: 0 0.5rem;
    color: var(--accent-gold);
}

.form-group select + label {
    display: none;
}

.form-group select option {
    background: var(--deep-night);
    color: var(--soft-white);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--warm-cream);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-tagline {
    font-style: italic;
    color: var(--accent-gold);
}

/* Animation Classes */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(254, 254, 254, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    /* Make Series Two a vertical flex column on small screens so order can be controlled */
    .series2-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    /* Ensure img_0409 and img_0410 stay adjacent on small screens: force ordering so 0409 comes immediately before 0410 */
    .series2-img0409 { order: 1; }
    .series2-img0410 { order: 2; }
    /* Rotate the specific pair 90deg when in mobile stacking mode */
    .series2-rotate img {
        transform: rotate(90deg);
        transform-origin: center center;
    }

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

    .nav-toggle {
        display: flex;
    }

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

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

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

    .statement-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .statement-image {
        height: 400px;
    }

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

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

@media (max-width: 600px) {
    .series2-grid {
        grid-template-columns: 1fr;
    }
    /* Ensure img_0409 and img_0410 stay adjacent on small screens: force ordering so 0409 comes immediately before 0410 */
    .series2-img0409 { order: 1; }
    .series2-img0410 { order: 2; }

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

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

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

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

    .event-card {
        flex-direction: column;
        text-align: center;
    }

    .event-date {
        width: 100%;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.85rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .nav,
    .scroll-indicator,
    .btn,
    .contact-form {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* ==========================================================================
   Portfolio Pages Styles
   ========================================================================== */

/* Portfolio Page Header */
.portfolio-page-header {
    padding: 150px 0 60px;
    text-align: center;
    background: var(--sky-gradient);
}

.page-title {
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 400;
}

.page-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Portfolio Page Content */
.portfolio-page-content {
    padding: 80px 0;
    background-color: var(--soft-white);
}

.portfolio-page-content .container {
    max-width: 900px;
}

/* Artwork Item */
.artwork-item {
    margin-bottom: 4rem;
}

.artwork-image {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.artwork-image .image-placeholder {
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    position: relative;
}

.artwork-info {
    text-align: center;
    padding: 0 2rem;
}

.artwork-info.centered {
    text-align: center;
    margin: 2rem 0;
}

.artwork-info h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.artwork-details {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    line-height: 1.6;
}

/* 2x2 Grid */
.artwork-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.artwork-grid-2x2 .grid-item {
    position: relative;
}

.artwork-grid-2x2 .image-placeholder {
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio */
    position: relative;
}

.grid-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.8rem;
    font-style: italic;
}

/* 2 Column Grid */
.artwork-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.grid-item-large {
    position: relative;
}

.grid-item-large .image-placeholder {
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio */
    position: relative;
}

.grid-item-large {
    display: block;
}

/* Make the top two prints responsive like the rest of the site */
.grid-item-large picture {
    display: block;
    width: 100%;
}
.grid-item-large img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.grid-caption { text-align: left; margin-top: 0.5rem; }
.grid-caption h4 { margin: 0 0 0.25rem 0; font-size: 1rem; }
.grid-caption .artwork-details { margin: 0; font-size: 0.9rem; color: var(--text-light); }

.grid-item-large .artwork-info {
    margin-top: 1rem;
}

/* Portfolio Page CTA */
.portfolio-page-cta {
    padding: 40px 0 80px;
    text-align: center;
    background-color: var(--soft-white);
}

/* Placeholder gradients for different series */

/* BFA Thesis placeholders */
.thesis-1 {
    background: linear-gradient(135deg, var(--warm-cream) 0%, var(--accent-sage) 100%);
}

.thesis-2 {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-color) 100%);
}

.thesis-3 {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--deep-night) 100%);
}

.thesis-grid-1 {
    background: linear-gradient(135deg, var(--accent-sage) 0%, var(--warm-cream) 100%);
}

.thesis-grid-2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-gold) 100%);
}

.thesis-grid-3 {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--secondary-color) 100%);
}

.thesis-grid-4 {
    background: linear-gradient(135deg, var(--deep-night) 0%, var(--primary-color) 100%);
}

/* Movement of Music placeholders */
.music-1, .music-2, .music-3, .music-4,
.music-5, .music-6, .music-7, .music-8, .music-9 {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--text-light) 50%, var(--warm-cream) 100%);
}

.music-1 {
    background: linear-gradient(135deg, #333 0%, #666 100%);
}

.music-2 {
    background: linear-gradient(135deg, #1A1A1A 0%, #555 100%);
}

.music-3 {
    background: linear-gradient(135deg, #444 0%, #888 100%);
}

.music-4 {
    background: linear-gradient(135deg, #000 0%, #333 100%);
}

.music-5 {
    background: linear-gradient(135deg, #222 0%, #777 100%);
}

.music-6 {
    background: linear-gradient(135deg, #111 0%, #444 100%);
}

.music-7 {
    background: linear-gradient(135deg, #2C3E50 0%, #666 100%);
}

.music-8 {
    background: linear-gradient(135deg, #333 0%, #555 100%);
}

.music-9 {
    background: linear-gradient(135deg, #1A1A1A 0%, #666 100%);
}

/* Printmaking placeholders */
.print-1 {
    background: linear-gradient(135deg, #C44569 0%, #E8488A 100%);
}

.print-2 {
    background: linear-gradient(135deg, var(--deep-night) 0%, var(--text-dark) 100%);
}

.print-3 {
    background: linear-gradient(135deg, #D97B4E 0%, #E8B67E 100%);
}

.print-4 {
    background: linear-gradient(135deg, #9CAF88 0%, #B8D4A5 100%);
}

.print-5 {
    background: linear-gradient(135deg, #8B7355 0%, #A68A6D 100%);
}

.print-6 {
    background: linear-gradient(135deg, #E8B67E 0%, #F5C895 100%);
}

.print-7 {
    background: linear-gradient(135deg, var(--deep-night) 0%, var(--secondary-color) 50%, var(--accent-sage) 100%);
}

/* New Printmaking placeholders */
.print-walls-1-1 {
    background: linear-gradient(135deg, #8B4789 0%, #B565B3 100%);
}

.print-walls-1-2 {
    background: linear-gradient(135deg, #4A5568 0%, #6B7C93 100%);
}

.print-walls-2-1 {
    background: linear-gradient(135deg, #D4A373 0%, #E8C4A3 100%);
}

.print-walls-2-2 {
    background: linear-gradient(135deg, #5A6F5A 0%, #7A9A7A 100%);
}

.print-produce-1 {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
}

.print-produce-2 {
    background: linear-gradient(135deg, #4ECDC4 0%, #6EEDE4 100%);
}

.print-produce-3 {
    background: linear-gradient(135deg, #FFE66D 0%, #FFF08D 100%);
}

.print-produce-4 {
    background: linear-gradient(135deg, #95E1D3 0%, #B5F1E3 100%);
}

.print-death {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
}

/* Bookmaking Styles */
.book-section {
    margin-bottom: 6rem;
}

.book-info {
    text-align: center;
    margin-bottom: 2rem;
}

.book-info h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.book-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.book-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    min-height: 400px;
    aspect-ratio: 1/1;
    perspective: 2000px;
}

.book-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transform: rotateY(90deg);
    transition: all 0.6s ease-in-out;
}

.book-page.active {
    display: flex;
    opacity: 1;
    transform: rotateY(0deg);
}

.book-page.exiting {
    display: flex;
    opacity: 0;
    transform: rotateY(-90deg);
}

.page-left,
.page-right {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Single page display - center the content */
.book-page .page-single {
    width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-left .image-placeholder,
.page-right .image-placeholder,
.page-single .image-placeholder {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    border: 2px solid var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-single .page-image {
    width: 100%;
    max-width: 100%;
}

.page-single .page-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.page-label {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.book-nav {
    background: var(--primary-color);
    color: var(--soft-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.book-nav:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.book-nav:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
}

.book-nav:disabled:hover {
    transform: scale(1);
}

.page-counter {
    text-align: center;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Book placeholder gradients */
.book1-cover-front {
    background: linear-gradient(135deg, #E63946 0%, #F1FAEE 100%);
}

.book1-cover-back {
    background: linear-gradient(135deg, #A8DADC 0%, #457B9D 100%);
}

.book1-page-1 {
    background: linear-gradient(135deg, #F4A261 0%, #E76F51 100%);
}

.book1-page-2 {
    background: linear-gradient(135deg, #2A9D8F 0%, #264653 100%);
}

.book1-page-3 {
    background: linear-gradient(135deg, #E9C46A 0%, #F4A261 100%);
}

.book1-page-4 {
    background: linear-gradient(135deg, #8AB17D 0%, #E9C46A 100%);
}

.book1-page-5 {
    background: linear-gradient(135deg, #264653 0%, #287271 100%);
}

.book1-page-6 {
    background: linear-gradient(135deg, #E76F51 0%, #F4A261 100%);
}

.book1-page-7 {
    background: linear-gradient(135deg, #457B9D 0%, #A8DADC 100%);
}

.book1-page-8 {
    background: linear-gradient(135deg, #F1FAEE 0%, #E63946 100%);
}

.book1-page-9 {
    background: linear-gradient(135deg, #2A9D8F 0%, #8AB17D 100%);
}

.book1-page-10 {
    background: linear-gradient(135deg, #E9C46A 0%, #E76F51 100%);
}

.book1-page-11 {
    background: linear-gradient(135deg, #A8DADC 0%, #F1FAEE 100%);
}

.book1-page-12 {
    background: linear-gradient(135deg, #264653 0%, #457B9D 100%);
}

.book1-page-13 {
    background: linear-gradient(135deg, #F4A261 0%, #2A9D8F 100%);
}

.book1-page-14 {
    background: linear-gradient(135deg, #E63946 0%, #264653 100%);
}

.book2-cover-front {
    background: linear-gradient(135deg, #06FFA5 0%, #00B4D8 100%);
}

.book2-cover-back {
    background: linear-gradient(135deg, #FFD60A 0%, #FFC300 100%);
}

.book2-page-1 {
    background: linear-gradient(135deg, #FF006E 0%, #8338EC 100%);
}

.book2-page-2 {
    background: linear-gradient(135deg, #3A86FF 0%, #06FFA5 100%);
}

.book2-page-3 {
    background: linear-gradient(135deg, #FB5607 0%, #FFD60A 100%);
}

.book2-page-4 {
    background: linear-gradient(135deg, #8338EC 0%, #3A86FF 100%);
}

.book2-page-5 {
    background: linear-gradient(135deg, #00B4D8 0%, #06FFA5 100%);
}

.book2-page-6 {
    background: linear-gradient(135deg, #FFC300 0%, #FB5607 100%);
}

.book2-page-7 {
    background: linear-gradient(135deg, #FF006E 0%, #3A86FF 100%);
}

.book2-page-8 {
    background: linear-gradient(135deg, #06FFA5 0%, #8338EC 100%);
}

.book2-page-9 {
    background: linear-gradient(135deg, #FFD60A 0%, #FF006E 100%);
}

.book2-page-10 {
    background: linear-gradient(135deg, #00B4D8 0%, #FB5607 100%);
}

.book3-cover-front {
    background: linear-gradient(135deg, #DDA15E 0%, #BC6C25 100%);
}

.book3-cover-back {
    background: linear-gradient(135deg, #606C38 0%, #283618 100%);
}

/* Responsive Design for Portfolio Pages */
@media (max-width: 900px) {
    .page-title {
        font-size: 2.5rem;
    }

    .portfolio-page-content .container {
        max-width: 100%;
        padding: 0 30px;
    }

    .artwork-grid-2x2,
    .artwork-grid-2col {
        gap: 1.5rem;
    }

    .artwork-info {
        padding: 0 1rem;
    }

    .book-container {
        max-width: 500px;
    }

    .page-single .page-image img {
        max-height: 500px;
    }
}

@media (max-width: 600px) {
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .portfolio-page-header {
        padding: 120px 0 40px;
    }

    .artwork-grid-2x2,
    .artwork-grid-2col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .artwork-item {
        margin-bottom: 3rem;
    }

    .artwork-info h3 {
        font-size: 1.2rem;
    }

    .artwork-details {
        font-size: 0.9rem;
    }

    .book-viewer {
        flex-direction: column;
        gap: 1rem;
    }

    .book-container {
        max-width: 100%;
    }

    .book-nav {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .page-left,
    .page-right {
        padding: 0.5rem;
    }

    .page-single .page-image img {
        max-height: 400px;
    }

    .book-container {
        aspect-ratio: auto;
        min-height: 300px;
    }
}

    /* Tighten book viewer images so covers don't overflow and nav buttons stay clickable */
    .book-container .page-image,
    .book-container .page-image picture,
    .book-container .page-image img {
        /* increase displayed size (was 75%) — make larger and centered */
        max-width: 100%;
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .book-nav {
        position: relative;
        z-index: 30; /* ensure nav sits above large page images */
    }

    .book-container .page-left .page-image,
    .book-container .page-right .page-image {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Reduce spacing between book title/info and the viewer */
    .book-section {
        margin-top: 0.6rem;
        margin-bottom: 1.25rem;
        padding-top: 0.25rem;
    }

    .book-info {
        margin-bottom: 0.5rem;
    }

    .book-info h3 {
        margin-bottom: 0.1rem;
        font-size: 1.25rem;
    }

    .book-viewer {
        margin-top: 0.1rem;
    }

    .page-label {
        margin-top: 0.35rem;
        font-size: 0.9rem;
        color: var(--text-light);
    }

    /* Slightly tighten overall section spacing on this page to make margins feel denser */
    .portfolio-page-content .container {
        padding-top: 12px;
        padding-bottom: 12px;
    }

/* --- Targeted adjustments --- */
/* Reduce only the front/back cover images for Book 1 and Book 2 so pages remain full-size */
#book1 .book-page[data-page="0"] .page-image img,
#book1 .book-page[data-page="8"] .page-image img,
#book2 .book-page[data-page="0"] .page-image img,
#book2 .book-page[data-page="6"] .page-image img {
    max-width: 60%; /* slightly smaller than other pages */
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Reduce Be Aware covers slightly more (book2) */
#book2 .book-page[data-page="0"] .page-image img,
#book2 .book-page[data-page="6"] .page-image img {
    max-width: 50%; /* user requested: drop from 60% to 50% for Be Aware */
}

/* Series Two: stacked pair should keep the same gap as other grid items */
.series2-item.stacked-pair {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* matches grid gap */
}
.series2-item.stacked-pair .stack-top,
.series2-item.stacked-pair .stack-bottom {
    overflow: hidden;
}
.series2-item.stacked-pair img {
    width: 100%;
    height: auto;
    display: block;
}
