/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ========================================
   UNIFIED FONT SIZES
   ======================================== */

h3 {
    font-size: 0.95rem;
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.2rem;
}

h4 {
    font-size: 0.95rem; /* Same as h3 */
}

p {
    font-size: 0.8rem;
}

span {
    font-size: 0.8rem;
}

a {
    font-size: 0.8rem; /* Same as p */
    color: #444;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.3s ease;
    position: relative;
}

/* Spans containing headings will inherit the heading's font-size automatically */

.subtitle {
    font-size: 0.95rem; /* Same as h3 */
}

.email-address {
    font-size: 0.8rem; /* Same as p */
}

.nav-links a {
    font-size: .5em;
}
.mobile-menu a {
    font-size: 1em;
}

/* ========================================
   GENERAL LINK STYLES
   ======================================== */

a::before {
    content: none;
}

a:hover {
    color: #222;
    font-weight: 600;
    border-bottom: none;
}

/* ========================================
   PARAGRAPH LINK STYLES (NO ICON)
   ======================================== */

.summary-content p a:not(:last-child),
.employment-item li a:not(:last-child),
.publication-item a,
.award-item p a:not(:last-child) {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.3s ease;
}

.summary-content p a:not(:last-child)::before,
.employment-item li a:not(:last-child)::before,
.publication-item a::before,
.award-item p a:not(:last-child)::before {
    content: none;
}

.summary-content p a:not(:last-child):hover,
.employment-item li a:not(:last-child):hover,
.publication-item a:hover,
.award-item p a:not(:last-child):hover {
    color: #111;
    font-weight: 600;
    border-bottom: none;
}

/* ========================================
   SECTION NAVIGATION LINKS (WITH ICON)
   ======================================== */

.section-nav-link {
    color: #444;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    cursor: pointer;
}

.section-nav-link::before {
    content: none;
}

.section-nav-link:hover {
    color: #222;
    font-weight: 600;
    border-bottom: none;
}

/* ========================================
   NAVIGATION LINK STYLES (NO ICON)
   ======================================== */

.nav-links a,
.mobile-menu a {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.3s ease;
}

.nav-links a::before,
.mobile-menu a::before {
    content: none;
}

.nav-links a:hover,
.mobile-menu a:hover {
    color: inherit;
    font-weight: inherit;
    border-bottom: none;
}

/* ========================================
   LAYOUT & CONTAINER
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
}

/* ========================================
   HEADER STYLES
   ======================================== */

.header {
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    color: #000;
    padding: 3rem 2rem 0 2rem;
    text-align: center;
    border-bottom: 0.125rem solid #e0e0e0;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05);
}

.header h1:not(#name-header) {
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: 0.125em;
    text-transform: uppercase;
}

/* name-header.php — match herbiecreative.com homepage .page-title */
.page-title,
#name-header,
#name-header.header-text-style,
.header h1#name-header.page-title,
.header h1#name-header.header-text-style {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow:
        2px 2px 0px var(--primary-color),
        4px 4px 0px var(--secondary-color),
        6px 6px 0px #333333;
    -webkit-text-stroke: 1px #000000;
    text-stroke: 1px #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media screen and (max-width: 768px) {
    .page-title,
    #name-header,
    #name-header.header-text-style,
    .header h1#name-header.page-title,
    .header h1#name-header.header-text-style {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

.subtitle {
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
}

.job-title {
    white-space: nowrap;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1em;
}

.contact-info p {
    font-weight: 300;
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.navigation {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Progress indicator */
.navigation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0.1875rem;
    background: linear-gradient(90deg, #333 0%, #666 100%);
    width: var(--scroll-progress, 0%);
    transition: width 0.3s ease;
    z-index: 1001;
}

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

.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.5rem 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    position: relative;
    white-space: nowrap;
    border: 1px solid transparent;
    background-color: #f8f8f8;
    min-width: fit-content;
}

.nav-links a:hover {
    color: #000;
    background-color: #e8e8e8;
    border-color: #d0d0d0;
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
}

.nav-links a.active {
    color: #000;
    background-color: #e8e8e8;
    border-color: #999;
    font-weight: 500;
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}


/* ========================================
   HIGHLIGHTS SECTION
   ======================================== */

.impact-highlight {
    background: #f8f9fa;
    border: 1px solid #6c757d;
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 3rem 0 2rem 0;
    text-align: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.impact-highlight:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.impact-highlight h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.impact-highlight p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
    align-items: start;
}

.highlight-item {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #6c757d;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.highlight-item:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.highlight-item h3 {
    color: #007bff;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    text-transform: none;
    letter-spacing: normal;
}

.highlight-item p {
    margin: 0;
    line-height: 1.5;
    color: #333;
}

/* CV teaser cards (publications, exhibitions, installations, awards summaries) */
.cv-teaser-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto 1.5rem auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

.section.cv-teaser {
    width: 100%;
    min-width: 0;
    max-width: none;
    background: #f8f9fa;
    border: 1px solid #6c757d;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem 1rem;
    margin: 0;
}

.section.cv-teaser h2 {
    margin: 0 0 1rem;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid #000;
    text-align: center;
}

.section.cv-teaser > p:not(.cv-teaser-link) {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: #333;
    font-weight: 300;
}

.section.cv-teaser .cv-teaser-link {
    margin: 0;
    font-size: 0.875rem;
}

.section.cv-teaser .cv-teaser-link a {
    color: #6c757d !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.section.cv-teaser .cv-teaser-link a:hover {
    color: #007bff !important;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .cv-teaser-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
}

.logo-bar {
    background: #fff;
    border: 0.0625em solid #e9ecef;
    border-radius: 0.5em;
    padding: 1em 0;
    text-align: center;
    margin: 0;
}

.logo-bar h3 {
    color: #333;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    text-transform: none;
    letter-spacing: normal;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0.25em;
    background: transparent;
    transition: all 0.3s ease;
    width: fit-content;
    height: fit-content;
}

.logo-item:hover {
    background: transparent;
    transform: translateY(-0.125em);
    box-shadow: 0 0.125em 0.5em rgba(0, 0, 0, 0.1);
}

.logo-image {
    max-width: 100%;
    height: 3em;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(.9);
    transition: all 0.3s ease;
}

/* Ensure SVGs have proper dimensions */

.logo-item:hover .logo-image {
    filter: grayscale(0%) opacity(1);
}

/* Specific logo hover effects with color overlays */
/* Nike logo - maroon overlay on hover */
.logo-item:hover .logo-image[src*="01 Logo_NIKE.svg"] {
    filter: grayscale(0%) opacity(1);
    transform: scale(0.85);
}

.logo-item:hover:has(.logo-image[src*="01 Logo_NIKE.svg"]) {
    background-color: #da3131; /* Maroon */
    border-radius: 0.2em;
    padding: 0.1em;
}

/* WNDR logo - purple overlay on hover */
.logo-item:hover .logo-image[src*="03 WNDR_LOGO_WHITE.svg"] {
    filter: grayscale(0%) opacity(1);
    transform: scale(0.85);
}

.logo-item:hover:has(.logo-image[src*="03 WNDR_LOGO_WHITE.svg"]) {
    background-color: #520d6d; /* Purple */
    border-radius: 0.2em;
    padding: 0.1em;
}

/* ========================================
   TOOLTIP STYLES (CLIENT LOGOS ONLY)
   ======================================== */

/* Custom tooltip styling for client logo items only - highlights section */
#highlights .logo-bar .logo-item {
    position: relative;
}

