/* =========================================
   360.CSS
   360 Immersive Experiences Page
   ========================================= */

.gallery-title {
    line-height: 1.05;
}

/* --- 360 SHOWCASE SECTION --- */
.vr-showcase-section {
    padding-bottom: 10vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15vh; /* space between cards */
    opacity: 0;
    will-change: opacity;
}

.vr-project {
    width: 100%;
    max-width: 1080px; /* Reduced from 1400px but larger than 900px +20% as requested */
    padding: 0 5vw;
    box-sizing: border-box;
    perspective: 2000px; /* For 3D tilt effect */
}

.vr-card-link {
    text-decoration: none;
    display: block;
    width: 100%;
    outline: none;
    cursor: none; /* Hide default cursor to use tracking custom cursor */
}

.vr-card {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #1a1c1e;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease-out;
    transform-style: preserve-3d;
}

.vr-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.vr-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03); /* Slight scale to hide edges during tilt */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.vr-card-link:hover .vr-card-image img {
    transform: scale(1.05); /* subtle zoom on hover */
}

.vr-project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2.5rem;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    transform: translateZ(40px); /* Brings text slightly forward during tilt */
}

.vr-project-title {
    font-family: var(--font-raleway);
    font-size: clamp(2rem, 3vw, 3.5rem);
    color: var(--white);
    margin: 0.5rem 0 0;
    line-height: 1.1;
    text-transform: capitalize;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.vr-project-loc {
    font-family: var(--font-sans);
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* --- CUSTOM CURSOR --- */
#vr-cursor-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

#vr-cursor {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--white, #ffffff);
    color: var(--bg, #0e1012);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-sans, sans-serif);
    font-size: 0.825rem;
    line-height: 1.38;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

#vr-cursor.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (min-width: 1920px) {
    .vr-showcase-section {
        gap: 18vh;
    }

    .vr-project {
        max-width: 1240px;
    }

    .vr-project-content {
        padding: 3.5rem 3rem;
    }

    #vr-cursor {
        width: 110px;
        height: 110px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .vr-card-image {
        aspect-ratio: 4 / 3;
    }
    
    .vr-showcase-section {
        gap: 8vh;
    }

    /* Disable tilt on mobile */
    .vr-card {
        transform: none !important;
        transition: none !important;
    }
    
    .vr-project-content {
        transform: none !important;
    }
    
    .vr-card-link {
        cursor: auto;
    }

}

/* Ensure hover interactions are disabled on touch devices */
@media (hover: none) and (pointer: coarse) {
    .vr-card {
        transform: none !important;
        transition: none !important;
    }
    .vr-card-link {
        cursor: auto;
    }
    #vr-cursor-wrapper {
        display: none !important;
    }
}
