/* Product Case Study Styles */
.case-study-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #ffd700;
}

.metric-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Navigation Pills */
.case-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.nav-pill {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-pill:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.nav-pill.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Content Sections */
.content-sections {
    position: relative;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Overview Section */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.overview-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.overview-card p {
    color: #666;
    line-height: 1.6;
}

/* Timeline */
.timeline-container {
    margin-top: 60px;
}

.timeline-container h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    top: 0;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #667eea;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #666;
    margin: 0;
}

/* Discovery Section */
.discovery-content {
    display: grid;
    gap: 60px;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.method-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.method-card:hover {
    transform: translateY(-5px);
}

.method-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.method-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.findings-list {
    display: grid;
    gap: 20px;
}

.finding-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.finding-icon {
    font-size: 2rem;
    min-width: 60px;
    text-align: center;
}

.finding-text h4 {
    margin-bottom: 10px;
    color: #333;
}

.finding-text p {
    color: #666;
    margin: 0;
}

/* Design Section */
.user-journey {
    margin-bottom: 60px;
}

.journey-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.journey-step {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
}

.journey-arrow {
    font-size: 2rem;
    color: #667eea;
    font-weight: bold;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.principle-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.principle-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
}

/* Execution Section */
.tech-stack {
    margin-bottom: 60px;
}

.stack-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stack-category {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stack-category h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

.tech-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.phases-accordion {
    margin-top: 40px;
}

.phase-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.phase-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: background 0.3s ease;
}

.phase-header:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.phase-header h4 {
    margin: 0;
    color: #333;
    flex: 1;
}

.phase-header i {
    color: #667eea;
    transition: transform 0.3s ease;
}

.phase-item.active .phase-header i {
    transform: rotate(180deg);
}

.phase-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phase-item.active .phase-content {
    padding: 20px 30px 30px;
    max-height: 300px;
}

.phase-content ul {
    margin: 0;
    padding-left: 20px;
}

.phase-content li {
    margin-bottom: 10px;
    color: #666;
}

/* Results Section */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0 60px;
}

.kpi-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.kpi-value {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.kpi-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.kpi-description {
    font-size: 0.9rem;
    color: #666;
}

.impact-areas {
    display: grid;
    gap: 25px;
    margin-top: 40px;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 25px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.impact-icon {
    font-size: 3rem;
    min-width: 80px;
    text-align: center;
}

.impact-content h4 {
    margin-bottom: 10px;
    color: #333;
}

.impact-content p {
    color: #666;
    margin: 0;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.lesson-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.lesson-card.success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #28a745, #20c997);
}

.lesson-card.challenge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.lesson-card h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.lesson-card ul {
    margin: 0;
    padding-left: 20px;
}

.lesson-card li {
    margin-bottom: 12px;
    color: #666;
    line-height: 1.5;
}

/* Architecture Section */
.diagram-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
    text-align: center;
}

.diagram-layer {
    margin: 30px 0;
    padding: 20px;
    border-radius: 15px;
    display: inline-block;
    min-width: 300px;
}

.diagram-layer.frontend {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.diagram-layer.api {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
}

.diagram-layer.processing {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
}

.diagram-layer.data {
    background: linear-gradient(135deg, #fff3e0, #ffcc80);
}

.diagram-layer.integration {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
}

.diagram-layer h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.component {
    display: inline-block;
    background: white;
    padding: 15px 20px;
    margin: 5px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.component i {
    margin-right: 10px;
    color: #667eea;
}

.diagram-arrow {
    font-size: 2rem;
    color: #667eea;
    margin: 20px 0;
    font-weight: bold;
}

.diagram-arrow.integration {
    display: inline-block;
    margin: 0 20px;
}

.flow-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.flow-step {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.flow-step h4 {
    margin-bottom: 10px;
    color: #333;
}

.flow-step p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.spec-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.spec-card h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.spec-card ul {
    margin: 0;
    padding-left: 20px;
}

.spec-card li {
    margin-bottom: 10px;
    color: #666;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;
    border-radius: 20px;
    margin: 80px 0 40px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.cta-btn {
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn.primary {
    background: white;
    color: #667eea;
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.cta-btn.outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-metrics {
        flex-direction: column;
        gap: 30px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-marker {
        left: 10px !important;
        right: auto !important;
    }
    
    .journey-steps {
        flex-direction: column;
    }
    
    .journey-arrow {
        transform: rotate(90deg);
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .diagram-arrow.integration {
        display: block;
        transform: rotate(90deg);
        margin: 20px 0;
    }
}