/* ============================================
   PREMIUM CASE STUDY STYLES
   Reusable styles for all case study pages
   ============================================ */

:root {
    --cs-primary-gradient: linear-gradient(135deg, #89389f, #ed2925);
    --cs-primary-purple: #89389f;
    --cs-primary-red: #ed2925;
    --cs-dark-bg: #1a1a1a;
    --cs-light-bg: #ffffff;
    --cs-gray-bg: #f8f9fa;
    --cs-text-dark: #1a1a1a;
    --cs-text-gray: #666666;
    --cs-text-light: #ffffff;
}

/* Hero Section - Split Layout */
.case-study-hero {
    background-color: var(--cs-dark-bg);
    padding: 0;
    position: relative;
    overflow: visible;
}

.hero-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}

.hero-text-content {
    padding: 80px 60px 100px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-image-container {
    position: relative;
    overflow: hidden;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.case-study-label {
    background: var(--cs-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.case-study-title {
    color: var(--cs-text-light);
    font-size: 38px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.case-study-intro {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.7;
    max-width: 450px;
}

.hero-logo-circle {
    position: absolute;
    bottom: -50px;
    left: 60px;
    width: 110px;
    height: 110px;
    background: var(--cs-light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.hero-logo-circle img {
    max-width: 70px;
    height: auto;
}

/* Client Info Section */
.client-info-section {
    background: var(--cs-light-bg);
    padding: 80px 40px 50px;
    border-bottom: 1px solid #eee;
}

.client-info-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    padding-left: 140px;
}

.client-info-grid {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.client-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.client-info-label {
    background: var(--cs-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.client-info-value {
    color: var(--cs-text-dark);
    font-size: 16px;
    font-weight: 500;
}

.client-info-value a {
    color: var(--cs-text-dark);
    text-decoration: none;
}

.client-info-value a:hover {
    color: var(--cs-primary-purple);
}

/* Challenge Section - Premium Redesign */
.challenge-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 100px 0;
    overflow: hidden;
}

.challenge-header {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 40px;
    text-align: center;
}

.challenge-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 72px;
    font-weight: 800;
    color: var(--cs-text-dark);
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 20px;
    line-height: 1;
}

.challenge-header h2 span {
    background: var(--cs-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.challenge-header p {
    font-size: 20px;
    color: var(--cs-text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.challenge-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.challenge-image-wrapper {
    position: relative;
}

.challenge-image-wrapper img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.challenge-image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--cs-primary-gradient);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(137, 56, 159, 0.3);
}

.challenge-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.challenge-card {
    background: white;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--cs-primary-purple);
    transition: all 0.3s ease;
    position: relative;
}

.challenge-card::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    background: var(--cs-primary-gradient);
    border-radius: 4px 0 0 4px;
}

.challenge-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.challenge-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--cs-text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.challenge-card h3 .card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--cs-primary-gradient);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.challenge-card p {
    font-size: 15px;
    color: var(--cs-text-gray);
    line-height: 1.6;
    margin: 0;
    padding-left: 40px;
}

/* Solution Section - Premium */
.solution-section {
    background: var(--cs-gray-bg);
    padding: 80px 0;
}

.solution-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.solution-header {
    text-align: center;
    margin-bottom: 60px;
}

.solution-header h2 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cs-text-gray);
    margin-bottom: 15px;
}

.solution-header p {
    font-size: 18px;
    color: var(--cs-text-dark);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.solution-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.solution-pillar {
    background: var(--cs-light-bg);
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.pillar-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--cs-primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.solution-pillar h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--cs-text-dark);
    margin-bottom: 15px;
}

.solution-pillar p {
    font-size: 15px;
    color: var(--cs-text-gray);
    line-height: 1.7;
    margin-bottom: 10px;
}

/* Device Mockups - Overlapping */
.devices-showcase {
    position: relative;
    height: 450px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-laptop {
    position: absolute;
    width: 65%;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.device-tablet {
    position: absolute;
    width: 30%;
    z-index: 2;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
}

.device-mobile {
    position: absolute;
    width: 15%;
    z-index: 3;
    left: 8%;
    bottom: 10%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
}

/* Results Section - Premium */
.results-section {
    background: var(--cs-gray-bg);
    padding: 80px 0;
}

.results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.results-header {
    margin-bottom: 40px;
}

.results-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--cs-text-dark);
    margin-bottom: 0;
}

.results-header p {
    font-size: 18px;
    color: var(--cs-text-gray);
    max-width: 600px;
    line-height: 1.7;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-item {
    background: var(--cs-light-bg);
    padding: 24px 28px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.result-check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: #e8f4fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.result-check svg {
    width: 14px;
    height: 14px;
    stroke: #4a9fd4;
    stroke-width: 3;
    fill: none;
}

.result-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--cs-text-dark);
    margin-bottom: 6px;
}

.result-content p {
    font-size: 15px;
    color: var(--cs-text-gray);
    line-height: 1.5;
    margin: 0;
}

/* Legacy grid styles for backwards compatibility */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.result-card {
    background: var(--cs-light-bg);
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-3px);
}

.result-card h3 {
    font-size: 28px;
    font-weight: 800;
    background: var(--cs-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.result-card p {
    font-size: 14px;
    color: var(--cs-text-gray);
    line-height: 1.5;
}

/* Feature Banner */
.feature-banner {
    background: linear-gradient(135deg, #89389f 0%, #ed2925 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.feature-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(137, 56, 159, 0.9) 0%, rgba(237, 41, 37, 0.85) 100%);
}

.feature-banner-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 100px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: -3px;
    margin-bottom: 20px;
}

.feature-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: 30px;
}

.feature-logo {
    width: 120px;
    margin-bottom: 30px;
}

.feature-quote {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-style: italic;
}

/* Services Section - Enhanced */
.services-section {
    background: var(--cs-dark-bg);
    padding: 80px 0;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.services-header h2 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--cs-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 24px;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cs-primary-purple);
    transform: translateY(-4px);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--cs-primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--cs-text-light);
    line-height: 1.4;
}

/* Technologies Section - Enhanced */
.technologies-section {
    background: var(--cs-gray-bg);
    padding: 80px 0;
}

.technologies-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.technologies-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--cs-text-dark);
    margin-bottom: 40px;
}

