/* Split Layout - Editorial Style */
.split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding-top: 0;
}

/* Left Column: Sticky Content */
.split-content {
    width: 45%;
    padding: 8rem 3rem 4rem 4rem;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 20;
    overflow-y: auto;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.split-content::-webkit-scrollbar {
    display: none;
}

/* Right Column: Visual Scroll */
.split-visual {
    width: 55%;
    background: linear-gradient(to bottom, #0a0e27, #1a1f3a);
    position: relative;
    perspective: 1000px;
    padding: 8rem 4rem 4rem;
    overflow: hidden;
    z-index: 10;
}

/* Typography Enhancements */
.project-title-large {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, var(--slate-300) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow-wrap: break-word;
    hyphens: auto;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.meta-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan-400);
    margin-bottom: 0.5rem;
}

.meta-item p {
    font-size: 1.1rem;
    color: white;
    font-weight: 500;
}

.project-description-large {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--slate-300);
    margin-bottom: 3rem;
    max-width: 90%;
}

/* 3D Visual Cards */
.visual-card-wrapper {
    margin-bottom: 4rem;
    perspective: 1500px;
    /* Create depth */
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 800px;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(5deg) translateZ(0);
}

.visual-card:hover {
    transform: rotateY(0deg) rotateX(0deg) translateZ(20px) scale(1.02);
    z-index: 50;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px var(--cyan-400) inset;
}

.visual-card img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.visual-card:hover img {
    opacity: 1;
}

/* Responsive Handling */
@media (max-width: 1024px) {
    .split-layout {
        flex-direction: column;
    }

    .split-content {
        width: 100%;
        height: auto;
        position: relative;
        padding: 6rem 2rem 4rem;
    }

    .split-visual {
        width: 100%;
        padding: 2rem;
    }

    .project-title-large {
        font-size: 3.5rem;
    }

    .visual-card {
        transform: none !important;
        /* Disable 3D on mobile for readability */
        margin-bottom: 2rem;
    }
}