
/* 
  VFXFREEK - dist.css
  This file is a combination of the original styles.css and the compiled
  Tailwind CSS utilities used in the project. This removes the need for 
  the Tailwind CDN, improving performance and eliminating layout shifts.
*/

/* Universal reset and base styles from original CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    overflow: hidden;
    min-height: 100vh; 
    height: 100%; 
    width: 100%; 
    position: fixed;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Orbitron', monospace;
    background-color: rgb(3 10 21 / 1); /* bg-gray-950 */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Additional zoom prevention */
* {
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
}

/* --- Layout and Structure --- */

.screen-container {
    height: 100vh;
    width: 100vw;
    position: relative;
}

.perspective-container {
    position: fixed;
    top: -25vh;
    left: -25vw;
    width: 150vw;
    height: 150vh;
    overflow: hidden;
    z-index: 1;
    perspective: 1500px;
    animation: force-gpu-repaint 1s linear;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

body.is-initializing .perspective-container,
body.is-initializing .top-menu,
body.is-initializing .main-menu {
    opacity: 0;
    visibility: hidden;
}

.main-grid-layout-transformed {
    display: grid;
    grid-template-columns: repeat(7, 280px);
    gap: 32px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -50%) scale(1.2) rotateX(20deg) rotateY(20deg) rotateZ(-20deg);
    transform-style: preserve-3d;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    border: 1px solid rgba(99, 102, 241, 0.3); /* Subtle purple border */
}

.main-grid-layout-transformed > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    pointer-events: auto;
    margin-left: -1px;
}

/* Z-index layering for grid columns */
.main-grid-layout-transformed > div:nth-child(1) { z-index: 7; }
.main-grid-layout-transformed > div:nth-child(2) { z-index: 6; }
.main-grid-layout-transformed > div:nth-child(3) { z-index: 5; }
.main-grid-layout-transformed > div:nth-child(4) { z-index: 4; }
.main-grid-layout-transformed > div:nth-child(5) { z-index: 3; }
.main-grid-layout-transformed > div:nth-child(6) { z-index: 2; }
.main-grid-layout-transformed > div:nth-child(7) { z-index: 1; }

.fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.6) 15%, rgba(0, 0, 0, 0.25) 35%, transparent 60%);
    z-index: 10;
    pointer-events: none;
}

/* --- Animation Columns --- */
.loop-container {
    height: 300%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 0.5rem;
}
.loop-container.animate-scroll-down-3 { animation: scroll-down 170s linear infinite; }
.loop-container.animate-scroll-up-1 { animation: scroll-up 130s linear infinite; }
.loop-container.animate-scroll-down-1 { animation: scroll-down 140s linear infinite; }
.loop-container.animate-scroll-up-2 { animation: scroll-up 120s linear infinite; }
.loop-container.animate-scroll-down-2 { animation: scroll-down 150s linear infinite; }
.loop-container.animate-scroll-up-3 { animation: scroll-up 160s linear infinite; }

@keyframes scroll-up {
    from { transform: translateY(0); }
    to { transform: translateY(-33.333%); }
}
@keyframes scroll-down {
    from { transform: translateY(-33.333%); }
    to { transform: translateY(0); }
}

/* --- Artwork & Images --- */

.image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 125%;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, z-index 0.3s ease;
    margin-bottom: 0;
    will-change: transform;
    transform: translateZ(0); /* Force GPU layer for stable hit-testing */
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: opacity 0.5s ease-in-out, filter 0.5s ease-in-out;
    will-change: opacity, filter;
    filter: none;
}

.artwork-title {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.3); /* Subtle purple border */
}

.image-wrapper:hover {
    z-index: 999;
}

.image-wrapper:hover .artwork-title {
    opacity: 1;
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(99, 102, 241, 0.6);
}

.image-wrapper:hover img {
    opacity: 1;
    filter: none;
}

.image-wrapper:active {
    transform: scale(0.98);
    z-index: 25;
}

