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

body {
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    background: #000;
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.intro-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    /* Fix for image orientation */
    image-orientation: from-image;
}

.slide.active {
    opacity: 1;
}

.slide video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.video-controls {
    display: none !important;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.logo-container {
    position: absolute;
    top: 66.67%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    cursor: pointer;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.logo {
    width: 420px;
    height: 420px;
    display: block;
    margin: 0 auto;
    animation: fadeIn 2s ease-in-out;
    border-radius: 50%;
    padding: 15px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-wrapper-animated {
    display: inline-block;
    transition: transform 0.1s ease-out;
}

.logo-link:hover .logo {
    transform: scale(1.05);
}

.studio-name {
    color: white;
    font-size: 30px;
    letter-spacing: 4px;
    margin-top: 20px;
    font-weight: 400;
    animation: fadeInUp 2s ease-in-out;
}

.studio-hbd {
    text-transform: uppercase;
}

.studio-atelier {
    text-transform: none;
}

.enter-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-top: 15px;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInPulse 2s ease-in-out 1s forwards;
}

.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.indicator.active {
    background: white;
    border-color: white;
}

.indicator:hover {
    border-color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInPulse {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.enter-text {
    animation: fadeInPulse 2s ease-in-out 1s forwards,
               pulse 2s ease-in-out 3s infinite;
}

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .logo {
        width: 350px;
        height: 350px;
        padding: 12px;
    }
    
    .studio-name {
        font-size: 24px;
        letter-spacing: 3px;
    }
    
    .logo-container::before {
        width: 380px;
        height: 380px;
    }
}

/* Mobile Landscape */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .logo-container {
        top: 50%;
    }
    
    .logo {
        width: 180px;
        height: 180px;
        padding: 8px;
    }
    
    .studio-name {
        font-size: 16px;
        letter-spacing: 2px;
        margin-top: 10px;
    }
    
    .enter-text {
        font-size: 12px;
        margin-top: 8px;
    }
    
    .slide-indicators {
        bottom: 15px;
        gap: 10px;
    }
    
    .indicator {
        width: 7px;
        height: 7px;
    }
}

/* Mobile Portrait */
@media screen and (max-width: 768px) {
    .intro-container {
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
    }
    
    .logo-container {
        top: 70%;
    }
    
    .logo {
        width: 280px;
        height: 280px;
        padding: 10px;
    }
    
    .studio-name {
        font-size: 24px;
        letter-spacing: 2.5px;
        margin-top: 15px;
    }
    
    .studio-atelier {
        margin-left: 0.3em;
    }
    
    .enter-text {
        font-size: 14px;
        margin-top: 12px;
        letter-spacing: 1px;
    }
    
    .slide-indicators {
        bottom: 25px;
        gap: 12px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }
    
    .logo-container::before {
        width: 300px;
        height: 300px;
    }
    
    /* Keep fullscreen cover on mobile */
    .slide {
        background-size: cover;
        /* Auto-rotate images based on EXIF */
        image-orientation: from-image;
    }
    
    /* Adjust video for mobile - fullscreen */
    .slide video {
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        object-fit: cover;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .logo-container {
        top: 68%;
    }
    
    .logo {
        width: 200px;
        height: 200px;
        padding: 8px;
    }
    
    .studio-name {
        font-size: 16px;
        letter-spacing: 2px;
        margin-top: 12px;
    }
    
    .studio-atelier {
        margin-left: 0.2em;
    }
    
    .enter-text {
        font-size: 12px;
        margin-top: 10px;
        letter-spacing: 0.8px;
    }
    
    .slide-indicators {
        bottom: 20px;
        gap: 10px;
    }
    
    .indicator {
        width: 7px;
        height: 7px;
        border-width: 1.5px;
    }
    
    .logo-container::before {
        width: 220px;
        height: 220px;
    }
}

/* Very Small Mobile */
@media screen and (max-width: 375px) {
    .logo-container {
        top: 67%;
    }
    
    .logo {
        width: 170px;
        height: 170px;
        padding: 6px;
    }
    
    .studio-name {
        font-size: 16px;
        letter-spacing: 1.5px;
        margin-top: 10px;
    }
    
    .enter-text {
        font-size: 12px;
        margin-top: 8px;
        letter-spacing: 0.5px;
    }
    
    .slide-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
        border-width: 1px;
    }
    
    .logo-container::before {
        width: 190px;
        height: 190px;
    }
}

/* iPhone SE and very small screens */
@media screen and (max-width: 320px) {
    .logo-container {
        top: 65%;
    }
    
    .logo {
        width: 150px;
        height: 150px;
        padding: 5px;
    }
    
    .studio-name {
        font-size: 16px;
        letter-spacing: 1px;
        margin-top: 8px;
    }
    
    .enter-text {
        font-size: 12px;
        margin-top: 6px;
        letter-spacing: 0.5px;
    }
    
    .slide-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .indicator {
        width: 5px;
        height: 5px;
        border-width: 1px;
    }
    
    .logo-container::before {
        width: 170px;
        height: 170px;
    }
}

/* Circle animation */
.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: expandCircle 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes expandCircle {
    0% {
        width: 450px;
        height: 450px;
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        width: 550px;
        height: 550px;
        opacity: 0;
    }
}

/* Responsive circle animations */
@media screen and (max-width: 1024px) {
    @keyframes expandCircle {
        0% {
            width: 380px;
            height: 380px;
            opacity: 0;
        }
        50% {
            opacity: 0.3;
        }
        100% {
            width: 460px;
            height: 460px;
            opacity: 0;
        }
    }
}

@media screen and (max-width: 768px) {
    @keyframes expandCircle {
        0% {
            width: 300px;
            height: 300px;
            opacity: 0;
        }
        50% {
            opacity: 0.25;
        }
        100% {
            width: 360px;
            height: 360px;
            opacity: 0;
        }
    }
}

@media screen and (max-width: 480px) {
    @keyframes expandCircle {
        0% {
            width: 220px;
            height: 220px;
            opacity: 0;
        }
        50% {
            opacity: 0.2;
        }
        100% {
            width: 270px;
            height: 270px;
            opacity: 0;
        }
    }
}

@media screen and (max-width: 375px) {
    @keyframes expandCircle {
        0% {
            width: 190px;
            height: 190px;
            opacity: 0;
        }
        50% {
            opacity: 0.2;
        }
        100% {
            width: 230px;
            height: 230px;
            opacity: 0;
        }
    }
}

@media screen and (max-width: 320px) {
    @keyframes expandCircle {
        0% {
            width: 170px;
            height: 170px;
            opacity: 0;
        }
        50% {
            opacity: 0.15;
        }
        100% {
            width: 200px;
            height: 200px;
            opacity: 0;
        }
    }
}