/* Case Study Page Specific Styles - Matching Original */

/* Case Study Specific Variables Override */
:root {
    --accent-secondary: #652f2f; /* Coral red for case study */
}

/* Case Study Header Override - Original styling */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.1) 50%, transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 70%, 
        rgba(10, 14, 39, 0.8) 90%, 
        var(--primary) 100%);
    pointer-events: none;
    z-index: 5;
}

/* Case Study Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 5px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--light);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--accent);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.case-study-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(26, 29, 41, 0.8) 100%);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--light);
    font-weight: 600;
}

/* Case Study Sections */
.challenge-section, .solution-section, .results-section, .other-uses-section, .technology-section {
    margin-bottom: 4rem;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--light);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Challenge List - Original styling */
.challenge-list {
    display: grid;
    gap: 2rem;
}

.challenge-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(26, 29, 41, 0.8) 100%);
    padding: 2rem;
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.challenge-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-secondary);
}

.challenge-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.challenge-text h4 {
    color: var(--light);
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.challenge-text p {
    color: var(--light);
    line-height: 1.6;
}

/* Process Flow - Original styling */
.process-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(26, 29, 41, 0.8) 100%);
    padding: 2.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: var(--accent);
    color: var(--primary);
    font-weight: 900;
    font-size: 1.25rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--light);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-content p {
    color: var(--light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tech-detail {
    font-size: 0.875rem;
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
}

.process-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--accent);
    margin: 0.5rem 0;
    transform: rotate(90deg); /* Always point down */
}

/* Results Grid - Original styling */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.result-card {
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(26, 29, 41, 0.8) 100%);
    padding: 2.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-card h3 {
    color: var(--light);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.result-comparison {
    margin-bottom: 1.5rem;
}

.before, .after {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
}

.before {
    background: rgba(255, 107, 107, 0.1);
}

.after {
    background: rgba(0, 212, 255, 0.1);
}

.label {
    font-weight: 600;
    color: var(--light);
}

.value {
    color: var(--light);
}

.result-impact {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--accent);
}

/* Use Cases Grid - Original styling */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(26, 29, 41, 0.8) 100%);
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
}

.use-case-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.use-case-card h3 {
    color: var(--light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.use-case-card p {
    color: var(--light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.use-case-benefit {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.875rem;
}

/* Technology Stack - Original styling */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-category {
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(26, 29, 41, 0.8) 100%);
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 5px;
}

.tech-category h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-item {
    background: rgba(0, 212, 255, 0.1);
    color: var(--light);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 5px;
}

/* CTA Section - Original styling */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 5px;
    margin-bottom: 4rem;
}

.cta-content h2 {
    color: var(--light);
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 2rem;
}

.cta-content h2::after {
    display: none;
}

.cta-content p {
    color: var(--light);
    margin-bottom: 2rem;
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: rgba(0, 212, 255, 0.8);
    color: var(--primary);
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: rgba(0, 212, 255, 0.8);
    border: 2px solid rgba(0, 212, 255, 0.8);
    border-radius: 5px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.8);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Case Study Responsive Design */
@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .challenge-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step {
        flex-direction: row;
    }
}

@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .process-flow {
        max-width: 1000px;
    }
}
