/* =============================================
   PACKTECH — MISSION & VISION SECTION
   ============================================= */

.mv-section {
  position: relative;
  background-color: #f8edde;
  /* Cream paper-like background */
  padding-bottom: 120px;
  overflow: hidden;
  z-index: 5;
  margin-top: 0;
}

/* ─── Header Part ───────────────────────────── */
.mv-header {
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.mv-header-bg {
  width: 100%;
  position: relative;
}

.mv-top-img {
  width: 100%;
  height: auto;
  display: block;
}

.mv-header-top {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 2;
}

.mv-header-bottom {
  position: absolute;
  top: 68%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 2;
}

.mv-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: 1.5px;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.mv-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.mv-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  flex-grow: 1;
}

.mv-icon {
  color: #fff;
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ─── Grid / Items ──────────────────────────── */
.mv-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  margin-top: -150px;
  /* Moved up as requested */
  z-index: -1;
}

.mv-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.mv-item {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Staggering */
.mv-item.mission {
  margin-top: 0;
}

.mv-item.vision {
  margin-top: 80px;
}

.mv-item.value {
  margin-top: 120px;
}

/* Roller Wrap */
.mv-roller-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: swing 6s infinite ease-in-out;
}

.mv-item.vision .mv-roller-wrap {
  animation-delay: -1s;
}

.mv-item.value .mv-roller-wrap {
  animation-delay: -2s;
}

.mv-roller-img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mv-roller-wrap:hover .mv-roller-img {
  transform: scale(1.05) translateY(-5px);
}

/* Paper Sheet */
.mv-paper {
  position: relative;
  width: 88%;
  margin-top: -15px;
  /* Tucked under the roller */
  z-index: 1;
  transition: transform 0.4s ease;
}

.mv-roller-wrap:hover .mv-paper {
  transform: translateY(5px);
}

.mv-paper-bg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.1));
}

.mv-paper-content {
  position: absolute;
  top: -3rem;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mv-paper-content h3 {
  font-family: 'Paytone One', sans-serif;
  font-size: 1.6rem;
  color: #1a0d05;
  text-transform: uppercase;
  margin-bottom: 20px;
  visibility: hidden;
  /* It's already in the roller image, but good for SEO/ARIA if needed */
  height: 0;
}

.mv-paper-content p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3d2010;
  font-weight: 500;
  max-width: 280px;
}

/* ─── Animations ────────────────────────────── */
@keyframes swing {

  0%,
  100% {
    transform: rotate(-1.5deg);
  }

  50% {
    transform: rotate(1.5deg);
  }
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.visible,
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: 0.15s;
}

.d2 {
  transition-delay: 0.3s;
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 1100px) {
  .mv-grid {
    justify-content: center;
    gap: 60px;
  }

  .mv-item {
    margin-top: 0 !important;
    min-width: 45%;
  }
}

@media (max-width: 768px) {
  .mv-item {
    min-width: 100%;
  }

  .mv-header-top {
    top: 10%;
  }

  .mv-header-bottom {
    top: 60%;
  }

  .mv-paper-content {
    padding: 30px 20px 20px;
  }

  .mv-paper-content p {
    font-size: 0.85rem;
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .mv-section {
    padding-bottom: 60px;
  }

  .mv-header-content {
    top: 50%;
  }

  .mv-subtitle {
    margin-bottom: 10px;
  }
}