/**
 * Case Studies Page Styles
 * Professional, modern design matching PAP branding
 */

/* Hero Section */
.case-studies-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #850D8C 0%, #CFE132 100%);
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(207, 225, 50, 0.2), transparent 50%),
                radial-gradient(circle at bottom left, rgba(133, 13, 140, 0.3), transparent 50%);
    pointer-events: none;
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: white;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #CFE132;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-main-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px 0;
}

.gradient-text {
    background: linear-gradient(135deg, #CFE132, #FFC107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.3rem;
    margin: 0;
    opacity: 0.95;
    font-weight: 300;
}

/* Stats Section */
.case-studies-stats {
    padding: 80px 0;
    background: #f9fafb;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

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

.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(133, 13, 140, 0.15);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #850D8C, #CFE132);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* Case Studies Grid Section */
.case-studies-grid-section {
    padding: 100px 0;
    background: white;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin: 0 0 60px 0;
    color: #1a202c;
}

.highlight {
    background: linear-gradient(135deg, #850D8C, #CFE132);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Case Study Cards */
.case-study-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    background: #f9fafb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.case-study-card:hover {
    box-shadow: 0 10px 40px rgba(133, 13, 140, 0.12);
    transform: translateY(-5px);
}

.case-study-card.reverse {
    grid-template-columns: 1fr 1fr;
}

.case-study-card.reverse .case-study-image {
    order: 2;
}

.case-study-card.reverse .case-study-content {
    order: 1;
}

.case-study-image {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #850D8C, #CFE132);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder styling if no image */
.case-study-image:empty::after {
    content: '📊';
    font-size: 5rem;
    opacity: 0.3;
}

.case-study-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-study-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.case-study-industry,
.case-study-service {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.case-study-industry {
    background: rgba(133, 13, 140, 0.1);
    color: #850D8C;
}

.case-study-service {
    background: rgba(207, 225, 50, 0.2);
    color: #5c0862;
}

.case-study-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.case-study-challenge,
.case-study-solution {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 15px;
}

.case-study-results {
    margin: 20px 0;
}

.case-study-results strong {
    font-size: 1.1rem;
    color: #1a202c;
    display: block;
    margin-bottom: 10px;
}

.case-study-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-study-results li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #374151;
}

.case-study-results li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #850D8C;
    font-weight: 700;
}

.case-study-link {
    display: inline-block;
    color: #850D8C;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.case-study-link:hover {
    color: #CFE132;
    transform: translateX(5px);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: #f9fafb;
}

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

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    color: rgba(133, 13, 140, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(133, 13, 140, 0.15);
}

.testimonial-quote {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-author strong {
    color: #1a202c;
    font-size: 1rem;
}

.testimonial-author span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* CTA Section */
.case-studies-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #850D8C, #CFE132);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: white;
    margin: 0 0 20px 0;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px 0;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #850D8C;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #850D8C;
}

/* Responsive Design */
@media (max-width: 968px) {
    .case-study-card,
    .case-study-card.reverse {
        grid-template-columns: 1fr;
    }

    .case-study-card.reverse .case-study-image {
        order: 1;
    }

    .case-study-card.reverse .case-study-content {
        order: 2;
    }

    .case-study-content {
        padding: 30px;
    }

    .case-study-image {
        min-height: 300px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .case-study-content {
        padding: 20px;
    }
}
