/* ========================================
   AI Research Case Study Page Styles
   ======================================== */

/* Hero Section */
.case-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #1a2744 50%, #2a3f5f 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(218, 165, 32, 0.1) 2px, rgba(218, 165, 32, 0.1) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(218, 165, 32, 0.1) 2px, rgba(218, 165, 32, 0.1) 4px);
    background-size: 50px 50px;
}

.case-hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 50px;
    color: #daa520;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #daa520 0%, #ffd700 50%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b8c5d6;
    line-height: 1.8;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #daa520;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #8fa3b8;
    letter-spacing: 0.5px;
}

/* Case Study Section */
.case-study {
    padding: 100px 0;
    background: #fff;
}

.case-study.alt {
    background: #f8f9fa;
}

.case-header {
    text-align: center;
    margin-bottom: 80px;
}

.case-label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.case-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: #daa520;
    letter-spacing: 1px;
}

.case-category {
    padding: 6px 16px;
    background: linear-gradient(135deg, #0a1628 0%, #1a2744 100%);
    color: #daa520;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.case-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0a1628;
    margin-bottom: 16px;
}

.case-client {
    font-size: 1.1rem;
    color: #6c757d;
    font-style: italic;
}

.case-content {
    max-width: 1100px;
    margin: 0 auto;
}

/* Case Section */
.case-section {
    margin-bottom: 80px;
}

.section-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.section-icon.challenge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
}

.section-icon.solution {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: #fff;
}

.section-icon.results {
    background: linear-gradient(135deg, #daa520 0%, #ffd700 100%);
    color: #fff;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 32px;
}

/* Challenge List */
.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.challenge-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 2px solid #fee;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.case-study.alt .challenge-item {
    background: #fff;
}

.challenge-item:hover {
    border-color: #ff6b6b;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15);
    transform: translateY(-2px);
}

.challenge-item > i {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 1.3rem;
}

.challenge-item strong {
    display: block;
    font-size: 1.1rem;
    color: #0a1628;
    margin-bottom: 8px;
}

.challenge-item p {
    color: #495057;
    line-height: 1.7;
    margin: 0;
}

/* Solution Content */
.solution-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.solution-overview {
    padding: 24px;
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.05) 0%, rgba(55, 178, 77, 0.05) 100%);
    border-left: 4px solid #51cf66;
    border-radius: 8px;
}

.solution-overview p {
    font-size: 1.05rem;
    color: #495057;
    line-height: 1.8;
    margin: 0;
}

.solution-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: #fff;
    border: 2px solid #e9f5ec;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.case-study.alt .feature-card {
    background: #fff;
}

.feature-card:hover {
    border-color: #51cf66;
    box-shadow: 0 8px 24px rgba(81, 207, 102, 0.15);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 16px;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card ul li {
    padding: 8px 0;
    padding-left: 24px;
    color: #495057;
    position: relative;
    line-height: 1.6;
}

.feature-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #51cf66;
    font-weight: 700;
}

/* Tech Stack */
.tech-stack {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
}

.tech-stack h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 16px;
}

.tech-stack h4 i {
    color: #6c757d;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #0a1628;
    color: #daa520;
    border-color: #0a1628;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.result-card {
    padding: 32px;
    background: #fff;
    border: 2px solid #fff4e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.case-study.alt .result-card {
    background: #fff;
}

.result-card.highlight {
    border-color: #daa520;
    background: linear-gradient(135deg, #fff9e6 0%, #fff4e0 100%);
}

.result-card:hover {
    box-shadow: 0 8px 24px rgba(218, 165, 32, 0.2);
    transform: translateY(-4px);
}

.result-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #daa520;
    margin-bottom: 8px;
}

.result-label {
    font-size: 1rem;
    font-weight: 600;
    color: #0a1628;
    margin-bottom: 8px;
}

.result-detail {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Customer Voice */
.customer-voice {
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #daa520;
    border-radius: 12px;
    position: relative;
}

.customer-voice i {
    font-size: 2rem;
    color: #daa520;
    opacity: 0.3;
    margin-bottom: 16px;
}

.voice-text {
    font-size: 1.1rem;
    color: #0a1628;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 16px;
}

.voice-author {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 600;
    text-align: right;
    margin: 0;
}

/* Project Timeline */
.project-timeline {
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
}

.project-timeline h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 32px;
}

.project-timeline h4 i {
    color: #daa520;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, #daa520 0%, #ffd700 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #daa520;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

.timeline-content {
    padding: 16px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 700;
    color: #daa520;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 1rem;
    color: #0a1628;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a1628 0%, #1a2744 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 24px;
}

.cta-text {
    font-size: 1.2rem;
    color: #b8c5d6;
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #daa520 0%, #ffd700 100%);
    color: #0a1628;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(218, 165, 32, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #daa520;
    border-color: #daa520;
}

.btn-secondary:hover {
    background: rgba(218, 165, 32, 0.1);
    border-color: #ffd700;
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .case-hero {
        min-height: 60vh;
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .case-study {
        padding: 60px 0;
    }

    .case-header {
        margin-bottom: 50px;
    }

    .case-title {
        font-size: 2rem;
    }

    .case-label {
        flex-direction: column;
        gap: 8px;
    }

    .challenge-item {
        flex-direction: column;
    }

    .solution-features {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: -28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .case-title {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .challenge-item,
    .feature-card,
    .result-card {
        padding: 20px;
    }

    .customer-voice {
        padding: 24px;
    }

    .voice-text {
        font-size: 1rem;
    }
}