/* --- Menus & Navigation --- */
.top-menu, .main-menu {
    position: absolute;
    z-index: 2100; /* Must be higher than the lightbox (2000) */
    pointer-events: none;
    transform: translateZ(0); /* Force GPU layer for stable positioning */
    will-change: transform; /* Optimize for transform changes */
}

body.lightbox-is-open .top-menu,
body.lightbox-is-open .main-menu {
    opacity: 0;
    pointer-events: none;
}

/* This overrides the general '.menu-item-link' rule */
body.lightbox-is-open .menu-item-link {
    pointer-events: none;
}

/* Deactivate gallery when lightbox is open */
body.lightbox-is-open .perspective-container {
    pointer-events: none;
}

/* This more specific rule is the key fix */
body.lightbox-is-open .main-grid-layout-transformed > div {
    pointer-events: none;
}

.top-menu {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}
.main-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-wrapper {
    display: grid;
    place-items: center;
}

#mainMenuContent, #contactContent {
    grid-area: 1 / 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
#mainMenuContent.is-hidden, #contactContent.is-hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    visibility: hidden;
}

.menu-item-link {
    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out, transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    z-index: 10;
    text-align: center; /* Ensure text is centered */
}
.menu-list-item {
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}
.menu-list {
    height: 22rem;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 22rem;
    list-style-type: none;
    padding: 0;
    margin: 0;
    gap: 0;
    text-align: center; /* Ensure text is centered */
}
.menu-list-item:first-child {
    margin-bottom: -0.3rem !important;
}
.menu-item-link:hover {
    transform: translateZ(0) scale(1.05);
    color: #a5b4fc; /* Subtle purple accent on hover */
    text-shadow: 0 0 15px rgba(165, 180, 252, 0.6);
}

/* PRINTS link specific styles */
.prints-link {
    position: relative;
}
.prints-link .prints-text, .prints-link .soon-text {
    transition: opacity 0.5s ease-in-out;
    will-change: opacity;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.prints-link .prints-text {
    pointer-events: auto;
    opacity: 1;
    z-index: 2;
}
.prints-link .soon-text {
    pointer-events: none;
    opacity: 0;
    z-index: 3;
}
.menu-item-link.prints-link:hover .prints-text { opacity: 0; pointer-events: none; }
.menu-item-link.prints-link:hover .soon-text { opacity: 1; pointer-events: auto; }

/* Contact view specific styles */
#contactContent > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#copyButton {
    font-size: 1.125rem; /* text-lg */
    background-color: transparent;
    border: 1px solid white;
    padding: 0.5rem 1.5rem; /* px-6 py-2 */
    border-radius: 0.375rem; /* rounded */
    transition: all 0.5s ease-out;
    font-family: inherit; /* Use site's default font */
    margin-top: 1.5rem; /* Add space above the button */
}
#copyButton:hover {
    background-color: #6366f1; /* Purple background instead of white */
    color: white;
    border-color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* Enhanced copy confirmation */
#copyConfirmation {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background: rgba(99, 102, 241, 0.9);
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid rgba(165, 180, 252, 0.3);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    white-space: nowrap;
}

/* Pointer events fix for menu containers */
.top-menu > a, .menu-item-link {
    pointer-events: auto;
}

