/**
 * ========================================
 * SERVICES PAGE - THEATER BUILD-UP
 * ========================================
 * 
 * Horizontal scroll animation showing
 * layer-by-layer theater construction
 */

/* ========================================
   SERVICES SCROLL WRAPPER
   ======================================== */
.services-scroll-wrapper {
    display: flex;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    background: #0a0a0a;
}

.services-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.services-scroll-wrapper::-webkit-scrollbar-track {
    background: #1A1A1A;
}

.services-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #C9A961;
    border-radius: 4px;
}

.services-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

/* ========================================
   SECTIONS
   ======================================== */
.s-section {
    min-width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* ========================================
   INTRODUCTION SECTION
   ======================================== */
.s-intro {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.s-intro-content {
    text-align: center;
    color: white;
    z-index: 10;
}

.s-eyebrow {
    font-family: 'Myriad Pro', sans-serif;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    display: block;
    margin-bottom: 20px;
}

.s-title {
    font-family: 'Bounded', sans-serif;
    font-size: 80px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    color: white;
}

.s-subtitle {
    font-family: 'Myriad Pro', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 50px;
}

.scroll-indicator {
    font-family: 'Myriad Pro', sans-serif;
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

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

/* ========================================
   THEATER BUILD SECTIONS
   Each build step is a snap point
   ======================================== */
.s-build-step {
    background: #0a0a0a;
    position: relative;
}

/* ========================================
   BUILD LAYERS
   Start absolute, become fixed after intro
   Animate from center to sides based on direction
   ======================================== */
.build-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72vw;
    max-width: 1120px;
    height: auto;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 5;
}

/* Fixed positioning when past intro section */
.build-layer.fixed-position {
    position: fixed;
}

/* Default centered position (inactive) */
.build-layer {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Active state - move to final position based on direction */
.build-layer.active {
    opacity: 1;
    pointer-events: auto;
}

/* Direction-based animations - start offset, end at center */
/* Bottom: starts below, moves up to center */
.build-layer[data-direction="bottom"] {
    transform: translate(-50%, -50%) translateY(50px);
}

.build-layer[data-direction="bottom"].active {
    transform: translate(-50%, -50%) translateY(0);
}

/* Left: starts from right, moves left to center */
.build-layer[data-direction="left"] {
    transform: translate(-50%, -50%) translateX(30px);
}

.build-layer[data-direction="left"].active {
    transform: translate(-50%, -50%) translateX(0);
}

/* Right: starts from left, moves right to center */
.build-layer[data-direction="right"] {
    transform: translate(-50%, -50%) translateX(-80px);
}

.build-layer[data-direction="right"].active {
    transform: translate(-50%, -50%) translateX(0);
}

/* Top: starts above, moves down to center */
.build-layer[data-direction="top"] {
    transform: translate(-50%, -50%) translateY(-50px);
}

.build-layer[data-direction="top"].active {
    transform: translate(-50%, -50%) translateY(0);
}

/* Center: just scales in */
.build-layer[data-direction="center"] {
    transform: translate(-50%, -50%) scale(0.95);
}

.build-layer[data-direction="center"].active {
    transform: translate(-50%, -50%) scale(1);
}

/* Speaker layers - appear behind Baltic Birch Plywood */
/* .speaker-layer {
    z-index: 3 !important;
} */

/* Staggered animation delays for speakers */
.speaker-layer[data-delay="0.5"].active {
    transition-delay: 0.5s;
}

.speaker-layer[data-delay="1"].active {
    transition-delay: 1s;
}

.speaker-layer[data-delay="1.5"].active {
    transition-delay: 1.5s;
}

.speaker-layer[data-delay="2"].active {
    transition-delay: 2s;
}

.speaker-layer[data-delay="2.5"].active {
    transition-delay: 2.5s;
}

.speaker-layer[data-delay="3"].active {
    transition-delay: 3s;
}

.speaker-layer[data-delay="3.5"].active {
    transition-delay: 3.5s;
}

/* Baltic Birch Plywood - always higher z-index than speakers */
#layer-baltic-birch-plywood {
    z-index: 10 !important;
}

/* Semi-transparent while speakers are being placed */
#layer-baltic-birch-plywood.speakers-placing {
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

/* Return to opaque when speakers are all in place */
#layer-baltic-birch-plywood.speakers-complete {
    opacity: 1;
    transition: opacity 0.5s ease 3.5s;
}

/* SVG styling */
.layer-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Layer information block - fixed in top left corner */
.layer-info {
    position: fixed;
    top: 15px;
    left: 15px;
    text-align: left;
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 100;
}

.build-layer.active .layer-info {
    opacity: 1;
}

.layer-title {
    font-family: 'Bounded', sans-serif;
    font-size: 32px;
    color: white;
    margin: 0 0 10px 0;
}

.layer-description {
    font-family: 'Myriad Pro', sans-serif;
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* ========================================
   BUILD PROGRESS INDICATOR
   ======================================== */
.build-progress {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    z-index: 100;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-family: 'Myriad Pro', sans-serif;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   COMPLETION SECTION
   ======================================== */
.s-completion {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.s-completion-content {
    text-align: center;
    color: white;
}

.s-completion-title {
    font-family: 'Bounded', sans-serif;
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 20px;
    color: white;
}

.s-completion-subtitle {
    font-family: 'Myriad Pro', sans-serif;
    font-size: 18px;
    color: #ccc;
    margin-bottom: 40px;
}

.btn-luxury {
    display: inline-block;
    background: #1c1c1c;
    border: 0.5px solid white;
    padding: 15px 40px;
    font-family: 'Myriad Pro', sans-serif;
    font-size: 14px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-luxury:hover {
    background: white;
    color: #1c1c1c;
}

/* ========================================
   ACTIVE NAV LINK
   ======================================== */
.h-nav-link.active {
    opacity: 1;
    border-bottom: 1px solid white;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .s-title {
        font-size: 48px;
    }
    
    .s-completion-title {
        font-size: 40px;
    }
    
    .build-progress {
        width: 90%;
    }
    
    .layer-info {
        bottom: -80px;
    }
    
    .layer-title {
        font-size: 18px;
    }
}
