/* --- PROJECT SLIDE-OUT PANEL --- */

/* The Dark Backdrop */
.panel-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.panel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* The Sliding Panel Container */
.panel-container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 66vw; 
    background-color: var(--bg-color);
    z-index: 1001;
    display: flex;
    flex-direction: row;
    
    /* MAIN PANEL ANIMATION */
    transform: translateX(200%);
    transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.panel-container.open {
    transform: translateX(0);
}

/* --- PANEL INTERNAL LAYOUT & LAYERING --- */

.panel-col-left {
    width: 35%;
    border-right: 1px dashed var(--border-color);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; 
    position: relative;
    z-index: 20; 
    background-color: var(--bg-color);
}

.panel-col-right {
    width: 65%;
    padding: 60px 60px;
    overflow-y: auto;
    overflow-x: hidden; 
    position: relative;
    z-index: 10;
}

/* --- ADVANCED ANIMATION CHOREOGRAPHY --- */

/* 1. LEFT PANEL CONTENT */
.panel-col-left .anim-item {
    opacity: 1; 
    transform: translateX(105%); 
    transition: transform 0.6s ease-in;
}

.panel-container.open .panel-col-left .anim-item {
    transform: translateX(0);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

/* 2. RIGHT PANEL CONTENT */
.panel-col-right .anim-item {
    opacity: 1;
    transform: translateX(105%);
    transition: transform 0.6s ease-in;
}

.panel-container.open .panel-col-right .anim-item {
    transform: translateX(0);
}

/* --- STAGGERED SPEEDS & DELAYS (RIGHT PANEL) --- */

.panel-container.open #panelImageContainer.anim-item {
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}

.panel-container.open .panel-body-text.anim-item {
    transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s;
}


/* --- TYPOGRAPHY & ELEMENTS --- */

.panel-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 30;
    padding: 5px;
    transition: transform 0.6s ease;
}

.panel-close-btn:hover {
    transform: rotate(180deg);
}

.info-group { margin-bottom: 40px; }
.info-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--border-color);
    margin-bottom: 12px;
    display: block;
}
.info-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    color: var(--text-color);
    line-height: 1.1;
    margin-bottom: 8px;
}
.info-list { list-style: none; padding: 0; }
.info-list li {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 6px;
    opacity: 0.8;
}

.panel-img-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--placeholder-bg);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-color);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.panel-body-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
}

/* NEW: Space between dynamic paragraphs */
.panel-body-text p {
    margin-bottom: 24px;
}

.panel-body-text p:last-child {
    margin-bottom: 0;
}