.tech-category {
    margin-bottom: 50px;
}

.tech-category:last-child {
    margin-bottom: 0;
}

.tech-category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.tech-category-title::before,
.tech-category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.tech-category h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    -webkit-text-fill-color: #888;
}

/* Engineering Stack - Pill cards */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tech-stack-card {
    background: var(--cs-light-bg);
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tech-stack-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tech-stack-card img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tech-stack-card .tech-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--cs-text-dark);
}

/* Partner Integrations - Grid with badges */
.tech-partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tech-partner-card {
    background: var(--cs-light-bg);
    padding: 20px 24px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tech-partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.partner-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #666;
}

.partner-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.partner-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.partner-info .partner-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--cs-text-dark);
}

.partner-info .partner-category {
    font-size: 13px;
    color: var(--cs-text-gray);
}

/* CTA Section */
.cta-section {
    background: var(--cs-dark-bg);
    padding: 80px 40px;
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--cs-text-light);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: var(--cs-primary-red);
    color: white;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #a01829;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .challenge-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .devices-showcase {
        height: 350px;
    }

    .feature-title {
        font-size: 60px;
    }

    .hero-content-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-text-content {
        padding: 60px 40px 80px;
    }

    .hero-image-container {
        height: 300px;
    }

    .hero-logo-circle {
        left: 40px;
    }

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

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

@media (max-width: 768px) {
    .hero-text-content {
        padding: 50px 20px 70px;
    }

    .case-study-title {
        font-size: 28px;
    }

    .case-study-intro {
        font-size: 16px;
    }

    .hero-image-container {
        height: 250px;
    }

    .hero-logo-circle {
        width: 90px;
        height: 90px;
        bottom: -40px;
        left: 20px;
    }

    .hero-logo-circle img {
        max-width: 55px;
    }

    .client-info-section {
        padding: 60px 20px 40px;
    }

    .client-info-wrapper {
        padding-left: 0;
        padding-top: 40px;
        flex-direction: column;
        align-items: flex-start;
    }

    .client-info-grid {
        flex-direction: column;
        gap: 15px;
    }

    .challenge-section,
    .solution-section,
    .results-section,
    .services-section,
    .technologies-section {
        padding: 50px 0;
    }

    .challenge-container,
    .solution-container,
    .results-container,
    .services-container,
    .technologies-container {
        padding: 0 20px;
    }

    .challenge-header h2 {
        font-size: 48px;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tech-stack-grid,
    .tech-partners-grid {
        grid-template-columns: 1fr;
    }

    .devices-showcase {
        height: 280px;
    }

    .device-laptop {
        width: 80%;
    }

    .device-tablet {
        width: 35%;
    }

    .device-mobile {
        width: 20%;
    }

    .feature-title {
        font-size: 40px;
    }

    .feature-subtitle {
        font-size: 18px;
    }

    .feature-quote {
        font-size: 15px;
    }

    .results-header h2,
    .services-header h2,
    .technologies-header h2 {
        font-size: 26px;
    }

    .cta-section h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .case-study-title {
        font-size: 24px;
        max-width: 100%;
    }

    .case-study-intro {
        max-width: 100%;
    }

    .challenge-header h2 {
        font-size: 36px;
    }

    .devices-showcase {
        height: 220px;
    }

    .feature-title {
        font-size: 32px;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    }
}

/* ============================================
   PARTNER PAGE STYLES
   Reusable styles for partner pages
   ============================================ */

/* Partner Overview Section */
.partner-overview {
    padding: 80px 0;
    background: #fff;
}

.partner-overview p {
    font-size: 20px;
    line-height: 1.8;
    color: #444;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Benefit Cards */
.benefit-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--cs-primary-purple);
    height: 100%;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--cs-text-dark);
}

.benefit-card p {
    color: var(--cs-text-gray);
    font-size: 16px;
}

/* Service Cards - Number Left, Content Right */
.service-card-new {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.service-card-new .number {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 300;
    color: #ddd;
    line-height: 1;
    flex-shrink: 0;
}

.service-card-new .content {
    flex: 1;
}

.service-card-new .icon {
    width: 20px;
    height: 20px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.service-card-new h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.service-card-new p {
    color: #888;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Services Section Container */
.services-section-new {
    background: #f5f5f5;
    padding: 100px 0;
}

.services-section-new h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 60px;
    text-align: center;
}

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

/* Responsive adjustments for service cards */
@media (max-width: 768px) {
    .service-card-new {
        padding: 24px;
        gap: 16px;
    }

    .service-card-new .number {
        font-size: 36px;
    }

    .service-card-new h3 {
        font-size: 16px;
    }

    .services-grid-new {
        grid-template-columns: 1fr;
    }
}