/* ===== TOUR VISUALS PAGE STYLES ===== */

/* Comprehensive CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    background: #000;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0 0 100px 0; /* Add bottom padding to account for always-visible footer */
    overflow-x: hidden;
    cursor: crosshair !important;
    background: #000;
    min-height: 100vh;
}

/* Global cursor override for all elements */
html, body, * {
    cursor: crosshair !important;
}

/* Force black background on all elements to prevent white borders */
html, body, #full, .go-back-section, .project-content, .project-gallery, .project-info, .project-header {
    background: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Text Selection Styles */
::selection {
    color: #000000;
    background: #ffffff;
}

::-moz-selection {
    color: #000000;
    background: #ffffff;
}



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

/* Navigation */
.tour-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: transparent;
    transition: all 0.3s ease;
    pointer-events: auto;
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo {
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    color: inherit !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.nav-title {
    display: flex;
    align-items: center;
}

.nav-title-text {
    font-family: "header1", sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-title:hover .nav-title-text {
    animation: textGlitch 0.3s ease-in-out;
}

@keyframes textGlitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
        text-shadow: 2px 0 #ff0000, -2px 0 #00ffff;
    }
    40% {
        transform: translate(2px, -2px);
        text-shadow: -2px 0 #ff0000, 2px 0 #00ffff;
    }
    60% {
        transform: translate(-1px, 1px);
        text-shadow: 1px 0 #ff0000, -1px 0 #00ffff;
    }
    80% {
        transform: translate(1px, -1px);
        text-shadow: -1px 0 #ff0000, 1px 0 #00ffff;
    }
    100% {
        transform: translate(0);
        text-shadow: none;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
}

/* Burger Menu */
.burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.burger-menu span {
    width: 25px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    display: block;
}

.burger-menu:hover span {
    background-color: #000000;
}

/* Cover Section */
.cover-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.cover-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.cover-video {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cover-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    transition: transform 0.3s ease;
    object-fit: cover;
    background: #000;
    z-index: 1;
    filter: brightness(0.3);
    cursor: crosshair !important;
}



/* Dark overlay for text visibility */
.cover-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 5;
    pointer-events: none;
}

/* Logo Overlay */
.logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 1; /* Temporarily visible for testing */
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.logo-overlay.visible {
    opacity: 1;
}

.overlay-logo {
    width: 100%;
    height: auto;
    max-width: 600px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}



