/* ==================== USE CASES PAGE SPECIFIC STYLES ==================== */

/* Set consistent background for entire site */
body {
  background: linear-gradient(145deg, #ffffff 0%, #ffeaea 50%, #ffffff 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh !important;
}

/* Ensure all sections except CTA have transparent backgrounds */
.hero,
.industry-overview,
.featured-cases,
.department-solutions,
.implementation-journey,
.roi-section {
  background: transparent !important;
}

/* Restore red gradient for CTA section */
.cta {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%) !important;
}

/* --- Industry Overview Section --- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.industry-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-red-light) 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.industry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.industry-card:hover::before {
  transform: scaleX(1);
}

.industry-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--color-red);
  transition: transform 0.3s ease;
}

.industry-card:hover .industry-icon {
  transform: scale(1.1);
}

.industry-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.industry-card p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.industry-stats {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  color: #2e7d32;
  padding: 0.75rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Industry-specific colors */
.manufacturing::before { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }
.finance::before { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }
.healthcare::before { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }
.retail::before { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }
.logistics::before { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }
.technology::before { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }

/* --- Featured Use Cases Section --- */
.use-case-showcase {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

.use-case-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
}

.use-case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.company-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.company-logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(255, 50, 38, 0.3);
}

.company-details h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.company-type {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.impact-badge {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  color: #2e7d32;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

.use-case-content h4 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.use-case-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.metric {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-red);
  display: block;
  margin-bottom: 0.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.solution-details {
  margin-top: 2rem;
}

.solution-details h5 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.component-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  background: linear-gradient(135deg, rgba(213, 34, 24, 0.1) 0%, rgba(255, 91, 69, 0.1) 100%);
  color: var(--color-red);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(213, 34, 24, 0.2);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--color-red);
  color: white;
  transform: scale(1.05);
}

/* Case-specific styling */
.manufacturing-case {
  border-left: 4px solid #ff6b35;
}

.finance-case {
  border-left: 4px solid #4ecdc4;
}

.healthcare-case {
  border-left: 4px solid #45b7d1;
}

/* --- Department Solutions Section --- */
.department-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.dept-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.dept-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.dept-card:hover::before {
  transform: scaleX(1);
}

.dept-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dept-icon {
  width: 50px;
  height: 50px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dept-header h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 0;
}

.dept-content h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.benefit-list i {
  color: #4caf50;
  font-size: 0.8rem;
  width: 16px;
}

.dept-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dept-stats .stat {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(129, 199, 132, 0.1) 100%);
  color: #2e7d32;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

/* Department-specific colors */
.ceo-card::before { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }
.ceo-card .dept-icon { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }

.hr-card::before { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }
.hr-card .dept-icon { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }

.finance-card::before { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }
.finance-card .dept-icon { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }

.sales-card::before { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }
.sales-card .dept-icon { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }

.operations-card::before { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }
.operations-card .dept-icon { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }

.it-card::before { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }
.it-card .dept-icon { background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%); }

/* --- Implementation Journey Section --- */
.journey-timeline {
  max-width: 800px;
  margin: 3rem auto 0;
  position: relative;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  width: 3px;
  height: 0; /* Start with zero height */
  background: linear-gradient(to bottom, var(--color-red) 0%, var(--color-red-light) 100%);
  border-radius: 2px;
  transition: height 1s ease; /* Increased to 1 second */
}

.journey-timeline.animate::before {
  height: 100%; /* Animate to full height when class is added */
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-marker {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 2rem;
  box-shadow: 0 8px 25px rgba(255, 50, 38, 0.4);
  position: relative;
  z-index: 2;
}

.timeline-number {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 2rem;
  flex: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid rgba(255, 255, 255, 0.95);
}

.timeline-content h4 {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.timeline-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.timeline-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline-stats span {
  background: linear-gradient(135deg, rgba(213, 34, 24, 0.1) 0%, rgba(255, 91, 69, 0.1) 100%);
  color: var(--color-red);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(213, 34, 24, 0.2);
}

/* --- ROI Calculator Section --- */
.roi-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.calculator-inputs h4,
.calculator-results h4 {
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-size: 1.4rem;
}

.input-group {
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.input-group label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
}

.input-group input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  outline: none;
  margin-bottom: 0.5rem;
}

.input-group input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-red);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(213, 34, 24, 0.4);
}

.input-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-red);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 10px rgba(213, 34, 24, 0.4);
}

.input-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  background: white;
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color 0.3s ease;
}

.input-group select:focus {
  outline: none;
  border-color: var(--color-red);
}

.input-value {
  display: block;
  text-align: center;
  font-weight: 700;
  color: var(--color-red);
  font-size: 1.1rem;
}

.roi-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.roi-metric {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.roi-metric.primary {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(255, 50, 38, 0.3);
}

.roi-value {
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.roi-metric.primary .roi-value {
  color: white;
}

.roi-metric:not(.primary) .roi-value {
  color: var(--color-red);
}

.roi-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.roi-metric.primary .roi-label {
  color: rgba(255, 255, 255, 0.9);
}

.roi-metric:not(.primary) .roi-label {
  color: var(--text-light);
}

.roi-breakdown {
  background: rgba(248, 249, 250, 0.8);
  border-radius: 1rem;
  padding: 1.5rem;
}

.roi-breakdown h5 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-item span:first-child {
  color: var(--text-light);
  font-size: 0.9rem;
}

.breakdown-item span:last-child {
  color: var(--color-red);
  font-weight: 600;
}

/* --- Additional Button Style --- */
.btn-white-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
  box-shadow: none;
}

.btn-white-outline:hover {
  background: white;
  color: var(--color-red);
  transform: translateY(-2px) scale(1.02);
}

/* --- Button Ripple Effect --- */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  .industry-grid,
  .department-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .roi-calculator {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .use-case-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .industry-grid,
  .department-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .use-case-card {
    padding: 2rem;
  }

  .company-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .journey-timeline::before {
    left: 15px;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
  }

  .timeline-number {
    font-size: 1.2rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .timeline-stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  .roi-calculator {
    padding: 2rem;
  }

  .component-tags {
    justify-content: center;
  }

  .dept-stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .use-case-card {
    padding: 1.5rem;
  }

  .use-case-content h4 {
    font-size: 1.5rem;
  }

  .metric-value {
    font-size: 2rem;
  }

  .roi-value {
    font-size: 2rem;
  }

  .company-logo {
    width: 50px;
    height: 50px;
  }

  .dept-icon {
    width: 40px;
    height: 40px;
  }
}