/* --- Mobile (Tablet) Styles - Clean and Simple --- */
@media (max-width: 768px) {
    /* 1. Grid Layout - MOBILE FIX */
    .main-grid-layout-transformed {
        grid-template-columns: repeat(5, 180px);
        gap: 20px;
        transform: translate(-50%, -50%) scale(0.8) rotateX(20deg) rotateY(20deg) rotateZ(-20deg);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    }

    .main-grid-layout-transformed > div:nth-child(n+6) {
        display: none;
    }

    .main-grid-layout-transformed > div:first-child,
    .main-grid-layout-transformed > div:nth-child(5) {
        transform: scale(0.9);
    }

    /* 2. Tapping and Stacking Context */
    .main-grid-layout-transformed > div {
        z-index: 1;
    }
    .fade-overlay {
        /* A subtle dark gradient for menu readability */
        background: radial-gradient(circle at center, rgba(0,0,0,0.6) 0%, transparent 70%);
        z-index: 2;
        pointer-events: none;
    }
    .top-menu, .main-menu {
        z-index: 5; /* Ensure menus are above the overlay and grid */
    }
    .image-wrapper:active {
        z-index: 10; /* Tapped artwork comes to the very front */
    }
    
    /* 3. General Mobile Adjustments */
    .menu-item-link {
        text-shadow: 0 0 10px rgba(0,0,0,0.8);
    }
    .artwork-title {
        font-size: 0.6rem;
    }

    #copyConfirmation {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .image-wrapper img {
        opacity: 0.4;
    }

    body:not(.desktop-view) .lightbox-container.visible #lightboxImage {
        transform: scale(1);
    }

    .lightbox-title {
        font-size: 1.1rem;
        bottom: 14vh;
        padding: 6px 12px;
    }

    #lightboxImage {
        max-width: 98vw;
        max-height: 70vh;
    }

    /* Lightbox loading bar mobile adjustments */
    #lightboxLoadingBarContainer {
        width: 90vw;
        max-width: 98vw;
    }

    /* Header positioning for mobile */
    .top-menu.below-content {
        bottom: 20px;
        width: auto;
        padding: 0 20px;
        z-index: 1000 !important;
        position: fixed !important;
    }
    
    .top-menu.below-content .menu-item-link {
        font-size: 1.2rem;
        white-space: nowrap;
    }

    /* About content positioning for mobile */
    body #aboutContent {
        align-items: center !important;
        justify-content: flex-end !important;
        padding-bottom: 7rem;
    }
    
    body #aboutContent .menu-wrapper {
        align-items: center;
        padding-top: 0;
        min-height: auto;
    }
}

.blur-panel {
    display: none; /* Hidden by default, shown on mobile */
}

/* --- Loading States --- */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Lightbox Styles --- */
.lightbox-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

.lightbox-container.visible {
    opacity: 1;
    pointer-events: auto;
}

#lightboxImage {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
    object-fit: contain;
    background: #111;
}

.lightbox-container.visible #lightboxImage {
    /* Remove transform: scale(2); to prevent overflow */
    /* Optionally, add a subtle scale for effect, but keep it contained */
    /* transform: scale(1.05); */
}

.lightbox-title {
    position: absolute;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.4s ease-in-out 0.2s; /* Delay for effect */
    white-space: nowrap;
    will-change: opacity; /* Optimize for fade animation */
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
    opacity: 0.92;
}

.lightbox-container.visible .lightbox-title {
    opacity: 1;
}

/* Final override to disable gallery clicks when lightbox is open */
body.lightbox-is-open .main-grid-layout-transformed .image-wrapper {
    pointer-events: none;
    -webkit-mask-image: none;
    mask-image: none;
}

/*
  GPU Acceleration fix for Chrome Android rendering bug.
  By forcing text elements onto their own compositing layer, we prevent
  the initial layout calculation from failing.
*/
#vfxfreekHeader, .main-menu .menu-item-link {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Ensure hover scaling works by overriding the base transform */
#vfxfreekHeader:hover, .main-menu .menu-item-link:hover {
    -webkit-transform: translateZ(0) scale(1.25);
    transform: translateZ(0) scale(1.25);
    color: #a5b4fc;
    text-shadow: 0 0 15px rgba(165, 180, 252, 0.6);
}

.menu-list-item:first-child {
    margin-bottom: -0.3rem !important;
}

