/* Container & Typography */

.divine-projects-wrapper {
  font-family: inherit;
  padding: 50px 0;
  background-color: transparent;
  text-align: center;
  overflow: hidden;
}

.divine-section-header .divine-main-title {
  color: #212529;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.divine-section-header .divine-main-title::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 4px;
  background-color: #ffc107;
  bottom: -12px;
  left: 15%;
}

/* Carousel Track */

.divine-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-height: 450px;
  margin: 0 auto;
}

/* Base Card Styles */

.divine-carousel-card {
  position: absolute;
  top: 0;
  width: 55%;
  max-width: 600px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

.divine-project-title {
  margin-top: 25px;
  font-size: 1.25rem;
  color: #1a1a3a;
  font-weight: 600;
}

/* 3D Positional Logic */

.divine-card-center {
  left: 50%;
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 3;
}

.divine-card-left {
  left: 15%;
  transform: translateX(-50%) scale(0.75);
  opacity: 0.4;
  z-index: 2;
  cursor: pointer;
}

.divine-card-right {
  left: 85%;
  transform: translateX(-50%) scale(0.75);
  opacity: 0.4;
  z-index: 2;
  cursor: pointer;
}

.divine-card-hidden {
  left: 50%;
  transform: translateX(-50%) scale(0.4);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Pure CSS Laptop Mockup */

.divine-laptop-mockup {
  width: 100%;
  background: #2b2b2b;
  border-radius: 12px 12px 0 0;
  padding: 3% 3% 0 3%;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.divine-laptop-base {
  width: 112%;
  height: 18px;
  background: #d4d4d4;
  border-radius: 0 0 15px 15px;
  margin-left: -6%;
  position: relative;
  box-shadow: inset 0 -3px 8px rgba(0,0,0,0.2);
}

.divine-laptop-base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20%;
  height: 4px;
  background: #a3a3a3;
  border-radius: 0 0 5px 5px;
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .divine-carousel-card {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .divine-card-left {
    left: 0%;
    transform: translateX(-30%) scale(0.7);
  }
}

@media (max-width: 768px) {
  .divine-card-right {
    left: 100%;
    transform: translateX(-70%) scale(0.7);
  }
}

@media (max-width: 768px) {
  .divine-carousel-container {
    min-height: 350px;
  }
}

/* Updated Laptop Screen & Iframe Styles */

.divine-laptop-screen {
  /*background: #ffffff;*/
  aspect-ratio: 16 / 9;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  position: relative;
}

.divine-laptop-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px !important;
  height: 720px !important;
  border: none;
  pointer-events: none;
  transform-origin: top left;
}

.divine-projects-wrapper {
}

/* Allow scrolling and interaction ONLY on the active center card */

.divine-card-center .divine-laptop-screen iframe {
  pointer-events: auto;
  /*Optional: Make the scrollbar look a bit better when scaled down;*/
  scrollbar-width: thin;
}

