/* ============================================
   CASE STUDY PAGE STYLES
   ============================================ */

:root {
    --gradient-start: #6B46C1; /* Purple */
    --gradient-end: #F97316; /* Orange/Red */
    --white: #FFFFFF;
    --black: #000000;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --green: #10B981;
    --orange: #F97316;
    --blue: #3B82F6;
    --purple: #8B5CF6;
    --pink: #EC4899;
    --red: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.case-study-section {
    padding: 80px 0;
    position: relative;
}

.white-bg {
    background-color: var(--white);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--white);
}

.case-study-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.case-study-hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 120px 24px 100px;
    text-align: center;
    color: var(--white);
    position: relative;
}

.case-study-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.back-to-portfolio-btn {
    position: absolute;
    top: -80px;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-to-portfolio-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-5px);
}

.back-to-portfolio-btn i {
    font-size: 0.9rem;
}

.case-study-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.case-study-hero-description {
    font-size: 1.25rem;
    margin-bottom: 48px;
    opacity: 0.95;
    line-height: 1.6;
}

.case-study-hero-tags {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    min-width: 140px;
}

.hero-tag-value {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-tag-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ============================================
   SECTION TITLES & TEXT
   ============================================ */

.case-study-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.gradient-bg .case-study-section-title {
    color: var(--white);
}

.case-study-section-text {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 48px;
    max-width: 800px;
    line-height: 1.7;
}

.gradient-bg .case-study-section-text {
    color: rgba(255, 255, 255, 0.95);
}

.white-text {
    color: var(--white) !important;
}

/* ============================================
   INFO CARDS (Project Overview)
   ============================================ */

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.info-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--white);
}

.info-card-icon.green {
    background: var(--green);
}

.info-card-icon.orange {
    background: var(--orange);
}

.info-card-icon.blue {
    background: var(--blue);
}

.info-card-icon.purple {
    background: var(--purple);
}

.info-card-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.info-card-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.platform-mockup {
    margin-top: 60px;
    background: #F9FAFB;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.platform-mockup-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

/* ============================================
   CHALLENGE CARDS
   ============================================ */

.challenge-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.challenge-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.challenge-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.75rem;
    color: var(--white);
}

.challenge-icon.orange {
    background: var(--orange);
}

.challenge-icon.blue {
    background: var(--blue);
}

.challenge-icon.purple {
    background: var(--purple);
}

.challenge-icon.green {
    background: var(--green);
}

.challenge-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.challenge-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   SOLUTION CARDS
   ============================================ */

.solution-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.solution-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.solution-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.75rem;
    color: var(--white);
}

.solution-icon.purple {
    background: var(--purple);
}

.solution-icon.blue {
    background: var(--blue);
}

.solution-icon.pink {
    background: var(--pink);
}

.solution-icon.orange {
    background: var(--orange);
}

.solution-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.solution-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.visual-break {
    background: #1F2937;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual-break-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

/* ============================================
   TECHNOLOGY STACK
   ============================================ */

.tech-stack-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tech-stack-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tech-stack-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.75rem;
    color: var(--white);
}

.tech-stack-icon.pink {
    background: var(--pink);
}

.tech-stack-icon.blue {
    background: var(--blue);
}

.tech-stack-icon.purple {
    background: var(--purple);
}

.tech-stack-icon.orange {
    background: var(--orange);
}

.tech-stack-category {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.tech-stack-list {
    list-style: none;
}

.tech-stack-list li {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.tech-stack-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-light);
}

/* ============================================
   PROJECT RESULTS
   ============================================ */

.results-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.result-metric-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--white);
}

.result-icon.pink {
    background: var(--pink);
}

.result-icon.blue {
    background: var(--blue);
}

.result-icon.green {
    background: var(--green);
}

.result-icon.red {
    background: var(--red);
}

.result-icon.purple {
    background: var(--purple);
}

.result-icon.orange {
    background: var(--orange);
}

.result-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.result-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.result-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.chart-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.chart-placeholder {
    height: 250px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bar-chart {
    padding-bottom: 40px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    gap: 16px;
}

.chart-bar {
    flex: 1;
    background: var(--purple);
    border-radius: 8px 8px 0 0;
    min-width: 60px;
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.line-chart {
    padding: 20px;
}

.line-chart-line {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--pink) 0%, var(--pink) 100%);
    border-radius: 2px;
}

.line-chart-line:before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--pink);
    border-radius: 50%;
}

.line-chart-line:after {
    content: '';
    position: absolute;
    top: -4px;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--pink);
    border-radius: 50%;
}

.testimonial-card {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 48px;
    position: relative;
    margin-top: 60px;
}

.testimonial-quote-icon {
    font-size: 4rem;
    color: var(--purple);
    margin-bottom: 24px;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    font-size: 1rem;
    color: var(--text-light);
}

.testimonial-author strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* ============================================
   KEY LEARNINGS
   ============================================ */

.learnings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.learning-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.learning-check-icon {
    width: 32px;
    height: 32px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    font-size: 0.875rem;
}

.learning-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CALL TO ACTION
   ============================================ */

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cta-btn {
    background: var(--white);
    color: var(--gradient-start);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.white-btn {
    background: var(--white);
    color: var(--gradient-start);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .info-cards-grid,
    .tech-stack-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .back-to-portfolio-btn {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 24px;
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .case-study-hero {
        padding: 80px 24px 60px;
    }
    
    .case-study-hero-title {
        font-size: 2.5rem;
    }
    
    .case-study-hero-description {
        font-size: 1.125rem;
    }
    
    .case-study-section-title {
        font-size: 2rem;
    }
    
    .case-study-section {
        padding: 60px 0;
    }
    
    .info-cards-grid,
    .challenge-cards-grid,
    .solution-cards-grid,
    .tech-stack-cards-grid,
    .results-metrics-grid,
    .learnings-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-tag {
        min-width: 120px;
        padding: 12px 20px;
    }
    
    .visual-break {
        padding: 24px;
    }
    
    .testimonial-card {
        padding: 32px 24px;
    }
    
    .testimonial-text {
        font-size: 1.125rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .back-to-portfolio-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .case-study-hero {
        padding: 80px 16px 60px;
    }
    
    .case-study-hero-title {
        font-size: 2rem;
    }
    
    .case-study-container {
        padding: 0 16px;
    }
    
    .case-study-section {
        padding: 40px 0;
    }
}

