/* --- 1. Variables & Global --- */
:root {
    --primary-maroon: #7a1f1f;
    --bg-light: rgb(246, 246, 246);
    --white: #ffffff;
}


/* --- 2. Layout Structure --- */
.container { margin: 0 auto; padding: 0 10%; }
.section-wrapper { width: 100%; padding: 1px 0; }
.light-bg { background-color: var(--bg-light); }
.section-block { margin: 50px 0; }


/* --- 4. Hero Section --- */
.hero { background-image: url("../images/lending/neighbortools-mockup.png");background-size: cover; background-repeat: no-repeat; background-position: right top; display: flex; align-items: center; padding: 80px 10% 0; overflow: hidden; min-height: 500px; }
.hero-content { flex: 1; padding-bottom: 30px; }
.hero-content .description { max-width: 500px; }
.hero-content h1 { color: var(--primary-maroon); font-size: 3rem; }
.hero-content .badge {
  display: inline-block;
  background: #e0dad6;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 13px;
}
.video-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  background: #0f0f0f; 
}

.video-card {
  width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 70px rgba(0,0,0,0.7);
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- 5. Component Styles --- */
.section-title { color: var(--primary-maroon); font-size: 22px; margin-bottom: 30px; font-weight: 700; }
.maroon-title { color: var(--primary-maroon); font-size: 22px; margin: 40px 0 20px; }
.faded-title { color: var(--text-faded); font-size: 20px; text-transform: uppercase; font-weight: 700; }
.emphasis-centered { text-align: center; font-weight: 700; margin: 40px 0; font-size: 16px; }
.challenge-label { color: var(--primary-maroon); padding-top: 20px;}

/* Progress Bars */
.insights-progress-section { margin-top: 40px; display:flex; align-items:center; flex-direction:column}
.progress-item { margin-bottom: 40px; width:70%;}
.progress-bar-container { height: 25px; background: #e0e0e0; border-radius: 12px; margin: 10px 0; overflow: hidden;   }
.progress-fill { height: 100%; }
.progress-fill.orange { background-color: #f69c69; }
.progress-fill.red { background-color: #cd5c4d; }
.progress-fill.green { background-color: #63854d; }

/* Survey Circle Layout */
.circle-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 40px 0; text-align: center; }
.circle-item { background: #fff; border: 2px solid #efeded; padding: 20px; border-radius: 50%; width: 200px; height: 200px; display: flex; align-items:center; flex-direction:column; justify-content: center; font-size: 15px; color: var(--text-main); margin: 0 auto; box-shadow:0px -2px 7px 2px rgba(0, 0, 0, 0.05) }
.circle-item img { width:50px;}

/* Grids & Flex */
.problem-solution, .project-details, .content-flex { display: flex; gap: 60px; }
.overview-text { width: 50% }
.col, .text-side { flex: 2; }
.img-side { flex: 1; text-align:right;}
.img-side img {max-width: 600px}
.metadata { flex: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.meta-item h3 { font-size: 18px; color: var(--primary-maroon); margin-bottom: 10px; }
.meta-item ul { list-style:none; }
.bullet-list { list-style: disc; padding-left: 20px; margin-top: 15px; }

/* Sticky Notes */
.sticky-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.sticky { padding: 25px; min-height: 180px; box-shadow: 4px 4px 12px rgba(0,0,0,0.06); font-size: 14px; display: flex; align-items: center; text-align: center; }
.sticky.yellow { background: #fff9c4; }
.sticky.orange { background: #ffe0b2; }
.sticky.green { background: #c8e6c9; }
.sticky.purple { background: #e1bee7; }

/* Survey & Takeaways */
.stat-row { display: flex; gap: 40px; align-items: center; margin-bottom: 40px; }
.stat-row img { max-width: 400px; height: auto; }
.takeaway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 40px; }
.takeaway-item { text-align: center; background: var(--white); padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.takeaway-item .number { display: block; font-size: 40px; color: var(--primary-maroon); font-weight: 700; margin-bottom: 15px; }

/* --- Sketch Gallery Grid --- */
.sketch-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.sketch-item {
    cursor: zoom-in;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sketch-item img {
    width: 100%;
    height: 250px; 
    object-fit: contain; 
    border-radius: 4px;
    border: 1px solid #ddd;
    filter: grayscale(20%); /* Subtle stylistic choice for sketches */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.sketch-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
    border-color: var(--primary-maroon);
}

.sketch-item .img-caption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .sketch-gallery {
        grid-template-columns: 1fr; 
    }
}

/* Delivered Items */
.delivered-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto; 
    padding: 20px;
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    align-items: flex-start; /* Aligns all items to the top */
}

.delivered-item {
    flex: 0 0 auto; 
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: zoom-in;
}

.delivered-item img {
    height: 450px; 
    width: auto; /* Maintains aspect ratio */
    object-fit: contain; /* Ensures the whole screen is visible without cropping */
    border-radius: 8px;
    background-color: #fcfcfc; /* Subtle background for transparency */
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.delivered-item:hover img {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* --- Captions --- */
.img-caption {
    margin: 8px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-muted); /* Consistent with your branding */
    text-align: center;
}

/* Hover effect to make it interactive */
.delivered-item:hover {
    transform: translateY(-5px);
}

/* Custom Scrollbar Styling */
.delivered-slider::-webkit-scrollbar {
    height: 8px;
}

.delivered-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.delivered-slider::-webkit-scrollbar-thumb {
    background: var(--primary-maroon); 
    border-radius: 10px;
}

/* Swipe Hint */
.scroll-hint {
    text-align: right;
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* --- Lightbox Modal --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Above the "Back to top" button */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
    padding-top: 50px;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 4px;
    animation: zoom 0.3s;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-family: 'Merriweather', serif;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


@media (max-width: 768px) {
    .delivered-item img {
        height: 320px;
    }
}

@keyframes zoom {
    from {transform: scale(0.9)} 
    to {transform: scale(1)}
}

/* Update slider item for clickability */
.delivered-item {
    cursor: zoom-in;
}

/* Final Prototype & Footer */
.prototype-showcase { display:flex; align-items:center; flex-direction:column; justify-content:center; text-align:center;}
.laptop-img { max-width: 40%; height: auto; display:block;}
.btn-prototype { display: inline-block; background-color: #d1d1d1; padding: 15px 40px; text-decoration: none; color: #000; border-radius: 6px; transition: #d1d1d1 0.3s ease; margin-top:-90px; }
.btn-prototype:hover {
    background-color: #bbbbbb; /* Subtle interactive feedback */
}


.proj-card { display: flex; align-items: center; gap: 15px; background: #fff; padding: 10px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); width:content; margin-top: 10px; }
.proj-card img { width: 60px; border-radius: 2px; }
.proj-text h4 {font-size: 12px;}
.proj-text p {font-size: 11px;}

/* Utility */
.centered-image-container { text-align: center; margin: 40px 0; }
.centered-image-container img { max-width: 100%; }
.centered-image-container.small img { max-width: 80%; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; background: #000; border-radius: 8px; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }


/* Responsive */
@media (max-width: 768px) {
    .problem-solution, .project-details, .content-flex, .takeaway-grid, .stat-row, .footer-content { flex-direction: column; }
    .hero { flex-direction: column; text-align: center; }
    .hero-image img { width: 100%; transform: none; margin-top: 40px; }
    .delivered-grid, .takeaway-grid { grid-template-columns: repeat(2, 1fr); }
    .navbar { flex-direction: column; gap: 20px; }
    .proj-card { width: 100%; }
}