::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    /* Cursor hidden by default, shown via JS if not mobile */
}

/* Custom Cursor - Hidden on mobile/touch */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }

    .cursor-outer {
        width: 32px;
        height: 32px;
        border: 1px solid #ea580c;
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.15s ease-out;
    }

    .cursor-inner {
        width: 4px;
        height: 4px;
        background: #ea580c;
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
    }
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}

.text-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

/* View Transitions */
.view {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.view.active {
    display: flex;
    /* Changed from block to flex for better centering control */
    flex-direction: column;
    opacity: 1;
}

/* Gallery Grid */
.masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 640px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 3;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    filter: grayscale(100%);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}