
:root{
  --red: #e63242;
  --pink-soft: #fdeef0;
  --white: #ffffff;
  --gray: #6b7280;
  --ink: #1c1c22;
  --border-soft: rgba(0,0,0,.07);
  --bg: #fdf7f6;
}

.case-study {
    padding: 50px 0 0px !important;
}

.eyebrow{
  display:inline-block;
  color: var(--red);
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.14em;
  margin-bottom:14px;
}
.section-title{
  font-weight:800;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}
.section-title .accent{ color: var(--red); }

/* Testimonial + tech */
.testimonial-card{
  background: var(--white);
  border-radius:20px;
  padding: 15px;
  height:100%;
  box-shadow: 0 8px 26px rgba(24,26,32,.05);
  border: 1px solid var(--border-soft);
  position:relative;
}
.quote-icon{
  color: var(--pink-soft);
  font-size:3rem;
  line-height:1;
  margin-bottom: 10px;
}
.testimonial-text{ font-size:1.02rem; line-height:1.7; color: var(--ink); margin-bottom:22px; }
.testimonial-author{ display:flex; align-items:center; gap:12px; }
.author-avatar{
  width:44px; height:44px;
  border-radius:50%;
  background: var(--pink-soft);
  color: var(--red);
  display:flex; align-items:center; justify-content:center;
}
.author-name{ font-weight:700; font-size:.9rem; margin:0; }
.author-role{ font-size:.78rem; color: var(--gray); margin:0; }

.tech-card{
  background: var(--white);
  border-radius:20px;
  padding: 28px;
  height:100%;
  box-shadow: 0 8px 26px rgba(24,26,32,.05);
  border: 1px solid var(--border-soft);
}
.tech-title{ color: var(--red); font-weight:800; font-size:.72rem; letter-spacing:.1em; margin-bottom:18px; }
.tech-item{
  background: var(--pink-soft);
  border-radius:14px;
  padding: 14px 8px;
  text-align:center;
  transition: transform .3s ease, background .3s ease;
}
.tech-item:hover{ background: var(--red); transform: translateY(-4px); }
.tech-item:hover i, .tech-item:hover span{ color:#fff; }
.tech-item i{ font-size:1.3rem; color: var(--red); display:block; margin-bottom:6px; }
.tech-item span{ font-size:.72rem; font-weight:700; color: var(--ink); }


/* ================= SCATTERED SCREENSHOTS ================= */
.screenshots-section{ padding: 30px 0 10px; position:relative; }

.shot-scatter-row{
  align-items: flex-start;   /* stop bootstrap's default row stretch so tilted offsets show */
  max-width: 1080px;
  margin: 30px auto 0;
  padding: 30px 10px 10px;
}

.shot-polaroid{
  position: relative;
  background: var(--white);
  padding: 10px 10px 40px;
  border-radius: 4px;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  box-shadow: 0 16px 30px -14px rgba(24,26,32,.22);
  cursor: pointer;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, z-index 0s;
  z-index: 1;
}

.shot-polaroid:hover{
  transform: rotate(0deg) scale(1.08) translateY(-10px) !important;
  box-shadow: 0 28px 46px -18px rgba(230,50,66,.35);
  z-index: 20;
}

.shot-polaroid img{
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 2px;
  background: var(--white);
}

@media (min-width: 576px) and (max-width: 767px){
  .shot-polaroid img{ height: 220px; }
}
@media (max-width: 575px){
  .shot-polaroid img{ height: 300px; }
}
 
.shot-caption{
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-weight: 300;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: .3px;
  padding: 0 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 

.shot-tape{
  position: absolute;
  top: -12px;
  left: 50%;
  width: 64px;
  height: 24px;
  background: rgba(255, 230, 120, .55);
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 3px 8px rgba(0,0,0,.10);
}

.shot-pin{
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff8a95, var(--red));
  box-shadow: 0 3px 6px rgba(0,0,0,.25);
  z-index: 2;
}

/* Individual scatter positions / rotations — the signature.
   Applied via explicit classes (shot-tilt-1..6) rather than :nth-child,
   since each polaroid now sits alone inside its own Bootstrap column. */
.shot-tilt-1 .shot-polaroid{ transform: rotate(-7deg); margin-top: 10px; }
.shot-tilt-2 .shot-polaroid{ transform: rotate(4deg);  margin-top: 55px; }
.shot-tilt-3 .shot-polaroid{ transform: rotate(-3deg); margin-top: -5px; }
.shot-tilt-4 .shot-polaroid{ transform: rotate(6deg);  margin-top: 60px; }
.shot-tilt-5 .shot-polaroid{ transform: rotate(-5deg); margin-top: 5px; }
.shot-tilt-6 .shot-polaroid{ transform: rotate(3deg);  margin-top: 45px; }

.shot-tilt-1 .shot-tape{ transform: rotate(-4deg); }
.shot-tilt-2 .shot-pin{ background: radial-gradient(circle at 30% 30%, #9adcff, #2b8fd6); }
.shot-tilt-3 .shot-tape{ transform: rotate(6deg); background: rgba(160, 230, 180, .55); }
.shot-tilt-4 .shot-pin{ background: radial-gradient(circle at 30% 30%, #ffe08a, #e6a521); }
.shot-tilt-5 .shot-tape{ transform: rotate(-8deg); }
.shot-tilt-6 .shot-pin{ background: radial-gradient(circle at 30% 30%, #d6b8ff, #9257d1); }

/* odd columns get tape, even columns get a pin, for visual rhythm */
.shot-scatter-row > div:nth-child(odd) .shot-pin{ display:none; }
.shot-scatter-row > div:nth-child(even) .shot-tape{ display:none; }



/* ================= RESPONSIVE ================= */
@media (max-width: 575px){
  .shot-scatter-row{
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 20px 24px 26px;
    margin-left: -16px;
    margin-right: -16px;
    justify-content: flex-start !important;
  }
  .shot-scatter-row::-webkit-scrollbar{ display: none; }
 
  .shot-scatter-row > [class*="col-"]{
    flex: 0 0 88%;
    max-width: 88%;
    scroll-snap-align: center;
  }
  .shot-scatter-row > [class*="col-"]:first-child{ margin-left: 8px; }
  .shot-scatter-row > [class*="col-"]:last-child{ margin-right: 8px; }
 
  .shot-polaroid{
    max-width: 100%;
    margin-top: 0 !important;
  }
  .shot-scatter-row > div:nth-child(odd) .shot-polaroid{ transform: rotate(-3deg); }
  .shot-scatter-row > div:nth-child(even) .shot-polaroid{ transform: rotate(3deg); }
  .shot-polaroid:hover{ transform: rotate(0deg) scale(1.04) translateY(-6px) !important; }
 
  .shot-swipe-hint{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--gray);
    font-size: .78rem;
    font-weight: 600;
  }
  .shot-swipe-hint i{ font-size: .9rem; animation: shot-swipe-nudge 1.6s ease-in-out infinite; }
}
 
@media (min-width: 576px){
  .shot-swipe-hint{ display: none; }
}
 
@keyframes shot-swipe-nudge{
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
 
@media (min-width: 576px) and (max-width: 767px){
  .shot-polaroid{ max-width: 220px; padding: 8px 8px 32px; }
  .shot-caption{ font-size: 1.05rem; }
}
  