/* --------------------------------------------------------------------------
   MAURYARTE ARCHITECTURE — Project Visual Study Exhibition Slider
   -------------------------------------------------------------------------- */

.project-study-slider {
    position: relative;
    width: 100%;
    height: 90vh; /* Increased height to 90vh to maximize render visibility and prevent vertical cropping */
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background);
    margin: 1.5rem 0 0 0; /* Reduced margin slightly to bring section label closer */
}

.project-study-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-study-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.project-study-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* Image scaling and loading animation */
.study-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Default center object positioning to respect original render composition */
    /* Clean image: No brightness or color filters to preserve original render quality */
    filter: none !important; 
    transition: transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-study-slide.active .study-image {
    transform: scale(1.01);
}

@media (min-width: 1025px) {
    .project-study-slide:hover .study-image {
        transform: scale(1.03);
        filter: none !important; /* No brightness reductions on hover */
    }
}

/* Removed overlay gradients to preserve original colors and brightness */
.study-overlay {
    display: none !important;
}

/* Luxury Editorial Information Panel */
.project-study-info {
    position: absolute;
    top: 0;
    right: -26%; /* Hidden off-screen */
    width: 25%;
    height: 100%;
    background-color: rgba(11, 11, 11, 0.9);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-left: 1px solid var(--border-color);
    padding: 4.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    transition: right 0.8s cubic-bezier(0.65, 0.05, 0.36, 1);
    z-index: 5;
}

/* Hover triggers panel on desktop */
@media (min-width: 1025px) {
    .project-study-slide:hover .project-study-info {
        right: 0;
    }
}

/* Mobil / Tablet Tap state managed by JS class toggle */
.project-study-info.open {
    right: 0 !important;
}

/* Info Panel Content Elements */
.study-info-num {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--accent); /* Gold accent */
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
}

.study-info-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.1;
}

.study-info-subtitle {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--luxury-accent); /* Gold accent */
    letter-spacing: 0.18em;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.study-info-location {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    margin-bottom: 2.5rem;
}

.study-info-divider {
    width: 35px;
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 2.5rem;
}

.study-info-label {
    font-family: var(--font-accent);
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
}

.study-info-text {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* Project Slider Navigation Controls */
.project-study-navigation {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    z-index: 999 !important; /* Stacked above all other slide components */
    pointer-events: auto !important; /* Forces interactivity */
}

/* Align controls with page content container margin on wide screens */
@media (min-width: 1300px) {
    .project-study-navigation {
        left: calc((100vw - 1300px) / 2 + 2.5rem);
    }
}

.study-nav-btn {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
    pointer-events: auto !important;
    position: relative;
    z-index: 1000 !important;
}

.study-nav-btn:hover {
    color: var(--text-primary);
    border-bottom: 1px solid var(--accent);
}

.study-nav-dots {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    pointer-events: auto !important;
}

.study-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
    pointer-events: auto !important;
    position: relative;
    z-index: 1000 !important;
}

.study-nav-dot:hover {
    border-color: var(--accent);
}

.study-nav-dot.active {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.25);
}

/* Responsive Proportions */
@media (max-width: 1024px) {
    .project-study-slider {
        height: 55vh !important; /* Touch viewport height */
    }
    
    .study-image {
        object-fit: contain !important; /* Preserve proportions and show complete image */
    }

    /* Redesigned as a native-feeling bottom sheet sliding from the bottom */
    .project-study-info {
        position: absolute !important;
        top: auto !important;
        bottom: -100% !important;
        left: 0 !important;
        right: auto !important;
        width: 100% !important;
        height: auto !important;
        max-height: 55% !important;
        background-color: rgba(11, 11, 11, 0.96) !important;
        backdrop-filter: blur(20px) saturate(120%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(120%) !important;
        border-left: none !important;
        border-top: 1px solid var(--border-color) !important;
        padding: 2.5rem 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        transition: bottom 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
        z-index: 5 !important;
    }
    
    .project-study-info.open {
        bottom: 0 !important;
        right: auto !important;
    }
    
    .project-study-navigation {
        left: 2.5rem;
        bottom: 2rem;
    }
    
    .study-info-title {
        font-size: 1.5rem;
    }
    
    .study-info-location {
        margin-bottom: 1.8rem;
    }
    
    .study-info-divider {
        margin-bottom: 1.8rem;
    }
}

@media (max-width: 768px) {
    .project-study-slider {
        height: 55vh !important; /* Mobile Touch viewport height */
    }
    
    .project-study-info {
        padding: 2rem 1.5rem !important;
        max-height: 60% !important;
    }
    
    .project-study-navigation {
        left: 2rem;
        bottom: 1.5rem;
        gap: 1.5rem;
    }
    
    .study-nav-btn {
        font-size: 0.7rem;
    }
}

/* --------------------------------------------------------------------------
   MAURYARTE ARCHITECTURE — Next Project Cinematic Transition Section
   -------------------------------------------------------------------------- */

.next-project-transition {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    padding: 0;
    background-color: var(--background);
}

.next-project-link-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.next-project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Zoom scale(1.03) on hover with custom cubic-bezier */
    transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
    z-index: 1;
}

/* Cinematic overlay for text readability without washing out the architectural render */
.next-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.55)
    );
    z-index: 2;
    transition: background 0.8s ease;
}

.next-project-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.next-project-content span {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent); /* Gold accent */
    letter-spacing: 0.4em;
    font-weight: 600;
    display: block;
    opacity: 0.85;
}

.next-project-content h2 {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 300;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.1;
}

.next-project-content button {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0.25em;
    padding: 0.8rem 2rem;
    border: 1px solid var(--border-color);
    background-color: rgba(11, 11, 11, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    margin-top: 1rem;
    display: inline-block;
    cursor: pointer;
}

/* Hover Interaction: entire section zoom and premium overlay fade */
.next-project-link-wrapper:hover .next-project-bg {
    transform: scale(1.03);
}

.next-project-link-wrapper:hover .next-project-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0.45)
    );
}

.next-project-link-wrapper:hover button {
    background-color: var(--text-primary);
    color: var(--background);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* Responsive Next Project Section */
@media (max-width: 1024px) {
    .next-project-transition {
        height: 55vh; /* Tablet Height */
        min-height: 350px;
    }
    
    .next-project-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .next-project-transition {
        height: 50vh; /* Mobile Height */
        min-height: 300px;
    }
    
    .next-project-content h2 {
        font-size: 2.5rem;
    }
    
    .next-project-content button {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        color: var(--accent) !important;
        font-family: var(--font-accent) !important;
        font-size: 0.8rem !important;
        letter-spacing: 0.2em !important;
        text-transform: uppercase !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
        cursor: pointer !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transition: color 0.3s ease !important;
    }
    .next-project-content button::after {
        content: " →" !important;
        transition: transform 0.3s ease !important;
    }
    .next-project-link-wrapper:hover button {
        color: var(--text-primary) !important;
        transform: none !important;
    }
    .next-project-link-wrapper:hover button::after {
        transform: translateX(4px) !important;
    }
}
