/* --- Our Work Hero Header --- */
.work-header {
  width: 100% !important;
  height: 0 !important;
  min-height: auto !important;
  padding-top: 80px !important;
  padding-bottom: 26vw !important;
  background-color: #103025 !important;
  position: relative;
}

.work-header::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 26vw !important;
  background-image: url('../assets/work-hero.jpg') !important;
  background-size: contain !important;
  background-position: bottom center !important;
  background-repeat: no-repeat !important;
  opacity: 1 !important;
  z-index: 0 !important;
}

.work-header h1 {
  font-size: 5rem;
  font-weight: 600;
  letter-spacing: -2px;
  color: #fff;
  position: relative;
  z-index: 2;
}

/* --- Intro Section --- */
.work-intro {
  padding: 40px 0;
  background-color: var(--bg-secondary);
  text-align: center;
}

.work-intro .section-title {
  color: var(--bg-color) !important;
}

.work-intro .section-subtitle {
  color: var(--bg-color) !important;
  opacity: 0.6;
}

.work-intro .highlight-text {
  font-size: 1.4rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--bg-color);
  font-weight: 500;
  opacity: 0.8;
}

/* --- Case Studies --- */
.case-study {
  padding: 0;
}

.case-study.bg-green {
  background-color: var(--bg-color);
  color: #ffffff !important;
}

.case-study.bg-green .description,
.case-study.bg-green .keywords {
  color: #ffffff !important;
  opacity: 1;
}

.case-study.bg-beige {
  background-color: var(--bg-secondary);
  color: var(--bg-color);
}

.case-flex-container {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 40px 0;
}

.case-image {
  flex: 0.9;
  position: relative;
  display: flex;
  justify-content: center;
}

.case-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-beige .case-image img {
  box-shadow: 0 30px 80px rgba(17, 48, 37, 0.15);
}

.case-study:hover .case-image > img {
  transform: scale(1.02) translateY(-10px);
}

/* Style Island 2x2 Grid Gallery */
.style-island-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 480px;
}

.style-island-gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.3, 1), box-shadow 0.5s ease;
  aspect-ratio: 4 / 5;
}

.style-island-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: none !important;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1);
}

/* Hover effects for individual items */
.style-island-gallery .gallery-item:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.style-island-gallery .gallery-item:hover img {
  transform: scale(1.06);
}

.case-details {
  flex: 1.1;
}

.case-details h2 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 25px;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.bg-green .case-details h2 {
  color: #ffffff !important;
}

.bg-beige .case-details h2 {
  color: var(--bg-color) !important;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.highlights span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

.highlights span svg {
  color: var(--bg-secondary);
  opacity: 1;
}

.bg-beige .highlights span svg {
  color: var(--bg-color);
}

.description {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 35px;
  color: var(--bg-color);
  opacity: 1;
}

.bg-green .description {
  color: #ffffff;
}

.bg-beige .description {
  color: var(--bg-color);
}

.keywords {
  font-size: 0.85rem;
  opacity: 0.8;
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  color: var(--bg-secondary);
}

.bg-beige .keywords {
  border-top-color: rgba(17, 48, 37, 0.1);
  color: var(--bg-color);
}

.keywords strong {
  color: var(--accent-color);
}

.bg-green .keywords strong {
  color: var(--bg-secondary);
}

@media (max-width: 992px) {
  .work-intro {
    padding: 20px 0 !important;
  }
  .work-intro .section-header {
    margin-bottom: 15px !important;
  }
  .case-flex-container {
    flex-direction: column !important;
    gap: 40px;
    padding: 40px 15px !important;
  }
  .case-image, .case-details {
    width: 100%;
    flex: none !important;
  }
  .case-details {
    padding: 0 !important;
  }
}

@media (max-width: 768px) {
  .work-header {
    padding-top: 70px !important;
    padding-bottom: 26vw !important;
  }
  .work-header h1 {
    font-size: 2.8rem !important;
  }
}
