/* ============================================
   Experiences Page Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

html, body {
    height: 100%;
    background: #000;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    overscroll-behavior: none;
}

/* Back link */
.back-link {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

/* ============================================
   Gallery Landing
   ============================================ */
.gallery {
    min-height: 100vh;
    padding: 6rem 5% 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery.hidden {
    display: none;
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e0e0e0;
    margin-bottom: 0.75rem;
}

.gallery-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    width: 100%;
}

/* Gallery Card */
.gallery-card {
    position: relative;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    background: #050505;
}

.gallery-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-preview {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 2;
}

.card-info h3 {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e0e0e0;
    margin-bottom: 0.2rem;
}

.card-info p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.06em;
}

/* ============================================
   Fullscreen Experience Viewer
   ============================================ */
.exp-viewer {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: #000;
    display: none;
}

.exp-viewer.active {
    display: block;
    touch-action: none;
}

.exp-viewer canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.exp-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 160;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.exp-close:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.7);
}

/* Experience label */
.exp-label {
    position: absolute;
    bottom: 3rem;
    left: 2rem;
    z-index: 160;
    pointer-events: none;
    user-select: none;
}

.exp-label h2 {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.12);
    margin-bottom: 0.2rem;
}

.exp-label p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery {
        padding: 5rem 4% 3rem;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-card {
        aspect-ratio: 16 / 9;
    }

    .back-link {
        top: 1rem;
        left: 1rem;
    }

    .exp-close {
        top: 1rem;
        right: 1rem;
        width: 38px;
        height: 38px;
    }

    .exp-label {
        bottom: 2rem;
        left: 1.5rem;
    }
}
