/* Case Details Specific Styles */

.case-details {
  background: #f6efea;
}

/* Case Hero Section */
.case-hero {
  padding: 6rem 5% 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: #d93d28;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.back-link:hover {
  transform: translateX(-5px);
}

.case-hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 500;
}

.case-subtitle {
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.case-meta {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 2px solid #00000020;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-item strong {
  font-size: 0.85rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.meta-item span {
  font-size: 1.1rem;
  color: #1a1a1a;
}

/* Case Hero Image */
.case-image-hero {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  background: #ccc;
}

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

/* Case Content Section */
.case-content-section {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.case-content-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
}

/* Sidebar */
.case-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.case-sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
  color: #1a1a1a;
  font-weight: 500;
}

.case-sidebar h3:first-child {
  margin-top: 0;
}

.case-sidebar p {
  color: #555;
  line-height: 1.6;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: #fff;
  border: 2px solid #000;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  color: #1a1a1a;
  font-weight: 500;
}

/* Main Content */
.case-main-content {
  background: #fff;
  border: 2px solid #000;
  padding: 3rem;
}

.content-block {
  margin-bottom: 3rem;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  font-weight: 500;
  position: relative;
  padding-bottom: 0.5rem;
}

.content-block h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #ffaa6c;
}

.content-block p {
  line-height: 1.8;
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.content-block ul {
  list-style: none;
  padding-left: 0;
}

.content-block ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: #333;
}

.content-block ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #ff6d59;
  font-weight: 600;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.result-card {
  background: #f6efea;
  border: 2px solid #000;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.result-metric {
  font-size: 3rem;
  font-weight: 600;
  color: #d93d28;
  margin-bottom: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
}

.result-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
}

/* Gallery Section */
.case-gallery {
  padding: 5rem 5%;
  border-top: 2px solid #000;
  background: #fff;
}

.case-gallery h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #1a1a1a;
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  border: 2px solid #000;
  background: #ccc;
  aspect-ratio: 4/3;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fintech and Wellness specific gallery styles - portrait orientation */
body[data-project="fintech"] .gallery-grid,
body[data-project="wellness"] .gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

body[data-project="fintech"] .gallery-item,
body[data-project="wellness"] .gallery-item {
  aspect-ratio: 3/4;
}

body[data-project="fintech"] .gallery-item img,
body[data-project="wellness"] .gallery-item img {
  object-fit: contain;
  background: #f6efea;
}

/* CTA Section */
.case-cta {
  padding: 5rem 5%;
  text-align: center;
  background: #b8ddd4;
  border-top: 2px solid #000;
}

.case-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-weight: 500;
}

.case-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #333;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #d93d28;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border: 2px solid #000;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #ff6d59;
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

/* Footer */
.case-footer {
  padding: 2rem 5%;
  text-align: center;
  background: #171717;
  color: #f6efea;
}

.case-footer .copyright {
  font-size: 0.9rem;
  color: #ccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .case-content-grid {
    grid-template-columns: 250px 1fr;
    gap: 2rem;
  }

  .case-sidebar {
    top: 80px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  body[data-project="fintech"] .gallery-grid,
  body[data-project="wellness"] .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .case-hero {
    padding: 4rem 5% 2rem;
  }

  .case-hero-content h1 {
    font-size: 2rem;
  }

  .case-subtitle {
    font-size: 1.1rem;
  }

  .case-meta {
    gap: 1.5rem;
  }

  .case-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .case-sidebar {
    position: static;
    border-bottom: 2px solid #000;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .case-main-content {
    padding: 2rem 1.5rem;
  }

  .content-block h2 {
    font-size: 1.6rem;
  }

  .content-block p {
    font-size: 1rem;
  }

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

  .result-metric {
    font-size: 2.5rem;
  }

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

  body[data-project="fintech"] .gallery-grid,
  body[data-project="wellness"] .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-gallery h2 {
    font-size: 2rem;
  }

  .case-cta h2 {
    font-size: 2rem;
  }

  .case-cta p {
    font-size: 1rem;
  }

  .case-cta {
    padding: 3rem 5%;
  }
}