/* --- Lightbox Overlay --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    -webkit-tap-highlight-color: transparent;
}

body.lightbox-is-open .lightbox-overlay {
    display: block;
}

/* --- Loading Bar Styles --- */
.scifi-bar-bg {
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #232946 0%, #6366f1 100%);
    border-radius: 8px;
    box-shadow: 0 0 12px #6366f1, 0 0 2px #232946;
    overflow: hidden;
    position: relative;
}

.scifi-bar {
    height: 100%;
    background: linear-gradient(90deg, #a5b4fc 0%, #6366f1 100%);
    box-shadow: 0 0 16px #a5b4fc, 0 0 4px #6366f1;
    border-radius: 8px 0 0 8px;
    width: 1%;
    transition: width 0.18s cubic-bezier(.4,2.3,.3,1);
}

.scifi-bar-text {
    color: #a5b4fc;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    text-align: right;
    margin-top: 2px;
    text-shadow: 0 0 8px #232946, 0 0 2px #6366f1;
    letter-spacing: 0.1em;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#lightboxLoadingBarContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 60vw;
    max-width: 400px;
    z-index: 11;
    display: none;
    margin-top: 0;
}

.retro-bar-bg {
    width: 100%;
    height: 32px;
    background: transparent;
    border: 3px solid #6366f1;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    justify-content: space-between;
    padding: 0;
}

.retro-bar-segment-box {
    flex: 1 1 0;
    height: 80%;
    margin: 0 1.5px;
    background: transparent;
    border-radius: 6px;
    border: 1.5px solid transparent;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-sizing: border-box;
    min-width: 0;
}

.retro-bar-segment-box.filled {
    background: #6366f1;
    box-shadow: 0 0 8px #6366f1, 0 0 2px #6366f1;
    border-color: #6366f1;
}

/* --- Privacy Box Styles --- */
.privacy-box {
    background: rgba(3,10,21,0.8);
    border: 2px solid #6366f1;
    border-radius: 18px;
    box-shadow: 0 4px 32px #23294699, 0 0 8px #6366f1;
    padding: 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
    max-width: 90vw;
    color: #fff;
}

.privacy-text {
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.privacy-link {
    color: #6366f1;
    text-decoration: underline;
    transition: color 0.2s;
}

.privacy-link:hover {
    color: #a5b4fc;
}

.privacy-actions {
    display: flex;
    gap: 1.5rem;
}

.privacy-btn {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    border: 2px solid #6366f1;
    background: #232946;
    color: #fff;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #23294655;
}

.privacy-btn:hover {
    background: #6366f1;
    color: #fff;
    border-color: #a5b4fc;
}

/* --- About Box Styles --- */
.about-box {
    background: rgba(3,10,21,0.7);
    border: 2px solid #6366f1;
    border-radius: 18px;
    box-shadow: 0 4px 32px #23294655, 0 0 8px #6366f1;
    padding: 5rem 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.about-box h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: #fff;
    text-shadow: 0 0 8px #232946, 0 0 2px #6366f1;
}

.about-box p {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    line-height: 1.5;
    color: #fff;
}

.about-text {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #a5b4fc;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal !important;
    text-align: center;
    margin-bottom: 1rem;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* --- Copy Button Styles --- */
#copyButton {
    font-size: 1.3rem;
    font-weight: 700;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 0.4rem 1.2rem;
    cursor: pointer;
    transition: background 0.4s ease-in-out, color 0.4s ease-in-out, border-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out, transform 0.3s ease-in-out;
    box-shadow: 0 2px 8px #23294655;
    transform: translateZ(0) scale(1);
}

#copyButton:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    box-shadow: 0 4px 16px #6366f155;
    transform: translateZ(0) scale(1.25);
}

.email-link {
    font-size: 1.7rem;
}

/* --- Content Transition Styles --- */
#mainMenuContent, #aboutContent, #contactContent {
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    opacity: 1;
    transform: translateY(0);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#mainMenuContent.is-hidden, #aboutContent.is-hidden, #contactContent.is-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 22rem;
}

#aboutContent .menu-wrapper {
    align-items: flex-start;
    padding-top: 2rem;
}

