/* =========================================
OUR PROJECTS SECTION - IRIDESCENT STUDIO EDITION
100VH LOCKED VERSION
========================================= */

.our_project_section_wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 5vh 0 5vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: url('../img/about-bg.png') no-repeat center center;
  background-size: cover;
  overflow: hidden;
  perspective: 1200px;
  box-sizing: border-box;
}

/* --- GHOST BACKGROUND TEXT --- */
.our_project_ghost_bg {
  position: absolute;
  font-family: "Orbitron", sans-serif;
  font-size: 8vw;
  font-weight: 900;
  color: rgba(75, 142, 241, 0.06);
  white-space: nowrap;
  top: 82%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  letter-spacing: 0.6vw;
}

.our_project_bg_orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  animation: our_project_float 10s ease-in-out infinite alternate;
}

.our_project_bg_orb_1 {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, rgba(75, 142, 241, 0.4), transparent 70%);
  top: -8vw;
  left: -8vw;
}

.our_project_bg_orb_2 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.35),
    transparent 70%
  );
  bottom: -10vw;
  right: -10vw;
  animation-delay: 2s;
}

@keyframes our_project_float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 50px);
  }
}

/* --- HEADER STYLES --- */
.our_project_header {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  margin-bottom: 2vh;
  padding-bottom: 2vh;
}

/* Badge / Label */
.our_project_label_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.2vh;
}

.our_project_badge_line {
  width: 25px;
  height: 2px;
  background: #4b8ef1;
}

.our_project_label {
  display: inline-block;
  font-family: "Orbitron", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: #4b8ef1;
  text-transform: uppercase;
  font-weight: 700;
}

/* Title */
.our_project_title_wrapper {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.2vh 0;
}

.our_project_title_outline {
  font-family: "Michroma", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: transparent;
  -webkit-text-stroke: 1.5px #1e293b;
  text-transform: uppercase;
  margin: 0;
}

.our_project_title_solid {
  font-family: "Michroma", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: #1e293b;
  text-transform: uppercase;
  margin: 0;
}

/* Fallback single-element title */
.our_project_title {
  font-family: "Michroma", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
  margin-bottom: 1vh;
}

.our_project_subtitle {
  font-family: "Outfit", sans-serif;
  font-size: clamp(0.75rem, 1.1vw, 0.95rem);
  line-height: 1.6;
  color: #475569;
  max-width: 520px;
  margin: 0 auto 5vh auto;
  text-align: center;
}

