/* Reset and base styles */ * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Loading spinner */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Main image container */
.image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.image-container.loaded {
    opacity: 1;
}

/* Full screen image - CHANGED: object-fit to contain to show entire image */
.full-screen-image {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    display: block;
}

/* For images that should show entirely within the screen */
.full-screen-image.contain {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
}

/* Error message */
.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    display: none;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .full-screen-image {
        max-width: 100vw;
        max-height: 100vh;
        object-fit: contain;
    }
}

/* Landscape orientation on mobile */
@media screen and (orientation: landscape) and (max-height: 480px) {
    .full-screen-image {
        max-width: 100vw;
        max-height: 100vh;
        object-fit: contain;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .full-screen-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Hide scrollbars on all devices */
::-webkit-scrollbar {
    display: none;
}

/* Prevent text selection and highlighting */
.image-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Fake contact button */
.contact-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: all 0.5s ease-in-out;
}

.contact-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.contact-header {
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.contact-header p {
    font-size: 1.2em;
    opacity: 0.9;
    font-weight: 300;
}

.contact-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.3em;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    background: linear-gradient(45deg, #ff5252, #d84315);
}

.contact-button:active {
    transform: translateY(-1px);
}

/* Hidden audio control (emergency mute) */
.audio-control {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    color: white;
    font-size: 16px;
    opacity: 0.3;
}

.audio-control:hover {
    opacity: 0.8;
}