.overlay-text {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.overlay-nav-link {
    font-family: "header1", sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    white-space: nowrap;
}

.overlay-nav-link:hover {
    color: #0000ff;
    transform: translateY(-2px);
    animation: textGlitch 0.3s ease-in-out;
}

/* Video loading state */
.showreel-video video:not([src]) {
    background: linear-gradient(45deg, #1a1a1a 25%, transparent 25%), 
                linear-gradient(-45deg, #1a1a1a 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #1a1a1a 75%), 
                linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}





/* About Section */
.about-section {
    padding: 120px 0 80px;
    background: #070707;
    position: relative;
    overflow: hidden;
}

/* Mouse-following overlay */
.mouse-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    transition: transform 0.1s ease-out;
}

.overlay-pattern {
    width: 67%;
    height: 67%;
    object-fit: cover;
    opacity: 0.8;
    mix-blend-mode: screen;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Specific styling for project content mouse overlay */
#projectMouseOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    transition: transform 0.1s ease-out;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-text p {
    font-family: "bodyfont", sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: white;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Staggered animation delays for paragraphs */
.about-text p:nth-child(1) {
    animation-delay: 0.1s;
}

.about-text p:nth-child(2) {
    animation-delay: 0.3s;
}

.about-text p:nth-child(3) {
    animation-delay: 0.5s;
}

/* Projects Section */
.projects-section {
    padding: 80px 0 120px;
    background: #070707;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}



/* Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 100vw;
    padding: 0 20px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.masonry-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.masonry-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.masonry-item:hover::before {
    opacity: 1;
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.project-overlay h3 {
    font-family: "header1", sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-align: center;
    margin: 0;
    padding: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    position: relative;
}

.masonry-item:hover .project-overlay h3 {
    animation: textGlitch 0.3s ease-in-out;
}

.masonry-item:hover .project-overlay {
    opacity: 1;
}

/* Footer */
.tour-footer {
    padding: 60px 0;
    background: #070707;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-family: "bodyfont", sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 300;
}

.footer-link:hover {
    color: #000000;
    background: #ffffff;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Custom hover effects for text elements */
.hovr {
    transition: all 0.3s ease;
}

.hovr:hover {
    color: #000000 !important;
    background: #ffffff;
    padding: 2px 6px;
    border-radius: 3px;
    transform: scale(1.02);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 800px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 15px;
    }
    
    .nav-logo img {
        height: 30px;
    }
    
    .nav-left {
        gap: 20px;
    }
    
    .nav-title-text {
        font-size: 1rem;
    }
    
    .about-section {
        padding: 100px 0 60px;
    }
    
    .about-text p {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .projects-section {
        padding: 60px 0 100px;
    }
    
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 10px;
    }
    
    .overlay-logo {
        width: 100%;
        max-width: 400px;
    }
    
    .overlay-text {
        gap: 20px;
    }
    
    .overlay-nav-link {
        font-size: 0.9rem;
    }
    

    
    .footer-links {
        gap: 30px;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .nav-left {
        gap: 15px;
    }
    
    .nav-title-text {
        font-size: 0.9rem;
    }
    
    .about-text p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 10px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .scroll-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .project-overlay h3 {
        font-size: 1.2rem;
        padding: 15px;
    }
}

/* Touch Device Optimizations */
@media only screen and (hover: none) and (pointer: coarse) {
    .showreel-title h1 {
        font-size: 8vw;
    }
    
    .showreel-title h2 {
        font-size: 4vw;
    }
    
    .about-text p {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .projects-header h2 {
        font-size: 2.5rem;
    }
    
    .footer-links {
        gap: 25px;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
    }
}

/* Animation Classes */
.anim.animate,
.animL.animate,
.animR.animate {
    opacity: 1;
    transform: translate(0, 0);
}

/* Fallback: Ensure content sections are visible even without JavaScript animations */
.content-section.animL,
.content-section.animR,
.content-section.anim {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
    visibility: visible !important;
}

/* Debug: Make sure Outcome section is always visible */
.content-section:last-child {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
    visibility: visible !important;
    display: block !important;
}

/* Animation delays for sequential animations */
.credit-item[data-delay="0.1"] { animation-delay: 0.1s; }
.credit-item[data-delay="0.3"] { animation-delay: 0.3s; }
.credit-item[data-delay="0.5"] { animation-delay: 0.5s; }
.intro-section[data-delay="0.7"] { animation-delay: 0.7s; }

.gallery-item[data-delay="0.1"] { animation-delay: 0.1s; }
.gallery-item[data-delay="0.2"] { animation-delay: 0.2s; }
.gallery-item[data-delay="0.3"] { animation-delay: 0.3s; }
.gallery-item[data-delay="0.4"] { animation-delay: 0.4s; }
.gallery-item[data-delay="0.5"] { animation-delay: 0.5s; }
.gallery-item[data-delay="0.6"] { animation-delay: 0.6s; }
.gallery-item[data-delay="0.7"] { animation-delay: 0.7s; }

/* Ensure all interactive elements maintain crosshair cursor */
a, button, .masonry-item, .overlay-nav-link, .footer-link, .designer-link, video, iframe {
    cursor: crosshair !important;
}



/* Force crosshair cursor on all elements */
*, *::before, *::after {
    cursor: crosshair !important;
}

/* Specific overrides for elements that might have default cursor styles */
.cover-video,
.cover-video video,
.logo-overlay,
.overlay-logo,
.overlay-text,
.scroll-top,
.burger-menu,
.burger-menu span,
.nav-logo,
.nav-title,
.nav-title-text {
    cursor: crosshair !important;
}

/* Custom cell cursor class */
.cell {
    cursor: cell !important;
}

/* Clickable elements should show cell cursor */
.overlay-nav-link,
.masonry-item,
.masonry-item img,
.project-overlay,
.project-overlay h3,
.nav-link,
.footer-link,
.designer-link {
    cursor: cell !important;
}

/* Ensure iframe maintains crosshair cursor */
iframe {
    cursor: crosshair !important;
}

/* Override any default cursor styles from external sources */
.vimeo-container iframe {
    cursor: crosshair !important;
}

/* ===== PROJECT PAGE STYLES ===== */

/* Project Header */
.project-header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.project-cover {
    position: relative;
    width: 100%;
    height: 100%;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-title h1 {
    font-family: "header1", sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.glitch-h1:hover {
    animation: textGlitch 0.3s ease-in-out;
}

.project-subtitle {
    font-family: "header1", sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    letter-spacing: 0.02em;
}

/* Project Info */
.project-info {
    padding: 100px 0;
    background: #000;
}

.info-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.credits-section {
    margin-bottom: 60px;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.credit-item h3 {
    font-family: "header1", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0000ff;
    margin: 0 0 10px 0;
    letter-spacing: 0.02em;
}

.credit-item p {
    font-family: "header1", sans-serif;
    font-size: 1rem;
    color: white;
    margin: 0;
    line-height: 1.6;
}

.intro-section p {
    font-family: "header1", sans-serif;
    font-size: 1.1rem;
    color: white;
    line-height: 1.8;
    margin: 0;
}

/* Project Gallery */
.project-gallery {
    padding: 100px 0;
    background: #000;
}

.gallery-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    margin: 0 0 40px 0;
    padding: 0;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    /* Beveled edges effect */
    clip-path: polygon(
        0 0,
        calc(100% - 20px) 0,
        100% 20px,
        100% 100%,
        20px 100%,
        0 calc(100% - 20px)
    );
    background: #000;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img,
.gallery-item video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    /* Ensure the image/video respects the beveled edges */
    clip-path: polygon(
        0 0,
        calc(100% - 20px) 0,
        100% 20px,
        100% 100%,
        20px 100%,
        0 calc(100% - 20px)
    );
}

/* Landscape images (16:9) */
.gallery-item.landscape {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

/* Portrait images (5:4) */
.gallery-item.portrait {
    width: 50%;
    height: 0;
    padding-bottom: 62.5%; /* 5:4 aspect ratio */
}

/* Gallery row for side-by-side portrait images */
.gallery-row {
    display: flex;
    width: 100%;
    gap: 40px;
    margin-bottom: 40px;
}

.gallery-row .gallery-item {
    flex: 1;
}

/* Go Back Section */
.go-back-section {
    padding: 120px 0 120px 0; /* Reduced bottom padding since footer is always visible */
    margin: 0; /* Remove all margins for seamless footer integration */
    background: #000;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1001; /* Higher than footer z-index (1000) */
}

.go-back-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.go-back-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.go-back-link h2 {
    font-family: "header1", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.go-back-link:hover h2 {
    animation: textGlitch 0.3s ease-in-out;
}

/* Override hovr class for go-back-link to only show glitch effect */
.go-back-link.hovr:hover {
    color: inherit !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
}

/* Project Content */
.project-content {
    padding: 60px 0;
    background: #000;
    position: relative;
    overflow: visible; /* Changed from hidden to visible */
    min-height: auto;
    z-index: 5; /* Ensure it's above potential overlapping elements */
}

.content-section {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-family: "header1", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 30px 0;
    letter-spacing: -0.02em;
    text-align: center;
}

.content-section p {
    font-family: "header1", sans-serif;
    font-size: 1.1rem;
    color: white;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section strong {
    color: white;
    font-weight: 600;
}

/* Final Video */
.final-video {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.final-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.fullscreen-video-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-video-btn:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.fullscreen-close:hover {
    color: #0000ff;
}

#fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.fullscreen-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* Responsive Design for Project Pages */
@media (max-width: 1200px) {
    .gallery-container {
        max-width: 90%;
    }
}

@media (max-width: 800px) {
    body {
        padding: 0 0 80px 0; /* Reduced bottom padding for mobile */
    }
    
    .project-title h1 {
        font-size: 3rem;
    }
    
    .project-subtitle {
        font-size: 1.2rem;
    }
    
    .credits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .go-back-link h2 {
        font-size: 2rem;
    }
    
    .go-back-section {
        padding: 120px 0 120px 0; /* Reduced bottom padding since footer is always visible */
        margin-bottom: 0; /* Remove margin for seamless footer integration */
        z-index: 1001; /* Higher than footer z-index (1000) */
    }
    
    /* Adjust gallery container for tablets */
    .gallery-container {
        max-width: 95%;
    }
    
    /* Reduce bevel size on smaller screens */
    .gallery-item,
    .gallery-item img,
    .gallery-item video {
        clip-path: polygon(
            0 0,
            calc(100% - 15px) 0,
            100% 15px,
            100% 100%,
            15px 100%,
            0 calc(100% - 15px)
        );
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 0 70px 0; /* Further reduced bottom padding for small mobile */
    }
    
    .project-title h1 {
        font-size: 2.5rem;
    }
    
    .project-subtitle {
        font-size: 1rem;
    }
    
    .project-info,
    .project-gallery,
    .project-content {
        padding: 40px 0;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    /* Gallery adjustments for mobile */
    .gallery-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    /* Stack portrait images vertically on mobile */
    .gallery-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .gallery-item.portrait {
        width: 100%;
        padding-bottom: 125%; /* 5:4 aspect ratio for full width */
    }
    
    /* Reduce bevel size further on mobile */
    .gallery-item,
    .gallery-item img,
    .gallery-item video {
        clip-path: polygon(
            0 0,
            calc(100% - 10px) 0,
            100% 10px,
            100% 100%,
            10px 100%,
            0 calc(100% - 10px)
        );
    }
    
    .go-back-link h2 {
        font-size: 1.6rem;
    }
    
    .go-back-section {
        padding: 120px 0 120px 0; /* Reduced bottom padding since footer is always visible */
        margin-bottom: 0; /* Remove margin for seamless footer integration */
        z-index: 1001; /* Higher than footer z-index (1000) */
    }
} 

/* Ensure proper spacing for footer on scrollable pages */
#full {
    padding-bottom: 80px; /* Add space for footer */
}

@media (max-width: 480px) {
    #full {
        padding-bottom: 100px; /* More space on mobile */
    }
} 