/* =================== Section 1: Projects Grid ================== */
.si-projects{
  --media-ratio: 21/11;                 /* a bit shorter than 21/10 */
  --media-min-h: clamp(160px, 22vw, 320px); /* Smaller frame */
  --media-radius: 12px;
  --gap-x: 40px;                        /* Text ↔ image spacing */
  --gap-y: 70px;
  max-width: 1520px;                    /* Slightly narrower canvas */
  margin: 80px auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-y) var(--gap-x);
}

/* Left meta (right-aligned) + image */
.si-project{
  display: grid;
  grid-template-columns: 320px 1fr;     /* Meta wider, image width slightly smaller */
  align-items: start;
  column-gap: 36px;                     /* Small gap between text and image */
}

/* Meta block — align toward the image (right edge) */
.si-meta{
  text-align: right;                    /* Align all text to the image side */
  padding-top: 6px;
}
.si-badge{
  width: 52px; height: 52px; object-fit: cover; border-radius: 8px;
  display: block; margin: 0 0 14px auto; /* Push badge to the right */
}
.si-title{
  margin: 0 0 6px; font-size: 20px; font-weight: 600;
  letter-spacing: .04em; line-height: 1.35;
}
.si-loc{
  margin: 0; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: #9a9a9a;
}

/* Media frame — UNIFORM, slightly smaller */
.si-media{
  width: 100%;
  border-radius: var(--media-radius);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0,0,0,.09);
  aspect-ratio: var(--media-ratio);
  min-height: var(--media-min-h);
}
.si-media > img{
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.015);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.si-media:hover > img{ transform: scale(1.06); }

/* Accent hover (optional) */
.si-project:hover .si-title{ color:#d40000; }

/* ===== Responsive tuning ===== */
@media (min-width: 1400px){
  .si-projects{
    --media-ratio: 21/10;               /* Slightly taller on ultra-wide */
    --media-min-h: clamp(170px, 21vw, 340px);
    max-width: 1600px;
  }
  .si-project{ grid-template-columns: 310px 1fr; }
}

@media (max-width: 1180px){
  .si-projects{
    --media-ratio: 16/9;
    --media-min-h: clamp(160px, 28vw, 300px);
    max-width: 1120px;
  }
  .si-project{ grid-template-columns: 180px 1fr; column-gap: 30px; }
}

@media (max-width: 980px){
  .si-projects{
    grid-template-columns: 1fr;
    --media-ratio: 16/10;               /* Balanced on mobile */
    --media-min-h: clamp(170px, 48vw, 300px);
    gap: 46px 22px;
    max-width: 100%;
  }
  .si-project{ grid-template-columns: 1fr; row-gap: 14px; }
  .si-meta{ text-align: left; }         /* Mobile pe natural reading */
  .si-badge{ margin-left: 0; }
}

@media (max-width: 560px){
  .si-projects{
    --media-ratio: 4/3;                 /* Small screens ke liye readable */
    --media-min-h: clamp(160px, 56vw, 280px);
    padding: 0 18px;
  }
}


/* ===================== Gallery Modal ========================== */
.si-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}
.si-modal.is-open { display: block; }
.si-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}
.si-modal__close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2100;
}
.si-modal__close::before,
.si-modal__close::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 18px;
  height: 2px;
  background: #fff;
}
.si-modal__close::before { transform: rotate(45deg); }
.si-modal__close::after { transform: rotate(-45deg); }

/* ===== Carousel ===== */
.si-carousel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 10vw;
}
.si-carousel::-webkit-scrollbar { height: 8px; }
.si-carousel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

/* ===== Slide ===== */
.si-slide {
  flex: 0 0 70vw;
  margin: 0 5vw;
  scroll-snap-align: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: scale(0.9);
  opacity: 0.7;
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  gap: 40px;
}
.si-slide.active {
  transform: scale(1);
  opacity: 1;
}

/* ===== Image ===== */
.si-slide img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  transition: transform 0.5s ease;
}
.si-slide.active img { transform: scale(1.05); }