#highlights .logo-bar .logo-item::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.3);
    max-width: 200px;
    text-align: center;
    margin-bottom: 0.75rem;
}

#highlights .logo-bar .logo-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Walt Disney Family Museum logo - gold overlay on hover */
.logo-item:hover .logo-image[src*="04 waltdisneyfm.svg"] {
    filter: grayscale(0%) opacity(1);
    transform: scale(0.85);
}

.logo-item:hover:has(.logo-image[src*="04 waltdisneyfm.svg"]) {
    background-color: #ffcc22;
    border-radius: 0.2em;
    padding: 0.1em;
}

/* Specific logo sizing adjustments - Custom heights for individual logos */
.logo-image[src*="01 Logo_NIKE.svg"] {
    height: 1.40625em;
}

.logo-image[src*="02 capital one.svg"] {
    height: 1.546875em;
}

.logo-image[src*="03 WNDR_LOGO_WHITE.svg"] {
    height: 1.546875em;
    filter: grayscale(100%) brightness(0.3) opacity(0.7);
}

.logo-image[src*="04 waltdisneyfm.svg"] {
    height: 2.671875em;
}

.logo-image[src*="12 Main street america logo.png"] {
    height: 2.5875em;
}

.logo-image[src*="13 Utah Main Street Logo Vertical Black Text.png"] {
    height: 2.5875em;
}


/* ========================================
   MAIN CONTENT & SECTIONS
   ======================================== */

.main-content {
    padding: .25rem;
}

.section {
    max-width: 1000px;
    margin: 0 auto 1.5rem auto;
    padding: 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.section:nth-child(even) {
    background-color: #fafafa;
}

.section:hover {
    background-color: #f5f5f5;
}

/* Section titles with very pastel background colors */
.section h2 {
    font-weight: 300;
    color: #000;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #000;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
    position: relative;
    text-align: center;
}

/* Section titles - no background colors */

.section h3 {
    font-weight: 300;
    color: #000;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
}

.section p {
    margin-bottom: 1rem;
    color: #000;
    font-weight: 300;
}

/* ========================================
   SUMMARY STYLES
   ======================================== */

.summary-content p {
    margin-bottom: 1.5rem;
    color: #000;
    line-height: 1.7;
    font-weight: 300;
}

.summary-content a {
    color: #444 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: all 0.3s ease;
    position: relative;
}

.summary-content a::before {
    content: none;
}

.summary-content a:hover {
    color: #222 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* ========================================
   EDUCATION STYLES
   ======================================== */

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

.education-item {
    background-color: #fff;
    padding: 1.5rem;
    border: 1px solid #000;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.education-item:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.education-item h3 {
    font-weight: 300;
    color: #000;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
}

.institution, .instructor {
    font-weight: 300;
    color: #000;
    margin-bottom: 0.25rem;
}

.date {
    color: #000;
    font-style: italic;
    font-weight: 300;
}

.section .gpa {
    color: #000;
    font-weight: 500;
}

/* ========================================
   SKILLS STYLES
   ======================================== */

/* Skills logo bar - responsive full width layout */
#skills .logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem 0;
}

#skills .logo-item {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0.25em;
    background: transparent;
    transition: all 0.3s ease;
    height: fit-content;
}

#skills .logo-image {
    max-width: 100%;
    height: 3em;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Only JavaScript, React, and Runway logos get invert filter */
