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

body {
    font-family: 'Arial', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Header */
.header {
    position: fixed;
    top: 2.5rem;
    left: 2rem;
    z-index: 2000;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo {
    width: 60px;
    height: auto;
    margin-bottom: 0.3rem;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.studio-name {
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0.5;
}

.info-link {
    position: fixed;
    top: 6.3rem;
    right: 2rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    z-index: 2500;
    pointer-events: auto;
}

/* Ensure info link is always clickable */
.info-link:hover {
    opacity: 1;
}

/* Force info link to be clickable even when info panel is open */
.info-panel.visible ~ .info-link,
.info-panel.visible + .info-link,
.info-link {
    pointer-events: auto !important;
    z-index: 2500 !important;
}

/* Info Panel */
.info-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px; /* Move content up even more */
}

.info-panel.visible {
    opacity: 1;
    visibility: visible;
}

.info-content {
    text-align: left;
    max-width: 600px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    transition-delay: 0.1s;
}

.info-panel.visible .info-content {
    opacity: 1;
}

.studio-description {
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    transition-delay: 0.2s;
    margin-bottom: 1rem;
}

.inline-logo {
    width: 2.5rem;
    height: auto;
    vertical-align: middle;
    margin: 0 0.2rem;
    display: inline-block;
}

.info-panel.visible .studio-description {
    opacity: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    transition-delay: 0.3s;
}

.info-panel.visible .contact-info {
    opacity: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    position: relative;
}

.studio-info {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.studio-info .label {
    margin-top: 0.2rem;
}

.label {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
}

.value {
    font-size: 1.8rem;
    font-weight: 300;
}

.copy-btn {
    width: 18px;
    height: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    filter: invert(1); /* Make SVG white */
    margin-top: 2px;
}

.copy-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.back-arrow {
    width: 18px;
    height: auto;
    cursor: pointer;
    opacity: 0.5;
    filter: invert(1); /* Make SVG white */
    transition: all 0.3s ease;
    transform-origin: top left;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 1rem;
}

.back-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 4rem;
    max-width: 100vw;
    overflow-x: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.services-list {
    list-style: none;
    text-align: center;
    position: relative;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-item {
    font-size: 3rem;
    font-weight: 300;
    margin: 2rem 0;
    cursor: default;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), margin 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.service-text {
    display: inline-block;
    padding: 0.5rem 1rem;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hover states */
.service-item:hover .service-text {
    color: #ffffff;
}

/* Non-hovered items when another is hovered */
.service-item:not(:hover) {
    opacity: 0.2;
    filter: grayscale(70%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Media follower */
.media-follower {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translate(-50%, -50%);
}

.media-follower img,
.media-follower video {
    max-width: 400px;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.media-follower.visible {
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



/* Responsive design */
@media (max-width: 1200px) {
    .service-item {
        font-size: 2.5rem;
        margin: 2.5rem 0;
    }
}

@media (max-width: 900px) {
    .service-item {
        font-size: 2rem;
        margin: 3rem 0;
    }
}

@media (max-width: 768px) {
    .service-item {
        font-size: 1.8rem;
        margin: 3.5rem 0;
    }
    
    .media-follower img,
    .media-follower video {
        max-width: 300px;
        max-height: 300px;
    }
}

/* Handle very small screens and scaled-down desktop pages */
@media (max-width: 600px) {
    /* Reset media follower positioning for very small screens */
    .media-follower {
        position: fixed !important;
        top: 14rem !important;
        left: 1rem !important;
        right: 1rem !important;
        bottom: 2rem !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
    }
    
    .media-follower img,
    .media-follower video {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Force mobile layout even when scaled down */
    .container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        z-index: 10 !important;
    }
    
    .services-list {
        position: fixed !important;
        top: 6rem !important;
        left: 1rem !important;
        list-style: none !important;
        text-align: left !important;
        z-index: 50 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .service-item {
        font-size: 1.2rem !important;
        font-weight: 300 !important;
        margin: 0.5rem 0 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        white-space: nowrap !important;
        opacity: 0.6 !important;
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    /* Force instant transitions when info panel is open on mobile */
    .info-panel.visible ~ * .service-item,
    .info-panel.visible ~ .service-item,
    .info-panel.visible + .service-item,
    .info-panel.visible .service-item,
    .service-item.info-hidden {
        transition: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Override active service opacity when info panel is open */
    .info-panel.visible ~ * .service-item.active,
    .info-panel.visible ~ .service-item.active,
    .info-panel.visible + .service-item.active,
    .info-panel.visible .service-item.active,
    .service-item.active.info-hidden {
        opacity: 0 !important;
        transition: none !important;
    }
    
    .service-item.active {
        opacity: 1 !important;
    }
    
    .service-item.active::after {
        content: '';
        width: 8px;
        height: 8px;
        background-color: #ffffff;
        border-radius: 50%;
        display: inline-block;
        transition: all 0.3s ease;
        transform: scale(1);
    }
    
    .service-item:not(.active)::after {
        content: '';
        width: 8px;
        height: 8px;
        background-color: #ffffff;
        border-radius: 50%;
        display: inline-block;
        margin-left: 0.3rem;
        transition: all 0.3s ease;
        transform: scale(0);
        opacity: 0;
    }
    
    /* Remove transitions from pseudo-elements when info panel is open */
    .info-panel.visible ~ * .service-item::after,
    .info-panel.visible ~ .service-item::after,
    .info-panel.visible + .service-item::after,
    .info-panel.visible .service-item::after,
    .service-item.info-hidden::after {
        transition: none !important;
        opacity: 0 !important;
        transform: scale(0) !important;
    }
    
    .service-text {
        padding: 0 !important;
        text-shadow: none !important;
        color: #ffffff !important;
    }
    
    /* Scale down editing media by 20% on mobile */
    .media-follower img[src="1.gif"],
    .media-follower video[src="1.gif"] {
        transform: scale(0.8);
    }
    
    /* Reset header positioning */
    .header {
        position: fixed !important;
        top: 1.5rem !important;
        left: 1rem !important;
        z-index: 100 !important;
    }
    
    .logo {
        width: 40px !important;
        margin-bottom: 0.2rem !important;
    }
    
    .studio-name {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .info-link {
        position: fixed !important;
        top: 3.3rem !important;
        right: 1rem !important;
        font-size: 0.9rem !important;
        z-index: 2500 !important;
        pointer-events: auto !important;
        opacity: 0.5 !important;
    }
    
    /* Media follower for mobile - positioned below services */
    .media-follower {
        position: fixed !important;
        top: 14rem !important;
        left: 1rem !important;
        right: 1rem !important;
        bottom: 2rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        z-index: 20 !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
        transform: none !important;
    }
    
    .media-follower.visible {
        opacity: 1 !important;
    }
    
    .media-follower img,
    .media-follower video {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 12px !important;
        box-shadow: none !important;
    }
    
    .media-follower video {
        /* Prevent fullscreen takeover on mobile */
        position: relative !important;
        z-index: 1 !important;
        /* Ensure video stays within bounds */
        max-width: calc(100vw - 2rem) !important;
        max-height: calc(100vh - 18rem) !important;
    }
    
    /* Additional video controls to prevent fullscreen */
    .media-follower video::-webkit-media-controls-fullscreen-button {
        display: none !important;
    }
    
    .media-follower video::-webkit-media-controls {
        display: none !important;
    }
    
    /* Ensure video doesn't overflow container */
    .media-follower video:fullscreen {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Info panel mobile adjustments */
    .info-content {
        transform: scale(0.9) !important;
        transform-origin: center center !important;
        padding: 1.5rem !important;
        margin-top: -12rem !important;
        gap: .5rem !important;
    }
    
    .studio-description {
        font-size: 1.5rem !important;
    }
    
    .inline-logo {
        width: 1.5rem !important;
        margin: 0 0.01rem !important;
    }
    
    .label {
        font-size: 0.8rem !important;
    }
    
    .value {
        font-size: 1.1rem !important;
    }
    
    /* Mobile touch interactions only */
    .service-item:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }
    
    /* Larger touch targets for mobile */
    .info-link {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .copy-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 5px !important;
        transform: scale(0.5) !important;
    }
    
    .back-arrow {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 10px !important;
    }
    
    /* Mobile contact info cleanup */
    .contact-info {
        gap: .1rem !important;
    }
    
    .contact-item {
        gap: 0.8rem !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }
    
    .studio-info {
        gap: 0.8rem !important;
        align-items: flex-start !important;
        flex-wrap: wrap !important;
    }
    
    .studio-info .label {
        margin-top: 0.2rem !important;
    }
    
    .label {
        font-size: 0.8rem !important;
        min-width: fit-content !important;
    }
    
    .value {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }
    
    .copy-btn {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 5px !important;
        transform: scale(0.5) !important;
    }
} 