/* ===== Text beside image ===== */
.si-slide__info {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  color: #222;
  font-family: 'Modeka', sans-serif;
}
.si-slide__info h3 {
  margin: 0 0 10px;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.si-slide__info p {
  margin: 10px 0;
  line-height: 1.6;
  font-size: 18px;
}
.si-meta {
  /* display: flex; */
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.si-meta span {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  background: #f1f1f1;
  padding: 6px 10px;
  border-radius: 6px;
}

/* ===== Text-only slides ===== */
.si-slide.text-only {
  grid-template-columns: 1fr;
  justify-items: center;
}
.si-slide.text-only .si-slide__info {
  max-width: 700px;
  text-align: center;
}

/* ===== Fade animation ===== */
.si-slide__info {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.si-slide.active .si-slide__info {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .si-slide {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .si-slide img {
    height: 55vh;
    border-radius: 14px;
  }
  .si-slide__info {
    padding: 18px;
  }
}
@media (max-width: 480px) {
  .si-slide img {
    height: 50vh;
  }
  .si-slide__info {
    font-size: 14px;
  }
}

/* === Cursor spotlight: only under cursor invert (bg black, text white) === */
.si-slide__info {
  position: relative;
  overflow: hidden;          /* Spotlight edges clipped nicely */
  --mx: 50%;                 /* Mouse X (set by JS) */
  --my: 50%;                 /* Mouse Y (set by JS) */
}

/* The spotlight layer that inverts colors only under the circle */
.si-slide__info::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      140px 140px at var(--mx) var(--my),
      rgba(255,255,255,1) 0 75%,
      #ff141400 80%   /* Red color */
    );
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s ease;
}

.si-slide__info:hover::after {
  opacity: 1;
}

/* Slight dark base so inversion is visible on white cards too */
.si-slide__info {
  background: rgba(255,255,255,0.92);
}

/* 3D Carousel effect */
.si-carousel {
    position: relative;
    display: flex;
    flex-direction: column;  /* Stack slides vertically */
    overflow-y: scroll;      /* Allow vertical scrolling */
    scroll-snap-type: y mandatory;  /* Ensure that slides snap vertically */
    scroll-behavior: smooth;
    padding: 0 10vw;
    max-height: 100vh;        /* Adjust the max height of the carousel */
    margin: 0 auto;
}

/* Make sure each slide takes the full height of the carousel */
.si-slide {
    flex: 0 0 auto;          /* Prevent slides from shrinking */
    margin: 10px 0;          /* Vertical margin between slides */
    scroll-snap-align: center;  /* Ensure slides align to the center */
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.si-slide.active {
    transform: scale(1.05);  /* Slightly enlarge the active slide */
}

/* Adjust the width and height for images in the carousel */
.si-slide img {
    width: 100%;
    height: 60vh;            /* Adjust image height for better visibility */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .si-slide img {
        height: 30vh;
    }
}


/* ////////////////////////////////////////////////// footer ///////////////////////////////////////////////// */
/* =================== Footer Section ================== */
.footer {
  background-color: #f9f9f9;
  padding: 50px 20px;
  font-family: 'Modeka', sans-serif;
  text-align: left;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer__section {
  flex: 1;
}

.footer__section h3 {
  margin-bottom: 16px;
  font-size: 18px;
  color: #000000;
  font-weight: 600;
}

.footer__section ul {
  list-style: none;
  padding-left: 0;
}

.footer__section ul li {
  margin-bottom: 10px;
}

.footer__section ul li a {
  text-decoration: none;
  color: #000000;
  font-size: 16px;
}

.footer__section ul li a:hover {
  color: #d40000;
}

.footer__bottom {
  text-align: center;
  margin-top: 30px;
}

.footer__bottom a {
  text-decoration: none;
  font-size: 16px;
  color: #000000;
  letter-spacing: 0.1em;
}

.footer__bottom a:hover {
  color: #d40000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
  }
  
  .footer__section {
    margin-bottom: 30px;
  }
}
