* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: 'Cormorant Garamond', serif;
}

.logo {
    position: fixed;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    opacity: 0;
    user-select: none;
    pointer-events: none;
}

.logo img {
    height: clamp(1.2rem, 2vw, 1.8rem);
    filter: invert(1) brightness(0.8);
}

.gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewport {
    width: 80vmin;
    height: 80vmin;
    position: relative;
    clip-path: inset(0);
}

.lamp-track {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
}

.lamp-row {
    display: flex;
    height: 80vmin;
    flex-shrink: 0;
    transform: translateZ(0);
}

.lamp-image {
    width: 80vmin;
    height: 80vmin;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
    clip-path: inset(1px);
}

.lamp-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.lamp-image img.loaded {
    opacity: 1;
}

.nav-arrow {
    position: fixed;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 200;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1.8;
    fill: none;
    transition: stroke 0.3s ease;
}

.nav-arrow:hover svg {
    stroke: rgba(255, 255, 255, 0.35);
}

.nav-arrow.visible {
    opacity: 1;
}

.arrow-up {
    top: 15vh;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-down {
    bottom: 15vh;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-left {
    left: 15vw;
    top: 50%;
    transform: translateY(-50%);
}

.arrow-right {
    right: 15vw;
    top: 50%;
    transform: translateY(-50%);
}

.info-trigger {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.info-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.info-trigger.hidden {
    opacity: 0;
    pointer-events: none;
}

.info-bubble {
    position: center;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    z-index: 999;
    overflow: hidden;
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.about-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.info-bubble.open {
    pointer-events: auto;
    border-radius: 0;
}

.info-content {
    padding: 25px 30px;
    opacity: 0;
    white-space: nowrap;
}

.info-bubble.open .info-content {
    opacity: 1;
    transition: opacity 0.3s ease 0.15s;
}

.info-email {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-decoration: none;
    text-align: left;
    display: block;
    transition: color 0.3s ease;
}

.info-title {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.6px;
    text-decoration: none;
    text-align: left;
    display: block;
}

.info-email:hover {
    color: rgba(255, 255, 255, 0.8);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 18px;
    height: 18px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    display: block;
    align-items: left;
}

.social-icon:hover {
    opacity: 0.7;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: #fff;
    display: block;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.position-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 100;
}

.position-indicator.visible {
    opacity: 1;
}

.indicator-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.indicator-dot.active {
    background: rgba(255, 255, 255, 0.4);
}

.back-arrow {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 200;
    text-decoration: none;
}

.back-arrow:hover {
    opacity: 0.8;
}

.back-arrow svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 236, 236, 0.6);
    stroke-width: 2;
    fill: none;
}

/*
   MOBILE OPTIMIZATIONS
*/

/* Hide navigation arrows on mobile and touch devices */
@media (max-width: 768px), (hover: none) {
    .nav-arrow {
        display: none !important;
    }
    
    /* Hide position indicator for cleaner mobile experience */
    .position-indicator {
        display: none;
    }
}

/* Mobile-specific layout adjustments */
@media (max-width: 768px) {
    /* Larger viewport on mobile for more visual impact */
    .viewport {
        width: 92vmin;
        height: 92vmin;
    }
    
    .lamp-row {
        height: 92vmin;
    }
    
    .lamp-image {
        width: 92vmin;
        height: 92vmin;
    }
    
    /* Adjust logo position */
    .logo {
        bottom: 5vh;
    }
    
    /* Reposition info trigger for easier thumb reach */
    .info-trigger {
        bottom: 20px;
        left: 20px;
    }
    
    .info-bubble {
        bottom: 20px;
        left: 20px;
    }
    
    /* Adjust back arrow for mobile */
    .back-arrow {
        top: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    .viewport {
        width: 95vmin;
        height: 95vmin;
    }
    
    .lamp-row {
        height: 95vmin;
    }
    
    .lamp-image {
        width: 95vmin;
        height: 95vmin;
    }
    
    .logo {
        bottom: 4vh;
    }
    
    .logo img {
        height: clamp(1rem, 3vw, 1.4rem);
    }
}