/* Case Study Detail Page Specific Styles */

/* GLOBAL LOGO VISIBILITY OVERRIDE - MUST STAY VISIBLE */
.navbar .navbar-brand img,
.navbar .navbar-brand .navbar-logo,
.navbar.scrolled .navbar-brand img,
.navbar.scrolled .navbar-brand .navbar-logo {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: 80px !important;
    width: auto !important;
}

/* Navbar logo management for case study pages */
.navbar .navbar-brand img {
    transition: all 0.3s ease;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure logo is always visible on case study pages */
.navbar .navbar-brand .navbar-logo {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: 80px !important;
    width: auto !important;
}

/* Force logo visibility for case study detail pages specifically */
.case-study-hero ~ .navbar .navbar-brand img,
.case-study-hero ~ .navbar .navbar-brand .navbar-logo,
.navbar .navbar-brand img[src*="pulse-ai-logo-onDark.svg"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: 80px !important;
    width: auto !important;
}

.case-study-hero {
    background: linear-gradient(135deg, #181c2a 0%, #232946 100%);
    color: white;
    padding: 108px 0 72px; /* Reduced from 120px 0 80px by 10% */
    position: relative;
    overflow: hidden;
}

.case-study-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(24,28,42,0.85) 0%, rgba(35,41,70,0.92) 100%);
    opacity: 1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

.hero-video-container {
    position: relative;
    z-index: 2;
    padding-left: 2rem;
}

.hero-video-container h3 {
    font-size: 1.75rem;
    letter-spacing: 0.5px;
}

.hero-video-container video {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-video-container video:hover {
    border-color: rgba(0, 194, 255, 0.5);
    box-shadow: 0 12px 48px rgba(0, 194, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive adjustments for video container */
@media (max-width: 991.98px) {
    .hero-video-container {
        padding-left: 0;
        margin-top: 2rem;
    }
}

.hero-demo-container {
    position: relative;
    z-index: 2;
    padding-left: 2rem;
}

.hero-demo-container h3 {
    font-size: 1.75rem;
    letter-spacing: 0.5px;
}

.demo-visualization {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.demo-visualization:hover {
    border-color: rgba(0, 194, 255, 0.4);
    box-shadow: 0 12px 48px rgba(0, 194, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.demo-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.demo-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.demo-dot:nth-child(1) {
    background: #ff5f57;
}

.demo-dot:nth-child(2) {
    background: #ffbd2e;
}

.demo-dot:nth-child(3) {
    background: #28ca42;
}

.demo-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: auto;
}

.demo-content {
    padding: 1.5rem;
}

.demo-metric {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.metric-change {
    color: #28ca42;
    font-size: 0.9rem;
    font-weight: 600;
}

.demo-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0.5rem;
    height: 120px;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, rgba(0, 194, 255, 0.8) 0%, rgba(233, 0, 202, 0.8) 100%);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    transition: all 0.3s ease;
    animation: chartPulse 2s ease-in-out infinite;
}

.chart-bar:nth-child(2n) {
    animation-delay: 0.2s;
}

.chart-bar:nth-child(3n) {
    animation-delay: 0.4s;
}

@keyframes chartPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.demo-sentiment {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.sentiment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.sentiment-item i {
    font-size: 1.1rem;
}

.sentiment-item.positive i {
    color: #28ca42;
}

.sentiment-item.neutral i {
    color: #ffbd2e;
}

.sentiment-item.negative i {
    color: #ff5f57;
}

.hero-demo-container .btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    border: none;
    padding: 0.875rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-demo-container .btn-light:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for demo container */
@media (max-width: 991.98px) {
    .hero-demo-container {
        padding-left: 0;
        margin-top: 2rem;
    }
}

.hero-audio-container {
    position: relative;
    z-index: 2;
    padding-left: 2rem;
}

.hero-demo-image {
    margin-bottom: 1rem;
}

.hero-audio-container .visualizer-text {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.hero-audio-container .btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    border: none;
    padding: 0.875rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-audio-container .btn-light:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-audio-container {
        margin-left: 0;
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

.breadcrumb-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    display: inline-block;
    margin-top: 25px;
    margin-bottom: 15px;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: white;
}

.breadcrumb-nav .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-number {
    font-size: 2.25rem; /* Reduced from 2.5rem by 10% */
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 0.81rem; /* Reduced from 0.9rem by 10% */
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Story Sections */
.story-section {
    padding: 5rem 0;
    position: relative;
}

.story-section:nth-child(even) {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0;
    font-size: 2rem;
}

.section-title {
    font-size: 2.25rem; /* Reduced from 2.5rem by 10% */
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.08rem; /* Reduced from 1.2rem by 10% */
    color: #666;
    max-width: 1000px;
    margin: 0 auto;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 20px;
    padding: 3.15rem 2.7rem; /* Reduced from 3.5rem 3rem by 10% */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.945rem; /* Reduced from 1.05rem by 10% */
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.content-card h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.8rem; /* Reduced from 2rem by 10% */
}

.content-card p {
    color: #555;
    line-height: 1.8;
    font-size: 0.945rem; /* Reduced from 1.05rem by 10% */
    margin-bottom: .5rem;
}

/* Challenge Box */
.challenge-box {
    background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
    border: 2px solid #fecaca;
    border-radius: 16px;
    padding: 1.8rem; /* Reduced from 2rem by 10% */
    margin: 2rem 0;
    position: relative;
}


.challenge-box h4 {
    color: #dc2626;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Solution Box */
.solution-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #7dd3fc;
    border-radius: 16px;
    padding: 1.8rem; /* Reduced from 2rem by 10% */
    margin: 2rem 0;
    position: relative;
}


.solution-box h4 {
    color: #0369a1;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Results Box */
.results-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 16px;
    padding: 1.8rem; /* Reduced from 2rem by 10% */
    margin: 2rem 0;
    position: relative;
}

.results-box::before {
    content: '📈';
    position: absolute;
    top: -15px;
    left: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
}

.results-box h4 {
    color: #15803d;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 1.8rem; /* Reduced from 2rem by 10% */
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: #667eea;
}

.feature-card h5 {
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.08rem; /* Reduced from 1.2rem by 10% */
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.855rem; /* Reduced from 0.95rem by 10% */
}

/* Comparison Table */
.comparison-table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 3rem 0;
}

.comparison-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
}

.comparison-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.17rem; /* Reduced from 1.3rem by 10% */
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e9ecef;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-cell {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comparison-cell.before {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.comparison-cell.after {
    background: white;
}

.comparison-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.comparison-cell.before .comparison-icon {
    background: #dc3545;
    color: white;
}

.comparison-cell.after .comparison-icon {
    background: #28a745;
    color: white;
}

.comparison-text {
    flex: 1;
}

.comparison-text h5 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    font-size: 0.9rem; /* Reduced from 1rem by 10% */
}

.comparison-text p {
    margin: 0;
    color: #666;
    font-size: 0.81rem; /* Reduced from 0.9rem by 10% */
}

/* Testimonial Section */
.testimonial-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 5rem 0;
    text-align: center;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2.7rem; /* Reduced from 3rem by 10% */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-quote {
    font-size: 1.17rem; /* Reduced from 1.3rem by 10% */
    color: #333;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.author-info h5 {
    margin: 0 0 0.25rem 0;
    font-weight: 700;
    color: #333;
    font-size: 0.99rem; /* Reduced from 1.1rem by 10% */
}

.author-info p {
    margin: 0;
    color: #666;
    font-size: 0.81rem; /* Reduced from 0.9rem by 10% */
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.25rem; /* Reduced from 2.5rem by 10% */
    font-weight: 700;
    margin-bottom: 1.35rem; /* Reduced from 1.5rem by 10% */
}

.cta-section p {
    font-size: 1.08rem; /* Reduced from 1.2rem by 10% */
    margin-bottom: 2.25rem; /* Reduced from 2.5rem by 10% */
    opacity: 0.9;
}

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

.cta-btn-primary {
    background: white;
    color: #667eea;
    border: none;
    padding: 1.08rem 2.25rem; /* Reduced from 1.2rem 2.5rem by 10% */
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.3);
    color: #667eea;
}

.cta-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem auto 3rem auto;
    max-width: 1200px;
    justify-content: center;
    align-items: stretch;
}

.result-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
    font-size: 1.15rem;
}

.result-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.result-number {
    font-size: 2.25rem; /* Reduced from 2.5rem by 10% */
    font-weight: 800;
    color: #667eea;
    display: block;
    margin-bottom: 0.45rem; /* Reduced from 0.5rem by 10% */
}

.result-label {
    font-size: 0.81rem; /* Reduced from 0.9rem by 10% */
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    text-align: center;
    display: block;
}

/* Media/Sample File Section */
.media-section {
    background: #181c2a;
    padding: 4.5rem 0 3.6rem; /* Reduced from 5rem 0 4rem by 10% */
    color: #fff;
}
.media-card {
    background: #232946;
    border-radius: 24px;
    box-shadow: 0 10px 32px rgba(24,28,42,0.18);
    padding: 2.25rem 1.8rem; /* Reduced from 2.5rem 2rem by 10% */
    margin: 0 auto 2rem auto;
    max-width: 1100px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.media-title {
    font-size: 1.8rem; /* Reduced from 2rem by 10% */
    font-weight: 700;
    color: #fff;
}
.media-description {
    color: #c7c9d9;
    font-size: 0.99rem; /* Reduced from 1.1rem by 10% */
}
.media-card a.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
}
.media-card video {
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

/* Section Logomark Icon */
.section-logomark {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(102,126,234,0.12));
}

/* Dark Story Section */
.story-section-dark {
    background: #232946;
    color: #fff;
}
.story-section-dark .section-title,
.story-section-dark .section-subtitle {
    color: #fff;
}
.story-section-dark .content-card {
    background: #181c2a;
    color: #e0e3f5;
    box-shadow: 0 8px 32px rgba(24,28,42,0.18);
}
.story-section-dark .content-card h3,
.story-section-dark .content-card h4 {
    color: #fff;
}
.story-section-dark .challenge-box,
.story-section-dark .solution-box,
.story-section-dark .results-box {
    background: #232946;
    border-color: #667eea;
    color: #fff;
}
.story-section-dark .challenge-box h4,
.story-section-dark .solution-box h4,
.story-section-dark .results-box h4 {
    color: #fff;
}

/* Key Features Section - Modern Dark Style */
.key-features-section {
  background: #181e2a;
  border-radius: 18px;
  padding: 0px 24px 0px 24px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.key-features-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.key-feature-card {
  background: #232a3a;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.12);
  border: 1px solid #283046;
  padding: 32px 20px 28px 20px;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 220px;
  color: #f4f6fa;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s, border 0.2s;
}
.key-feature-card:hover {
  box-shadow: 0 4px 24px 0 rgba(79,140,255,0.18);
  border: 1.5px solid #4f8cff;
}

.key-feature-card .icon {
  font-size: 2.1rem;
  color: #4f8cff;
  margin-bottom: 8px;
  display: inline-block;
}

.key-feature-card h3 {
  color: #fff;
  font-weight: 700;
  margin: 0 0 6px 0;
  font-size: 1.18rem;
}
.key-feature-card p {
  color: #c7cbe3;
  font-size: 1rem;
  margin: 0;
}

/* Enhanced Process Flow Visuals */
.process-flow {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0;
  margin: 56px 0 48px 0;
  position: relative;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #4f8cff #232a3a;
}
.process-step {
  background: linear-gradient(135deg, #232a3a 60%, #283046 100%);
  border-radius: 28px;
  box-shadow: 0 6px 32px 0 rgba(79,140,255,0.10), 0 1.5px 0 #4f8cff inset;
  border: 1.5px solid #283046;
  padding: 44px 28px 32px 28px;
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  color: #f4f6fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  margin-left: 8px;
  margin-right: 8px;
  transition: box-shadow 0.2s, border 0.2s, background 0.2s;
  flex: 0 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.7s ease forwards;
}
.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(5) { animation-delay: 0.5s; }
.process-step:nth-child(7) { animation-delay: 0.7s; }
@keyframes fadeInUp {
  to { opacity: 1; transform: none; }
}
.process-step.alt {
  background: linear-gradient(135deg, #1a1f2b 60%, #232a3a 100%);
  box-shadow: 0 8px 36px 0 rgba(79,140,255,0.13), 0 2px 0 #4f8cff inset;
}
.step-icon {
  font-size: 2.6rem;
  color: #4f8cff;
  margin-bottom: 10px;
  margin-top: -18px;
  z-index: 3;
}
.step-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #4f8cff;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px 0 rgba(79,140,255,0.15);
  border: 2px solid #232a3a;
}
.process-arrow {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.7s ease forwards;
}
.process-arrow:nth-child(2) { animation-delay: 0.2s; }
.process-arrow:nth-child(4) { animation-delay: 0.4s; }
.process-arrow:nth-child(6) { animation-delay: 0.6s; }
.process-arrow::after {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4f8cff 0%, #283046 100%);
  box-shadow: 0 0 8px #4f8cff55;
}
.process-step h4 {
  font-size: 1.22rem;
  font-weight: 800;
  color: #fff;
  margin: 18px 0 8px 0;
}
.process-step p {
  color: #b8c2e0;
  font-size: 1.01rem;
  margin: 0;
}
.process-step:hover {
  box-shadow: 0 12px 40px 0 rgba(79,140,255,0.18), 0 2px 0 #4f8cff inset;
  border: 2px solid #4f8cff;
  background: linear-gradient(135deg, #232a3a 40%, #4f8cff 100%);
}
@media (max-width: 991px) {
  .process-flow {
    flex-direction: row;
    align-items: flex-end;
  }
  .process-step, .process-step.alt {
    max-width: 240px;
    min-width: 240px;
    width: 240px;
    margin-bottom: 0;
  }
}

/* Tighten Key Features Cards */
.key-features-cards {
  flex-wrap: nowrap;
  gap: 18px;
}
.key-feature-card {
  min-width: 220px;
  max-width: 260px;
  flex: 0 0 23%;
  margin: 0;
}
@media (max-width: 991px) {
  .key-features-cards {
    flex-direction: column;
    gap: 20px;
    flex-wrap: wrap;
  }
  .key-feature-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
}

/* Simple line-dot connector between process steps */
.process-arrow-line-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  height: 100px;
  margin: 0 0px;
}
.process-arrow-line-dot::before {
  content: '';
  display: block;
  height: 3px;
  width: 32px;
  background: linear-gradient(90deg, #4f8cff 0%, #283046 100%);
  border-radius: 2px;
}
.process-arrow-line-dot::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background: #4f8cff;
  border-radius: 50%;
  margin-left: 6px;
  box-shadow: 0 0 8px #4f8cff55;
}
.process-step {
  margin-left: 0;
  margin-right: 0;
}
.process-step.alt {
  margin-left: 0;
  margin-right: 0;
}
.step-badge {
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  font-size: 1rem;
}
.process-flow {
  gap: 0;
  margin-top: 15px;
  margin-bottom: 30px;
}

/* Make all process-step tiles the same height */
.process-flow {
  align-items: stretch;
}
.process-step, .process-step.alt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  min-height: 260px;
  box-sizing: border-box;
}

/* Solution Section - Results Driven */
.before-after-box {
  background: #20263a;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(79,140,255,0.10);
  padding: 24px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 0;
}
.before-after-box .label {
  font-size: 0.98rem;
  color: #b8c2e0;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.before-after-box .stat {
  font-size: 2.2rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 2px;
}
.before-after-box .desc {
  color: #b8c2e0;
  font-size: 0.98rem;
}
.before-after-box .arrow {
  font-size: 2.2rem;
  color: #4f8cff;
  font-weight: 700;
  margin: 0 10px;
}
.solution-results-list li {
  font-size: 1.08rem;
  color: #f4f6fa;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.solution-results-list i {
  font-size: 1.2rem;
}
.solution-highlights {
  margin-top: 32px;
  margin-bottom: 0;
}
.highlight-card {
  background: #232a3a;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(79,140,255,0.10);
  border: 1px solid #283046;
  color: #f4f6fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: box-shadow 0.2s, border 0.2s;
}
.highlight-card i {
  color: #4f8cff;
  margin-bottom: 8px;
}
.highlight-card h4 {
  color: #fff;
  font-size: 1.01rem;
  font-weight: 700;
  margin: 0;
}
@media (max-width: 991px) {
  .before-after-box {
    flex-direction: column;
    gap: 8px;
    padding: 18px 8px;
  }
  .solution-highlights .col-md-3 {
    margin-bottom: 18px;
  }
}

@media (max-width: 1200px) {
    .results-grid {
        max-width: 1000px;
    }
    .content-card {
        max-width: 98vw;
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 900px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Ensure logo is always visible on mobile for case study pages */
    .navbar .navbar-brand img,
    .navbar .navbar-brand .navbar-logo {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: 80px !important;
        width: auto !important;
    }
    
    /* Force logo visibility even when navbar is scrolled */
    .navbar.scrolled .navbar-brand img,
    .navbar.scrolled .navbar-brand .navbar-logo {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: 80px !important;
        width: auto !important;
    }
    
    /* Prevent word hyphenation on mobile */
    body, h1, h2, h3, h4, h5, h6, p, span, div, a, li, td, th, label, button, input, textarea, select {
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        hyphens: none;
        word-wrap: normal;
        overflow-wrap: normal;
    }
    
    /* Ensure titles and headings don't break */
    .case-study-hero h1, .section-title, .content-card h3, .feature-card h5, 
    .comparison-text h5, .testimonial-author h5, .author-info h5, .media-title {
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        hyphens: none;
        word-wrap: normal;
        overflow-wrap: normal;
        white-space: normal;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .hero-stat {
        padding: 1.5rem 1.25rem;
    }
    
    .hero-stat-number {
        font-size: 2.025rem; /* Reduced from 2.25rem by 10% */
    }
    
    .hero-stat-label {
        font-size: 0.73rem; /* Reduced from 0.81rem by 10% */
    }
    
    .section-title {
        font-size: 2.025rem; /* Reduced from 2.25rem by 10% */
    }
    
    .content-card {
        padding: 2.7rem 2.25rem; /* Reduced from 3rem 2.5rem by 10% */
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-cell.before {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .cta-section h2 {
        font-size: 2.025rem; /* Reduced from 2.25rem by 10% */
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1.35rem; /* Reduced from 1.5rem by 10% */
    }
    
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        text-align: center;
        padding: 1.08rem 2.25rem; /* Reduced from 1.2rem 2.5rem by 10% */
        font-size: 0.99rem; /* Reduced from 1.1rem by 10% */
    }
}

@media (max-width: 576px) {
    .case-study-hero {
        padding: 90px 0 60px; /* Reduced from 100px 0 70px by 10% */
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.35rem; /* Reduced from 1.5rem by 10% */
    }
    
    .section-title {
        font-size: 1.8rem; /* Reduced from 2rem by 10% */
    }
    
    .content-card {
        padding: 2.25rem 1.8rem; /* Reduced from 2.5rem 2rem by 10% */
    }
    
    .challenge-box,
    .solution-box,
    .results-box {
        padding: 1.35rem; /* Reduced from 1.5rem by 10% */
    }
    
    .testimonial-card {
        padding: 2.25rem; /* Reduced from 2.5rem by 10% */
    }
    
    .testimonial-quote {
        font-size: 1.08rem; /* Reduced from 1.2rem by 10% */
    }
    
    /* Enhanced mobile optimizations for case study detail pages */
    .breadcrumb-nav {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
        margin-top: 15px;
        margin-bottom: 10px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .hero-stat {
        padding: 1.25rem 1rem;
    }
    
    .hero-stat-number {
        font-size: 1.8rem;
    }
    
    .hero-stat-label {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .content-card {
        padding: 1.5rem 1.2rem;
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }
    
    .content-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .content-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .challenge-box,
    .solution-box,
    .results-box {
        padding: 1.2rem;
        margin: 1.5rem 0;
        border-radius: 12px;
    }
    
    .challenge-box h4,
    .solution-box h4,
    .results-box h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h5 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .comparison-table {
        margin: 2rem 0;
        border-radius: 12px;
    }
    
    .comparison-header {
        padding: 1rem 1.5rem;
    }
    
    .comparison-header h4 {
        font-size: 1.1rem;
    }
    
    .comparison-cell {
        padding: 1rem 1.5rem;
        gap: 0.8rem;
    }
    
    .comparison-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .comparison-text h5 {
        font-size: 0.85rem;
    }
    
    .comparison-text p {
        font-size: 0.75rem;
    }
    
    .testimonial-section {
        padding: 3rem 0;
    }
    
    .testimonial-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .testimonial-quote {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-author {
        gap: 0.8rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .author-info h5 {
        font-size: 0.9rem;
    }
    
    .author-info p {
        font-size: 0.75rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 0.95rem;
        text-align: center;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem auto 2rem auto;
    }
    
    .result-card {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .result-number {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }
    
    .result-label {
        font-size: 0.75rem;
    }
    
    .media-section {
        padding: 3rem 0 2.5rem;
    }
    
    .media-card {
        padding: 1.5rem 1.2rem;
        margin: 0 auto 1.5rem auto;
        border-radius: 16px;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .media-title {
        font-size: 1.4rem;
    }
    
    .media-description {
        font-size: 0.9rem;
    }
    
    .media-card a.btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .media-card video {
        border-radius: 12px;
        width: 100%;
        height: auto;
    }
    
    .section-logomark {
        width: 80px;
        height: 80px;
        margin-bottom: 0.8rem;
    }
    
    /* Key features section mobile optimizations */
    .key-features-section {
        padding: 0 16px 0 16px;
        margin-top: 24px;
        margin-bottom: 24px;
        border-radius: 12px;
    }
    
    .key-features-cards {
        flex-direction: column;
        gap: 16px;
    }
    
    .key-feature-card {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        padding: 24px 16px 20px 16px;
        border-radius: 12px;
    }
    
    .key-feature-card .icon {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    
    .key-feature-card h3 {
        font-size: 1.1rem;
        margin: 0 0 4px 0;
    }
    
    .key-feature-card p {
        font-size: 0.9rem;
    }
    
    /* Process flow mobile optimizations */
    .process-flow {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin: 32px 0 24px 0;
        overflow-x: visible;
    }
    
    .process-step,
    .process-step.alt {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 32px 20px 24px 20px;
        border-radius: 16px;
        min-height: auto;
    }
    
    .process-arrow,
    .process-arrow-line-dot {
        display: none;
    }
    
    .step-icon {
        font-size: 2.2rem;
        margin-bottom: 8px;
        margin-top: -12px;
    }
    
    .step-badge {
        top: 12px;
        right: 12px;
        width: 20px;
        height: 20px;
        font-size: 0.9rem;
    }
    
    .process-step h4 {
        font-size: 1.1rem;
        margin: 12px 0 6px 0;
    }
    
    .process-step p {
        font-size: 0.9rem;
    }
    
    /* Before-after box mobile optimizations */
    .before-after-box {
        flex-direction: column;
        gap: 8px;
        padding: 16px 12px;
        border-radius: 12px;
        margin-bottom: 0;
    }
    
    .before-after-box .label {
        font-size: 0.9rem;
    }
    
    .before-after-box .stat {
        font-size: 1.8rem;
    }
    
    .before-after-box .desc {
        font-size: 0.9rem;
    }
    
    .before-after-box .arrow {
        font-size: 1.8rem;
        margin: 0 8px;
    }
    
    .solution-results-list li {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .solution-results-list i {
        font-size: 1.1rem;
    }
    
    .solution-highlights {
        margin-top: 24px;
        margin-bottom: 0;
    }
    
    .highlight-card {
        min-height: 100px;
        padding: 16px;
        border-radius: 12px;
    }
    
    .highlight-card i {
        margin-bottom: 6px;
    }
    
    .highlight-card h4 {
        font-size: 0.9rem;
    }
    
    /* Voice visualizer mobile optimizations */
    .voice-visualizer {
        margin-top: 16px;
    }
    
    .visualizer-container-dk {
        padding: 16px 20px;
        border-radius: 16px;
        margin-bottom: 8px;
    }
    
    .visualizer-bars {
        gap: 3px;
        height: 50px;
        margin-right: 16px;
    }
    
    .visualizer-bars .bar {
        width: 6px;
        min-height: 8px;
    }
    
    .play-button {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .visualizer-text {
        font-size: 0.8rem;
        margin-top: 8px;
    }
} 

/* Audio Player Visualizer Styles - Modern Design */
.voice-visualizer {
    margin-top: 24px;
    text-align: center;
}

.visualizer-container-dk {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
    border: 1px solid rgba(79, 140, 255, 0.2);
    border-radius: 20px;
    padding: 24px 32px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.visualizer-container-dk::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.1) 0%, rgba(116, 75, 162, 0.1) 100%);
    border-radius: 20px;
    pointer-events: none;
}

.visualizer-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    margin-right: 24px;
    position: relative;
    z-index: 2;
}

.visualizer-bars .bar {
    width: 8px;
    height: 10px;
    background: linear-gradient(180deg, #4f8cff 0%, #667eea 100%);
    border-radius: 4px;
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 10px;
    box-shadow: 0 0 8px rgba(79, 140, 255, 0.3);
}

.visualizer-bars .bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    border-radius: 4px;
    pointer-events: none;
}

.play-button {
    background: linear-gradient(135deg, #4f8cff 0%, #667eea 100%);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(79, 140, 255, 0.4);
}

.play-button:hover {
    background: linear-gradient(135deg, #3566b8 0%, #5a67d8 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(79, 140, 255, 0.6);
}

.play-button:active {
    transform: scale(0.95);
}

.visualizer-text {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-top: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
} 