/* case study */

.case-study {
    padding: 50px 0 0px;
}



.hero-title {
    font-weight: 800;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    line-height: 1.18;
}

.hero-title .accent {
    color: var(--primary);
}

.hero-desc {
    color: var(--gray);
    font-size: 0.95rem;
    max-width: 460px;
    margin-top: 16px;
}

/* ============ HERO IMAGE ============ */
.hero-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.hero-media::after {
    content: "";
    position: absolute;
    top: 6%;
    right: 2%;
    width: 64px;
    height: 64px;
    background-image: radial-gradient(var(--primary) 1.6px, transparent 1.6px);
    background-size: 9px 9px;
    opacity: 0.25;
    z-index: 0;
}

.hero-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    transition: transform 0.5s ease;
}

.hero-media:hover img {
    transform: translateY(-6px) scale(1.015);
}

/* ============ PROJECT SNAPSHOT ============ */
.snapshot-card {
    background: var(--white);
    border-radius: 20px;
    padding: 22px 22px 8px;
    box-shadow: 0 8px 26px rgba(24, 26, 32, 0.06);
    height: 100%;
}

.snapshot-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}

.snapshot-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    transition: transform 0.25s ease;
}

.snapshot-item:hover {
    transform: translateX(3px);
}

.snapshot-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.snapshot-label {
    display: block;
    font-size: 0.72rem;
    color: var(--gray);
    margin-bottom: 2px;
}

.snapshot-value {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
}

.snapshot-value a {
    color: var(--primary);
    text-decoration: none;
}

.snapshot-value a:hover {
    text-decoration: underline;
}

/* ============ INFO CARDS ROW ============ */
.info-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px 22px;
    height: 100%;
    box-shadow: 0 8px 26px rgba(24, 26, 32, 0.05);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(230, 50, 66, 0.12);
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 14px;
    transition: transform 0.3s ease;
}

.info-card:hover .info-icon {
    transform: rotate(-8deg) scale(1.08);
}

.info-title {
    font-weight: 700;
    font-size: 0.98rem;
    margin-bottom: 10px;
}

.info-text {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray);
}

.bullet-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    line-height: 1.45;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* process timeline inside its card */
.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.process-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 16px;
}

.process-list li:last-child {
    margin-bottom: 0;
}

.process-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    z-index: 1;
}

.process-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 14px;
    width: 1px;
    height: calc(100% - 6px);
    background: #f1c7cb;
}

.process-list strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.process-list span {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.5;
}

/* results grid */
.result-stat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: transform 0.25s ease;
}

.result-stat:hover {
    transform: translateY(-3px);
}

.result-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.result-num {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.1;
    color: var(--ink);
}

.result-label {
    font-size: 0.72rem;
    color: var(--gray);
}




/* 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(--primary);
  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(--primary); 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(--primary); transform: translateY(-4px); }
.tech-item:hover i, .tech-item:hover span{ color:#fff; }
.tech-item i{ font-size:1.3rem; color: var(--primary); 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(--primary));
  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; }
}
  