/* ============================================================
   Portfolio Details Page Styles
   Matching Ghouse Portfolio Dark Theme
   ============================================================ */

/* Top Hero & Header */
.case-study-hero {
    padding-top: 170px;
    padding-bottom: 60px;
}

.case-study-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(183, 8, 8, 0.12);
    border: 1px solid rgba(183, 8, 8, 0.3);
    border-radius: 100px;
    color: #ff4d4d;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.case-study-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .case-study-title {
        font-size: 42px;
    }
}

@media (max-width: 575px) {
    .case-study-title {
        font-size: 32px;
    }
}

.case-study-impact-highlight {
    font-size: 20px;
    color: #aaa;
    margin-bottom: 40px;
}

.case-study-impact-highlight strong {
    color: #fff;
}

/* Metadata Bar */
.case-study-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 30px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 60px;
}

@media (max-width: 991px) {
    .case-study-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 24px;
    }
}

@media (max-width: 575px) {
    .case-study-meta-grid {
        grid-template-columns: 1fr;
    }
}

.meta-item .meta-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 6px;
}

.meta-item .meta-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

/* Hero Cover Image */
.case-study-cover-wrap {
    margin-bottom: 80px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #151515;
}

.case-study-cover-wrap img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

/* Content Sections */
.case-study-section {
    padding-bottom: 80px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b70808;
    margin-bottom: 12px;
}

.section-heading-lg {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.25;
}

@media (max-width: 767px) {
    .section-heading-lg {
        font-size: 28px;
    }
}

/* Overview Box */
.overview-text {
    font-size: 18px;
    line-height: 1.8;
    color: #bbb;
}

/* Problem Card */
.problem-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
}

.problem-statement-text {
    font-size: 19px;
    line-height: 1.7;
    color: #e5e5e5;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid #b70808;
}

.problem-points-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 767px) {
    .problem-points-grid {
        grid-template-columns: 1fr;
    }
}

.problem-point-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 15px;
    color: #aaa;
    line-height: 1.6;
}

.problem-point-item i {
    color: #b70808;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Goals Comparison Cards */
.goal-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px 32px;
    height: 100%;
}

.goal-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.goal-card-header .goal-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.goal-card.business .goal-icon {
    background: rgba(183, 8, 8, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(183, 8, 8, 0.3);
}

.goal-card.user .goal-icon {
    background: rgba(0, 168, 150, 0.15);
    color: #00e5cc;
    border: 1px solid rgba(0, 168, 150, 0.3);
}

.goal-card-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.goal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.goal-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #bbb;
}

.goal-card.business .goal-list li i {
    color: #ff4d4d;
    margin-top: 4px;
    flex-shrink: 0;
}

.goal-card.user .goal-list li i {
    color: #00e5cc;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Key Impact Cards */
.impact-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 28px;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #b70808;
    opacity: 0.8;
}

.impact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(183, 8, 8, 0.4);
}

.impact-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.35;
}

.impact-card-desc {
    font-size: 15px;
    line-height: 1.65;
    color: #999;
    margin: 0;
}

/* Design Process Roadmap */
.process-step-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 28px;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.process-step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.process-step-num {
    font-size: 32px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.12);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.process-step-title {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.process-step-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #999;
    margin: 0;
}

/* Reflection Blockquote */
.reflection-card {
    background: linear-gradient(135deg, rgba(183, 8, 8, 0.08) 0%, rgba(26, 26, 26, 1) 100%);
    border: 1px solid rgba(183, 8, 8, 0.25);
    border-radius: 16px;
    padding: 44px 40px;
    position: relative;
}

.reflection-icon {
    font-size: 32px;
    color: #b70808;
    margin-bottom: 20px;
}

.reflection-quote {
    font-size: 20px;
    font-style: italic;
    line-height: 1.75;
    color: #ddd;
    margin: 0 0 20px;
}

@media (max-width: 767px) {
    .reflection-quote {
        font-size: 17px;
    }
}

.reflection-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reflection-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.reflection-author-role {
    font-size: 13px;
    color: #888;
}

/* Tools Row */
.tools-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.tool-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tool-pill:hover {
    background: rgba(183, 8, 8, 0.15);
    border-color: rgba(183, 8, 8, 0.35);
    color: #fff;
}

.tool-pill i {
    color: #b70808;
    font-size: 14px;
}

/* Prev / Next Project Navigation */
.project-pagination-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 0;
    margin-top: 60px;
    margin-bottom: 60px;
}

.project-nav-link {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-nav-link.prev-link {
    text-align: left;
}

.project-nav-link.next-link {
    text-align: right;
}

.project-nav-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-nav-link.next-link .project-nav-label {
    justify-content: flex-end;
}

.project-nav-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s ease;
}

.project-nav-link:hover .project-nav-title {
    color: #ff4d4d;
}

.all-projects-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.all-projects-btn:hover {
    background: #b70808;
    border-color: #b70808;
    color: #fff;
}
