html, body {
  margin: 0;
  padding: 0;
}

.pic-ctn {
  width: 100vw;
  height: 100px;
}

@keyframes display {
  0% {
    transform: translateX(200px);
    opacity: 0;
  }
  10% {
    transform: translateX(0);
    opacity: 1;
  }
  20% {
    transform: translateX(0);
    opacity: 1;
  }
  30% {
    transform: translateX(-200px);
    opacity: 0;
  }
  100% {
    transform: translateX(-200px);
    opacity: 0;
  }
}

.pic-ctn {
  position: relative;
  width: 30vw;
  height: 100px;
  margin-top: 15vh;
}

.pic-ctn > img {
  position: absolute;
  top: 0;
  left: calc(50% - 100px);
  opacity: 0;
  animation: display 30s infinite;
}

.pic-ctn img:nth-child(2) {
  animation-delay: 2s;
}
.pic-ctn img:nth-child(3) {
  animation-delay: 4s;
}
.pic-ctn img:nth-child(4) {
  animation-delay: 6s;
}
.pic-ctn img:nth-child(5) {
  animation-delay: 8s;
}

/* Legal Documents Carousel styles */
.legal-carousel-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: linear-gradient(135deg, #ff0000 0%, #fffb05 100%);
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
}

.legal-carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.legal-carousel-container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.legal-carousel .carousel-item {
  background: transparent;
  text-align: center;
  transition: transform 0.6s ease-in-out;
  position: relative;
}

.document-title-container {
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.document-title {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  animation: titleFadeIn 0.6s ease-in-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-carousel .carousel-item-next,
.legal-carousel .carousel-item-prev {
  animation: slideAnimation 0.6s ease-in-out;
}

@keyframes slideAnimation {
  0% {
    opacity: 0.7;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.legal-doc-img {
  max-height: 80vh;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  padding: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: auto;
}

/* Watermark overlay on images */
.carousel-item::after {
  content: 'VIEWING PURPOSES ONLY';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 0, 0, 0.15);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
  letter-spacing: 0.5rem;
  text-transform: uppercase;
}

.legal-doc-img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 45px rgba(0,0,0,0.4);
}

.legal-carousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legal-carousel .carousel-control-prev-icon,
.legal-carousel .carousel-control-next-icon {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 20px;
}

.legal-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.legal-carousel .carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* Modal for zoomed image */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content-img {
  max-width: 95%;
  max-height: 95vh;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
  border-radius: 8px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

/* Watermark in modal */
.image-modal::after {
  content: 'VIEWING PURPOSES ONLY';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 0, 0, 0.2);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10001;
  letter-spacing: 0.8rem;
  text-transform: uppercase;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
}

.close-modal:hover {
  color: #f44336;
}

@media (max-width: 992px) {
  .legal-doc-img { max-height: 70vh; }
}

/* Disable screenshot and print */
@media print {
  .legal-carousel-section,
  .image-modal {
    display: none !important;
  }
}

/* Prevent context menu on images */
.legal-doc-img,
.modal-content-img {
  -webkit-touch-callout: none;
}

@media (max-width: 576px) {
  .legal-doc-img { max-height: 60vh; }
  
  .document-title {
    font-size: 1.3rem;
    padding: 0.8rem 1.5rem;
  }
  
  .document-title-container {
    margin-bottom: 1rem;
  }
  
  .carousel-item::after {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
  }
  
  .image-modal::after {
    font-size: 2rem;
    letter-spacing: 0.3rem;
  }
}

@media (max-width: 768px) {
  .document-title {
    font-size: 1.5rem;
  }
  
  .carousel-item::after {
    font-size: 2rem;
    letter-spacing: 0.3rem;
  }
  
  .image-modal::after {
    font-size: 2.5rem;
    letter-spacing: 0.5rem;
  }
}