#skills .logo-item:has(img[alt="JavaScript"]) .logo-image,
#skills .logo-item:has(img[alt="React"]) .logo-image,
#skills .logo-item:has(img[alt="RunwayML"]) .logo-image {
    filter: invert(.8) grayscale(1);
}

/* Reset JavaScript, React, and Runway logos to original colors on hover */
#skills .logo-item:hover:has(img[alt="JavaScript"]) .logo-image,
#skills .logo-item:hover:has(img[alt="React"]) .logo-image,
#skills .logo-item:hover:has(img[alt="RunwayML"]) .logo-image {
    filter: invert(0) grayscale(0);
}

/* Keep certain logos in original colors (no invert) */


#skills .logo-item:hover .logo-image {
    filter: grayscale(0%) opacity(1);
}

/* Make Midjourney logo 2x bigger and allow overflow */

#skills .logo-item:has(img[alt="Midjourney"]) .logo-image {
    height: 5em;
    max-width: none;
}

/* Mobile: Midjourney logo sizing */
@media screen and (max-width: 768px) {
    #skills .logo-item:has(img[alt="Midjourney"]) .logo-image {
        height: 7em;
    }
    
    /* Mobile logo sizing */
    #skills .logo-image {
        height: 2.25em;
    }
    
    /* SVG specific styling */
    #skills .logo-image[src$=".svg"] {
        height: 1.875em;
        width: auto;
    }
    
    /* Midjourney special sizing */
    #skills .logo-item:has(img[alt="Midjourney"]) .logo-image {
        height: 3em;
    }
}

/* Mobile: Natural flexbox flow */
@media screen and (max-width: 768px) {
    #skills .logo-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        margin: 0 auto;
    }
    
    #skills .logo-item {
        flex: none;
        width: fit-content;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.25rem;
        transform: none;
        transition: transform 0.3s ease;
    }
    
    #skills .logo-item:hover {
        transform: scale(1.05);
    }
    
    #skills .logo-image {
        max-width: 100%;
        height: 1.875em;
        object-fit: contain;
        transform: none;
        transition: transform 0.3s ease;
    }
    
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

.skill-category {
    width: 100%;
    background-color: #fff;
    padding: 1.5rem;
    border: 1px solid #000;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.skill-category:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-weight: 300;
    color: #000;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
}

.skill-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #000;
}

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

.skill-name {
    color: #000;
    flex: 1;
    font-weight: 300;
}


/* ========================================
   EMPLOYMENT STYLES
   ======================================== */

.employment-grid {
    display: grid;
    gap: 1.25rem;
}

.employment-item {
    background-color: #fff;
    padding: 1.5rem;
    border: 1px solid #000;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    position: relative;
}

.employment-item:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.employment-item h3 {
    font-weight: 300;
    color: #000;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
}

.organization {
    font-weight: 300;
    color: #000;
    margin-bottom: 0.25rem;
}

.employment-item ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.employment-item li {
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 300;
}

.employment-item a {
    color: #444;
    text-decoration: none;
    border-bottom: none;
    transition: all 0.3s ease;
    position: relative;
}

.employment-item a::before {
    content: none;
}

.employment-item a:hover {
    color: #222;
    font-weight: 600;
    border-bottom: none;
}

/* ========================================
   COLLAPSIBLE EMPLOYMENT ITEMS
   ======================================== */

