/* ===== Project Layout ===== */

body {
    margin: 0;
    background: #111;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

/* HERO */
.project-hero {
    padding: 60px 4% 20px 4%;
}

.project-hero video {
    width: 100%;
    max-width: 1200px;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}

/* WRAPPER */
.project-wrapper {
    max-width: 1400px;
    margin: 40px auto 80px auto;
    padding: 0 4%;
}

/* HEADER */
.case-header {
    margin-bottom: 30px;
}

.case-header h1 {
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.case-meta {
    opacity: 0.6;
    font-size: 0.95rem;
}

/* GRID */
.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* CARD */
.case-card {
    background: #1c1c1c;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
}

.case-card h3 {
    margin-bottom: 12px;
    font-weight: 500;
}

.case-card p,
.case-info li {
    line-height: 1.6;
    opacity: 0.85;
}

/* LIST */
.case-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-info li {
    margin-bottom: 8px;
}

/* SECTIONS */
.case-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.case-section h2 {
    margin-bottom: 24px;
    font-weight: 500;
}

.case-card p {
    max-width: none;
    width: 100%;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 25px;
    ine-height: 1.8;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
}

.case-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 60px;
    align-items: center;
}

.split-text h2 {
    margin-bottom: 15px;
}

.split-text p {
    line-height: 1.7;
    opacity: 0.85;
}

.split-image img {
    width: 100%;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .case-split {
        grid-template-columns: 1fr;
    }
}

.back-container {
    margin-top: 80px;
}

.back-link {
    text-decoration: none;
    color: white;
    font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,0.6);
    padding-bottom: 4px;
    transition: 0.2s ease;
}

.back-link:hover {
    opacity: 0.6;
}

.project-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-download {
    text-decoration: none;
    color: white;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: 0.2s ease;
}

.project-download:hover {
    background: white;
    color: #111;
}

.iteration-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.iteration-images img {
    width: 100%;
    border-radius: 10px;
}

/* =========================
   BEFORE / AFTER COMPARISON
========================= */

.iteration-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 35px;
}

.comparison-card {
    background: #1c1c1c;
    border-radius: 12px;
    padding: 25px;
}

.comparison-card h3 {
    margin-bottom: 18px;
    font-size: 1.3rem;
    font-weight: 600;
}

.comparison-card img {
    width: 100%;
    border-radius: 10px;
    display: block;
    margin-bottom: 20px;
}

.comparison-card p {
    margin-top: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
    opacity: 0.85;
}

.comparison-card .case-info {
    margin-top: 15px;
}

.comparison-card .case-info li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .iteration-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .comparison-card {
        padding: 20px;
    }

    .comparison-card h3 {
        font-size: 1.2rem;
    }
}
