/* ==========================================================================
   CASE STUDY PAGE STYLES
   Professional case study layout with conversion focus
   ========================================================================== */

/* Common Container */
.case-study-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   CASE STUDY HERO
   ========================================================================== */
.case-study-hero {
    background: linear-gradient(135deg, #0A1B4D 0%, #1a2d5f 100%);
    padding: 150px 40px 80px;
    position: relative;
    overflow: hidden;
}

.case-study-hero-blob-1 {
    position: absolute;
    top: -100px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: #D4AF37;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    opacity: 0.05;
}

.case-study-hero-blob-2 {
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: #D4AF37;
    border-radius: 50%;
    opacity: 0.08;
}

/* Breadcrumb */
.case-study-breadcrumb {
    color: #B8C5D6;
    font-size: 14px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-study-breadcrumb a {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-study-breadcrumb a:hover {
    color: #F4C430;
}

.case-study-breadcrumb span {
    color: #8B98AD;
}

/* Hero Title */
.case-study-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 40px;
    max-width: 1000px;
}

/* Meta Information */
.case-study-meta {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.case-study-meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-size: 13px;
    color: #8B98AD;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.meta-value {
    font-size: 16px;
    color: #D4AF37;
    font-weight: 600;
}

/* ==========================================================================
   OVERVIEW SECTION
   ========================================================================== */
.case-study-overview {
    background: #F8F9FA;
    padding: 80px 40px;
}

.overview-box {
    background: linear-gradient(135deg, #D4AF37 0%, #F4C430 100%);
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.overview-title {
    font-size: 32px;
    color: #0A1B4D;
    margin-bottom: 20px;
    font-weight: 700;
}

.overview-text {
    font-size: 18px;
    color: #2C3E50;
    line-height: 1.8;
    margin: 0 0 30px 0;
}

/* Metrics Badges */
.metrics-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.metric-badge {
    background: rgba(10, 27, 77, 0.1);
    border: 2px solid rgba(10, 27, 77, 0.2);
    border-radius: 12px;
    padding: 20px 30px;
    text-align: center;
    min-width: 150px;
    transition: all 0.3s ease;
}

.metric-badge:hover {
    transform: translateY(-3px);
    border-color: #0A1B4D;
    box-shadow: 0 5px 20px rgba(10, 27, 77, 0.15);
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: #0A1B4D;
    margin-bottom: 5px;
    line-height: 1;
}

.metric-label {
    font-size: 13px;
    color: #5A6C7D;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   VISUAL FLOW SEPARATORS
   ========================================================================== */
.section-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 0;
    background: #F8F9FA;
}

.section-separator-light {
    background: #0A1B4D;
}

.separator-line {
    flex: 1;
    max-width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.separator-icon {
    font-size: 20px;
    color: #D4AF37;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ==========================================================================
   CHALLENGE SECTION
   ========================================================================== */
.case-study-challenge {
    background: #ffffff;
    padding: 100px 40px;
}

.section-label {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-label.light {
    background: rgba(255, 255, 255, 0.1);
    color: #D4AF37;
}

.section-title {
    font-size: 36px;
    color: #0A1B4D;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header.light .section-title {
    color: #ffffff;
}

.section-subtitle {
    font-size: 18px;
    color: #5A6C7D;
    margin-bottom: 40px;
}

.challenge-intro {
    font-size: 18px;
    color: #2C3E50;
    line-height: 1.8;
    margin-bottom: 40px;
}

.challenge-problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.challenge-problem-card {
    background: #F8F9FA;
    padding: 30px 25px;
    border-radius: 16px;
    border: 2px solid #E8EAF0;
    transition: all 0.4s ease;
}

.challenge-problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(10, 27, 77, 0.1);
    border-color: #D4AF37;
}

.challenge-problem-card .problem-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.challenge-problem-card h3 {
    font-size: 18px;
    color: #0A1B4D;
    margin-bottom: 10px;
    font-weight: 700;
}

.challenge-problem-card p {
    font-size: 15px;
    color: #5A6C7D;
    line-height: 1.7;
    margin: 0;
}

.challenge-closing {
    font-size: 17px;
    color: #0A1B4D;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
}

/* ==========================================================================
   SOLUTION SECTION
   ========================================================================== */
.case-study-solution {
    background: #0A1B4D;
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.case-study-solution-blob {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: #D4AF37;
    opacity: 0.05;
    border-radius: 50%;
}

.solution-intro {
    font-size: 18px;
    color: #B8C5D6;
    line-height: 1.8;
    margin-bottom: 50px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.solution-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.solution-component {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.2);
    padding: 35px 30px;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.solution-component:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-5px);
}

.component-number {
    display: inline-block;
    background: linear-gradient(135deg, #D4AF37 0%, #F4C430 100%);
    color: #0A1B4D;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.solution-component h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 700;
}

.solution-component p {
    font-size: 15px;
    color: #B8C5D6;
    line-height: 1.7;
    margin: 0;
}

.solution-closing {
    font-size: 17px;
    color: #D4AF37;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.case-study-features {
    background: #F8F9FA;
    padding: 100px 40px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.feature-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 2px solid #E8EAF0;
    display: flex;
    gap: 20px;
    align-items: start;
    transition: all 0.4s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.15);
    border-color: #D4AF37;
}

.feature-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 18px;
    color: #0A1B4D;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-content p {
    font-size: 15px;
    color: #5A6C7D;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   TECHNOLOGY STACK SECTION
   ========================================================================== */
.case-study-tech {
    background: #0A1B4D;
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.case-study-tech-blob {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: #D4AF37;
    opacity: 0.05;
    border-radius: 50%;
}

/* Visual Tech Grid with Logos */
.tech-stack-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.tech-visual-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.tech-visual-item:hover {
    transform: translateY(-5px);
}

.tech-logo-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-logo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-visual-item:hover .tech-logo-wrapper::before {
    opacity: 1;
}

.tech-visual-item:hover .tech-logo-wrapper {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
    transform: scale(1.05);
}

.tech-logo-wrapper img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.tech-logo-wrapper svg {
    width: 35px;
    height: 35px;
}

.tech-visual-item .tech-name {
    color: #B8C5D6;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.tech-visual-item:hover .tech-name {
    color: #D4AF37;
}

/* Legacy Tech Stack Grid (keeping for compatibility) */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

.tech-stack-category {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.2);
    padding: 35px 30px;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.tech-stack-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.5);
}

.tech-category-title {
    font-size: 20px;
    color: #D4AF37;
    margin-bottom: 20px;
    font-weight: 700;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    color: #B8C5D6;
    font-size: 15px;
    line-height: 1.8;
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.tech-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-weight: bold;
}

.tech-note {
    text-align: center;
    color: #B8C5D6;
    font-size: 17px;
    margin-top: 20px;
    font-style: italic;
}

/* ==========================================================================
   RESULTS SECTION
   ========================================================================== */
.case-study-results {
    background: #ffffff;
    padding: 100px 40px;
}

.results-intro {
    font-size: 18px;
    color: #2C3E50;
    line-height: 1.8;
    margin-bottom: 50px;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.result-card {
    background: linear-gradient(135deg, #F8F9FA 0%, #ffffff 100%);
    padding: 35px 30px;
    border-radius: 16px;
    border: 2px solid #E8EAF0;
    transition: all 0.4s ease;
}

.result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(10, 27, 77, 0.12);
    border-color: #D4AF37;
}

.result-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.result-card h3 {
    font-size: 20px;
    color: #0A1B4D;
    margin-bottom: 12px;
    font-weight: 700;
}

.result-card p {
    font-size: 15px;
    color: #5A6C7D;
    line-height: 1.7;
    margin: 0;
}

.results-closing {
    font-size: 17px;
    color: #0A1B4D;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 50px;
}

/* Client Quote Box */
.client-quote-box {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(244, 196, 48, 0.05) 100%);
    border-left: 4px solid #D4AF37;
    padding: 40px 50px;
    border-radius: 12px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 60px;
    color: #D4AF37;
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.client-quote {
    margin: 0;
    padding: 0;
    border: none;
}

.client-quote p {
    font-size: 18px;
    color: #2C3E50;
    line-height: 1.8;
    font-style: italic;
    margin: 0 0 20px 0;
}

.quote-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quote-author strong {
    font-size: 16px;
    color: #0A1B4D;
    font-weight: 700;
    font-style: normal;
}

.quote-author span {
    font-size: 14px;
    color: #5A6C7D;
    font-style: normal;
}

/* ==========================================================================
   SECURITY SECTION
   ========================================================================== */
.case-study-security {
    background: #0A1B4D;
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.case-study-security-blob {
    position: absolute;
    top: -80px;
    right: -120px;
    width: 450px;
    height: 450px;
    background: #D4AF37;
    opacity: 0.05;
    border-radius: 50%;
}

.security-intro {
    font-size: 18px;
    color: #B8C5D6;
    line-height: 1.8;
    margin-bottom: 50px;
    text-align: center;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.security-feature {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.2);
    padding: 35px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
}

.security-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-5px);
}

.security-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.security-feature h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 700;
}

.security-feature p {
    font-size: 15px;
    color: #B8C5D6;
    line-height: 1.7;
    margin: 0;
}

.security-closing {
    font-size: 17px;
    color: #D4AF37;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
}

/* ==========================================================================
   RELATED SERVICES SECTION
   ========================================================================== */
.case-study-related-services {
    background: #F8F9FA;
    padding: 100px 40px;
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-service-card {
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 20px;
    border: 2px solid #E8EAF0;
    text-decoration: none;
    display: block;
    transition: all 0.4s ease;
}

.related-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(10, 27, 77, 0.12);
    border-color: #D4AF37;
}

.related-service-card .service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.related-service-card h3 {
    font-size: 22px;
    color: #0A1B4D;
    margin-bottom: 12px;
    font-weight: 700;
}

.related-service-card p {
    font-size: 15px;
    color: #5A6C7D;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    color: #D4AF37;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.related-service-card:hover .service-link {
    color: #0A1B4D;
    transform: translateX(5px);
}

/* ==========================================================================
   CLIENT INFO SECTION
   ========================================================================== */
.case-study-client-info {
    background: #ffffff;
    padding: 80px 40px;
}

.client-info-box {
    background: #F8F9FA;
    padding: 50px 60px;
    border-radius: 20px;
    border: 2px solid #E8EAF0;
    max-width: 800px;
    margin: 0 auto;
}

.client-info-box h3 {
    font-size: 28px;
    color: #0A1B4D;
    margin-bottom: 30px;
    font-weight: 700;
}

.client-details {
    margin-bottom: 30px;
}

.client-detail-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: start;
}

.detail-label {
    font-size: 16px;
    color: #8B98AD;
    font-weight: 600;
    min-width: 140px;
    flex-shrink: 0;
}

.detail-value {
    font-size: 16px;
    color: #2C3E50;
    line-height: 1.7;
}

.client-note {
    font-size: 14px;
    color: #5A6C7D;
    font-style: italic;
    margin: 0;
    padding-top: 20px;
    border-top: 2px solid #E8EAF0;
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */
.case-study-final-cta {
    background: #F8F9FA;
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.case-study-cta-blob {
    position: absolute;
    top: -80px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: #D4AF37;
    opacity: 0.08;
    border-radius: 50%;
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, #0A1B4D 0%, #1a2d5f 100%);
    padding: 80px 60px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(10, 27, 77, 0.3);
}

.final-cta-content h2 {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.final-cta-content p {
    font-size: 18px;
    color: #B8C5D6;
    margin-bottom: 40px;
    line-height: 1.7;
}

.final-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.btn-icon {
    font-size: 18px;
    margin-right: 8px;
}

/* ==========================================================================
   MORE CASE STUDIES SECTION
   ========================================================================== */
.case-study-more {
    background: #ffffff;
    padding: 80px 40px;
}

.more-case-studies-grid {
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .case-study-container {
        padding: 0 20px;
    }

    .case-study-hero {
        padding: 120px 20px 60px;
    }

    .case-study-hero-title {
        font-size: 32px;
    }

    .case-study-meta {
        flex-direction: column;
        gap: 20px;
    }

    .overview-box {
        padding: 40px 30px;
    }

    .overview-title {
        font-size: 26px;
    }

    .overview-text {
        font-size: 16px;
    }
    
    /* Metrics Badges Mobile */
    .metrics-badges {
        flex-direction: column;
        gap: 15px;
    }
    
    .metric-badge {
        min-width: 100%;
    }
    
    /* Visual Separators Mobile */
    .separator-line {
        max-width: 100px;
    }
    
    .separator-icon {
        font-size: 16px;
    }
    
    /* Client Quote Mobile */
    .client-quote-box {
        padding: 30px 25px;
    }
    
    .quote-icon {
        font-size: 50px;
        left: 15px;
    }
    
    .client-quote p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .challenge-problems-grid,
    .solution-components,
    .features-list,
    .tech-stack-grid,
    .tech-stack-visual-grid,
    .results-grid,
    .security-features,
    .related-services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Tech Visual Grid Mobile */
    .tech-stack-visual-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .tech-logo-wrapper {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }
    
    .tech-logo-wrapper img,
    .tech-logo-wrapper svg {
        width: 32px;
        height: 32px;
    }
    
    .tech-visual-item .tech-name {
        font-size: 11px;
    }

    .final-cta-content {
        padding: 50px 30px;
    }

    .final-cta-content h2 {
        font-size: 28px;
    }

    .final-cta-buttons {
        flex-direction: column;
    }

    .client-info-box {
        padding: 35px 25px;
    }

    .client-detail-item {
        flex-direction: column;
        gap: 5px;
    }

    .detail-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .case-study-hero-title {
        font-size: 26px;
    }

    .overview-box {
        padding: 30px 20px;
    }

    .overview-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 24px;
    }

    .final-cta-content {
        padding: 40px 25px;
    }

    .final-cta-content h2 {
        font-size: 24px;
    }
}