.employment-item .view-details-btn {
    display: none; /* Hidden by default */
    margin: 1rem 0 0 0;
    padding: 0.5rem 1rem;
    background: #5c5c5c;
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.employment-item .view-details-btn.show {
    display: block; /* Show when section is expanded */
}

.employment-item .view-details-btn:hover {
    background: #555;
}

.employment-item .view-details-btn.expanded {
    background: #333;
}

.employment-item ul {
    transition: all 0.4s ease;
}

.employment-item ul.collapsed {
    display: none;
}

.employment-item ul.expanded {
    display: block;
}

/* ========================================
   EXHIBITIONS STYLES
   ======================================== */

.exhibitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.exhibition-item {
    background-color: #fff;
    padding: 1.5rem;
    border: 1px solid #000;
    border-radius: 0.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.exhibition-item:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.exhibition-year {
    background-color: #fff;
    color: #000;
    padding: 0.5rem 0.75rem;
    font-weight: 400;
    height: fit-content;
    min-width: 60px;
    text-align: center;
    border-radius: 0.25rem;
    border: 1px solid #666;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

.exhibition-content {
    flex: 1;
}

.exhibition-content h4 {
    font-weight: 300;
    color: #000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
}

.exhibition-content p {
    margin-bottom: 0.25rem;
    color: #000;
    font-weight: 300;
}

/* ========================================
   INSTALLATIONS STYLES
   ======================================== */

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

.installation-item {
    background-color: #fff;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    border: 1px solid #000;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.installation-item:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.installation-item h3 {
    font-weight: 300;
    color: #000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
}

.installation-item p {
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 300;
}

.installation-item a {
    color: #000;
    text-decoration: none;
    font-weight: 300;
    border-bottom: 1px solid #000;
}

.installation-item a:hover {
    color: #666;
    background-color: #c0c0c0;
    border-bottom: 1px solid #666;
    transform: translateY(-0.0625rem);
    transition: all 0.3s ease;
}

.installation-item a:focus {
    outline: none;
    color: #666;
    background-color: #c0c0c0;
    border-bottom: 1px solid #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.3);
}

.project-link {
    display: inline-block;
    background-color: #fff;
    color: #000;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-weight: 400;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
    border-radius: 0.5rem;
    border: 1px solid #666;
}

.project-link:hover {
    background-color: #f8f8f8;
    color: #000;
    border: 1px solid #666;
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

.project-link:focus {
    outline: none;
    background-color: #f8f8f8;
    color: #000;
    border: 1px solid #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.3);
}

/* ========================================
   PUBLICATIONS STYLES
   ======================================== */

.publications-grid {
    display: grid;
    gap: 1rem;
}

.publication-item {
    background-color: #fff;
    padding: 1.5rem;
    border: 1px solid #000;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.publication-item:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.publication-item .date {
    color: #000;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.publication-item p {
    color: #000;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

/* ========================================
   AWARDS STYLES
   ======================================== */

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

.award-item {
    background-color: #f7fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #000;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.award-item:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.award-item .date {
    color: #000;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.award-item p {
    margin-bottom: 0.5rem;
    color: #000;
    font-weight: 300;
}

.award-item strong {
    color: #2d3748;
    font-weight: 600;
}

/* ========================================
   REFERENCES STYLES
   ======================================== */

.references-content {
    max-width: 1000px;
    margin: 0 auto;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.875rem;
    margin: 1.875rem 0;
    justify-items: stretch;
    align-items: stretch;
}

.reference-item {
    width: 100%;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #f8f9fa;
    padding: 1.5625rem;
    border-radius: 0.5rem;
    border: 1px solid #000;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    word-break: normal;
    overflow-wrap: break-word;
}

.references-grid.cv-references-equalized .reference-item {
    height: auto;
    min-height: var(--cv-reference-card-min-height, auto);
}

.reference-item:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.reference-item h3 {
    color: #333;
    margin-bottom: 0.9375rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
}

.reference-item p {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.4;
    font-weight: 300;
}

/* ========================================
   BUTTON STYLES (grayscale theme)
   ======================================== */

.request-contact-button {
    background: #333;
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.9375rem;
}

.request-contact-button:hover {
    background: #555;
}

.request-button {
    background: #333;
    color: white;
    border: none;
    padding: 0.75rem 1.875rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.request-button:hover {
    background: #555;
}

.password-button {
    background: #333;
    color: white;
    border: none;
    padding: 0.75rem 1.875rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.password-button:hover {
    background: #555;
}

.logout-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #666;
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background: #888;
    color: white;
    text-decoration: none;
}

/* ========================================
   FORM STYLES
   ======================================== */

.reference-request {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1.875rem;
    margin-top: 1.875rem;
}

.reference-request h3 {
    color: #333;
    margin-bottom: 0.9375rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 0.125rem solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 6rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 0.125rem rgba(51, 51, 51, 0.1);
}

.reference-note {
    margin-top: 0.9375rem;
    font-style: italic;
    color: #666;
}

/* ========================================
   PASSWORD PROTECTION STYLES
   ======================================== */

.password-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 2.5rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.password-form {
    margin-top: 1.25rem;
}

.password-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    margin-bottom: 0.9375rem;
    box-sizing: border-box;
}

.error-message {
    color: #dc3545;
    margin-top: 0.625rem;
}

/* ========================================
   FORM MESSAGE STYLES
   ======================================== */

.form-message {
    margin-top: 0.9375rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */

.mobile-nav {
    display: none;
    position: fixed;
    top: 0.6875rem;
    right: 0.6875rem;
    z-index: 10000;
    pointer-events: auto;
}

.hamburger {
    width: 3.515625rem;
    height: 3.515625rem;
    background-color: #867f9fcf;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.1875rem;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10003;
    pointer-events: auto;
}

.hamburger:hover {
    transform: scale(1.05);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.4);
}

.hamburger-line {
    width: 1.125rem;
    height: 0.125rem;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 0.0625rem;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(0.21875rem, 0.1875rem);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(0.21875rem, -0.1875rem);
}

.hamburger.active {
    z-index: 10003; /* Ensure hamburger/close button is above mobile menu when active */
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgb(228 218 237 / 86%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    z-index: 10002;
    padding: 5rem 0 3rem 0;
    overflow-y: auto;
    box-sizing: border-box;
    pointer-events: auto;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-width: 100vw;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
    transition: all 0.3s ease;
    padding: .625rem;
    border: .2rem solid #a799c4fa;
    text-align: center;
    min-width: 12.625rem;
    min-height: 0.1rem;
    max-width: calc(100vw - 2rem);
    width: calc(100vw - 9rem);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    margin: 0;
    background-color: #232225f1;
}

.mobile-menu a:hover {
    color: #000;
    background-color: #fff;
    border: 1px solid #fff;
}

/* Modal Buttons - Based on mobile-menu a styling - Reusable for any modal */
.modal-btn {
    color: #fff;
    text-decoration: none;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
    transition: all 0.3s ease;
    padding: 0.625rem;
    border: 0.2rem solid #a799c4fa;
    text-align: center;
    min-width: 12.625rem;
    min-height: 0.1rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    margin: 0;
    background-color: #232225f1;
    cursor: pointer;
    font-size: 1em;
}

.modal-btn-primary {
    background-color: #232225f1;
    border-color: #a799c4fa;
}

.modal-btn-primary:hover {
    color: #000;
    background-color: #fff;
    border-color: #fff;
}

.modal-btn-secondary {
    background-color: #3a3a3df1;
    border-color: #867f9fcf;
}

.modal-btn-secondary:hover {
    background-color: #f5f5f5;
    border-color: #867f9fcf;
    color: #333;
}

.mobile-jump-top {
    color: #fff;
    text-decoration: none;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.0625em;
    transition: all 0.3s ease;
    padding: 1rem 1.5rem;
    border: 1px solid transparent;
    text-align: center;
    min-width: 15.625rem;
    min-height: 3rem;
    max-width: calc(100vw - 2rem);
    width: calc(100vw - 2rem);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
    margin-bottom: 1rem;
}

.mobile-jump-top:hover {
    color: #000;
    background-color: #fff;
    border: 1px solid #fff;
}

.mobile-menu a.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 500 !important;
}


/* Paragraph-like div styling */
.paragraph-like {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: transparent;
    background-color: transparent;
    color: #333;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: none;
}

.footer p {
    font-weight: 300;
    color: #333;
}

.footer a {
    color: #333;
}

.footer a:hover {
    color: #111;
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-btn {
    background: #333;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.5rem rgba(51, 51, 51, 0.3);
}

.contact-btn:hover {
    background: #555;
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(51, 51, 51, 0.4);
}

.pdf-export-btn {
    background: #867f9fcf;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.5rem rgba(102, 102, 102, 0.3);
    text-decoration: none;
    display: inline-block;
    margin-left: 1rem;
}

.pdf-export-btn:hover {
    background: #888;
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(102, 102, 102, 0.4);
    color: white;
    text-decoration: none;
}

.contact-form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-form-container.show {
    opacity: 1;
    visibility: visible;
}

.contact-form-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(2rem);
    transition: transform 0.3s ease;
}

.contact-form-container.show .contact-form-content {
    transform: translateY(0);
}

.contact-form-content h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-weight: 600;
    text-align: center;
}

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


.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.submit-btn {
    background: #333;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
    background: #555;
    transform: translateY(-0.125rem);
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #545b62;
    transform: translateY(-0.125rem);
}

.message {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    z-index: 3000;
    animation: slideIn 0.3s ease;
}

.message.success {
    background: #28a745;
}

.message.error {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   RETURN TO TOP BUTTON
   ======================================== */

.return-to-top {
    position: fixed;
    bottom: 0.6875rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    width: 3.515625rem;
    height: 3.515625rem;
    background-color: #867f9fcf;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.3);
}

.return-to-top:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.4);
}

.return-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Hide mobile PDF button on desktop */
.mobile-pdf-export {
    display: none;
}

@media screen and (max-width: 768px) {
    .navigation {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    /* Mobile PDF Export Button */
    .mobile-pdf-export {
        display: inline-block !important;
        position: fixed;
        top: 0.6875rem;
        left: 0.6875rem;
        z-index: 10500;
        text-align: left;
        margin: 0;
        width: fit-content;
    }
    
    .mobile-pdf-btn {
        display: inline-block;
        background:#867f9fcf;
        color: #fff;
        text-decoration: none;
        padding: 0.625rem 0.9375rem;
        border-radius: 0.25rem;
        font-weight: 500;
        transition: background 0.3s ease;
        border: none;
        cursor: pointer;
        opacity: 0.8;
    }
    
    .mobile-pdf-btn:hover {
        background: #555;
        opacity: 1;
    }
    
    .container {
        margin: 0;
        box-shadow: none;
        margin-top: 6.25rem;
        max-width: 100vw;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .mobile-menu {
        padding: 5rem 0 4rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .nav-links {
        gap: 0.3rem;
        justify-content: center;
        padding: 0.4rem 0;
    }
    
    .nav-links a {
        padding: 0.4rem 0.6rem;
        letter-spacing: 0.3px;
    }
    
    .header {
        padding: 2rem 1rem 0 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
        padding: .5em;
    }
    
    .pdf-export-btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .main-content {
        padding: .25rem;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .installations-grid {
        grid-template-columns: 1fr;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .references-grid {
        grid-template-columns: 1fr;
    }
    
    
    .exhibitions-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .container {
        margin-top: 0;
    }
    
    .nav-links {
        gap: 0.25rem;
        justify-content: center;
    }
    
    .nav-links a {
        padding: 0.35rem 0.5rem;
        letter-spacing: 0.2px;
    }
    
    .impact-highlight {
        padding: 1.5rem;
        margin: 2rem 0 1.5rem 0;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .highlight-item {
        padding: 1rem;
    }
    
    .logo-grid {
        gap: 0.25rem;
    }
    
    .logo-item {
        padding: 0;
        width: fit-content;
        height: fit-content;
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }
    
    .logo-image {
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }
    
    .return-to-top {
        bottom: 0.6875rem;
        left: 50%;
        transform: translateX(-50%) translateY(1rem);
        width: 3.515625rem;
        height: 3.515625rem;
        font-size: 0.95rem;
    }
    
    .contact-btn {
        padding: 0.625rem 1.25rem;
    }
    
    .pdf-export-btn {
        padding: 0.625rem 1.25rem;
        margin-left: 0.5rem;
    }
    
    .contact-form-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .submit-btn,
    .cancel-btn {
        width: 100%;
        padding: 0.875rem;
    }
    
    .message {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .section {
        margin-bottom: 1.25rem;
        padding: 1rem;
    }
    
    
    .exhibition-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .exhibition-year {
        align-self: flex-start;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    @page {
        margin: 0.3in;
    }

    html {
        font-size: 86%;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        line-height: 1.4;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Online-only chrome (save-to-PDF uses the same print sheet) */
    .navigation,
    .mobile-nav,
    .mobile-menu,
    .mobile-pdf-export,
    .pdf-export-btn,
    .mobile-pdf-btn,
    .pdf-download-container,
    #pdf-download-btn,
    .return-to-top,
    #returnToTop,
    .contact-form-container,
    .footer,
    .scroll-fade-bottom,
    .page-fade-overlay,
    #page-fade-overlay,
    #pageFadeOverlay,
    .view-more-btn,
    .view-details-btn,
    button[class*="view"],
    #contactForm,
    .contact-form-content {
        display: none !important;
    }

    .container,
    #top {
        max-width: none !important;
        width: 100% !important;
        margin: 0 auto !important;
        min-height: 0 !important;
        height: auto !important;
        background: #fff !important;
        box-shadow: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .header {
        background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%) !important;
        color: #000 !important;
        box-shadow: none !important;
        padding: 0.55rem 0.45rem 0.4rem !important;
        border-bottom: 0.1rem solid #e0e0e0 !important;
        margin-bottom: 0.35rem !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .main-content {
        padding: 0.15rem 0.2rem 0.45rem !important;
    }

    /* Sections span pages; keep heading with following block when possible */
    .section {
        break-inside: auto;
        page-break-inside: auto;
        box-shadow: none !important;
        max-width: 100% !important;
        margin-bottom: 0.55rem !important;
        padding: 0.45rem 0.5rem !important;
    }

    .section:nth-child(even) {
        background-color: #fafafa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .section h2 {
        break-after: avoid;
        page-break-after: avoid;
        orphans: 2;
        widows: 2;
        margin-top: 0.1rem !important;
        margin-bottom: 0.2rem !important;
        padding: 0.15rem 0.3rem !important;
    }

    .summary-content,
    .summary-content.collapsible-content,
    #summary.section {
        break-inside: auto;
        page-break-inside: auto;
    }

    .summary-content.avoid-breaks {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .summary-content p,
    #summary .summary-content p,
    .section#summary .summary-content p {
        break-inside: auto;
        page-break-inside: auto;
        orphans: 2;
        widows: 2;
        margin-bottom: 0.35rem !important;
    }

    .summary-content.avoid-breaks p {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Grids: tighter gaps; skills + highlights + references use 3 columns for density */
    .highlights-grid,
    .skills-grid,
    .references-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.22rem !important;
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    .highlights-grid,
    .skills-grid {
        align-items: start !important;
    }

    .references-grid,
    .references-grid.cv-references-equalized {
        align-items: start !important;
    }

    .references-grid.cv-references-equalized {
        --cv-reference-card-min-height: unset !important;
    }

    .reference-item,
    .references-grid.cv-references-equalized .reference-item {
        height: auto !important;
        min-height: 0 !important;
        align-self: start !important;
    }

    .reference-item h3 {
        margin-bottom: 0.35rem !important;
    }

    .reference-item p {
        margin-bottom: 0.2rem !important;
    }

    .reference-item p:last-child {
        margin-bottom: 0 !important;
    }

    /* Print column pack (cv-masonry.js): 3 independent vertical stacks */
    .highlights-grid.cv-print-packed,
    .skills-grid.cv-print-packed {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.22rem !important;
        align-items: start !important;
    }

    .cv-print-pack-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.22rem !important;
        min-width: 0 !important;
    }

    .cv-print-pack-col > .highlight-item,
    .cv-print-pack-col > .skill-category {
        width: 100% !important;
        flex: 0 0 auto !important;
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    .skill-category h3,
    .highlight-item h3 {
        break-after: avoid;
        page-break-after: avoid;
    }

    .skill-item {
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    .employment-grid,
    .education-grid,
    .exhibitions-grid,
    .installations-grid,
    .publications-grid,
    .awards-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.22rem !important;
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    /* Compact cards; may split across pages to avoid huge blank gaps */
    .reference-item,
    .education-item,
    .award-item,
    .exhibition-item,
    .installation-item,
    .highlight-item,
    .impact-highlight,
    .publication-item {
        break-inside: auto;
        page-break-inside: auto;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 0.35rem 0.4rem !important;
        margin-bottom: 0.2rem !important;
    }

    .skill-category {
        break-inside: auto;
        page-break-inside: auto;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 0.35rem 0.4rem !important;
        margin-bottom: 0.2rem !important;
    }

    .skill-item {
        padding: 0.12rem 0 !important;
        margin-bottom: 0 !important;
    }

    /* Smaller copy inside cards; allow breaks between paragraphs/lines */
    .reference-item p,
    .education-item p,
    .award-item p,
    .exhibition-item p,
    .installation-item p,
    .highlight-item p,
    .impact-highlight p,
    .publication-item p,
    .skill-category p,
    .skill-category .skill-name,
    .exhibition-content p,
    .employment-item p,
    .employment-item li {
        font-size: 0.7rem !important;
        line-height: 1.35 !important;
        break-inside: auto;
        page-break-inside: auto;
    }

    .employment-item {
        break-inside: auto;
        page-break-inside: auto;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        margin-bottom: 0.3rem !important;
        padding-bottom: 0.2rem !important;
    }

    .employment-item h3 {
        break-after: avoid;
        page-break-after: avoid;
        margin-bottom: 0.12rem !important;
    }

    .employment-item ul,
    .employment-item li {
        break-inside: auto;
        page-break-inside: auto;
        orphans: 2;
        widows: 2;
    }

    .employment-item ul {
        margin-top: 0.12rem !important;
        padding-left: 0.85rem !important;
    }

    .employment-item li {
        margin-bottom: 0.12rem !important;
    }

    #skills .logo-bar {
        break-after: avoid;
        page-break-after: avoid;
        padding: 0.2rem 0 !important;
        margin: 0.2rem 0 !important;
    }

    #skills.section,
    #references.section,
    #summary.section {
        break-inside: auto;
        page-break-inside: auto;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    .reference-item a,
    .reference-item a:link,
    .reference-item a:visited,
    .reference-item a:hover,
    .reference-item a:active {
        text-decoration: none;
        border-bottom: none;
    }

    /* Collapsibles: full content in print */
    .expanded-content,
    .employment-grid.expanded-content,
    .installations-grid.expanded-content,
    .publications-grid.expanded-content,
    .awards-grid.expanded-content,
    .summary-content.expanded-content,
    .collapsible-content {
        max-height: none !important;
        overflow: visible !important;
    }

    .expanded-content::after,
    .employment-grid.expanded-content::after,
    .installations-grid.expanded-content::after,
    .publications-grid.expanded-content::after,
    .awards-grid.expanded-content::after,
    .summary-content.expanded-content::after,
    .collapsible-content::after {
        display: none !important;
    }

    .collapsible-content,
    .employment-item ul.collapsed,
    .employment-item ul {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .logo-bar {
        padding: 0.2rem 0 !important;
        margin: 0.2rem 0 !important;
    }

    .logo-grid {
        gap: 0.12rem !important;
    }

    .logo-item {
        transform: none !important;
    }

    #skills .logo-image {
        max-height: 22px !important;
        width: auto !important;
        height: auto !important;
    }

    p,
    li {
        orphans: 2;
        widows: 2;
    }

    .section h3,
    .employment-item h3,
    .skill-category h3,
    .highlight-item h3 {
        margin-top: 0.1rem !important;
        margin-bottom: 0.12rem !important;
    }

    .project-link {
        display: none !important;
    }
}



/* ========================================
   COLLAPSIBLE SECTIONS - PURE CSS
   ======================================== */

.collapsible-content {
    position: relative;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.05s ease-out;
}

/* Professional summary - smaller collapse height */
.summary-content.collapsible-content {
    max-height: 200px;
}

.collapsible-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* For sections with alternating backgrounds */
.section:nth-child(even) .collapsible-content::after {
    background: linear-gradient(transparent, rgba(250, 250, 250, 0.9));
}

/* Disable fade effect when section is expanded */
.collapsible-content.expanded::after {
    opacity: 0;
    pointer-events: none;
}

.view-more-btn {
    display: block;
    margin: 1rem auto 0;
    padding: 0.75rem 1.875rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.view-more-btn:hover {
    background: #555;
}

/* ========================================
   COVER LETTER SIGNATURE
   ======================================== */

.cover-letter-signature {
    display: block;
    width: 220px;
    max-width: 60%;
    height: auto;
    margin: 20px 0 8px 0;
}


/* ========================================
   SCROLL FADE EFFECT
   ======================================== */

.scroll-fade-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25vh;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.8));
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-fade-bottom.visible {
    opacity: 1;
}

/* For sections with alternating backgrounds */
.section:nth-child(even) ~ .scroll-fade-bottom {
    background: linear-gradient(transparent, rgba(250, 250, 250, 0.8));
}

/* ========================================
   PAGE FADE OVERLAY FOR COLLAPSE TRANSITIONS
   ======================================== */

.page-fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}


.page-fade-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Allow clicks when active (during transitions) */
}

.page-fade-overlay:not(.active) {
    pointer-events: none; /* Ensure it doesn't block when inactive */
}

.page-fade-overlay.active .loading-bar::before {
    animation: loadingShrink 0.4s ease-out forwards;
}

/* Loading bar inside the whiteout overlay */
.loading-bar {
    width: 80vw;
    max-width: 800px;
    height: 4px;
    background: rgba(255, 255, 255, 1);
    border-radius: 0.125rem;
    overflow: hidden;
    position: relative;
    opacity: 1;
}

.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(85, 85, 85, 0.5);
    border-radius: 0.125rem;
    animation: none;
}

@keyframes loadingShrink {
    0% {
        width: 100%;
        left: 0%;
        opacity: 1;
    }
    70% {
        width: 0%;
        left: 50%;
        opacity: 1;
    }
    80% {
        width: 0%;
        left: 50%;
        opacity: 0;
    }
    100% {
        width: 0%;
        left: 50%;
        opacity: 0;
    }
}

/* ========================================
   ABOUT PAGE (herbiecreative.com/about)
   Hybrid: site header + bubbles + CV document layout
   ======================================== */

body.about-page {
    background-color: transparent;
}

body.about-page .about-page__document {
    position: relative;
    z-index: 2;
    isolation: isolate;
    background: none;
    background-color: transparent;
    pointer-events: none;
}

body.about-page .about-page__document::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    mask-image:
        linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

body.about-page .about-page__document a,
body.about-page .about-page__document button,
body.about-page .about-page__document input,
body.about-page .about-page__document textarea,
body.about-page .about-page__document select,
body.about-page .about-page__document #name-header,
body.about-page .about-page__document #returnToTop,
body.about-page .about-page__document .return-to-top,
body.about-page .about-page__document .color-scheme-changer,
body.about-page .about-page__document .nav-links a,
body.about-page .about-page__document p,
body.about-page .about-page__document h1,
body.about-page .about-page__document h2,
body.about-page .about-page__document h3,
body.about-page .about-page__document li,
body.about-page .about-page__document .subtitle,
body.about-page .about-page__document .email-address,
body.about-page .about-page__document .summary-content,
body.about-page .about-page__document .about-feature,
body.about-page .about-page__document .about-portrait,
body.about-page .about-page__document .about-portrait__frame,
body.about-page .about-page__document .about-portrait img,
body.about-page .about-page__document .herbie-site-owner-bar,
body.about-page .about-page__document .herbie-site-owner-bar * {
    pointer-events: auto;
}

body.about-page .site-header {
    position: relative;
    z-index: 3;
    background: transparent;
    background-color: transparent;
}

body.about-page .container.about-page__document .header {
    background: none;
    background-color: transparent;
    box-shadow: none;
}

body.about-page .navigation {
    background: transparent;
    backdrop-filter: none;
}

body.about-page .nav-links a,
body.about-page .nav-links a:hover,
body.about-page .nav-links a.active {
    background-color: transparent;
    background: none;
    box-shadow: none;
}

body.about-page .nav-links a:hover,
body.about-page .nav-links a.active {
    border-color: #ccc;
}

body.about-page .section,
body.about-page .section:nth-child(even),
body.about-page .section:hover {
    background: none;
    background-color: transparent;
    box-shadow: none;
}

body.about-page .section h2 {
    background: none;
    background-color: transparent;
    box-shadow: none;
}

body.about-page .scroll-fade-bottom {
    display: none;
}

/* Who I Am — portrait + copy split */
body.about-page .about-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 0.75rem;
}

body.about-page .about-feature__copy {
    min-width: 0;
    order: 1;
}

body.about-page .about-portrait {
    order: 2;
    margin: 1.25rem auto 0;
    justify-self: center;
    width: min(100%, 14rem);
    max-width: 85%;
}

body.about-page .about-portrait__frame {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    transform: rotate(-1.25deg);
    box-shadow:
        0 0.25rem 0.5rem rgba(0, 0, 0, 0.1),
        0 0.75rem 1.5rem rgba(var(--primary-color-rgb, 3, 166, 161), 0.18),
        0 0 0 2px rgba(255, 255, 255, 0.85),
        0 0 0 4px rgba(var(--primary-color-rgb, 3, 166, 161), 0.3),
        0 0 0 6px rgba(var(--secondary-color-rgb, 255, 166, 115), 0.2);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

body.about-page .about-portrait__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        165deg,
        transparent 55%,
        rgba(0, 0, 0, 0.04) 100%
    );
}

body.about-page .about-portrait__frame img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

body.about-page .about-portrait__caption {
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #555;
}

@media screen and (min-width: 768px) {
    body.about-page .about-feature {
        grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
        gap: 2rem 2.5rem;
        align-items: start;
        padding: 0 1rem;
    }

    body.about-page .about-feature__copy {
        order: 2;
    }

    body.about-page .about-portrait {
        order: 1;
        margin: 0.5rem 0 0;
        justify-self: start;
        width: 100%;
        max-width: 14rem;
    }

    body.about-page .about-portrait__frame:hover {
        transform: rotate(0deg);
        box-shadow:
            0 0.35rem 0.75rem rgba(0, 0, 0, 0.12),
            0 1rem 2rem rgba(var(--primary-color-rgb, 3, 166, 161), 0.22),
            0 0 0 2px rgba(255, 255, 255, 0.9),
            0 0 0 4px rgba(var(--primary-color-rgb, 3, 166, 161), 0.35),
            0 0 0 6px rgba(var(--secondary-color-rgb, 255, 166, 115), 0.25);
    }
}

@media screen and (min-width: 1024px) {
    body.about-page .about-feature {
        grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
        gap: 2.25rem 3rem;
    }

    body.about-page .about-portrait {
        max-width: 16rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.about-page .about-portrait__frame {
        transform: none;
        transition: none;
    }

    body.about-page .about-portrait__frame:hover {
        transform: none;
    }
}

@media screen and (max-width: 768px) {
    body.about-page .navigation {
        display: block;
    }
}

/* Print overrides (must follow screen-only collapsible / fade rules above) */
@media print {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .scroll-fade-bottom,
    .scroll-fade-bottom.visible,
    #scrollFadeBottom,
    #scroll-fade-bottom,
    .page-fade-overlay,
    .page-fade-overlay.active,
    #page-fade-overlay,
    #pageFadeOverlay,
    .loading-bar,
    .loading-bar::before,
    .color-scheme-changer,
    .herbie-site-owner-bar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        background: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    .collapsible-content,
    .summary-content.collapsible-content,
    .summary-content,
    .expanded-content {
        position: static !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }

    .collapsible-content::after,
    .summary-content.collapsible-content::after,
    .summary-content::after,
    .section:nth-child(even) .collapsible-content::after,
    .expanded-content::after,
    .employment-grid.expanded-content::after,
    .installations-grid.expanded-content::after,
    .publications-grid.expanded-content::after,
    .awards-grid.expanded-content::after,
    #highlights .logo-bar .logo-item::after {
        display: none !important;
        content: none !important;
        height: 0 !important;
        background: none !important;
        opacity: 0 !important;
    }

    .employment-item ul.collapsed {
        display: block !important;
    }

    body.about-page .about-page__document::before {
        display: none !important;
        content: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    body.about-page {
        background: #fff !important;
    }

    .references-grid,
    .references-grid.cv-references-equalized {
        align-items: start !important;
        --cv-reference-card-min-height: unset !important;
    }

    .reference-item,
    .references-grid.cv-references-equalized .reference-item {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        align-self: start !important;
    }
}
