/* Case Study Hero Section */
.case-study-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.case-study-hero .orange-blob {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #FF6B19 0%, #FF8C42 100%);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.case-study-hero .enso-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    opacity: 0.05;
    z-index: 1;
}

.case-study-hero .enso-background img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.case-study-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.case-study-category {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 107, 25, 0.1);
    color: #FF6B19;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.case-study-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.2;
}

.case-study-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.case-study-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.meta-item {
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Project Overview Section */
.case-study-overview {
    padding: 80px 0;
    background: #fff;
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.case-study-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.case-study-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.case-study-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.case-study-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Challenges Section */
.case-study-challenges {
    padding: 80px 0;
    background: #f8f9fa;
}

.case-study-challenges h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 60px;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.challenge-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.challenge-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
}

.challenge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.challenge-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.challenge-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Solution Section */
.case-study-solution {
    padding: 80px 0;
    background: #fff;
}

.case-study-solution h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 60px;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.solution-card {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.solution-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 107, 25, 0.1);
}

.solution-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.solution-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Results Section */
.case-study-results {
    padding: 80px 0;
    background: #f8f9fa;
}

.case-study-results h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 60px;
}

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

.result-card {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.result-number {
    font-size: 48px;
    font-weight: 700;
    color: #FF6B19;
    margin-bottom: 16px;
}

.result-card p {
    font-size: 16px;
    color: #666;
}

/* Testimonial Section */
.case-study-testimonial {
    padding: 80px 0;
    background: #fff;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    margin-bottom: 30px;
}

.testimonial-text {
    font-size: 24px;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 40px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

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

.author-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.author-position {
    font-size: 14px;
    color: #666;
}

/* CTA Section */
.case-study-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #FF6B19 0%, #FF8C42 100%);
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: #fff;
    color: #FF6B19;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* App Screenshots */
.app-screenshot {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 8px solid #fff;
    margin: 0 auto;
    display: block;
}

.case-study-image .app-screenshot {
    max-width: 300px;
}

.feature-image {
    max-width: 250px;
    margin: 0 auto;
    text-align: center;
}

.feature-image .app-screenshot {
    max-width: 220px;
}

/* Features Showcase Section */
.case-study-features {
    padding: 80px 0;
    background: #fff;
}

.case-study-features h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-item:nth-child(even) {
    direction: rtl;
}

.feature-item:nth-child(even) .feature-content {
    direction: ltr;
}

.feature-content {
    text-align: left;
}

.feature-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.feature-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    background: rgba(255, 107, 25, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.contact-text a,
.contact-text p {
    display: block;
    color: #666;
    margin-bottom: 5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #FF6B19;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #FF6B19;
    outline: none;
}

.submit-button {
    background: #FF6B19;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    transform: translateY(-3px);
    background: #e55f10;
}

/* Media Queries for Contact Section */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .case-study-title {
        font-size: 40px;
    }

    .case-study-grid,
    .challenges-grid,
    .solution-grid,
    .results-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-study-meta {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .case-study-hero {
        padding: 80px 0 60px;
    }

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

    .case-study-subtitle {
        font-size: 18px;
    }

    .testimonial-text {
        font-size: 20px;
    }

    .feature-item {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-item:nth-child(even) {
        direction: ltr;
    }

    .feature-image {
        max-width: 250px;
    }

    .feature-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .case-study-hero {
        padding: 60px 0 40px;
    }

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

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

    .challenge-card,
    .solution-card,
    .result-card {
        padding: 30px;
    }

    .result-number {
        font-size: 36px;
    }
}

/* Enhanced CTA Section */
.enhanced-cta {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #FF6B19 0%, #FF8C42 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
}

.enhanced-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/pattern-light.png');
    background-repeat: repeat;
    opacity: 0.05;
    z-index: 1;
}

.enhanced-cta::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.enhanced-cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.enhanced-cta h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.enhanced-cta p {
    font-size: 20px;
    margin-bottom: 50px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

.primary-button {
    display: inline-block;
    padding: 18px 40px;
    background: #fff;
    color: #FF6B19;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.secondary-button {
    display: inline-block;
    padding: 18px 40px;
    background: transparent;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 2px solid #fff;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-5px);
}

.primary-button:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Media Queries for Enhanced CTA */
@media (max-width: 768px) {
    .enhanced-cta {
        padding: 90px 0;
    }
    
    .enhanced-cta h2 {
        font-size: 36px;
    }
    
    .enhanced-cta p {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 20px;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Index-style CTA Section */
.index-cta {
    position: relative;
    padding: 80px 0;
    background: #FF6B19;
    color: #fff;
    overflow: hidden;
    margin-top: 0;
    border-radius: 12px;
    max-width: 1140px;
    margin: 80px auto;
    animation: ctaGlow 3s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
    0% {
        box-shadow: 0 10px 30px rgba(255, 107, 25, 0.2);
    }
    100% {
        box-shadow: 0 15px 40px rgba(255, 107, 25, 0.4);
    }
}

.index-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/pattern-light.png');
    background-repeat: repeat;
    opacity: 0.05;
    z-index: 1;
}

.index-cta::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
    animation: wavePulse 8s ease-in-out infinite;
}

@keyframes wavePulse {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.2) translate(-20px, -20px);
        opacity: 0.08;
    }
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.05;
    }
}

.index-cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.index-cta-text {
    text-align: left;
    max-width: 60%;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.index-cta-text h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.index-cta-text p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

.index-cta-button {
    display: flex;
    justify-content: flex-end;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.get-in-touch {
    display: inline-block;
    padding: 16px 32px;
    background: #fff;
    color: #FF6B19;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.get-in-touch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 100%);
    z-index: -1;
    transition: all 0.4s ease;
}

.get-in-touch:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.get-in-touch:hover::before {
    left: 100%;
    animation: buttonShine 1.2s;
}

@keyframes buttonShine {
    0% {
        left: -100%;
        opacity: 0.8;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Media Queries for Index CTA */
@media (max-width: 991px) {
    .index-cta {
        padding: 60px 30px;
        margin: 60px 20px;
    }
    
    .index-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .index-cta-text {
        max-width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .index-cta-text h2 {
        font-size: 36px;
    }
    
    .index-cta-button {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .index-cta {
        padding: 40px 20px;
        margin: 40px 15px;
    }
    
    .index-cta-text h2 {
        font-size: 28px;
    }
    
    .index-cta-text p {
        font-size: 16px;
    }
}

/* Case Study Approach Section Enhancements */
.case-study-approach {
    padding: 80px 0;
    background-color: #fcfaf8;
    position: relative;
    overflow: hidden;
}

.case-study-approach::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,107,25,0.1) 0%, rgba(255,107,25,0) 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 1;
}

.case-study-approach::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,107,25,0.05) 0%, rgba(255,107,25,0) 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    z-index: 1;
}

.case-study-approach .container {
    position: relative;
    z-index: 2;
}

.case-study-approach h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
    color: #333;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 18px;
    line-height: 1.6;
    color: #666;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 30px;
    margin-bottom: 60px;
}

.approach-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #FF6B19;
    opacity: 0.3;
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.approach-icon {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.approach-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 42px;
    font-weight: 700;
    color: rgba(255,107,25,0.1);
    line-height: 1;
}

.approach-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    z-index: 1;
}

.approach-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.approach-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.approach-tag {
    background-color: #f8f2ee;
    color: #FF6B19;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 500;
}

/* Timeline Styles */
.approach-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: #e5e5e5;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%;
    background-color: #FF6B19;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid #e5e5e5;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.timeline-marker span {
    font-size: 14px;
    font-weight: 500;
    color: #777;
    transition: all 0.3s ease;
}

.timeline-marker.active .marker-dot {
    background-color: #FF6B19;
    border-color: #FF6B19;
    transform: scale(1.2);
}

.timeline-marker.active span {
    color: #FF6B19;
    font-weight: 600;
}

.timeline-marker:hover .marker-dot {
    transform: scale(1.2);
    border-color: #FF6B19;
}

.timeline-marker:hover span {
    color: #FF6B19;
}

@media (max-width: 768px) {
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .approach-timeline {
        overflow-x: auto;
        padding-bottom: 20px;
        justify-content: flex-start;
    }
    
    .timeline-marker {
        flex: 0 0 90px;
        margin: 0 10px;
    }
    
    .section-intro {
        padding: 0 20px;
    }
} 