html, body {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    overflow-x: visible !important;
}

.about-hitbox {
    position: absolute;
    top: 0;
    left: 50%;
    width: 900px;
    height: 100%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: all;
    background: transparent;
}

/* --- Header Transition Effects --- */
.top-menu {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.top-menu.transitioning {
    opacity: 0;
}

.top-menu.below-content {
    position: absolute;
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.top-menu.below-content.visible {
    opacity: 1;
    transform: translateX(-50%);
}

/* --- Mobile Header Positioning --- */
@media (max-width: 768px) {
    .top-menu.below-content {
        bottom: 20px;
        width: auto;
        padding: 0 20px;
        z-index: 1000 !important;
        position: fixed !important;
    }
    
    .top-menu.below-content .menu-item-link {
        font-size: 1.2rem;
        white-space: nowrap;
    }
}

/* --- Mobile ABOUT Content Positioning --- */
@media (max-width: 768px) {
    body #aboutContent {
        align-items: center !important;
        justify-content: flex-end !important;
        padding-bottom: 7rem;
    }
    
    body #aboutContent .menu-wrapper {
        align-items: center;
        padding-top: 0;
        min-height: auto;
    }
}

/* --- Mobile (Small Screen) Styles --- */
@media (max-width: 600px) {
    /* About box mobile adjustments */
    .about-box {
        max-width: 95vw;
        margin: 0 auto;
        padding: 1.2rem 0.5rem;
        max-height: 90vh;
        overflow-y: auto;
        box-sizing: border-box;
    }
    .about-box h2 {
        font-size: 0.95rem;
    }
    .about-box p {
        font-size: 0.8rem;
    }

    /* Email link mobile adjustments */
    .email-link {
        font-size: 1.6rem;
    }

    /* Header positioning for small mobile */
    .top-menu.below-content {
        bottom: 25px;
        padding: 0 15px;
        z-index: 1000 !important;
        position: fixed !important;
    }
    
    .top-menu.below-content .menu-item-link {
        font-size: 1.1rem;
    }

    /* About content positioning for small mobile */
    body #aboutContent {
        align-items: center !important;
        justify-content: flex-end !important;
        padding-bottom: 4rem;
    }
    
    body #aboutContent .menu-wrapper {
        align-items: center;
        padding-top: 0;
        min-height: auto;
    }
    
    /* Mobile Contact Content Centering */
    body #contactContent {
        align-items: center !important;
        justify-content: center !important;
        padding-bottom: 4rem;
    }
    
    body #contactContent .menu-wrapper {
        align-items: center;
        justify-content: center;
        padding-top: 0;
        min-height: auto;
    }
    
    body #contactContent > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
}

/* --- Additional Utility Classes --- */
.copy-confirmation {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.privacy-consent-box {
    display: none;
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
}

#vfxfreekHeader {
    font-size: 2.25rem; /* text-4xl */
}
.menu-list-item > a, #contactBack {
    font-size: 1.5rem; /* text-2xl */
}

.menu-list {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 22rem;
    list-style-type: none;
    padding: 0;
    margin: 0;
    gap: 0;
    text-align: center; /* Ensure text is centered */
}

.top-menu.header-at-top {
    position: fixed !important;
    top: 0 !important;
    left: 50%;
    transform: translateX(-50%) !important;
    z-index: 2000 !important;
    transition: none !important;
}

/* Menu backdrop to prevent artwork misclicks - invisible hitbox around menu only */
.menu-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; /* Smaller horizontal coverage */
    height: 350px; /* Smaller vertical coverage */
    background-color: transparent; /* Invisible */
    z-index: 1;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

/* Hide backdrop when SPA pages are open - controlled by JavaScript */
.menu-backdrop.spa-active {
    display: none !important;
    pointer-events: none !important;
}

/* Ensure menu content is above the backdrop */
.menu-wrapper {
    position: relative;
    z-index: 2;
}