/* --- 3D SCENE CONFIGURATION --- */
.our_project_carousel_scene {
  position: relative;
  width: 100%;
  height: 60vh;
  perspective: 2000px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.our_project_carousel_ring {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- INDIVIDUAL CARD STYLES --- */
.our_project_card {
  position: absolute;
  width: clamp(360px, 46vw, 550px);
  height: clamp(280px, 52vh, 460px);
  text-decoration: none;
  display: block;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}

/* Glassmorphism Card */
.our_project_card_glass {
  width: 100%;
  height: 90%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  padding: 10px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.our_project_card:hover .our_project_card_glass {
  background: #ffffff;
  border-color: #4b8ef1;
  box-shadow: 0 20px 40px rgba(75, 142, 241, 0.1);
  transform: translateY(-8px);
}

.our_project_image_wrapper {
  width: 100%;
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}

.our_project_img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.our_project_card:hover .our_project_img {
  transform: scale(1.05);
}

.our_project_card_content {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0 6px;
  flex-shrink: 0;
}

/* Tag */
.our_project_tag {
  font-family: "Orbitron", sans-serif;
  font-size: 0.6rem;
  color: #10b981;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Card Title */
.our_project_card_title {
  font-family: "Michroma", sans-serif;
  font-size: clamp(0.7rem, 1vw, 0.95rem);
  color: #1e293b;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}

/* Arrow button */
.our_project_card_arrow {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 28px;
  height: 28px;
  background: rgba(75, 142, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b8ef1;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.our_project_card:hover .our_project_card_arrow {
  background: #4b8ef1;
  color: #ffffff;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(75, 142, 241, 0.3);
}

/* --- CARD POSITIONING ON THE 3D RING --- */
.our_project_card[data-index="0"] {
  transform: translate(-50%, -50%) rotateY(0deg) translateZ(560px);
}

.our_project_card[data-index="1"] {
  transform: translate(-50%, -50%) rotateY(60deg) translateZ(560px);
}

.our_project_card[data-index="2"] {
  transform: translate(-50%, -50%) rotateY(120deg) translateZ(560px);
}

.our_project_card[data-index="3"] {
  transform: translate(-50%, -50%) rotateY(180deg) translateZ(560px);
}

.our_project_card[data-index="4"] {
  transform: translate(-50%, -50%) rotateY(240deg) translateZ(560px);
}

.our_project_card[data-index="5"] {
  transform: translate(-50%, -50%) rotateY(300deg) translateZ(560px);
}

/* --- NAVIGATION BUTTONS --- */
.our_project_controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 3vh;
  position: relative;
  z-index: 20;
  flex-shrink: 0;
}

.our_project_nav_btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(75, 142, 241, 0.08);
  border: 1px solid rgba(75, 142, 241, 0.25);
  color: #4b8ef1;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.our_project_nav_btn:hover {
  background: #4b8ef1;
  border-color: #4b8ef1;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(75, 142, 241, 0.3);
}

/* ============================================================
MOBILE & TABLET OPTIMIZED
============================================================ */

/* Fixed Breakpoint: Drops restriction constraint to seamlessly adapt down to 320px micro-screens */
@media (max-width: 767.98px) {
  .our_project_section_wrapper {
    height: 100vh;
    padding: 4vh 0 4vh;
    justify-content: center;
  }

  .our_project_header {
    margin-bottom: 2vh;
  }

  .our_project_title,
  .our_project_title_outline,
  .our_project_title_solid {
    font-size: 1.1rem;
  }

  .our_project_title_wrapper {
    flex-direction: column;
    gap: 6px;
  }

  .our_project_subtitle {
    font-size: 0.82rem;
    margin-bottom: 3vh;
    max-width: 90%;
  }

  .our_project_carousel_scene {
    height: 50vh;
  }

  /* Fluid Mobile Scaling Configurations */
  .our_project_card {
    width: 220px;
    height: 38vh;
  }

  /* Recalibrated 3D matrix boundaries avoiding off-viewport cropping bugs */
  .our_project_card[data-index="0"] {
    transform: translate(-50%, -50%) rotateY(0deg) translateZ(180px);
  }
  .our_project_card[data-index="1"] {
    transform: translate(-50%, -50%) rotateY(60deg) translateZ(180px);
  }
  .our_project_card[data-index="2"] {
    transform: translate(-50%, -50%) rotateY(120deg) translateZ(180px);
  }
  .our_project_card[data-index="3"] {
    transform: translate(-50%, -50%) rotateY(180deg) translateZ(180px);
  }
  .our_project_card[data-index="4"] {
    transform: translate(-50%, -50%) rotateY(240deg) translateZ(180px);
  }
  .our_project_card[data-index="5"] {
    transform: translate(-50%, -50%) rotateY(300deg) translateZ(180px);
  }

  .our_project_controls {
    margin-top: 1vh;
    gap: 12px;
  }

  .our_project_nav_btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .our_project_ghost_bg {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .our_project_section_wrapper {
    height: 100vh;
    padding: 5vh 0 5vh;
    justify-content: center;
  }

  .our_project_header {
    margin-bottom: 4vh;
  }

  .our_project_carousel_scene {
    height: 58vh;
  }

  .our_project_card {
    width: 420px;
    height: 50vh;
  }

  .our_project_card[data-index="0"] {
    transform: translate(-50%, -50%) rotateY(0deg) translateZ(420px);
  }
  .our_project_card[data-index="1"] {
    transform: translate(-50%, -50%) rotateY(60deg) translateZ(420px);
  }
  .our_project_card[data-index="2"] {
    transform: translate(-50%, -50%) rotateY(120deg) translateZ(420px);
  }
  .our_project_card[data-index="3"] {
    transform: translate(-50%, -50%) rotateY(180deg) translateZ(420px);
  }
  .our_project_card[data-index="4"] {
    transform: translate(-50%, -50%) rotateY(240deg) translateZ(420px);
  }
  .our_project_card[data-index="5"] {
    transform: translate(-50%, -50%) rotateY(300deg) translateZ(420px);
  }
}
