* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Judson', serif;
    background: #fff;
    color: #111;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px 0 48px;
    background: #fff;
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Homepage header styling */
.navbar.homepage-header {
    background: transparent;
    justify-content: center;
    padding: 60px 48px 0 48px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.logo-container:hover {
    opacity: 0.8;
}

.logo-container:hover .logo {
    transform: scale(1.05);
}

.logo {
    height: 120px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

/* Logo glow effect when clicked */
.logo.logo-clicked {
    filter: drop-shadow(0 0 15px rgba(231, 84, 128, 0.6)) brightness(1.1);
    transform: scale(1.02);
}

/* Homepage logo styling - 2x larger and white */
.navbar.homepage-header .logo {
    height: 240px;
    filter: brightness(0) saturate(100%) invert(1) contrast(1) !important;
    -webkit-filter: brightness(0) saturate(100%) invert(1) contrast(1) !important;
    position: relative;
    z-index: 1500;
}

.nav-tabs {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

/* Keep navigation visible on homepage header */
.navbar.homepage-header .nav-tabs {
    display: flex;
    position: absolute;
    top: 60px;
    right: 48px;
}

.plus-menu-toggle {
    font-size: 4rem;
    font-weight: 300;
    color: #111;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.2s;
    user-select: none;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Homepage navigation button - white text */
.navbar.homepage-header .plus-menu-toggle {
    color: #fff;
}

.plus-menu-toggle:hover {
    color: #e75480;
}

/* Homepage navigation button hover - lighter white */
.navbar.homepage-header .plus-menu-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

.plus-menu-toggle.active {
    transform: rotate(45deg);
}

.menu-items {
    position: absolute;
    top: 100px;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 40px 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
}

.menu-items.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 400px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-items a {
    text-decoration: none;
    color: #111;
    font-family: 'Judson', serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
    padding: 8px 0;
    text-align: left;
    line-height: 1.2;
}

/* Homepage menu items - white text */
.navbar.homepage-header .menu-items a {
    color: #fff;
}

.menu-items a:hover {
    color: #e75480;
}

/* Homepage menu items hover - lighter white with glow */
.navbar.homepage-header .menu-items a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 
        0 0 3px #e75480,
        0 0 6px #e75480,
        0 0 9px rgba(231, 84, 128, 0.8),
        0 0 12px rgba(231, 84, 128, 0.6),
        0 0 15px rgba(231, 84, 128, 0.4);
}

/* Page Sections */
.page-section {
    display: none;
    padding: 140px 48px 60px 48px;
    min-height: calc(100vh - 200px);
}

/* Homepage Styles */
#home {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

/* Ensure body has no margin when on homepage */
body.homepage-active {
    margin: 0;
    padding: 0;
}

.home-container {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

.home-background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.home-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
}

/* Social Media Icons */
.social-media-icons {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1500;
}

.social-icon {
    color: #fff;
    transition: all 0.3s ease;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

/* Ensure navigation remains visible over the background */
.menu-container {
    z-index: 1000;
    position: relative;
}

.menu-icon,
.menu-items {
    z-index: 1001;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* When menu is active, shift entire container down */
body.menu-active .about-container {
    transform: translateY(180px);
}

/* Add universal project detail container shift rule */
body.menu-active .project-detail-container {
    transform: translateY(180px);
}

/* Also shift project detail content wrapper */
body.menu-active .project-detail-content {
    transform: translateY(180px);
}

.about-image {
    display: flex;
    justify-content: center;
}

.portrait {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
}

.about-text {
    font-family: 'Judson', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #111;
}

/* Projects Page Styles */
.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* When menu is active, shift projects container down */
body.menu-active .projects-container {
    transform: translateY(180px);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
    padding: 0 20px;
}

.project-item {
    text-align: center;
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

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

.project-title {
    font-family: 'Judson', serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

.project-title a {
    text-decoration: none;
    color: #111;
    transition: color 0.2s;
}

.project-title a:hover {
    color: #e75480;
}

/* Project Detail Pages */
.project-detail {
    display: none;
    padding: 140px 48px 60px 48px;
    min-height: calc(100vh - 200px);
}

.project-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* Back button styling - Updated Design */
.back-button {
    background: transparent;
    color: #000;
    border: 2px solid #000;
    padding: 10px 18px;
    font-size: 14px;
    font-family: 'Judson', serif;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.back-button:hover {
    background: #e75480;
    color: #fff;
    border-color: #e75480;
    transform: translateY(-1px);
}

/* CV page styling - Professional Design with Pink Headers */
.cv-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 3rem;
    font-family: 'Judson', serif !important;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Force Judson font on ALL CV elements */
.cv-container,
.cv-container *,
.cv-container h2,
.cv-container h3,
.cv-container h4,
.cv-container p,
.cv-container li,
.cv-container a,
.cv-container strong,
.cv-container span {
    font-family: 'Judson', serif !important;
}

/* Main CV Title - Large and Centered */
.cv-container h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 400;
    color: #e75480; /* Pink color */
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Main Section Container */
.cv-main-section {
    margin-bottom: 4rem;
}

/* Main Section Titles - Pink Headers like reference */
.cv-main-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e75480; /* Pink color for main headers */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e75480;
}

/* Subsection Container */
.cv-subsection {
    margin-bottom: 2rem;
    margin-left: 1rem;
}

/* Subsection Titles - Also Pink */
.cv-subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e75480; /* Pink color for subsection headers */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* CV Lists - Clean Bullet Points */
.cv-list {
    list-style-type: disc !important;
    padding-left: 1.5rem;
    margin: 0 0 1rem 1rem;
}

.cv-list li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #444;
}

/* Bold Text in Lists */
.cv-list li strong {
    font-weight: 700;
    color: #222;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Date Styling */
.cv-date {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    display: inline;
    margin-left: 0.5rem;
}

/* Languages List - Horizontal Layout */
.cv-languages {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    list-style-type: disc !important;
    padding-left: 1.5rem;
    margin: 0 0 1rem 1rem;
}

.cv-languages li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
}

/* Links in CV */
.cv-list a {
    color: #e75480;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cv-list a:hover {
    text-decoration: underline;
    color: #d63874;
}

/* Section Separator - Clean Line */
.cv-separator {
    border: none;
    border-top: 1px solid #ddd;
    margin: 3rem auto;
    width: 80%;
    height: 0;
}

/* Two Column Layout for Desktop */
@media (min-width: 769px) {
    .cv-container {
        padding: 4rem 4rem;
    }
    
    /* Create two-column layout for main sections */
    .cv-content-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        margin-top: 2rem;
    }
}

/* Mobile Responsive CV */
@media (max-width: 768px) {
    .cv-container {
        padding: 2rem 1.5rem;
        margin-top: 1rem; /* Ensure CV starts at proper position */
    }
    
    .cv-container h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
        letter-spacing: 1px;
        margin-top: 0; /* Ensure main title is at top */
    }
    
    .cv-main-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .cv-subsection-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .cv-subsection {
        margin-left: 0;
        margin-bottom: 1.5rem;
    }
    
    .cv-list {
        padding-left: 1.2rem;
        margin: 0 0 1rem 0;
    }
    
    .cv-list li {
        margin-bottom: 0.9rem;
        font-size: 0.9rem;
    }
    
    .cv-languages {
        gap: 1.2rem;
        padding-left: 1.2rem;
        margin: 0 0 1rem 0;
    }
    
    .cv-separator {
        margin: 2rem auto;
        width: 90%;
    }
}

.project-detail h2 {
    font-family: 'Judson', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #111;
}

.project-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.detail-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.detail-text {
    font-family: 'Judson', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #111;
}

.detail-text p {
    margin-bottom: 1.5em;
}

.detail-text a {
    color: #111;
    text-decoration: underline;
    transition: color 0.2s;
}

.detail-text a:hover {
    color: #e75480;
}

/* Publications & Writing Section Styles */
.publications-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    transition: transform 0.3s ease;
}

/* When menu is active, shift publications container down */
body.menu-active .publications-container {
    transform: translateY(180px);
}

.publications-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px auto;
    padding: 40px 30px;
    background: rgba(250, 250, 250, 0.7);
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.publications-intro p {
    font-family: 'Judson', serif !important;
    font-size: 1.2em;
    line-height: 1.7;
    color: #2c2c2c;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.publication-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin: 0 auto;
}

.publication-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #e75480;
}

.publication-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.publication-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    background: linear-gradient(to bottom, #fff 0%, #fafafa 100%);
}

.publication-title {
    font-family: 'Judson', serif !important;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    letter-spacing: 0.3px;
}

.publication-year {
    font-family: 'Judson', serif !important;
    font-size: 1rem;
    color: #e75480;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publication-description {
    font-family: 'Judson', serif !important;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 25px 0;
    flex-grow: 1;
    letter-spacing: 0.1px;
}

.publication-link {
    font-family: 'Judson', serif !important;
    font-size: 0.95rem;
    color: #e75480;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    padding: 12px 20px;
    border: 2px solid #e75480;
    border-radius: 25px;
    text-align: center;
    background: transparent;
    align-self: flex-start;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.publication-link:hover {
    background: #e75480;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 84, 128, 0.3);
}

/* Press Section Styles */
.press-container {
    max-width: 1400px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

body.menu-active .press-container {
    transform: translateY(180px);
}

.press-container h2 {
    font-family: 'Judson', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #111;
}

/* Press Header with Contact Navigation */
.press-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.press-header h2 {
    margin-bottom: 0;
    flex-grow: 1;
}

.contact-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Judson', serif;
    font-size: 2.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-nav:hover {
    transform: translateY(-2px);
}

.contact-text {
    color: #111; /* Black text */
}

.contact-arrow {
    color: #e75480; /* Pink arrow */
    transition: transform 0.3s ease;
}

.contact-nav:hover .contact-arrow {
    transform: translateX(2px);
}

/* Hide Press header on desktop only */
.press-header h2 {
    display: none;
}

/* Hide Contact navigation on desktop only */
.contact-nav {
    display: none;
}

/* Hide mobile press bottom navigation on desktop */
.press-contact-nav {
    display: none;
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.press-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    max-width: 400px;
    margin: 0 auto;
}

.press-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.press-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.press-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

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

.press-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.press-title {
    font-family: 'Judson', serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.3;
    color: #111;
    margin: 0 0 8px 0;
}

.press-publication {
    font-family: 'Judson', serif;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.press-date {
    font-family: 'Judson', serif;
    font-size: 0.8rem;
    color: #999;
    margin: 0 0 12px 0;
}

.press-link {
    font-family: 'Judson', serif;
    font-size: 0.9rem;
    color: #e75480;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
    margin-top: auto;
    padding: 6px 12px;
    border: 1px solid #e75480;
    border-radius: 20px;
    text-align: center;
    background: transparent;
    align-self: flex-start;
}

.press-link:hover {
    background: #e75480;
    color: #fff;
}

/* Tattoo Documentation Section Styles */
.tattoo-doc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    transition: transform 0.3s ease;
    text-align: center;
}

.tattoo-doc-container h2 {
    font-family: 'Judson', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #111;
}

.tattoo-images {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    max-width: 100%;
}

.tattoo-images img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    /* Override any conflicting styles */
    object-position: center !important;
}

/* Link styling for tattoo documentation */
.detail-text a {
    color: #111;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.detail-text a:hover {
    color: #e75480;
}

/* Contact Section Styles */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s ease;
    text-align: center;
}

.contact-container h2 {
    font-family: 'Judson', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #e75480; /* Pink color */
    text-transform: uppercase; /* All caps */
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-family: 'Judson', serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #111;
    margin-bottom: 1.2em;
}

.contact-content a {
    color: #111;
    text-decoration: underline;
    transition: color 0.2s;
}

.contact-content a:hover {
    color: #e75480;
}

/* Contact page social media icons */
.contact-social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    padding-bottom: 40px;
}

.contact-social-icons .social-icon {
    color: #111;
    transition: all 0.3s ease;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.contact-social-icons .social-icon:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-social-icons .social-icon svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.contact-social-icons .social-icon:hover svg {
    transform: scale(1.1);
}

/* Mobile Navigation Tabs - Only for homepage */
.mobile-nav-tabs {
    display: none;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1500;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    width: 100%;
    padding: 0 20px;
}

.mobile-nav-tabs a {
    font-family: 'Judson', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 20px;
    backdrop-filter: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

    .mobile-nav-tabs a:hover {
        color: #e75480;
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
    }

/* Projects Navigation */
.mobile-projects-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 0;
    margin-top: 30px;
}

.mobile-projects-nav:hover {
    transform: translateY(-2px);
}

.projects-text {
    font-family: 'Judson', serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.projects-arrow {
    transition: transform 0.3s ease;
}

.mobile-projects-nav:hover .projects-arrow {
    transform: translateX(2px);
}

/* Next Project Navigation - Hidden on desktop */
.mobile-next-nav {
    display: none;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 30px;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e75480; /* Pink color for NEXT → text */
    font-family: 'Judson', serif;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-next-nav:hover {
    transform: translateY(-2px);
}

.next-arrow {
    transition: transform 0.3s ease;
}

.mobile-next-nav:hover .next-arrow {
    transform: translateX(2px);
}

/* Desktop Next Project Navigation */
.desktop-next-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 30px;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Judson', serif;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.desktop-next-nav:hover {
    transform: translateY(-2px);
}

.next-text-desktop {
    color: #111; /* Black text */
}

.next-arrow-desktop {
    color: #e75480; /* Pink arrow */
    transition: transform 0.3s ease;
}

.desktop-next-nav:hover .next-arrow-desktop {
    transform: translateX(2px);
}

/* Desktop Press Navigation */
.desktop-press-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 30px;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Judson', serif;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.desktop-press-nav:hover {
    transform: translateY(-2px);
}

.press-text-desktop {
    color: #111; /* Black text */
}

.press-arrow-desktop {
    color: #e75480; /* Pink arrow */
    transition: transform 0.3s ease;
}

.desktop-press-nav:hover .press-arrow-desktop {
    transform: translateX(2px);
}

/* Hide mobile-only press navigation on desktop */
.mobile-press-nav {
    display: none;
}

/* Mobile Responsive Styles */

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 20px 0 20px;
    }
    
    .navbar.homepage-header {
        padding: 40px 20px 0 20px;
    }
    
    .navbar.homepage-header .nav-tabs {
        display: none; /* Hide desktop navigation on mobile homepage */
    }
    
    /* Show mobile navigation tabs only on homepage mobile */
    #home .mobile-nav-tabs {
        display: flex;
    }
    
    .logo {
        height: 80px;
    }
    
    .navbar.homepage-header .logo {
        height: 160px;
    }
    
    .plus-menu-toggle {
        font-size: 3rem;
        width: 60px;
        height: 60px;
    }
    
    .page-section {
        padding: 100px 20px 40px 20px;
        min-height: calc(100vh - 140px);
    }
    
    /* Mobile menu positioning with improved animations */
    .menu-items {
        top: 80px;
        right: 10px;
        padding: 30px 20px;
        min-width: 200px;
        background: transparent;
        backdrop-filter: none;
        border-radius: 0;
        box-shadow: none;
        transform: translateY(-30px) scale(0.95);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 0;
        overflow: hidden;
    }
    
    .menu-items.active {
        transform: translateY(0) scale(1);
        max-height: 500px;
        padding: 30px 20px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .menu-items a {
        font-size: 1.2rem;
        padding: 15px 0;
        transform: translateX(-20px);
        opacity: 0;
        transition: all 0.3s ease;
        transition-delay: 0.1s;
    }
    
    .menu-items.active a {
        transform: translateX(0);
        opacity: 1;
    }
    
    /* Stagger animation for menu items */
    .menu-items.active a:nth-child(1) { transition-delay: 0.1s; }
    .menu-items.active a:nth-child(2) { transition-delay: 0.15s; }
    .menu-items.active a:nth-child(3) { transition-delay: 0.2s; }
    .menu-items.active a:nth-child(4) { transition-delay: 0.25s; }
    
    /* Mobile Homepage: Enhanced pink glow around navigation text */
    .navbar.homepage-header .menu-items a {
        text-shadow: 
            0 0 3px #e75480,
            0 0 6px #e75480,
            0 0 9px rgba(231, 84, 128, 0.8),
            0 0 12px rgba(231, 84, 128, 0.6),
            0 0 15px rgba(231, 84, 128, 0.4);
        color: #fff !important; /* Ensure white text is maintained */
    }
    
    /* Mobile: Enhanced content shift when menu is active - prevent overlap */
    body.menu-active .about-container {
        transform: translateY(350px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    body.menu-active .projects-container {
        transform: translateY(350px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    body.menu-active .publications-container {
        transform: translateY(350px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    body.menu-active .press-container {
        transform: translateY(350px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    body.menu-active .contact-container {
        transform: translateY(350px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    body.menu-active .cv-container {
        transform: translateY(350px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Ensure project detail content also shifts on mobile */
    body.menu-active .project-detail-container {
        transform: translateY(350px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Also shift project detail content wrapper on mobile */
    body.menu-active .project-detail-content {
        transform: translateY(350px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Smooth transitions for content containers */
    .about-container,
    .projects-container,
    .publications-container,
    .press-container,
    .contact-container,
    .cv-container,
    .project-detail-container,
    .project-detail-content {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Mobile Projects Navigation */
    .mobile-projects-nav {
        position: relative;
        bottom: auto;
        right: auto;
        order: 2; /* Ensure it appears after text on mobile */
        margin-top: 30px;
    }
    
    /* Mobile Next Project Navigation */
    .mobile-next-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 30px;
        padding: 12px 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        color: #e75480; /* Pink color for NEXT → text */
        font-family: 'Judson', serif;
        font-size: 0.9rem;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }
    
    .mobile-next-nav:hover {
        transform: translateY(-2px);
    }
    
    .next-arrow {
        transition: transform 0.3s ease;
    }
    
    .mobile-next-nav:hover .next-arrow {
        transform: translateX(2px);
    }
    
    /* Mobile Project Detail Layout */
    .project-detail-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .detail-images {
        order: 1; /* Images after title */
        max-width: 100%;
        margin: 0;
    }
    
    .detail-text {
        order: 2; /* Text after images */
    }
    
.mobile-projects-nav:hover {
    transform: translateY(-2px);
}

.projects-text {
    font-family: 'Judson', serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.projects-arrow {
    transition: transform 0.3s ease;
}

.mobile-projects-nav:hover .projects-arrow {
    transform: translateX(2px);
}

/* Hide desktop navigation on mobile */
.desktop-next-nav {
    display: none;
}

.desktop-press-nav {
    display: none;
}

/* Mobile Press Navigation */
.mobile-press-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Judson', serif;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-press-nav:hover {
    transform: translateY(-2px);
}

.press-text-mobile {
    color: #111; /* Black text */
}

.press-arrow-mobile {
    color: #e75480; /* Pink arrow */
    transition: transform 0.3s ease;
}

.mobile-press-nav:hover .press-arrow-mobile {
    transform: translateX(2px);
}

    #home {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }
    
    .home-container {
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .home-background {
        width: 100%;
        height: 100%;
    }
    
    .home-background-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .social-media-icons {
        bottom: 60px;
        gap: 25px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        justify-content: center;
    }
    
    .social-icon {
        padding: 8px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
    }
    
    .social-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .about-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }
    
    .about-image {
        order: -1; /* Ensure image comes first on mobile */
        max-width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .about-image .portrait {
        width: 100%;
        max-width: 350px;
        height: auto;
        border-radius: 8px;
    }
    
    .about-text {
        order: 1; /* Ensure text comes after image on mobile */
        font-size: 1rem;
        line-height: 1.5;
        text-align: left;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .publications-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .publications-intro {
        margin-bottom: 50px;
        padding: 30px 20px;
        border-radius: 8px;
    }
    
    .publications-intro p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .publications-container {
        padding: 40px 10px;
    }
    
    .press-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Press Header */
    .press-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .press-header h2 {
        margin-bottom: 0;
        display: block; /* Show Press header on mobile */
    }
    
    .contact-nav {
        align-self: center;
        font-size: 0.85rem;
        display: flex; /* Show Contact navigation on mobile */
    }
    
    /* Mobile Press Contact Navigation - Clean Design */
    .press-contact-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 40px;
        margin-bottom: 20px;
        padding: 12px 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: 'Judson', serif;
        font-size: 0.9rem;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #e75480; /* Pink color matching site theme */
    }
    
    .press-contact-nav:hover {
        transform: translateY(-2px);
    }
    
    .contact-container h2 {
        font-size: 1.8rem;
    }
    
    /* Mobile Tattoo Documentation Styles */
    .tattoo-doc-container {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    .tattoo-doc-container h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .tattoo-images {
        gap: 20px;
    }
    
    .tattoo-images img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain !important;
        margin-bottom: 2rem;
        border-radius: 4px;
        max-width: calc(100vw - 30px);
        /* Override any conflicting styles */
        object-position: center !important;
    }
    
    .contact-content p {
        font-size: 1rem;
    }
    
    /* Mobile button styling - Enhanced responsive design */
    .back-button {
        padding: 12px 20px;
        font-size: 13px;
        margin-bottom: 25px;
        min-width: 140px;
        text-align: center;
        border-width: 2px;
        border-radius: 6px;
    }
    
    .back-button:hover {
        transform: translateY(-2px);
    }
}

/* Desktop and Tablet: Menu content shifting to prevent overlap */
@media (min-width: 769px) {
    /* Enhanced content shift when menu is active on larger screens */
    body.menu-active .about-container {
        transform: translateY(200px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    body.menu-active .projects-container {
        transform: translateY(200px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    body.menu-active .publications-container {
        transform: translateY(200px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    body.menu-active .press-container {
        transform: translateY(200px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    body.menu-active .contact-container {
        transform: translateY(200px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    body.menu-active .cv-container {
        transform: translateY(200px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Ensure project detail content also shifts on desktop/tablet */
    body.menu-active .project-detail-container {
        transform: translateY(200px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Also shift project detail content wrapper on desktop/tablet */
    body.menu-active .project-detail-content {
        transform: translateY(200px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Ensure smooth transitions for all content containers on larger screens */
    .about-container,
    .projects-container,
    .publications-container,
    .press-container,
    .contact-container,
    .cv-container,
    .project-detail-container,
    .project-detail-content {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Additional mobile viewport fixes for very small screens */
@media (max-width: 480px) {
    .social-media-icons {
        bottom: 80px !important;
        gap: 20px;
    }
    
    .mobile-nav-tabs {
        top: 55%;
        gap: 20px;
    }
}

/* Viewport height adjustments for mobile browsers with dynamic chrome */
@media (max-width: 768px) and (max-height: 600px) {
    .social-media-icons {
        bottom: 100px !important;
    }
    
    .mobile-nav-tabs {
        top: 50%;
    }
}

/* MARRA BALADY Modal Styles */
.publication-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    padding: 5px;
    line-height: 1;
}

.modal-close:hover {
    color: #e75480;
}

.modal-header {
    margin-bottom: 30px;
    text-align: center;
}

.modal-header h2 {
    font-family: 'Judson', serif;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333;
}

.modal-year {
    font-family: 'Judson', serif;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 15px;
}

.modal-description {
    font-family: 'Judson', serif;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.modal-link {
    display: inline-block;
    font-family: 'Judson', serif;
    font-size: 1em;
    color: #e75480;
    text-decoration: none;
    border: 1px solid #e75480;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-link:hover {
    background-color: #e75480;
    color: white;
}

.modal-video {
    width: 100%;
    margin-top: 30px;
}

.modal-video video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header h2 {
        font-size: 2em;
    }
    
    .modal-description {
        font-size: 1em;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px 15px;
        margin: 5px;
    }
    
    .modal-header h2 {
        font-size: 1.8em;
    }
    
    .modal-description {
        font-size: 0.95em;
    }
}

/* Make publication item clickable */
.publication-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Ensure the link inside doesn't interfere with modal click */
.publication-item .publication-link {
    position: relative;
    z-index: 2;
}
